/* face the frog — landing
   Mirrors the iOS app's paper aesthetic: warm off-white background,
   italic serif headlines, sans body. Hero fits in one viewport on
   desktop; mobile is allowed to scroll.                              */

:root {
    --paper:        #f7eed5;
    --paper-raised: #fbf4df;
    --ink:          #211d12;
    --ink-soft:     rgba(33, 29, 18, 0.72);
    --ink-faint:    rgba(33, 29, 18, 0.46);
    --rule:         rgba(33, 29, 18, 0.14);
    --frog-yellow:  #fabf2e;
    --amber-deep:   #d19426;
    --terracotta:   #b85240;

    --serif: "Iowan Old Style", "Palatino", "Palatino Linotype", "Charter", Georgia, "Times New Roman", serif;
    --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper:        #1b1813;
        --paper-raised: #25221c;
        --ink:          #f4eed8;
        --ink-soft:     rgba(244, 238, 216, 0.74);
        --ink-faint:    rgba(244, 238, 216, 0.48);
        --rule:         rgba(244, 238, 216, 0.16);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--ink-soft); }

/* ───── shared chrome ───── */

.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(20px, 5vw, 48px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: var(--ink-soft);
}
.nav-links a { border: none; }
.nav-links a:hover { color: var(--ink); }

.foot {
    padding: 18px clamp(20px, 5vw, 48px) 22px;
    font-size: 12.5px;
    color: var(--ink-faint);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.foot a { border: none; color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }

/* ───── home: hero ───── */

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    padding: 0 clamp(20px, 5vw, 64px) clamp(8px, 2vw, 24px);
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.hero-art { min-width: 0; }

.eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    text-transform: lowercase;
}

.headline {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.012em;
    margin: 0;
    color: var(--ink);
}
.headline .dot {
    color: var(--frog-yellow);
}

.lede {
    font-size: clamp(16px, 1.4vw, 18.5px);
    line-height: 1.78;
    color: var(--ink-soft);
    max-width: 38ch;
    margin: 0;
    width: 100%;
}
.lede em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink);
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    transition: background 140ms ease, color 140ms ease;
}
.cta:hover {
    background: var(--ink);
    color: var(--paper);
}
.cta-soft {
    font-size: 13.5px;
    color: var(--ink-faint);
}

.epigraph {
    margin-top: clamp(18px, 3vh, 36px);
    border-left: 2px solid var(--frog-yellow);
    padding: 4px 0 4px 14px;
    max-width: 38ch;
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.epigraph cite {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12.5px;
    color: var(--ink-faint);
}

/* ───── home: hero art ───── */

.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.hero-art img {
    width: 100%;
    max-width: min(440px, 38vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(80, 65, 30, 0.18));
}

/* faint pond ring behind the lilypad */
.hero-art::before {
    content: "";
    position: absolute;
    width: min(520px, 44vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(250, 191, 46, 0.12) 0%,
                                rgba(250, 191, 46, 0.04) 45%,
                                transparent 70%);
    z-index: 0;
}
.hero-art img { position: relative; z-index: 1; }

/* ───── responsive: stack on narrow screens ───── */

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
        padding-top: 8px;
        padding-bottom: 32px;
    }
    .hero-copy { align-items: center; }
    .lede {
        max-width: 34ch;
        margin: 0 auto;
    }
    .epigraph {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        max-width: 32ch;
    }
    .cta-row { justify-content: center; }
    .hero-art {
        order: -1;
    }
    .hero-art img { max-width: 220px; }
    .hero-art::before { width: 280px; }
}

@media (max-width: 480px) {
    .nav { padding: 18px 18px; }
    .nav-links { gap: 14px; font-size: 13px; }
    .hero { padding-left: 18px; padding-right: 18px; }
    .lede { max-width: none; padding: 0 6px; }
    .epigraph { max-width: none; }
    .foot {
        flex-direction: column;
        align-items: center;
        text-align: center;
        word-break: break-word;
    }
}

/* ───── doc pages (terms / privacy) ───── */

.doc {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 40px) 64px;
}

.doc h1 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 8px 0 6px;
}

.doc .doc-sub {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-faint);
    font-size: 14px;
    margin: 0 0 28px;
}

.doc h2 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    margin: 36px 0 10px;
    color: var(--ink);
}

.doc p, .doc li {
    font-size: 15.5px;
    line-height: 1.62;
    color: var(--ink-soft);
}

.doc ul {
    padding-left: 20px;
    margin: 8px 0 14px;
}
.doc li { margin: 4px 0; }

.doc a {
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
}
.doc a:hover { border-bottom-color: var(--ink); }

.doc strong { color: var(--ink); font-weight: 600; }

.doc hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 36px 0 24px;
}
