/* The Giving Years: shared site styles.
   Layout: one calm column (max 1120px) on warm white, light green bands for emphasis, ripple rings as the one visual motif. */
:root {
  --bg: #F7F2E8;
  --surface: #FFFDF8;
  --ink: #2A2620;
  --muted: #4E483F;
  --line: #E6DCC8;
  --green: #1F4A3A;
  --green-hover: #2A5C49;
  --gold: #C9973F;
  --gold-text: #8A6118;
  --gold-soft: #EBCB8B;
  --sage: #F0E8D7;
  --amber-bg: #F4ECDA;
  --amber-ink: #5B4A22;
  --band: #1F4A3A;
  --band-deep: #173A2D;
  --on-band: #F7F2E8;
  --on-band-muted: #D5DDD2;
  --btn-bg: #C9973F;
  --btn-fg: #1F1A12;
  --btn2-bg: #1F4A3A;
  --btn2-fg: #F7F2E8;
  --focus: #C9973F;
  --ok: #2F6B4A;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
/* Always cream and warm: the site ignores the phone's dark mode on purpose. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--green); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.tabnum { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.section { padding-block: 72px; }
.section.tight { padding-block: 48px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
.eyebrow { font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand svg { flex-shrink: 0; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); padding: 8px 2px; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-weight: 600; padding: 8px 14px; min-height: 44px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav .btn { margin-top: 10px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 8px;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { filter: brightness(1.06); color: var(--btn-fg); }
.btn-steady { background: var(--btn2-bg); color: var(--btn2-fg); }
.btn-steady:hover { filter: brightness(1.1); color: var(--btn2-fg); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--sage); }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 1rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .ripple-box { max-width: 320px; } }
.hero-note { font-size: 1rem; color: var(--muted); }

/* Ripple */
.ripple-box { width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; position: relative; }
.ripple-box svg { width: 100%; height: 100%; display: block; }
.ripple-box .ring { fill: none; stroke: var(--gold); stroke-width: 1.4; transform-origin: 200px 200px; }
.ripple-box .ring.g { stroke: var(--green); }
.ripple-box .stone { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .ripple-box .ring.live { animation: ripple 6s ease-out infinite; opacity: 0.9; }
  .ripple-box .ring.live:nth-of-type(2) { animation-delay: 2s; }
  .ripple-box .ring.live:nth-of-type(3) { animation-delay: 4s; }
}
@keyframes ripple { 0% { transform: scale(0.15); opacity: 0.95; } 100% { transform: scale(1); opacity: 0; } }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 1.25rem; }
.fact-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.callout { background: var(--amber-bg); color: var(--amber-ink); border-radius: 10px; padding: 18px 22px; }
.callout strong { color: var(--amber-ink); }
.disclose { background: var(--sage); border-radius: 10px; padding: 18px 22px; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-text); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: 4px; }

/* Bands */
.band { background: var(--band); color: var(--on-band); }
.band h2, .band h3 { color: var(--on-band); }
.band .lead, .band .muted { color: var(--on-band-muted); }
.band a { color: var(--on-band); }
.band .eyebrow { color: var(--gold-soft); }
.band .steps li::before { color: var(--gold-soft); border-color: var(--gold-soft); }

