/* ---------- Tokens ---------- */
:root {
  --paper: #F4EFE6;
  --card: #FBF8F2;
  --line: #E4DCCE;
  --sand: #EAE3D7;
  --ink: #2B2823;
  --muted: #5F5950;
  --moss: #5E6B4A;
  --moss-deep: #3F4A31;
  --moss-soft: #E7EADF;
  --on-moss: #F7F3EC;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --radius: 22px;
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.04; text-wrap: balance; }
h1 em, h2 em { color: var(--moss); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--moss); }
a:hover { color: var(--moss-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}

/* ---------- Brand mark (sun over a hill) ---------- */
.mark {
  position: relative; display: inline-block; flex: none;
  width: 34px; height: 34px; border-radius: 11px; overflow: hidden;
  background: #B9C2A5;
}
.mark::before {
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -36%; height: 70%;
  border-radius: 50%; background: var(--moss);
}
.mark::after {
  content: ""; position: absolute; width: 30%; height: 30%; left: 50%; top: 19%;
  border-radius: 50%; background: var(--paper);
}
.mark-lg { width: 64px; height: 64px; border-radius: 20px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 26px; line-height: 1; }
.pill {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--moss-soft); color: var(--moss-deep);
  font-size: 13px; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
  padding-top: 48px; padding-bottom: 120px;
}
.hero h1 { font-size: clamp(52px, 7.4vw, 96px); }
.lede { margin-top: 28px; max-width: 520px; font-size: 19px; color: var(--muted); }

/* ---------- Photo placeholders ---------- */
.photo {
  position: relative; display: block; overflow: hidden;
  background: var(--tone); border-radius: 12px;
}
.photo::before {
  content: ""; position: absolute; left: -15%; right: -15%; bottom: -34%; height: 66%;
  border-radius: 50%; background: var(--hill);
}
.photo::after {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
  left: var(--sx); top: var(--sy); background: rgba(255,255,255,0.6);
}
.photo img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .6s ease;
}
.photo img.is-loaded { opacity: 1; }
.t1 { --tone:#D9C7AE; --hill:#C4AC8E; --sx:14%; --sy:12%; }
.t2 { --tone:#B9C2A5; --hill:#9FAA88; --sx:60%; --sy:18%; }
.t3 { --tone:#C9B4A4; --hill:#B39A87; --sx:36%; --sy:10%; }
.t4 { --tone:#AEBBC2; --hill:#94A3AC; --sx:66%; --sy:26%; }
.t5 { --tone:#E3D5BE; --hill:#CDBB9F; --sx:22%; --sy:22%; }
.t6 { --tone:#A3AC8E; --hill:#899476; --sx:50%; --sy:14%; }
.t7 { --tone:#D1B99B; --hill:#B99F7D; --sx:70%; --sy:12%; }
.t8 { --tone:#BBAEA1; --hill:#A39486; --sx:30%; --sy:28%; }

/* ---------- Hero photo ---------- */
.hero-photo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-frame {
  width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 28px;
  transform: rotate(1.5deg);
  box-shadow: 0 40px 80px -30px rgba(70,56,36,0.4), 0 0 0 10px var(--card), 0 0 0 11px var(--line);
}
.hero-frame img { filter: saturate(0.82) sepia(0.14) contrast(0.96); }
.hero-photo figcaption { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 14px; }

/* ---------- Rhythm ---------- */
.rhythm { padding-top: 40px; padding-bottom: 120px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .yours h2, .closing h2 { font-size: clamp(40px, 5vw, 64px); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.step-num { font-family: var(--serif); font-size: 64px; line-height: 0.9; color: var(--moss); }
.step h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; margin-top: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.mini-grid { margin-top: auto; padding-top: 18px; display: grid; gap: 4px; }
.mini-grid .photo { aspect-ratio: 1; border-radius: 7px; }
.g-day   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-week  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-week .big { grid-column: span 2; grid-row: span 2; border-radius: 10px; }
.g-month { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-year  { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.g-year .photo { border-radius: 5px; }

/* ---------- Yours ---------- */
.yours { padding-bottom: 120px; }
.yours-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  padding: 56px; border-radius: 32px; background: var(--sand);
}
.yours-card p:not(.eyebrow) { margin-top: 20px; max-width: 480px; color: var(--muted); }
.drives { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.drives li {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.drives .more { background: transparent; border-style: dashed; border-color: #CFC5B5; color: var(--muted); font-weight: 500; }

/* ---------- Closing ---------- */
.closing {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  padding-bottom: 120px;
}
.closing > p { max-width: 520px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-quiet { font-family: var(--serif); font-style: italic; font-size: 17px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.steps .step:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .photo img { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 24px; padding-bottom: 88px; }
  .hero-frame { transform: none; max-width: 360px; }
  .yours-card { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .rhythm, .yours, .closing { padding-bottom: 88px; }
  .section-head { margin-bottom: 36px; }
}
