/* Happy Home Planners — site styles. Mobile-first. */
:root {
  --protea: #C9566E;
  --protea-dark: #8E2F47;
  --protea-soft: #EDB3BE;
  --protea-wash: #F7DCE1;
  --plum: #4A2A3A;
  --ink: #3A2430;
  --muted: #6A5560;
  --ochre: #D9A13B;
  --ochre-soft: #F2D9A6;
  --terra: #B9583A;
  --sage: #6E8B5B;
  --sage-dark: #4E6B3A;
  --sage-soft: #BCCBAA;
  --teal: #2F7F7A;
  --cream: #FBF4EA;
  --sand: #EFE2CF;
  --cone: #F6E9DA;
  --paper: #FFFDF9;
  --line: #E4D3C4;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(74, 42, 58, 0.08);
  --radius: 18px;
  --max: 1100px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--protea-dark); }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }


/* Beadwork band */
.bead-band {
  height: 14px;
  width: 100%;
  background-color: var(--sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='14' viewBox='0 0 96 14'%3E%3Crect width='96' height='14' fill='%23EFE2CF'/%3E%3Crect x='0' y='3' width='10' height='8' rx='1' fill='%23B9583A'/%3E%3Ccircle cx='18' cy='7' r='3.2' fill='%23D9A13B'/%3E%3Crect x='26' y='3' width='10' height='8' rx='1' fill='%23C9566E'/%3E%3Ccircle cx='44' cy='7' r='3.2' fill='%23FFFDF9' stroke='%23C9566E' stroke-width='0.8'/%3E%3Crect x='52' y='3' width='10' height='8' rx='1' fill='%232F7F7A'/%3E%3Ccircle cx='70' cy='7' r='3.2' fill='%236E8B5B'/%3E%3Crect x='78' y='3' width='10' height='8' rx='1' fill='%23D9A13B'/%3E%3Ccircle cx='93' cy='7' r='2.2' fill='%23C9566E'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 96px 14px;
}

/* Header */
.site-header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--plum);
  min-width: 0;
}
.logo img {
  width: 44px;
  height: 39px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--plum);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

.site-nav {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.4rem 0 1rem;
  width: 100%;
  flex: 1 0 100%;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--plum);
  padding: 0.75rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--cone);
  color: var(--protea-dark);
}
.site-nav .nav-shop {
  background: var(--plum);
  color: var(--cream) !important;
  text-align: center;
  margin-top: 0.25rem;
}
.site-nav .nav-shop:hover { background: var(--protea-dark); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .header-inner { padding: 0.85rem 1.5rem; flex-wrap: nowrap; }
  .logo-text strong { font-size: 1.35rem; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    border: 0;
    padding: 0;
    background: transparent;
    width: auto;
    flex-basis: auto;
    margin-left: auto;
  }
  .site-nav a { padding: 0.45rem 0.7rem; font-size: 0.95rem; }
  .site-nav .nav-shop { margin-top: 0; margin-left: 0.35rem; padding: 0.5rem 0.95rem; }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem;
  min-width: 0;
  width: 100%;
}
.split > *, .hero-grid > *, .product > *, .prose, .product-media, .card {
  min-width: 0;
  max-width: 100%;
}
.section { padding: 2.4rem 0; }
.section-tight { padding: 1.6rem 0 2.4rem; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 0.45rem;
}
h1, h2, h3, .display {
  font-family: var(--font-serif);
  color: var(--plum);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: manual;
  max-width: 100%;
}
h1 { font-size: clamp(1.65rem, 6.4vw + 0.35rem, 3.5rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.45rem, 4.2vw + 0.4rem, 2.4rem); margin: 0 0 0.8rem; }
h3 { font-size: clamp(1.2rem, 2vw + 0.7rem, 1.45rem); margin: 0 0 0.4rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.2rem; max-width: 38rem; }
p { margin: 0 0 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  line-height: 1.2;
  text-align: center;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--plum);
  color: var(--cream) !important;
}
.btn-primary:hover { background: var(--protea-dark); }
.btn-secondary {
  background: transparent;
  color: var(--plum) !important;
  border-color: var(--plum);
}
.btn-secondary:hover { background: var(--sand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 0; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 10% 0%, var(--protea-wash), transparent 60%),
    radial-gradient(900px 400px at 100% 20%, var(--sand), transparent 55%),
    var(--cream);
  padding: 2rem 0 2.6rem;
}
.hero-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img.bouquet {
  width: min(100%, 420px);
  filter: drop-shadow(0 16px 24px rgba(74, 42, 58, 0.12));
}
.hero .price-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }

