/* Sunday Health public site - shared visual system */
:root {
  --ink: #102a28;
  --ink-soft: #31514d;
  --mist: #edf3f0;
  --paper: #f8fbfa;
  --white: #ffffff;
  --line: #d7e4df;
  --pine: #0e3d38;
  --pine-deep: #082c29;
  --pine-light: #19554e;
  --aqua: #96d6c8;
  --aqua-strong: #5bb6a3;
  --shadow: 0 24px 60px rgba(8, 44, 41, .14);
  --radius: 22px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #e6f2ed; --ink-soft: #b7d0c7; --mist: #123b36; --paper: #092c29; --white: #103532; --line: #28544d; --shadow: 0 24px 60px rgba(0, 0, 0, .28); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--aqua-strong); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 74px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.wordmark { text-decoration: none; font-family: var(--display); font-size: 1.65rem; letter-spacing: -.07em; font-weight: 700; }
.wordmark span { display: inline-grid; width: .47em; height: .47em; margin-left: .08em; border: 2px solid currentColor; border-radius: 50%; vertical-align: .14em; }
.nav-links { display: flex; align-items: center; gap: 25px; font-size: .92rem; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: .76; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--pine); color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.nav-cta:hover, .button:hover { background: var(--pine-light); transform: translateY(-2px); }
.nav-cta:active, .button:active { transform: translateY(1px); }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: var(--mist); }
.mobile-menu { display: none; }

