:root {
  color-scheme: light;
  --ink: #27362e;
  --muted: #5d695d;
  --cream: #f7f1e4;
  --paper: #fffaf0;
  --sage: #6e8669;
  --rust: #ba6348;
  --yellow: #e2b557;
  --line: #d8cdb8;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #bd6b45; outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  min-height: 78px;
  padding: 12px clamp(24px, 4vw, 72px);
  background: #fbf6eb;
  border-bottom: 1px solid #e4d8c4;
}
.wordmark { font-family: Fraunces, Georgia, serif; font-size: 1.24rem; font-weight: 700; letter-spacing: .045em; text-decoration: none; white-space: nowrap; }
.wordmark-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 6px; color: #fff8e8; background: var(--rust); border-radius: 50%; font-family: Fraunces, Georgia, serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.08em; vertical-align: middle; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 42px); margin-left: auto; }
.site-header nav a { font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, footer a:hover { color: var(--rust); }
.account-area { position: relative; }
.account-button { min-width: 110px; padding: 11px 17px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.account-button:hover, .account-button.signed-in { background: var(--ink); color: #fffaf0; }
.account-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(290px, 85vw); padding: 20px; background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px #302a1f25; }
.account-name { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.account-email { margin: 4px 0 16px; overflow-wrap: anywhere; color: var(--muted); font-size: .85rem; }
.account-note { margin: 0 0 16px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.45; }
.account-panel button { width: 100%; padding: 10px; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); background: transparent; font-weight: 700; }

.hero { position: relative; min-height: min(780px, calc(100svh - 78px)); overflow: hidden; background: #f6eedc; }
.hero-art { position: absolute; inset: 0; background: url('/web/assets/life-path-hero.webp') center center / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #f8f1e7 0%, #f8f1e7 28%, #f8f1e7f2 39%, #f8f1e7c9 50%, #f8f1e744 64%, transparent 77%); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; padding: clamp(86px, 9vw, 150px) 20px 125px clamp(28px, 6.4vw, 120px); }
.eyebrow { margin: 0; color: #9c523c; font-size: .77rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; }
.eyebrow-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--rust); }
.hero h1, .section-heading h2, .story-copy h2 { font-family: Fraunces, Georgia, serif; font-weight: 700; letter-spacing: -.045em; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(3.6rem, 6.5vw, 7.2rem); line-height: .98; text-wrap: balance; }
.hero h1 em { color: #923d2e; font-style: normal; }
.hero-lead { max-width: 475px; margin: 0; font-size: clamp(1.07rem, 1.4vw, 1.28rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-size: .9rem; font-weight: 700; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 16px #2a352423; }
.button-primary { background: var(--rust); color: #fffaf0; }
.button-primary:hover { background: #a84e36; }
.button-outline { background: #fff9e8dc; border-color: #a77f68; color: var(--ink); }
.button-dark { background: var(--ink); color: white; }
.hero-footnote { margin: 22px 0 0; color: var(--muted); font-size: .82rem; }
.hero-scroll { position: absolute; z-index: 1; left: clamp(28px, 6.4vw, 120px); bottom: 31px; display: flex; gap: 13px; align-items: center; color: #5f685d; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-scroll span { font-size: 1.4rem; }

.intro-band { background: var(--ink); color: #fff5e4; }
.intro-band-inner { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 4vw, 60px); padding: 21px 24px; text-align: center; }
.intro-band p { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.intro-band strong { color: #ebc36a; font-weight: 700; }
.small-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #e7be6d; }

.ways-section { max-width: 1400px; margin: auto; padding: clamp(75px, 8vw, 120px) clamp(24px, 5vw, 80px); }
.section-heading { text-align: center; }
.section-heading h2 { margin: 9px 0 12px; font-size: clamp(2.8rem, 4.5vw, 4.6rem); line-height: 1.08; }
.section-heading > p:last-child { max-width: 520px; margin: auto; color: var(--muted); line-height: 1.6; }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.way-card { overflow: hidden; background: var(--paper); border: 1px solid #dfd0b8; border-radius: 12px; box-shadow: 0 8px 24px #67574310; }
.way-art { position: relative; display: flex; justify-content: center; align-items: center; height: 160px; overflow: hidden; }
.way-art::before { content: ''; position: absolute; width: 280px; height: 280px; left: -65px; bottom: -150px; border: 24px solid #fff9e777; border-radius: 50%; }
.way-art::after { content: ''; position: absolute; width: 150px; height: 150px; right: -20px; top: -70px; border: 18px solid #fff9e777; border-radius: 50%; }
.way-art-digital { background: #bed1bf; }
.way-art-table { background: #e5ba86; }
.way-art-print { background: #d8a19a; }
.way-number { position: absolute; top: 18px; left: 23px; z-index: 1; font-size: .8rem; font-weight: 700; letter-spacing: .15em; }
.way-symbol { position: relative; z-index: 1; display: grid; place-items: center; width: 110px; height: 110px; border: 3px solid #554d3c; border-radius: 50%; background: #fbf1da95; font-family: Fraunces, Georgia, serif; font-size: 5rem; line-height: 1; transform: rotate(-11deg); }
.way-body { padding: 27px 27px 30px; }
.way-kicker { margin: 0; color: #9c523c; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.way-body h3 { margin: 7px 0 10px; font-family: Fraunces, Georgia, serif; font-size: 1.65rem; letter-spacing: -.025em; }
.way-body > p:not(.way-kicker) { min-height: 78px; margin: 0 0 20px; color: #4f5a4e; font-size: .94rem; line-height: 1.55; }
.way-body a { display: inline-flex; gap: 10px; align-items: center; color: #9f4e38; font-size: .9rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.way-body a:hover { color: #713421; }

.story-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; background: #d8e0cb; }
.story-illustration { background: url('/web/assets/life-path-hero.webp') 78% 55% / cover no-repeat; }
.story-copy { align-self: center; max-width: 610px; padding: 75px clamp(30px, 7vw, 110px); }
.story-copy h2 { margin: 12px 0 18px; font-size: clamp(2.4rem, 3.5vw, 4rem); line-height: 1.12; }
.story-copy > p:not(.eyebrow) { margin: 0 0 28px; color: #405347; line-height: 1.68; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 28px clamp(24px, 4vw, 72px); background: #fbf6eb; font-size: .83rem; }
footer > span { font-family: Fraunces, Georgia, serif; font-weight: 700; letter-spacing: .06em; }
footer p { margin: 0 auto 0 0; color: var(--muted); }
footer a { font-weight: 700; }
.auth-status { position: fixed; z-index: 10; right: 20px; bottom: 20px; max-width: 320px; margin: 0; padding: 14px 18px; background: var(--ink); color: white; border-radius: 8px; box-shadow: 0 10px 25px #0003; font-size: .85rem; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; min-height: 70px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .account-area { margin-left: auto; }
  .hero { min-height: 700px; }
  .hero-art { background-position: 58% center; }
  .hero::after { background: linear-gradient(90deg, #f8f1e7 0%, #f8f1e7f5 46%, #f8f1e7aa 71%, #f8f1e722 100%); }
  .hero-copy { padding-top: 90px; }
  .ways-grid { grid-template-columns: 1fr 1fr; }
  .story-section { grid-template-columns: 1fr; }
  .story-illustration { min-height: 330px; }
  .story-copy { max-width: none; }
}
@media (max-width: 600px) {
  .site-header { gap: 10px; padding: 12px 18px; }
  .wordmark { font-size: 1.02rem; }
  .wordmark-mark { width: 27px; height: 27px; font-size: 1.05rem; }
  .site-header nav { gap: 12px; overflow-x: auto; padding: 5px 0 2px; }
  .site-header nav a { font-size: .78rem; }
  .account-button { min-width: 80px; padding: 9px 13px; font-size: .78rem; }
  .hero { min-height: 750px; }
  .hero-art { background-position: 64% bottom; background-size: auto 72%; background-color: #f8f1e7; }
  .hero::after { background: linear-gradient(180deg, #f8f1e7 0%, #f8f1e7 32%, #f8f1e7c9 52%, transparent 73%); }
  .hero-copy { padding: 58px 23px 115px; }
  .hero h1 { font-size: clamp(3.35rem, 13vw, 5rem); }
  .hero-lead { max-width: 390px; font-size: 1rem; }
  .hero-actions { gap: 9px; }
  .button { min-height: 49px; padding: 11px 15px; font-size: .82rem; }
  .hero-footnote { display: table; max-width: 300px; padding: 5px 8px; border-radius: 4px; background: #f8f1e7e8; font-size: .75rem; }
  .hero-scroll { left: 23px; bottom: 20px; padding: 4px 8px; border-radius: 4px; background: #f8f1e7e8; font-size: .65rem; }
  .intro-band-inner { gap: 10px; }
  .intro-band p { font-size: .95rem; }
  .small-dot { flex-basis: 7px; width: 7px; height: 7px; }
  .ways-section { padding: 70px 20px; }
  .ways-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 35px; }
  .way-art { height: 140px; }
  .way-body > p:not(.way-kicker) { min-height: 0; }
  .story-illustration { min-height: 245px; }
  .story-copy { padding: 53px 25px 65px; }
  footer { display: block; line-height: 1.6; }
  footer p { margin: 10px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