@media (min-width: 800px) {
  .hero { padding: 3rem 0 3.4rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
  .hero-art { order: 2; }
  .hero-copy { order: 1; }
  .hero-art img.bouquet { width: min(100%, 520px); }
}

/* Product cards */
.cards {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards.cards-3, .cards.cards-5 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--sand);
}
.card img.mockup {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3e4e0;
}
.card-body { padding: 1.05rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.price {
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}
.price small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.3rem;
}
.coming-soon .tag { color: var(--terra); }
.coming-soon { background: var(--cone); }

/* Product detail rows */
.product {
  display: grid;
  gap: 1.4rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.product:last-of-type { border-bottom: 0; }
.product img { border-radius: 14px; box-shadow: var(--shadow); background: #f3e4e0; }
.product ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.product li { margin: 0.25rem 0; }
@media (min-width: 800px) {
  .product { grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start; }
  .product:nth-of-type(even) { grid-template-columns: 1.15fr 1fr; }
  .product:nth-of-type(even) .product-media { order: 2; }
}

/* Gift idea blocks */
.idea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.idea h3 { margin-top: 0.2rem; }
.ideas { display: grid; gap: 1.1rem; }
@media (min-width: 720px) {
  .ideas { grid-template-columns: repeat(2, 1fr); }
}

/* Story / about */
.prose { max-width: 40rem; }
.prose.wide { max-width: 44rem; }
.split {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .split.story { grid-template-columns: 0.9fr 1.1fr; }
}
.frame {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}
.frame img { margin: 0 auto; max-width: min(360px, 100%); height: auto; }

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  background: var(--paper);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
}
.fact h3 { font-size: 1.25rem; }
.fact p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.notice {
  background: var(--cone);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.notice strong { color: var(--plum); }

/* Footer */
.site-footer {
  background: var(--plum);
  color: #F4E6EA;
  margin-top: 1rem;
}
.site-footer a { color: var(--ochre-soft); }
.site-footer a:hover { color: var(--white); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.1rem 1.4rem;
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
}
.site-footer h2, .site-footer h3 {
  color: var(--cream);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.site-footer p, .site-footer li { color: #E8D3DA; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.9rem 1.1rem 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #D9C0C8;
}
.footer-bottom p { margin: 0.2rem 0; }

/* Utilities */
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.sand-bg { background: var(--sand); }
.paper-bg { background: var(--paper); }
.sage-panel {
  background: var(--sage-dark);
  color: var(--cream);
}
.sage-panel h2, .sage-panel h3 { color: var(--cream); }
.sage-panel .lede, .sage-panel p { color: #E6EEDD; }
.sage-panel .btn-secondary {
  color: var(--cream) !important;
  border-color: var(--cream);
}
.sage-panel .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* About page photos — show each picture whole, natural aspect ratios */
.about-layout {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}
.about-intro,
.about-bio,
.about-photos {
  min-width: 0;
  max-width: 100%;
}
.about-photos {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.about-photos figure { margin: 0; }
.about-photos img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--sand);
}
.about-collage {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 0.7rem;
  align-items: start;
}
@media (max-width: 799px) {
  /* Keep the portrait complete in the first screen: head, shoulders, and the top. */
  .about-layout { gap: 1.15rem; }
  .about-portrait {
    display: flex;
    justify-content: center;
  }
  .about-portrait img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(26.5rem, calc(100dvh - 20.5rem));
    object-fit: contain;
  }
}
@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "intro photos"
      "bio photos";
    column-gap: 2.5rem;
    row-gap: 0.85rem;
  }
  .about-intro { grid-area: intro; }
  .about-photos { grid-area: photos; }
  .about-bio { grid-area: bio; }
}

