:root {
    --paper: #f6f2ec;
    --ink: #2e3532;
    --soft: #6b746f;
    --sage: #8a9a86;
    --line: #d9d2c7;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1d2120;
        --ink: #e9e4dc;
        --soft: #a6aca8;
        --sage: #93a58f;
        --line: #3a403d;
    }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Lato', system-ui, sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    padding: 18vh 1.5rem 4rem;
    text-align: center;
    animation: rise 1.4s ease-out both;
}

/* A soft circle that slowly breathes behind the heading. */
.halo {
    position: absolute;
    top: 9vh;
    left: 50%;
    width: min(26rem, 90vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--sage) 22%, transparent) 0%, transparent 68%);
    z-index: -1;
    animation: breathe 9s ease-in-out infinite;
}

.mark {
    width: 84px;
    height: 28px;
    margin-bottom: 2.25rem;
    fill: none;
    stroke: var(--sage);
    stroke-width: 1.2;
    stroke-linecap: round;
}

/* The two lines draw themselves in, one after the other. */
.mark path {
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    animation: draw 2.2s ease-out forwards;
}
.mark path + path { animation-delay: .5s; }

h1 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.3rem, 7vw, 3.3rem);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.tagline {
    margin: 1rem 0 2.25rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.45rem, 4.2vw, 1.75rem);
    color: var(--sage);
}

.lede {
    margin: 0 auto;
    max-width: 26rem;
    font-size: 1.1rem;
}

.contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--sage);
    padding-bottom: 1px;
    transition: color .3s, border-color .3s;
}

a:hover, a:focus-visible { color: var(--sage); border-color: transparent; }

.contact { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }

.cta {
    display: inline-block;
    padding: 0.75rem 1.9rem;
    border: 1px solid var(--sage);
    border-radius: 999px;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: background .3s, color .3s;
}
.cta:hover, .cta:focus-visible { background: var(--sage); color: var(--paper); border-color: var(--sage); }

.addr { font-size: 0.9rem; color: var(--soft); letter-spacing: 0.02em; }

footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--soft);
    letter-spacing: 0.03em;
}

footer a { color: var(--soft); border-color: var(--line); }

/* Privacy page */
.doc {
    flex: 1;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
}

.doc h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 0.4rem; }
.doc .updated { color: var(--soft); font-size: 0.9rem; margin: 0 0 2.5rem; }
.doc h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 1.45rem;
    margin: 2.5rem 0 0.5rem;
}
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.back { display: inline-block; margin-bottom: 2.5rem; font-size: 0.9rem; }

@keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes breathe {
    0%, 100% { transform: translateX(-50%) scale(0.92); opacity: .75; }
    50%      { transform: translateX(-50%) scale(1.06); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .page, .halo { animation: none; }
    .mark path { animation: none; stroke-dashoffset: 0; }
}