/* Lists */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.checks li::before { content: ""; width: 18px; height: 10px; margin-top: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.nos li::before { content: "\00d7"; border: 0; transform: none; width: auto; height: auto; margin-top: -2px; color: #B4574B; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.band .checks li::before { border-color: var(--gold-soft); }

/* Pricing */
.price { font-family: var(--serif); font-size: 2rem; color: var(--green); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; }
.tag { display: inline-block; font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.card.feature { border: 2px solid var(--green); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
details { border-top: 1px solid var(--line); padding-block: 16px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--ink); list-style-position: outside; }
details p { margin-top: 10px; color: var(--muted); max-width: 68ch; }

/* Forms */
label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; min-height: 52px; width: 100%;
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.choice { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 16px 18px; cursor: pointer; font-weight: 500; min-height: 56px; }
.choice:hover { border-color: var(--green); }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--sage); }
.choice .sub { display: block; color: var(--muted); font-size: 1rem; font-weight: 400; margin-top: 2px; }
.form-note { font-size: 1rem; color: var(--muted); }
.preview-note { font-size: 1rem; color: var(--gold-text); font-weight: 600; }

/* Draft banner */
.draft-banner { background: var(--amber-bg); color: var(--amber-ink); font-size: 1rem; text-align: center; padding-block: 8px; }

/* Footer */
.site-footer { background: var(--band-deep); color: var(--on-band-muted); padding-block: 48px 40px; font-size: 1rem; }
.site-footer a { color: var(--on-band); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h3 { font-family: var(--sans); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 22px; font-size: 1rem; line-height: 1.6; max-width: 92ch; }

/* Photo layer (Nov 26): real photos, fewer boxes */
.photo-hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: #6B5A45; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48,34,18,0) 45%, rgba(48,34,18,0.35) 100%); }
.photo-hero .wrap { position: relative; z-index: 1; padding-block: 48px; width: 100%; }
.hero-card { background: rgba(255,253,248,0.97); color: var(--ink); border-radius: 18px; padding: clamp(24px, 3.4vw, 38px); max-width: 720px; box-shadow: 0 18px 50px rgba(40,28,12,.22); }
.hero-card h1 { color: var(--green); max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; }
.hero-card .lead { color: var(--muted); }
.hero-card .eyebrow { color: var(--gold-text); }
@media (max-width: 700px) {
  .photo-hero { display: block; min-height: 0 !important; background: var(--bg); }
  .photo-hero > img { position: static; height: 240px; }
  .photo-hero::after { display: none; }
  .photo-hero .wrap { padding: 0; }
  .hero-card { border-radius: 0; box-shadow: none; background: var(--bg); padding: 24px 20px 32px; max-width: none; }
  .hero-card h1 { font-size: 1.9rem; }
}
.photo-band { position: relative; height: clamp(220px, 38vw, 420px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }
.split > * { min-width: 0; }
figure.ph { margin: 0; }
figure.ph img { width: 100%; display: block; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
figure.ph.tall img { aspect-ratio: 4 / 5; }
figure.ph figcaption { font-size: 1rem; color: var(--muted); margin-top: 10px; font-style: italic; font-family: var(--serif, Georgia, serif); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.18); }
.rules > div { padding: 24px 28px 8px 0; }
.rules > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } .rules > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.mosaic { display: grid; grid-template-columns: 1.1fr 0.9fr 1.3fr; gap: 10px; }
.mosaic img { width: 100%; height: 340px; object-fit: cover; display: block; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic img { height: 200px; } .mosaic img:last-child { grid-column: span 2; } }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.price-list h3 { font-size: 1.2rem; margin: 0; }
.price-list p { margin: 0; color: var(--muted); grid-column: 1; }
.price-list .price { font-family: var(--serif, Georgia, serif); font-size: 1.15rem; font-weight: 600; grid-row: 1; grid-column: 2; }
.pull { font-family: var(--serif, Georgia, serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35; border-left: 3px solid var(--gold); padding-left: 20px; }
.page-photo { margin: 0 0 8px; }
.page-photo img { width: 100%; height: clamp(200px, 32vw, 360px); object-fit: cover; display: block; }
.photo-credit { font-size: 1rem; margin-top: 14px; }
.draft-banner .ads-link { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--amber-ink); color: var(--amber-bg); font-weight: 700; text-decoration: none; }
.band .fact-num { color: var(--gold-soft); }

/* Home: the worries are the buttons */
.need-pick { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.need-q { font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ink); margin: 0; }
.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .need-grid { grid-template-columns: 1fr; } .need-grid a { justify-content: flex-start; text-align: left; padding: 14px 18px; } }
.need-grid a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 12px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); color: var(--green); font-weight: 700; font-size: 1.12rem; line-height: 1.25; text-decoration: none; box-shadow: 0 2px 10px rgba(60,40,10,.10); transition: transform .12s ease, background .12s ease; }
.need-grid a:hover { transform: translateY(-2px); background: var(--gold-soft); color: #1F1A12; }
.need-hint { color: var(--muted); font-size: 1rem; }

/* Keepsake: a page from the book */
.keepsake { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 14px 40px rgba(70,50,20,.10); position: relative; }
.keepsake::before { content: ""; position: absolute; left: 18px; right: 18px; top: 12px; border-top: 2px solid var(--gold); }
.keepsake .to { font-family: var(--serif); font-style: italic; color: var(--gold-text); font-size: 1.05rem; margin-top: 6px; }
.keepsake .note { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.5; color: var(--ink); margin-top: 10px; }
.keepsake .sig { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 1rem; list-style: none; margin: 0; padding: 0; }
.trust li::before { content: "\2713"; color: var(--gold-text); font-weight: 700; margin-right: 8px; }

/* Family Wishes additions */
.brand .sub { display:block; font-family: var(--sans); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; line-height: 1; margin-top: 3px; }
.site-footer .brand .sub { color: var(--gold-soft); }
.tag-pill { display:inline-block; font-size:1rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:3px 10px; border-radius:999px; background: var(--sage); color: var(--green); }
.tag-pill.atty { background: var(--amber-bg); color: var(--amber-ink); }
.quote-card { background: var(--surface); border-left: 3px solid var(--gold); padding: 18px 22px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.not-legal { background: var(--sage); border-radius: 10px; padding: 14px 18px; font-size: 1rem; color: var(--muted); }

/* Simple pages: three cards, big buttons, few words */
.cards3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; }
.cards3 > div { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:8px; }
.cards3 > div.pick { border:2px solid var(--gold); }
.cards3 .big { font-family:var(--serif); font-size:2rem; font-weight:700; line-height:1.1; color:var(--green); }
.cards3 p { margin:0; }
.cards3 .btn { margin-top:auto; }
.band .cards3 > div, .band .cards3 h3, .band .cards3 p { color:var(--ink); }
.band .cards3 .muted { color:var(--muted); }
.simple-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px; list-style:none; margin:0; padding:0; counter-reset:s; }
.simple-steps li { counter-increment:s; display:flex; flex-direction:column; gap:6px; }
.simple-steps li::before { content:counter(s); width:44px; height:44px; border-radius:50%; border:1.5px solid var(--gold); color:var(--gold-text); font-family:var(--serif); font-weight:600; font-size:1.2rem; display:grid; place-items:center; }
.simple-steps h3 { margin:0; font-size:1.3rem; }
.simple-steps p { margin:0; color:var(--muted); }
.btn-lg { font-size:1.2rem; padding:18px 30px; }

