/* Variables */

:root {
    /* Colours */
    --white: white;
    --black: black;
    --dark-grey: #1E1E1E;
    --mid-grey: rgb(255 255 255 / 0.15);  /* lines and field borders */
    --light-grey: rgb(255 255 255 / 0.6); /* muted text */
    --orange: rgb(242, 65, 2);            /* links */
    --error: #E5484D;

    /* Fonts */
    --font-display: "neue-haas-grotesk-display", sans-serif;
    --font-text: "neue-haas-grotesk-text", sans-serif;
    --font-heading: "helvetica-neue", sans-serif;
    --font-serif: "exposure", serif;

    /* Sizes */
    --stroke-weight: 0.125rem;
    --control-height: 2rem;               /* buttons, tags and the button icon square */
    --indent: clamp(2rem, 6vw, 4rem);     /* paragraph indents and quotes */
    --width-text: 800px;
    --width-wide: 1200px;
    --reveal: 0.4s ease;                  /* header and colour bar sliding in */

    --header-height: 3rem;
    --menu-height: max(100svh, 20rem); /* header and colour bar with the story list open */

    --max-width: 1800px;
}


/* Breakpoints (media query rems are always 16px): below 50rem is phone (2 columns, 3 from 37.5rem), 50rem tablet,
   77rem desktop. Media queries can't read variables, so the other stylesheets repeat 50rem and 77rem; keep them in
   step. */
:root {
    --gutter: 0.5rem;
    --tg-columns: 2;
    --grid-columns: repeat(var(--tg-columns), 1fr);

    @media (min-width: 37.5rem) {
        --gutter: 1rem;
        --tg-columns: 3;
    }

    @media (min-width: 50rem) {
        --gutter: 2rem;
        --tg-columns: 4;
    }

    @media (min-width: 77rem) {
        --tg-columns: 6;
    }
}
