/* Neneda shared style, board E ("Two languages, one family"), chosen by Daniel 23 Oct 2026.
   Fonts: Ibarra Real Nova (headlines, warm lines) and Nunito (text, menus, buttons), loaded in each page's head
   (see site/partials/head.html). Colours: the Brand Bible's blush set; deep rose on what she clicks; plum as the one
   dark field; gold only as thin lines. Content never waits on a script: the hiding for reveals is switched on by
   neneda.js itself (html.nd-motion), never by this file alone. */

:root {
  --paper: #FFF7F6;      /* main ground, blush paper */
  --tint: #FDF0EE;       /* soft ground */
  --petal: #FBE3E1;      /* panels */
  --blush: #F2BDB9;      /* the look: borders, selection */
  --rose: #8E3F4D;       /* what she clicks */
  --rose-deep: #74303D;  /* its hover */
  --ink: #4A2A30;        /* body words */
  --ink-soft: #6E4A50;   /* quiet words, 7.2:1 on paper */
  --gold: #B8893B;       /* thin lines only (2.98:1, never words on paper) */
  --plum: #3B2232;       /* the one dark field: her story */
  --plum-soft: #E8CFD3;  /* quiet words on plum, 9.8:1 */
  --gold-light: #D9B77A; /* small labels on plum, 7.5:1 */
  --serif: "Ibarra Real Nova", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: clamp(16px, 4.4vw, 64px);          /* page gutter */
  --max: 1360px;                          /* widest line of content */
  --section: clamp(72px, 9vw, 136px);     /* space above and below a section */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--blush); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--rose); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; padding: 0 var(--m); }

/* ---------- type ---------- */
.display, h1 { font: 500 clamp(36px, 3.7vw, 56px)/1.06 var(--serif); letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; padding-bottom: .04em; }
.title, h2 { font: 500 clamp(32px, 3.1vw, 48px)/1.1 var(--serif); letter-spacing: -0.012em; margin: 0; color: var(--ink); text-wrap: balance; padding-bottom: .04em; }
.subtitle, h3 { font: 500 clamp(23px, 1.8vw, 28px)/1.2 var(--serif); margin: 0; color: var(--ink); text-wrap: balance; }
.warm { font: italic 400 clamp(24px, 2.2vw, 34px)/1.25 var(--serif); color: var(--ink-soft); margin: 0; text-wrap: balance; }
.twin { margin: 0; }
.twin span, .twin-es span { display: block; }
.twin-es { font: italic 400 clamp(30px, 3.05vw, 46px)/1.1 var(--serif); color: var(--rose); margin: 14px 0 0; letter-spacing: -0.01em; text-wrap: balance; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 800 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); flex: none; }
.lede { font-size: 19px; line-height: 1.6; max-width: 40ch; margin: 22px 0 0; }
.text { max-width: 62ch; }
.text p { margin: 0 0 1em; }
.small { font-size: 15px; color: var(--ink-soft); }
b, strong { font-weight: 700; }
.link { color: var(--rose); font-weight: 700; text-decoration: underline; }
.link:hover { color: var(--rose-deep); }
.rule { height: 1px; border: 0; margin: 0; background: var(--gold); opacity: .7; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--rose); border-radius: 2px; background: var(--rose); color: #fff; font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover, .btn:focus-visible { transition: background-color .25s, border-color .25s, color .25s; }  /* eases in on hover; at rest nothing is set to move */
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--rose); }
.btn--quiet:hover { background: var(--rose); color: #fff; }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--plum); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- the email box ---------- */
.signup { margin: 24px 0 0; max-width: 520px; }
.signup__row { display: flex; gap: 10px; }
.signup input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--blush); border-radius: 0; caret-color: var(--rose); }
.signup input[type=email]::placeholder { color: var(--ink-soft); opacity: 1; }
.signup input[type=email]:focus { outline: 2px solid var(--rose); outline-offset: 0; border-color: var(--rose); }
.signup .btn { border-radius: 0; }
.signup__note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.signup__done { display: none; margin: 12px 0 0; font: italic 400 20px/1.35 var(--serif); color: var(--ink); }
.signup.is-done .signup__row { display: none; }
.signup.is-done .signup__done { display: block; }
.section--plum .signup input[type=email] { border-color: var(--paper); }