/* Color options for the owner to pick from (preview only). Evergreen is the default. */
:root[data-palette="rosewood"] { --green:#6B2E3A; --green-hover:#7E3A48; --band:#6B2E3A; --band-deep:#55232E; --on-band-muted:#EAD6D9; --btn2-bg:#6B2E3A; }
.palette-pick a { display:inline-block; width:18px; height:18px; border-radius:50%; vertical-align:middle; margin:0 2px; border:2px solid #fff; box-shadow:0 0 0 1px rgba(0,0,0,.2); }

/* The Giving Years additions (Nov 26): same warm look as As I Intended. */
.hero-note { font-size: 1rem; color: var(--muted); }
.photo-hero .hero-card .btn-row, .photo-hero .hero-card > div:has(> .btn) { margin-top: 4px; }

/* Phones: bigger, easier taps for older readers */
@media (max-width: 620px) {
  body { font-size: 19px; }
  .small, .hero-note, .form-note, .muted.small, .photo-credit { font-size: 1rem; }
  .lead { font-size: 1.22rem; }
  .btn { min-height: 58px; font-size: 1.15rem; width: 100%; justify-content: center; text-align: center; }
  .nav .btn { width: auto; }
  .need-grid a { min-height: 64px; font-size: 1.12rem; }
  .draft-banner { font-size: 1rem; }
}

/* Older readers: every tap target at least 44px tall. */
.brand{min-height:44px}

/* An odd last answer (usually "not sure") spans the row. */
.tiles > :last-child:nth-child(odd){grid-column:1/-1}

/* Forms outside the quiz (talk-to-us page). */
.optin{display:flex;gap:10px;align-items:flex-start;font-size:1rem}
.optin input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:var(--gold)}
.fine{font-size:1rem;color:var(--muted)}
.form-err{color:#8A3B12;font-weight:600}

/* Phones (Nov 29): let the photo carry the page. Tall photo, then the words on a solid card that tucks over its bottom edge. */
@media (max-width: 700px) {
  .photo-hero > img { height: min(60vh, 560px); min-height: 340px; }
  .photo-hero .hero-card { position: relative; margin-top: -28px; border-radius: 24px 24px 0 0; padding-top: 26px; }
}