.hero { min-height: calc(100dvh - 74px); padding: 48px 0 72px; display: grid; align-items: center; grid-template-columns: minmax(0, .96fr) minmax(380px, .94fr); gap: clamp(40px, 7vw, 104px); }
.eyebrow { display: inline-block; margin: 0 0 18px; color: var(--pine-light); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: .98; letter-spacing: -.055em; }
h1, h2 { font-family: var(--display); font-weight: 600; }
h1 { max-width: 650px; font-size: clamp(3.25rem, 6vw, 5.75rem); }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.5rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.hero-copy p { max-width: 490px; color: var(--ink-soft); font-size: 1.08rem; margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); background: var(--pine); box-shadow: var(--shadow); }
.hero-visual::after { content: ""; position: absolute; inset: auto 13% 7%; height: 16%; border-radius: 50%; background: #83bcad; filter: blur(42px); opacity: .3; }
.hero-visual img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; position: relative; z-index: 1; }
.illustrative-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .79rem; }
.trust-line { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-line span { padding: 18px 12px 18px 0; color: var(--ink-soft); font-size: .82rem; font-weight: 650; }
.trust-line span + span { padding-left: 18px; border-left: 1px solid var(--line); }

.section { padding: clamp(78px, 12vw, 150px) 0; }
.section.tint { background: var(--mist); }
.section-title { max-width: 710px; margin-bottom: 44px; }
.section-title p { max-width: 610px; margin: 19px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.story-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; align-items: stretch; }
.story-intro { padding: 32px 8px 20px; }
.story-intro p { color: var(--ink-soft); max-width: 370px; }
.story-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-card { min-height: 232px; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.story-card:nth-child(1) { background: var(--pine); border-color: var(--pine); color: #e8f5f0; }
.story-card:nth-child(1) h3 { color: #fff; }
.story-card:nth-child(1) p { color: #c5ddd5; }
.story-card:nth-child(3) { grid-column: span 2; min-height: 152px; background: #c9eee5; border-color: #c9eee5; }
.story-card p { margin: 14px 0 0; color: var(--ink-soft); font-size: .94rem; }
.card-kicker { margin: 0 0 23px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: inherit; opacity: .78; }
.how { display: grid; grid-template-columns: 1fr .75fr 1.15fr; gap: 32px; align-items: end; }
.how-item { padding-top: 24px; border-top: 1px solid var(--line); }
.how-item:nth-child(2) { margin-bottom: 72px; }
.how-item:nth-child(3) { background: var(--pine); border-radius: var(--radius); padding: 35px; color: #d6ebe4; border: 0; }
.how-item:nth-child(3) h3 { color: #fff; }
.how-item p { margin: 14px 0 0; color: var(--ink-soft); }
.how-item:nth-child(3) p { color: #c4dcd4; }
.founder { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(32px, 7vw, 92px); align-items: center; }
.founder-image { overflow: hidden; min-height: 430px; border-radius: var(--radius); background: linear-gradient(145deg, #cce9e2, #75aa9e); }
.founder-image img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .76; }
.founder-copy blockquote { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
.founder-copy p { max-width: 540px; color: var(--ink-soft); }
.cta-panel { padding: clamp(40px, 6vw, 72px); border-radius: var(--radius); background: var(--pine-deep); color: #d1e8df; display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: end; }
.cta-panel h2 { color: #fff; max-width: 630px; }
.cta-panel p { margin: 0; color: #c4ded5; }
.cta-panel .button { background: var(--aqua); color: #07332e; width: fit-content; }
.cta-panel .button:hover { background: #c2eee4; }

.page-hero { padding: 94px 0 72px; background: var(--pine); color: #d7ebe4; overflow: hidden; position: relative; }
.page-hero::after { content: ""; position: absolute; width: 42vw; height: 42vw; max-width: 600px; max-height: 600px; right: -9vw; top: -23vw; border-radius: 50%; background: #27766b; opacity: .55; filter: blur(2px); }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--aqua); }
.page-hero h1 { color: #fff; max-width: 760px; font-size: clamp(3.25rem, 6.2vw, 6.2rem); }
.page-hero p { max-width: 610px; color: #c5dbd4; font-size: 1.1rem; margin: 23px 0 0; }
.page-hero.legal { padding-bottom: 62px; }
.content-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: clamp(34px, 8vw, 100px); }
.side-note { padding-top: 9px; }
.side-note p { color: var(--ink-soft); font-size: .92rem; }
.side-links { display: grid; gap: 8px; margin-top: 20px; }
.side-links a { color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.side-links a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 720px; }
.prose h2 { margin: 0 0 22px; font-size: clamp(2rem, 3vw, 3rem); }
.prose h3 { margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 24px; padding-left: 1.25rem; }
.prose li + li { margin-top: 9px; }
.prose section + section { margin-top: 58px; }
.prose a { color: var(--pine-light); }
.callout { padding: 24px 26px; border-left: 4px solid var(--aqua-strong); background: var(--mist); border-radius: 0 14px 14px 0; color: var(--ink-soft); }
.data-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.data-mosaic > div { padding: 29px; min-height: 220px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.data-mosaic > div:nth-child(1) { grid-column: span 2; min-height: 158px; background: #c6ebe2; border-color: #c6ebe2; }
.data-mosaic > div:nth-child(2) { background: var(--pine); border-color: var(--pine); }
.data-mosaic > div:nth-child(2) h3 { color: #fff; }
.data-mosaic > div:nth-child(2) p { color: #c6ddd6; }
.data-mosaic p { color: var(--ink-soft); margin-bottom: 0; }
.support-cards { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.support-card { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.support-card.featured { background: var(--pine); color: #dceee8; border-color: var(--pine); }
.support-card.featured h2, .support-card.featured h3 { color: #fff; }
.support-card p { color: var(--ink-soft); }
.support-card.featured p { color: #c3dbd3; }
.contact-box { margin-top: 18px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #c6ebe2; }
.contact-box p { margin-bottom: 0; color: var(--ink-soft); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; color: #c6ded7; font-size: .9rem; }
.publication-warning { margin: 0 0 30px; padding: 22px 24px; border-radius: 14px; background: #fff6d8; color: #5b4a14; }
@media (prefers-color-scheme: dark) { .publication-warning { background: #463c16; color: #ffeb96; } .story-card:nth-child(3), .data-mosaic > div:nth-child(1), .contact-box { background: #174b43; border-color: #174b43; } }

.site-footer { padding: 60px 0 34px; background: var(--pine-deep); color: #c4dcd4; }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 36px; }
.site-footer .wordmark { color: #fff; }
.site-footer p { max-width: 330px; font-size: .9rem; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: .9rem; }
.footer-links strong { color: #fff; font-size: .83rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(202, 232, 221, .2); color: #a7c5bc; font-size: .78rem; }

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 620px); }
  .site-header { height: 68px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; cursor: pointer; font-weight: 750; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: 40px; width: 205px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
  .mobile-menu a { display: block; padding: 10px; text-decoration: none; font-weight: 650; }
  .hero, .story-layout, .founder, .cta-panel, .content-grid, .footer-main { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 50px 0 76px; gap: 42px; }
  .hero-visual, .hero-visual img { min-height: 500px; }
  .trust-line { grid-template-columns: 1fr; }
  .trust-line span, .trust-line span + span { padding: 12px 0; border-left: 0; }
  .trust-line span + span { border-top: 1px solid var(--line); }
  .story-intro { padding: 0; }
  .how { grid-template-columns: 1fr; gap: 20px; }
  .how-item:nth-child(2) { margin-bottom: 0; }
  .how-item:nth-child(3) { padding: 29px; }
  .founder-image { min-height: 300px; }
  .page-hero { padding: 67px 0 60px; }
  .page-hero::after { width: 70vw; height: 70vw; right: -23vw; top: -25vw; }
  .content-grid { gap: 35px; }
  .side-note { padding-top: 0; }
  .data-mosaic, .support-cards { grid-template-columns: 1fr; }
  .data-mosaic > div:nth-child(1) { grid-column: auto; }
  .footer-bottom { display: block; }
}
@media (max-width: 490px) { h1 { font-size: 3.08rem; } .story-cards { grid-template-columns: 1fr; } .story-card:nth-child(3) { grid-column: auto; } .hero-visual, .hero-visual img { min-height: 435px; } .hero-actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