/* ---------- header (site/partials/header.html) ---------- */
.bar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--m); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .bloom { width: 72px; height: auto; display: block; }
.brand__lock { display: flex; flex-direction: column; gap: 2px; }
.brand [data-brand] { height: 66px; width: auto; display: block; }
.brand__line { font: italic 400 15px/1 var(--serif); color: var(--ink-soft); letter-spacing: .01em; padding-left: 4px; }
.nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav a { display: inline-block; text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rose); border-bottom-color: currentColor; }
.nav a[lang="es"] { color: var(--rose); }
.menu { display: none; }

/* ---------- footer (site/partials/footer.html) ---------- */
.foot { background: var(--tint); border-top: 1px solid var(--gold); padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.foot .brand .bloom { width: 52px; }
.foot .brand [data-brand] { height: 48px; }
.foot__line { margin: 18px 0 0; max-width: 34ch; font: italic 400 19px/1.4 var(--serif); color: var(--ink-soft); }
.foot__head { margin: 0 0 12px; font: 800 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 600; }
.foot ul a:hover { color: var(--rose); text-decoration: underline; }
.foot ul a[lang="es"] { color: var(--rose); }
.foot__base { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid rgba(184, 137, 59, .45); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--ink-soft); }
.foot__base p { margin: 0; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; overflow-x: clip; }  /* a page sliding in never widens the page */
.foot { overflow-x: clip; }
.section--tint { background: var(--tint); }
.section--petal { background: var(--petal); }
.section--plum { background: var(--plum); color: var(--paper); }
.section--plum h1, .section--plum h2, .section--plum h3, .section--plum .title, .section--plum .display { color: var(--paper); }
.section--plum .warm, .section--plum .small, .section--plum .signup__note { color: var(--plum-soft); }
.section--plum .eyebrow { color: var(--gold-light); }
.section--plum .link { color: var(--paper); }
.section--plum :focus-visible { outline-color: var(--paper); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.photo { margin: 0; position: relative; overflow: hidden; background: var(--petal); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.caption { margin-top: 12px; font: italic 400 17px/1.4 var(--serif); color: var(--ink-soft); }

/* ---------- first screen (board E) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); min-height: calc(100vh - 119px); min-height: calc(100svh - 119px); }
.hero__photo { position: relative; margin: 0 0 0 var(--m); background: var(--petal); overflow: hidden; }  /* framed by paper on the page edge */
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 72% 30%); }  /* --hero-focus is set on .hero by each page, so a new picture needs no other change */
.hero__copy { padding: clamp(28px, 4vh, 52px) var(--m) clamp(36px, 5vh, 56px) clamp(36px, 4.6vw, 72px); display: flex; flex-direction: column; }
.hero .lede { font-size: 18px; max-width: 38ch; margin-top: 26px; }
.pair { margin-top: auto; padding-top: 28px; display: flex; align-items: flex-start; gap: 8%; max-width: 760px; }
/* a real laptop drawn around a real planner page (never a phone or tablet) */
.lap { margin: 0; flex: 1 1 0; min-width: 0; position: relative; }
.lap__lid { background: #2B2427; border-radius: 14px 14px 0 0; padding: 3.2% 3.2% 4.2%; }
.lap__lid img { width: 100%; aspect-ratio: 1359 / 852; object-fit: cover; object-position: top left; }
.lap__deck { height: 14px; background: #D8D1CF; border-radius: 0 0 14px 14px / 0 0 10px 10px; margin: 0 -4%; position: relative; }
.lap__deck::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #BDB4B2; border-radius: 0 0 6px 6px; }
.lap figcaption, .lap__cap { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.lap figcaption b, .lap__cap b { font: italic 500 20px/1 var(--serif); color: var(--ink); }
.lap + .lap figcaption b, .lap + .lap .lap__cap b { color: var(--rose); }

/* what she gets: a quiet list with gold lines */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.facts li { padding: 22px 0 26px; border-top: 1px solid var(--gold); }
.facts b { display: block; font: 500 clamp(26px, 2.2vw, 34px)/1.15 var(--serif); color: var(--ink); margin-bottom: 8px; }
.facts span { display: block; color: var(--ink-soft); max-width: 32ch; }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: nd-rise 1.1s var(--ease) both; }
  .rise + .rise { animation-delay: .18s; }
  @keyframes nd-rise { from { transform: translateY(18px); opacity: .001; } }
}

/* ---------- the signature move: a real planner page slides over its wedding photo and scrolls itself ----------
   Markup: .sig > figure.sig__photo + figure.sig__page > .sig__tab + .sig__view > img[width][height].
   Without motion (scripts off, reduced motion) the page sits in place and she can scroll it herself. */
.sig { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.sig__photo { grid-column: 1 / span 7; grid-row: 1; margin: 0; aspect-ratio: 4 / 5; max-height: 86vh; overflow: hidden; background: var(--petal); }
.sig__photo img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.sig__page { grid-column: 6 / span 7; grid-row: 1; margin: 0; position: relative; z-index: 2; background: #fff; box-shadow: 0 40px 80px -40px rgba(74, 42, 48, .55), 0 0 0 1px rgba(184, 137, 59, .35); }
.sig--flip .sig__photo { grid-column: 6 / span 7; }
.sig--flip .sig__page { grid-column: 1 / span 7; }
.sig__tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 16px; background: var(--petal); border-bottom: 1px solid rgba(184, 137, 59, .35); font: 700 13px/1 var(--sans); letter-spacing: .04em; color: var(--ink); }
.sig__tab span:last-child { font-weight: 600; color: var(--ink-soft); }
.sig__view { position: relative; height: clamp(320px, 52vh, 560px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
.sig__view img { width: 100%; height: auto; max-width: none; will-change: transform; }
.nd-motion .sig__view { overflow: hidden; }
.nd-motion .sig__view img { position: absolute; left: 0; top: 0; }
.sig__view::after { content: ""; position: sticky; display: block; left: 0; right: 0; bottom: 0; height: 32px; margin-top: -32px; background: linear-gradient(to top, rgba(255, 247, 246, .9), rgba(255, 247, 246, 0)); pointer-events: none; }
.nd-motion .sig__view::after { position: absolute; margin: 0; }
.sig__note { grid-column: 6 / span 7; grid-row: 2; margin: 18px 0 0; font: italic 400 18px/1.4 var(--serif); color: var(--ink-soft); }
.sig--flip .sig__note { grid-column: 1 / span 7; }

/* ---------- reveals: hidden only after neneda.js has said motion is on ---------- */
@media (prefers-reduced-motion: no-preference) {
  .nd-motion [data-reveal]:not(.nd-shown) { opacity: 0; }
  .nd-motion [data-reveal-stagger]:not(.nd-shown) > * { opacity: 0; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 22px; }
  .hero { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- phone: its own composition (390 wide) ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .bar { padding: 14px var(--m); gap: 12px; }
  .brand { gap: 10px; }
  .brand .bloom { width: 42px; }
  .brand [data-brand] { height: 56px; }
  .brand__line { font-size: 13px; }
  .nav { display: none; }
  .menu { display: flex; align-items: center; gap: 14px; font: 600 15px var(--sans); }
  .menu > a { text-decoration: none; color: var(--rose); padding: 10px 0; }
  .menu details { position: relative; }
  .menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .burger { width: 22px; height: 14px; display: block; position: relative; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--ink); }
  .menu details[open] .burger { border-color: transparent; }
  .menu details[open] .burger::after { top: 4px; border-top-color: var(--ink); transform: rotate(45deg); }
  .menu details[open] .burger::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--ink); transform: rotate(-45deg); }
  .menu ul { list-style: none; margin: 0; padding: 10px 0; position: absolute; right: -10px; top: calc(100% + 8px); min-width: 220px; background: var(--paper); border: 1px solid var(--blush); box-shadow: 0 24px 48px -24px rgba(74, 42, 48, .45); }
  .menu ul a { display: block; padding: 12px 20px; text-decoration: none; font-size: 16px; }
  .menu ul a:hover { color: var(--rose); }

  .display, h1 { font-size: 35px; }
  .twin-es { font-size: 29px; margin-top: 10px; }
  .title, h2 { font-size: 31px; }
  .lede, .hero .lede { font-size: 16.5px; margin-top: 18px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__copy { order: 1; padding: 18px var(--m) 0; }
  .hero__photo { order: 2; height: 440px; margin: 30px var(--m) 0; }
  .hero__photo img { object-position: var(--hero-focus-phone, var(--hero-focus, 70% 30%)); }
  .pair { margin-top: 26px; padding-top: 0; gap: 6%; }
  .signup { margin-top: 16px; }
  .signup__row { flex-direction: column; }
  .signup input[type=email] { flex: none; }
  .signup .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .lap__lid { border-radius: 9px 9px 0 0; }
  .lap__deck { height: 9px; }
  .lap figcaption, .lap__cap { font-size: 13px; margin-top: 8px; flex-direction: column; gap: 3px; }
  .lap figcaption b { font-size: 17px; }

  .sig { grid-template-columns: minmax(0, 1fr); }
  .sig__photo, .sig--flip .sig__photo { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; max-height: none; }
  .sig__page, .sig--flip .sig__page { grid-column: 1; grid-row: 2; width: 90%; margin: -38% 0 0 auto; }
  .sig--flip .sig__page { margin: -38% auto 0 0; }
  .sig__view { height: 62vw; min-height: 240px; }
  .sig__tab { height: 34px; font-size: 12px; padding: 0 12px; }
  .sig__note, .sig--flip .sig__note { grid-column: 1; grid-row: 3; font-size: 17px; }

  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
  .foot .brand [data-brand] { height: 52px; }
  .foot .brand .bloom { width: 40px; }
}

/* ---------- reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- first screen, wall layout (home, /es/): the whole picture, words on its open wall ---------- */
/* Taste placement (Website Redesign chat, 27 Oct, after Daniel 12:28 AM): words in the open wall above the family, sized in cqw so they land in the same place at every width.
   Keep-out boxes (fractions of the September picture): Abuela x .555-.775 from y .275 down; Mom x .37-.52 from y .285 down; the painting x .345-.425, y .06-.265. The email box sits right of Abuela, x .79-.975. Checked by site/checks/hero-wall.mjs. */
a.lap { display: block; color: inherit; text-decoration: none; }
a.lap:hover .lap__cap b, a.lap:focus-visible .lap__cap b { text-decoration: underline; text-underline-offset: 4px; }
.hero--wall { display: flex; flex-direction: column; min-height: 0; }
.hero--wall .hero__stage { position: relative; margin: 0 var(--m); }  /* framed by paper on the page edge, like every picture */
.hero--wall .hero__photo { margin: 0; aspect-ratio: 2752 / 1536; }
.hero--wall .hero__words h1 span { display: block; }
.hero--wall .hero__es { margin: 12px 0 0; font: 700 16px/1.45 var(--sans); color: var(--rose); }
.hero--wall .pair { margin: 0 auto; padding: 40px var(--m) 0; width: 100%; max-width: 860px; }
@media (min-width: 1280px) {
  .hero--wall .hero__stage { container-type: inline-size; }
  .hero--wall .hero__words { position: absolute; left: 45cqw; top: 1.5cqw; width: 52cqw; }
  .hero--wall .hero__words h1 { font-size: 3.8cqw; line-height: 1.04; letter-spacing: -.02em; }
  .hero--wall .lede { font-size: 1.25cqw; line-height: 1.4; margin: 1cqw 0 0; max-width: none; white-space: nowrap; }
  .hero--wall .hero__es { font-size: 1.2cqw; line-height: 1.4; margin-top: .35cqw; white-space: nowrap; }
  .hero--wall .hero__side { position: absolute; left: 79cqw; top: 16cqw; width: 18.5cqw; }  /* just under the words, clear of Abuela (her box ends at 77.5cqw) */
  .hero--wall .signup { margin: 0; }
  .hero--wall .signup__row { flex-direction: column; gap: 8px; }
  .hero--wall .signup input[type=email] { flex: none; }
  .hero--wall .signup .btn { width: 100%; padding: 0 12px; }
}
@media (max-width: 1279px) {
  .hero--wall .hero__stage { display: contents; }
  .hero--wall .hero__words { order: 1; padding: 24px var(--m) 0; }
  .hero--wall .hero__side { order: 2; padding: 0 var(--m); }
  .hero--wall .hero__photo { order: 3; height: auto; margin: 30px var(--m) 0; }
  .hero--wall .hero__photo img { object-position: 50% 50%; }
  .hero--wall .pair { order: 4; padding-top: 30px; }
  .hero--wall .hero__note { order: 5; }
}
@media (max-width: 760px) {
  .hero--wall .pair { order: 3; }
  .hero--wall .hero__photo { order: 4; }
}
