/* ============================================================
   observed and noted — paper & ink
   one stylesheet for the whole site (and the static preview)
   ============================================================ */

/* ---------- fonts (all self-hosted, variable where possible) */

@font-face {
    font-family: "Jost";
    src: url("../fonts/jost-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Jost";
    src: url("../fonts/jost-var-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "EB Garamond";
    src: url("../fonts/eb-garamond-roman.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EB Garamond";
    src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
    font-weight: 400 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-roman.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- tokens */

:root {
    --font-title: "Jost", "Avenir Next", system-ui, sans-serif;
    --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* paper & ink — light. the ground is tinted by the Ghost accent color */
    --paper: color-mix(in oklab, var(--ghost-accent-color, #f5f5dc) 50%, #fdfcf6);
    --card: color-mix(in oklab, var(--ghost-accent-color, #f5f5dc) 16%, #fffefb);
    --ink: #262218;
    --ink-2: #6d6553;
    --ink-3: #a09477;
    --rule: color-mix(in oklab, #262218 16%, transparent);
    --rule-strong: color-mix(in oklab, #262218 55%, transparent);
    --red: #b23a26;
    --red-soft: color-mix(in oklab, #b23a26 12%, transparent);
    --shadow: 0 1px 2px rgba(38, 34, 24, 0.05);
    --shadow-lift: 0 6px 18px rgba(38, 34, 24, 0.10), 0 2px 4px rgba(38, 34, 24, 0.06);
    --grain-opacity: 0.5;
}

html[data-scheme="dark" i] {
    --paper: color-mix(in oklab, var(--ghost-accent-color, #f5f5dc) 5%, #131110);
    --card: color-mix(in oklab, var(--ghost-accent-color, #f5f5dc) 7%, #191613);
    --ink: #e9e2cf;
    --ink-2: #9c9280;
    --ink-3: #6c6455;
    --rule: color-mix(in oklab, #e9e2cf 14%, transparent);
    --rule-strong: color-mix(in oklab, #e9e2cf 50%, transparent);
    --red: #e26a4c;
    --red-soft: color-mix(in oklab, #e26a4c 16%, transparent);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
    --grain-opacity: 0.35;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-scheme="auto" i] {
        --paper: color-mix(in oklab, var(--ghost-accent-color, #f5f5dc) 5%, #131110);
        --card: color-mix(in oklab, var(--ghost-accent-color, #f5f5dc) 7%, #191613);
        --ink: #e9e2cf;
        --ink-2: #9c9280;
        --ink-3: #6c6455;
        --rule: color-mix(in oklab, #e9e2cf 14%, transparent);
        --rule-strong: color-mix(in oklab, #e9e2cf 50%, transparent);
        --red: #e26a4c;
        --red-soft: color-mix(in oklab, #e26a4c 16%, transparent);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-lift: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
        --grain-opacity: 0.35;
        color-scheme: dark;
    }
}

/* ---------- base */

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* paper grain — a whisper of tooth on the ground */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.37 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
    position: relative;
    z-index: 1;
}

::selection {
    background: var(--red);
    color: var(--paper);
}

a {
    color: inherit;
}

kbd {
    font-family: var(--font-mono);
    font-size: 0.9em;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0 0.35em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5em 0.9em;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- masthead */

.masthead {
    max-width: 88rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 1.6rem;
    text-align: center;
}

.masthead-title {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(2.1rem, 8.5vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: lowercase;
    overflow-wrap: anywhere;
}

.masthead-title a {
    text-decoration: none;
}

.masthead-desc {
    margin: 0.9rem 0 0;
    padding-bottom: 1.2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-2);
    position: relative;
    border-bottom: 2px solid var(--rule-strong);
}

/* double rule — the editorial signature */
.masthead-desc::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    border-bottom: 1px solid var(--rule-strong);
}

/* smaller masthead away from home */
.post-template .masthead,
.page-template .masthead,
.error-template .masthead {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.post-template .masthead-title,
.page-template .masthead-title,
.error-template .masthead-title {
    font-size: 1.3rem;
}

.post-template .masthead-desc,
.page-template .masthead-desc,
.error-template .masthead-desc {
    font-size: 0.95rem;
    margin-top: 0.4rem;
    padding-bottom: 0.8rem;
}

/* ---------- colour scheme toggle */

.scheme-toggle {
    position: fixed;
    top: 0.9rem;
    right: 1rem;
    z-index: 40;
    appearance: none;
    background: color-mix(in oklab, var(--paper) 80%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: var(--ink-2);
    padding: 0.42em 0.85em;
    cursor: pointer;
    transition: color 120ms ease, border-color 120ms ease;
}

.scheme-toggle:hover {
    color: var(--ink);
    border-color: var(--rule-strong);
}

/* ---------- toolbar */

.toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in oklab, var(--paper) 88%, transparent);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    border-bottom: 1px solid var(--rule);
}

.toolbar-row {
    max-width: 88rem;
    margin: 0 auto;
    padding: 0.55rem clamp(1.25rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.tool-search {
    flex: 0 1 15rem;
    min-width: 8rem;
}

.tool-search input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule-strong);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink);
    padding: 0.3em 0;
    outline: none;
}

.tool-search input::placeholder {
    color: var(--ink-3);
}

.tool-search input:focus {
    border-bottom-color: var(--red);
}

.tool-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.tool-bar-controls {
    display: contents;
}

.tool-lens,
.tool-order {
    display: flex;
    gap: 0.15rem;
}

.toolbar button {
    appearance: none;
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    color: var(--ink-2);
    padding: 0.35em 0.6em;
    border-radius: 2px;
    cursor: pointer;
    transition: color 120ms ease, background-color 120ms ease;
}

.toolbar button:hover {
    color: var(--ink);
    background: var(--red-soft);
}

.toolbar button[aria-pressed="true"] {
    color: var(--paper);
    background: var(--ink);
}

.tool-order button {
    border: 1px solid var(--rule);
}

.tool-random:active {
    background: var(--red);
    color: var(--paper);
}

.tool-jump {
    margin-left: auto;
}

.tool-jump select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-2);
    padding: 0.35em 0.6em;
}

@media (min-width: 1280px) {
    .tool-jump {
        display: none;
    }
}

/* phone: the toolbar becomes a thumb-reachable bottom bar */
@media (max-width: 760px) {
    .toolbar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid var(--rule-strong);
        border-bottom: none;
        box-shadow: 0 -6px 20px rgba(38, 34, 24, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.7rem 1rem 0.75rem;
    }

    /* the row is a column here — flex-basis would become a height */
    .tool-search {
        flex: 0 0 auto;
    }

    .tool-search input {
        font-size: 1rem; /* ≥16px stops iOS zooming on focus */
        border: 1px solid var(--rule-strong);
        border-radius: 999px;
        padding: 0.55em 0.9em;
    }

    .tool-bar-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
    }

    .tool-lens,
    .tool-order {
        gap: 0.3rem;
    }

    .toolbar button {
        flex: 1 1 auto;
        padding: 0.6em 0.5em;
        border: 1px solid var(--rule);
        white-space: nowrap;
    }

    .tool-jump {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .tool-jump select {
        padding: 0.6em 0.7em;
    }

    /* clear the fixed bar */
    .home-template .wall {
        padding-bottom: 12rem;
    }

    .home-template .site-foot {
        margin-bottom: 8rem;
    }
}

/* ---------- the wall */

.wall {
    max-width: 84rem;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

@media (min-width: 1280px) {
    .wall {
        padding-right: 6rem;
    }
}

/* wide, comfortable measure — at most 2 columns, so lines stay readable */
.stream {
    columns: 34rem 2;
    column-gap: 3rem;
}

/* year markers — chapter breaks spanning the whole wall */
.year-marker {
    column-span: all;
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin: 3rem 0 1.6rem;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ink);
    scroll-margin-top: 4.5rem;
}

.year-marker::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--rule-strong);
    position: relative;
    top: -0.35em;
}

.year-marker:first-child {
    margin-top: 0.8rem;
}

/* month markers — small in-flow labels inside the columns */
.month-marker {
    break-inside: avoid;
    break-after: avoid-column;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.4rem 0 0.9rem;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.66rem;
    text-transform: lowercase;
    letter-spacing: 0.22em;
    color: var(--ink-3);
    scroll-margin-top: 4.5rem;
}

.month-marker::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--rule);
}

/* ---------- note cards */

.note {
    position: relative;
    break-inside: avoid;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 3px;
    box-shadow: var(--shadow);
    padding: 1.7rem 1.9rem 1.8rem;
    margin: 0 0 2rem;
    transition: transform 200ms ease, box-shadow 200ms ease;
    scroll-margin-top: 5.5rem;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.note:focus {
    outline: none;
}

.note:focus-visible,
.note.is-walked {
    border-color: var(--red);
    outline: 1px solid var(--red);
    outline-offset: -1px;
}

.note-head {
    margin-bottom: 1.05rem;
}

.note-title {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-transform: lowercase;
}

.note-title a {
    text-decoration: none;
}

.note-title a::after {
    /* whole card is clickable through the title's pseudo-element */
    content: "";
    position: absolute;
    inset: 0;
}

.note:hover .note-title a,
.note-title a:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.note-date {
    display: block;
    margin-top: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
}

.note-body {
    font-size: 1.16rem;
    line-height: 1.68;
    position: relative;
    /* lift links above the card-covering pseudo-link */
    z-index: 1;
}

.note-body a {
    position: relative;
}

.note-body p {
    margin: 0 0 0.85em;
}

.note-body > :last-child {
    margin-bottom: 0;
}

.note-body ol {
    padding-left: 1.4em;
    margin: 0 0 0.7em;
}

.note-body h2 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: lowercase;
    margin: 1.3em 0 0.45em;
}

/* very long notes: clamp on the wall, fade out, invite the click through */
.note-tall .note-body {
    max-height: 22em;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 62%, transparent 97%);
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%);
}

.note-more {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--red);
}

.is-shuffled .month-marker,
.is-shuffled .year-marker {
    display: none;
}

.wall-empty {
    margin: 5rem auto;
    text-align: center;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink-2);
}

/* ---------- timeline rail */

.rail {
    position: fixed;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
}

@media (min-width: 1280px) {
    .rail:not([hidden]) {
        display: flex;
    }
}

.is-shuffled .rail {
    display: none;
}

.rail a.rail-year {
    margin: 0.55rem 0 0.15rem;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: 0.14em;
    padding: 0;
}

.rail a.rail-year:hover {
    color: var(--ink);
}

.rail a.rail-year:first-child {
    margin-top: 0;
}

.rail a {
    display: block;
    padding: 0.08rem 0;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 120ms ease;
}

.rail a:hover {
    color: var(--ink);
}

.rail a.is-current {
    color: var(--red);
}

.rail a.is-current::before {
    content: "— ";
}

/* ---------- specimen (single note) */

.specimen {
    max-width: 44rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 8vh, 6rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.specimen-head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.specimen-meta {
    margin: 0 0 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.1rem;
}

.specimen-words:empty {
    display: none;
}

.specimen-title {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(2.3rem, 6.5vw, 4rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.specimen-body {
    font-size: clamp(1.22rem, 1.1rem + 0.55vw, 1.42rem);
    line-height: 1.66;
}

.specimen-body p {
    margin: 0 0 0.85em;
}

.specimen-body a {
    text-decoration-color: var(--red);
    text-underline-offset: 0.15em;
}

.specimen-body h2 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: lowercase;
    margin: 1.8em 0 0.5em;
    letter-spacing: -0.01em;
}

.specimen-body ol {
    padding-left: 1.5em;
}

.specimen-body strong {
    font-weight: 700;
}

/* ---------- koenig editor cards (unused today, styled so future embeds fit) */

.specimen-body img,
.note-body img {
    max-width: 100%;
    height: auto;
}

.kg-width-wide {
    margin-inline: calc(50% - 50vw);
    max-width: min(72rem, 92vw);
    transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
    margin-inline: calc(50% - 50vw);
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.6rem;
}

.kg-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-bookmark-card {
    margin: 1.5rem 0;
    width: 100%;
}

.kg-bookmark-container {
    display: flex;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 3px;
    text-decoration: none;
    overflow: hidden;
    color: var(--ink);
}

.kg-bookmark-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem;
}

.kg-bookmark-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: lowercase;
}

.kg-bookmark-description {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-metadata {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-3);
}

.kg-bookmark-icon {
    width: 1rem;
    height: 1rem;
}

.kg-bookmark-author {
    color: var(--ink-2);
}

.kg-bookmark-publisher {
    color: var(--ink-3);
}

.kg-bookmark-thumbnail {
    position: relative;
    flex-shrink: 0;
    max-width: 33%;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- specimen nav (prev / random / next) */

.specimen-nav {
    margin-top: clamp(3rem, 10vh, 6rem);
    padding-top: 1.4rem;
    border-top: 2px solid var(--rule-strong);
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.specimen-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    border-top: 1px solid var(--rule-strong);
}

.specimen-nav a {
    text-decoration: none;
}

.specimen-prev {
    grid-column: 1;
    justify-self: start;
    text-align: left;
}

.specimen-nav-mid {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--ink-2);
    padding-top: 0.25rem;
}

.specimen-nav-mid a:hover {
    color: var(--red);
}

.specimen-random {
    color: var(--red);
}

.specimen-next {
    grid-column: 3;
    justify-self: end;
    text-align: right;
}

.specimen-nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    margin-bottom: 0.35rem;
}

.specimen-nav-title {
    display: block;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.2;
    text-transform: lowercase;
    max-width: 16rem;
}

.specimen-prev:hover .specimen-nav-title,
.specimen-next:hover .specimen-nav-title {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

@media (max-width: 640px) {
    .specimen-nav {
        grid-template-columns: 1fr;
    }

    .specimen-prev,
    .specimen-nav-mid,
    .specimen-next {
        grid-column: 1;
        justify-self: start;
        text-align: left;
        align-items: flex-start;
    }
}

/* ---------- footer */

.site-foot {
    max-width: 88rem;
    margin: 0 auto;
    padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 2.4rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

.site-foot a {
    color: var(--ink-2);
    text-decoration: none;
}

.site-foot a:hover {
    color: var(--red);
}

.foot-sep {
    margin: 0 0.5rem;
}

.site-foot-hint {
    margin: 0;
}

.site-foot-nav {
    margin: 0;
}

@media (max-width: 640px) {
    .site-foot-hint {
        display: none;
    }
}

/* ---------- reduced motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}
