/* ─────────────────────────────────────────────────────────────
   BASE — the rules that are identical on every page. Loaded
   before style.css / onlyfans.css, which add the page's own
   tokens and layout on top.
───────────────────────────────────────────────────────────── */

/* Self-hosted Outfit font — no external DNS round-trip */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS — the ones every page agrees on. Page-specific
   tokens live in that page's own stylesheet.
───────────────────────────────────────────────────────────── */
:root {
    --black: #000000;
    --ink: #1a1a1a;
    /* body text: softer than pure black   */
    --white: #ffffff;
    --muted: #6b7280;
    /* hover underlines + fact numbers     */
    --btn-hover: #1f2937;
    /* primary button hover                */
}

/* ─────────────────────────────────────────────────────────────
   RESET — normalise box model, remove default browser spacing.
───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Reserve the scrollbar's width at all times, so opening a modal
   (which locks body scrolling) doesn't shift the page sideways. */
html {
    scrollbar-gutter: stable;
}

/* The hidden attribute must win over the display value a rule gives
   an element — .page is display: flex, and hidden is what switches
   the pages, before any JavaScript has run. */
[hidden] {
    display: none !important;
}

/* Pages take focus on navigation; the ring would be noise there. */
[tabindex="-1"]:focus {
    outline: none;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin: 0;
}

/* Visually hidden but available to assistive tech (live regions,
   the accessible name of every modal). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────────────────────
   MODAL DISMISS — the ✕ in the top-right corner of every modal
   card except the thoughts one. The card gives it its
   positioning context.
───────────────────────────────────────────────────────────── */
.modal-dismiss {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0.25rem;
    line-height: 1;
    font-size: 1.25rem;
    transition: color 0.15s ease;
}

.modal-dismiss:hover {
    color: var(--ink);
}

.modal-dismiss:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Keep the ✕ clear of the text. Only the first line can reach
   it, so the space is reserved by floating a box out of the
   first element after the button — the rest of the paragraph
   still runs the card's full width, exactly as it did before
   the ✕ existed. The sr-only heading takes no space, so that
   sibling is the first thing on screen. */
.modal-dismiss + *::before {
    content: '';
    float: right;
    width: 1.75rem;
    height: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION — honour the OS setting on every page. Not 0s:
   a tiny duration still fires transitionend, so JS that waits
   for it keeps working.
───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
