/* sufficient reason — base */

:root {
    --ink:        #1a1a1a;
    --ink-soft:   #4a4a4a;
    --ink-faint:  #8a8a8a;
    --link:       #1a1a1a;
    --rule:       rgba(26, 26, 26, 0.18);
    --bg-root:    #FAFAF7;
    --bg-greed:   #C4C4B8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Iowan Old Style', 'Charter', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg-root);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.greed { background: var(--bg-greed); }

/* page wrapper — narrow column, generous margins */
.page {
    max-width: 36rem;
    margin: 0 auto;
    padding: 6rem 1.75rem 4rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    html, body { font-size: 17px; }
    .page { padding: 3.5rem 1.5rem 3rem; }
}

/* typography */
h1 {
    font-size: 1.5rem;
    font-weight: normal;
    font-style: italic;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
    color: var(--ink);
}

p {
    margin-bottom: 1.4rem;
    color: var(--ink);
}

p.lead {
    font-size: 1.18rem;
    line-height: 1.55;
    margin-bottom: 2.2rem;
}

p.statement {
    font-style: italic;
    color: var(--ink-soft);
    border-left: 1px solid var(--rule);
    padding-left: 1.25rem;
    margin: 2.5rem 0 2.5rem;
    line-height: 1.55;
}

p.statement .attribution {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-top: 0.6rem;
    letter-spacing: 0.04em;
}

p.aside {
    color: var(--ink-soft);
    font-size: 0.94rem;
    margin-top: 0.4rem;
    line-height: 1.55;
}

/* link list — humble, sentence-shaped */
.links {
    margin-top: 3rem;
}
.links p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--rule);
    transition: text-decoration-color 0.15s ease;
}
a:hover {
    text-decoration-color: var(--ink);
}

/* footer */
footer {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.82rem;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}
footer a {
    color: var(--ink-faint);
    text-decoration-color: rgba(26, 26, 26, 0.12);
}
footer a:hover {
    color: var(--ink);
}
footer .footer-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* snake canvas — sits behind text, doesn't block clicks */
#snake-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* placeholder pages */
.placeholder h1 {
    margin-bottom: 1rem;
}
.placeholder p {
    color: var(--ink-soft);
}

/* privacy page — same column, prose layout */
.privacy h1 {
    font-style: normal;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}
.privacy .updated {
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}
.privacy h2 {
    font-size: 1.05rem;
    font-weight: normal;
    font-style: italic;
    margin-top: 2.2rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}
