/* ==========================================================================
   TLSqueer: The Hand-Made Shrine Page
   A pastel pixel shrine page, the kind a student built by hand on a free host.
   Depth comes from pixel-window bevels (inset highlight + shade) and soft
   ambient shadows, never from diagonal zero-blur offsets.
   Every face is a pixel face: Pixelify Sans for voice, Silkscreen for labels.
   ========================================================================== */

/* Self-hosted so a cold cache never paints the page in Courier. Both faces are
   pixel faces; between them they are 28KB. */
@font-face {
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/PixelifySans-400_700.woff2') format('woff2');
}

@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Silkscreen-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Silkscreen-700.woff2') format('woff2');
}

:root {
    /* Ground and panels. The ground is a pastel wash, not warm cream: cream is
       the default this palette is supposed to refuse, and the brief said pastel. */
    --ground: #f9eff7;
    --panel: #fffbfe;
    --panel-alt: #fbf2fa;

    /* Ink. Secondary text is tinted from the ink hue, never gray.
       --ink-faint is the lightest tint still safe for text and placeholders
       (4.68:1 on --panel); --rule is for dashed dividers only, never for text. */
    --ink: #2b2440;
    --ink-soft: #5f5273;
    --ink-faint: #7a6d92;
    --rule: #bdb2cc;
    --field-focus: #fdf6ff;

    /* One-off states, tokenised so no colour lives loose in a rule. */
    --pink-hover: #fbc0d5;
    --mint-hover: #a3dab2;
    --heart-on: #e0568f;
    --lamp-on: #56d98c;
    --red-soft: #fde8ec;

    /* Pastel fields. These own whole regions, they are not accents. */
    --pink: #f7a8c4;
    --pink-soft: #fde4ee;
    --sky: #8fd6f5;
    --sky-soft: #ddf2fd;
    --butter: #ffe08a;
    --butter-soft: #fff5d4;
    --mint: #b8e6c4;
    --mint-soft: #e5f7ea;
    --lilac: #c9b3ef;
    --lilac-soft: #eee6fc;

    /* Text-safe deep tints of the pastels */
    --plum: #7a2f52;
    --deep-sky: #1f5d7a;
    --deep-mint: #226b45;
    --deep-lilac: #543a86;
    --red: #b02a4a;

    /* Bevel */
    --bevel-hi: rgba(255, 255, 255, .9);
    --bevel-lo: rgba(43, 36, 64, .22);
    --lift: 0 3px 10px rgba(43, 36, 64, .14);
    --lift-lg: 0 6px 18px rgba(43, 36, 64, .16);

    /* Focus is the brightest thing on the page. */
    --focus: #ff2d7e;

    --tick: 800ms;
    --gap: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
    scrollbar-color: var(--lilac) var(--panel-alt);
}

body {
    margin: 0;
    background: var(--ground) url("/bg-tile.svg") repeat top left;
    background-size: 24px 24px;
    color: var(--ink);
    font-family: 'Pixelify Sans', ui-monospace, 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: none;
    font-smooth: never;
}

/* Browser surfaces belong to the design system too. */
::selection {
    background: var(--butter);
    color: var(--ink);
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--panel-alt);
    border-left: 2px solid var(--ink);
}

::-webkit-scrollbar-thumb {
    background: var(--lilac);
    border: 2px solid var(--ink);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}

input,
textarea {
    caret-color: var(--focus);
}

a {
    color: var(--plum);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--ink);
    background: var(--butter);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 7px rgba(255, 45, 126, .26);
}

button,
input,
textarea {
    font: inherit;
}

img {
    image-rendering: pixelated;
}

[x-cloak] {
    display: none !important;
}

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

/* The skip link rides the same riser grammar as the buttons: it arrives in
   two stepped frames on the first tab stop, then gets out of the way. */
.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 9px 14px;
    background: var(--butter);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), var(--lift);
    color: var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(calc(-100% - 16px));
    transition: transform 90ms steps(2);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-wrap: balance;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 84px);
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.6vw, 44px);
}

h3 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
}

p {
    margin: 0 0 14px;
    max-width: 68ch;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

.meta {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.soft {
    color: var(--ink-soft);
}

/* --------------------------------------------------------- pixel windows */

.win {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow:
        inset 1px 1px 0 var(--bevel-hi),
        inset -1px -1px 0 var(--bevel-lo),
        var(--lift);
}

.win-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-bottom: 2px solid var(--ink);
    background: var(--lilac);
    box-shadow: inset 0 1px 0 var(--bevel-hi);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
}

.win-dots {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
}

.win-dots i {
    width: 8px;
    height: 8px;
    background: var(--panel);
    border: 1px solid var(--ink);
}

.win-body {
    padding: 26px;
}

.win--pink .win-bar { background: var(--pink); }
.win--sky .win-bar { background: var(--sky); }
.win--mint .win-bar { background: var(--mint); }
.win--butter .win-bar { background: var(--butter); }

/* ------------------------------------------------------------- controls */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--panel);
    color: var(--ink);
    font-family: 'Pixelify Sans', ui-monospace, monospace;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 0 var(--bevel-hi),
        inset -1px -1px 0 var(--bevel-lo),
        0 4px 0 var(--ink),
        0 6px 10px rgba(43, 36, 64, .18);
    transition: transform 90ms steps(2), box-shadow 90ms steps(2), background 120ms;
}

.btn:hover {
    background: var(--butter-soft);
    color: var(--ink);
}

.btn:active {
    transform: translateY(4px);
    box-shadow:
        inset 1px 1px 0 var(--bevel-hi),
        inset -1px -1px 0 var(--bevel-lo),
        0 0 0 var(--ink),
        0 2px 4px rgba(43, 36, 64, .2);
}

.btn:disabled {
    cursor: wait;
    background: var(--panel-alt);
    color: var(--ink-faint);
    box-shadow:
        inset 1px 1px 0 var(--bevel-hi),
        inset -1px -1px 0 var(--bevel-lo),
        0 4px 0 var(--ink-faint);
}

.btn--primary {
    background: var(--pink);
}

.btn--primary:hover {
    background: var(--pink-hover);
}

.btn .ico {
    flex: 0 0 auto;
}

.ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    fill: currentColor;
}

.ico--sm {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

/* ---------------------------------------------------------------- shell */

.shell {
    width: min(1120px, 100% - 40px);
    margin-inline: auto;
    padding: 22px 0 56px;
}

/* Masthead: a slim hand-made site header, not a product navbar. */
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    background: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.brand-name i {
    font-style: normal;
    color: var(--plum);
}

.sitenav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sitenav a {
    padding: 6px 10px;
    border: 2px solid var(--ink);
    background: var(--panel-alt);
    color: var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
}

.sitenav a:hover {
    background: var(--butter);
}

.sitenav a.is-cta {
    background: var(--sky);
}

.sitenav a.is-cta:hover {
    background: var(--butter);
}

/* The page you are on takes the palette's lime: the wayfinding chip reads
   before its label does, and the mint hover keeps it inside the field family. */
.sitenav a.is-here {
    background: var(--mint);
}

.sitenav a.is-here:hover {
    background: var(--mint-hover);
}

/* The desk's two exits are colour-coded so "go back" and "sign out" never
   read as the same action at a glance: the way back is pink, the way out is mint. */
.sitenav a.nav-portal--back {
    background: var(--pink);
}

.sitenav a.nav-portal--back:hover {
    background: var(--pink-hover);
}

.nav-action.nav-action--out button {
    background: var(--mint);
}

.nav-action.nav-action--out button:hover {
    background: var(--mint-hover);
}

/* ------------------------------------------------- first viewport: lede */

.lede {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: var(--gap);
}

/* The plate: the shrine's title card. It stretches to the rail's height and
   pins the pride wave to its base, so the first viewport has no dead column. */
.plate {
    display: flex;
    flex-direction: column;
}

.plate .win-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 0;
}

.plate-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.plate-mark {
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
}

.plate h1 {
    margin: 0;
}

.plate h1 i {
    display: block;
    font-style: normal;
    color: var(--plum);
}

.plate-lede {
    margin: 18px 0 0;
    font-size: 19px;
    color: var(--ink-soft);
}

.plate-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0 28px;
}

/* Raise (from the jacquard brocade): pride arrives as many small pixel
   units composing one field, so "room for every letter" is visible. */
.pride-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    flex: 0 0 auto;
    height: 64px;
    margin: auto -30px 0;
    padding: 0 4px;
    border-top: 2px solid var(--ink);
    background: var(--panel-alt);
    overflow: hidden;
}

.pride-wave i {
    flex: 1 1 0;
    min-width: 0;
    background-image: repeating-linear-gradient(to bottom,
            var(--c) 0 8px, transparent 8px 10px);
}

.pride-wave i:nth-child(11n + 1) { --c: #f4948c; }
.pride-wave i:nth-child(11n + 2) { --c: #f9bd82; }
.pride-wave i:nth-child(11n + 3) { --c: #fbe38a; }
.pride-wave i:nth-child(11n + 4) { --c: #a9dfa4; }
.pride-wave i:nth-child(11n + 5) { --c: #8fc4f0; }
.pride-wave i:nth-child(11n + 6) { --c: #c1a6e8; }
.pride-wave i:nth-child(11n + 7) { --c: #f7a8c4; }
.pride-wave i:nth-child(11n + 8) { --c: #8fd6f5; }
.pride-wave i:nth-child(11n + 9) { --c: #ffffff; }
.pride-wave i:nth-child(11n + 10) { --c: #b08968; }
.pride-wave i:nth-child(11n + 11) { --c: #4a4458; }

.pride-wave i:nth-child(4n) { height: 100%; }
.pride-wave i:nth-child(4n + 1) { height: 62%; }
.pride-wave i:nth-child(4n + 2) { height: 84%; }
.pride-wave i:nth-child(4n + 3) { height: 46%; }
.pride-wave i:nth-child(7n) { height: 92%; }
.pride-wave i:nth-child(9n) { height: 54%; }

/* -------------------------------------------------------- the side rail */

.rail {
    display: grid;
    gap: 16px;
}

.rail-card {
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo), var(--lift);
}

.rail-head {
    padding: 5px 8px;
    border-bottom: 2px solid var(--ink);
    background: var(--mint);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rail-body {
    padding: 12px;
}

/* Status: the club's own state, always visible. */
.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.lamp {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    background: var(--mint);
    border: 2px solid var(--ink);
    animation: tick calc(var(--tick) * 2) steps(1, end) infinite;
}

@keyframes tick {
    0%, 49% { background: var(--lamp-on); }
    50%, 100% { background: var(--mint-soft); }
}

/* An unlit lamp is a state, not a failure: away from term the room is dark,
   and the stillness rules resolve it to its unlit, meaning-bearing state. */
.lamp.is-off {
    background: var(--mint-soft);
    animation: none;
}

.status-facts {
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-top: 2px dashed var(--rule);
    display: grid;
    gap: 6px;
}

.fact {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fact .ico {
    color: var(--plum);
    flex: 0 0 auto;
    margin-top: 1px;
}

/* Blinkies: real badges carrying real messages. */
.blinkies {
    display: grid;
    gap: 7px;
}

.blinky {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 7px;
    border: 2px solid var(--ink);
    background: var(--pink-soft);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}

.blinky::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: var(--plum);
    animation: blink calc(var(--tick) * 2) steps(1, end) infinite;
}

.blinky:nth-child(2) { background: var(--sky-soft); }
.blinky:nth-child(2)::before { animation-delay: calc(var(--tick) / 2); }
.blinky:nth-child(3) { background: var(--butter-soft); }
.blinky:nth-child(3)::before { animation-delay: var(--tick); }

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: .15; }
}

/* The visitor counter is a small, honest signal of people finding the club:
   one increment per browser session, never per refresh. */
.odo {
    display: flex;
    gap: 3px;
}

.odo b {
    flex: 1 1 auto;
    padding: 6px 0;
    background: var(--ink);
    color: var(--butter);
    border: 2px solid var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.odo-note {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.visitor-fact .odo {
    min-width: 96px;
}

/* ---------------------------------------------------------- LED readout */

.readout {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: none;
    margin-bottom: var(--gap);
    padding: 14px 18px;
    background: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1), var(--lift);
    color: var(--sky);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.readout b {
    color: var(--butter);
    font-weight: 400;
}

.readout .caret {
    width: 8px;
    height: 14px;
    background: var(--pink);
    animation: blink calc(var(--tick) * 2) steps(1, end) infinite;
}

.readout a {
    margin-left: auto;
    color: var(--butter);
}

.readout a:hover {
    background: var(--butter);
    color: var(--ink);
}

/* -------------------------------------------------------------- section */

.section {
    margin-bottom: var(--gap);
}

.section-lede {
    max-width: 66ch;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- events */

/* State vocabulary (raise, from the cutting bench): state is a printed
   pixel mark, never a hue. Filled diamond = next, hollow = later. */
.mark {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: var(--ink);
}

.event-feature {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--pink-soft);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}

/* Event names take the label face for the same reason the dates do: a misread
   glyph changes meaning, and Pixelify's Z reads as B in "Zine". Pixelify keeps
   the voice everywhere a wrong glyph only costs a beat. */
.event-feature h3,
.event-row h3 {
    font-family: 'Silkscreen', ui-monospace, monospace;
    letter-spacing: 0;
}

.event-feature h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* A page number chip shares the date chip's body: a Silkscreen figure on a
   pastel field, one of the world's counted objects. */
.datechip,
.pagechip {
    display: grid;
    place-content: center;
    gap: 2px;
    height: 92px;
    padding: 6px;
    background: var(--pink);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
    text-align: center;
}

/* Dates are data, so they take the label face. Pixelify Sans is the voice of
   the page, but its 5 and 2 read as S and Z at this size, and a misread event
   date is a comprehension failure. Silkscreen's digits are unambiguous. */
.datechip b,
.pagechip b {
    display: block;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.datechip span,
.pagechip span {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .1em;
}

.event-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 3px 7px;
    background: var(--pink);
    border: 2px solid var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-meta {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 2px dashed var(--rule);
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-meta .ico {
    color: var(--plum);
}

/* The later two are compact rows, deliberately not the featured shape. */
.event-later {
    display: grid;
    gap: 0;
    margin-top: 16px;
    border: 2px solid var(--ink);
    background: var(--panel);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
}

.event-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
}

.event-row + .event-row {
    border-top: 2px dashed var(--rule);
}

.event-row .rowdate {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.event-row .rowdate b {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 17px;
    font-weight: 700;
}

.event-row .rowdate span {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
}

.event-row h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-row p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.event-row .rowwhere {
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: right;
}

/* ---------------------------------------------------------------- about */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: stretch;
}

.values {
    display: grid;
    gap: 0;
    margin-top: 22px;
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
}

.values div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    background: var(--panel);
}

.values div + div {
    border-top: 2px dashed var(--rule);
}

.values .ico {
    color: var(--plum);
    margin-top: 3px;
    flex: 0 0 auto;
}

.values b {
    display: block;
    font-size: 17px;
}

.values p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
}

/* The flag panel: a real pixel grid that visitors gradually fill together. */
.flag {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), var(--lift);
}

.flag-bands {
    display: grid;
    /* Column flow: the fill runs down the flag one column at a time instead
       of across it, so growth reads vertically and every finished column
       carries all five bands. */
    grid-auto-flow: column;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-template-rows: repeat(15, minmax(0, 1fr));
    aspect-ratio: 4 / 3;
    min-height: 190px;
    background: var(--panel);
}

.flag-pixel {
    min-width: 0;
    min-height: 0;
    border-right: 1px solid rgba(43, 36, 64, .16);
    border-bottom: 1px solid rgba(43, 36, 64, .16);
    opacity: .24;
    transition: opacity 180ms steps(2, end), filter 180ms steps(2, end);
}

.flag-pixel--sky { background: var(--sky); }
.flag-pixel--pink { background: var(--pink); }
.flag-pixel--white { background: #fdfaff; }

.flag-pixel.is-filled {
    opacity: 1;
    filter: saturate(1.08);
}

/* The last column trims its right hairline. The class comes from the fill
   math in JS, because column-flow DOM order no longer matches rows. */
.flag-pixel.edge-r { border-right: 0; }

.flag-caption {
    display: grid;
    gap: 8px;
    min-height: 86px;
    padding: 10px 12px;
    border-top: 2px solid var(--ink);
    background: var(--panel);
}

.flag-caption-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flag-meter {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.flag-meter b {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.flag-hearts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    max-width: 62%;
    flex-wrap: wrap;
}

.flag-heart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.flag-heart-button:hover img {
    filter: brightness(1.06) saturate(1.12);
    transform: translateY(-2px);
}

.flag-heart-button:disabled {
    cursor: not-allowed;
    opacity: .56;
}

.flag-heart-button.is-clicking img {
    animation: heart-click 220ms steps(3, end);
}

@keyframes heart-click {
    0% { transform: scale(1); }
    35% { transform: scale(1.22) translateY(-2px); }
    70% { transform: scale(.92) translateY(1px); }
    100% { transform: scale(1); }
}

/* Instructional copy rides at 10px, not the 8px label floor: it explains the
   signature interaction, and uppercase 8px is where low-vision readers stall. */
.flag-explainer,
.flag-limit {
    margin: 0;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.flag-explainer b {
    color: var(--plum);
    font-weight: 700;
}

.flag-limit {
    color: var(--deep-mint);
}

/* A failed click uses the page's own error grammar (red, 16px, alert glyph),
   never the success-green it inherited when this class was missing. */
.flag-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--red);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.flag-error .ico {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--red);
}

.flag-hearts img {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    image-rendering: pixelated;
}

/* ------------------------------------------------------------- guestbook */

.guest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: start;
}

.note-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    background: var(--sky-soft);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.note-card img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.note-card p {
    margin: 0;
}

.form-row {
    position: relative;
    margin-bottom: 18px;
}

label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 7px;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

label em {
    font-style: normal;
    color: var(--plum);
    font-size: 10px;
}

input,
textarea {
    display: block;
    width: 100%;
    padding: 12px 13px;
    background: var(--panel);
    border: 2px solid var(--ink);
    border-radius: 0;
    color: var(--ink);
    outline: 0;
    box-shadow: inset 2px 2px 0 rgba(43, 36, 64, .09);
}

textarea {
    min-height: 148px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-faint);
}

input:focus,
textarea:focus {
    background: var(--field-focus);
    box-shadow: inset 2px 2px 0 rgba(43, 36, 64, .09);
}

/* An invalid field carries the page's only alert hue, on the border it
   already has: the error line carries the words, the border marks the field. */
input[aria-invalid='true'],
textarea[aria-invalid='true'] {
    border-color: var(--red);
}

/* Signature interaction: message length reads as a filling row of hearts. */
.heartbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 9px;
}

.hearts {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

/* The hearts are the readout; the numerals are the footnote. Progress has to
   outrank the remainder in weight, not only in hue: a mid-grey empty heart is
   as heavy as a pastel filled one and the row stops reading as a measure. */
.hearts .ico {
    width: 15px;
    height: 15px;
    color: rgba(43, 36, 64, .13);
    fill: currentColor;
}

.hearts .ico.is-on {
    color: var(--heart-on);
}

.heartbar span {
    margin-left: auto;
    color: var(--ink-faint);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
}

/* The error takes its own line so appearing never squeezes the primary action
   into a two-line button. */
.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px dashed var(--rule);
}

.form-foot .form-msg {
    flex: 1 1 100%;
}

.form-foot .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.form-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.form-msg .ico {
    flex: 0 0 auto;
    margin-top: 2px;
}

.form-error {
    color: var(--red);
}

.form-success {
    color: var(--deep-mint);
}

/* The stamped confirmation: this world's own window grammar, with SIGNED set as
   an actual off-axis ink stamp and the heart row completed rather than dropped. */
.stamp {
    margin-top: 4px;
    padding: 20px 18px 18px;
    background: var(--mint-soft);
    border: 2px solid var(--ink);
    box-shadow:
        inset 1px 1px 0 var(--bevel-hi),
        inset -1px -1px 0 var(--bevel-lo),
        var(--lift);
}

/* No rotation. A bitmap face cannot be tilted without anti-aliasing it, and
   SIGNED would become the only smeared lettering on a pixel-crisp page. The
   double inset rule carries the stamp instead. */
.stamp-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    background: var(--mint);
    border: 2px solid var(--ink);
    box-shadow: inset 0 0 0 2px var(--mint-soft), inset 0 0 0 4px var(--ink);
}

.stamp-mark b {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
}

.stamp-mark .ico {
    flex: 0 0 auto;
    color: var(--ink);
}

.stamp p {
    max-width: 42ch;
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink);
}

.stamp .hearts {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 2px dashed var(--rule);
}

/* The stamp is not a dead end: the note-taker can write the next one. */
.stamp-again {
    margin-top: 16px;
}

/* ------------------------------------------------------------ resources */

/* The contents: the numbered chips are the page's addresses, and every row
   jumps to its window. Numbers carry wayfinding, never decoration. */
.toc-list {
    display: grid;
    margin-top: 22px;
    border: 2px solid var(--ink);
    background: var(--panel);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
}

.toc-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
}

.toc-row + .toc-row {
    border-top: 2px dashed var(--rule);
}

.toc-row:hover {
    background: var(--butter-soft);
    color: var(--ink);
}

.toc-num {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.toc-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
}

.toc-title .mark {
    fill: var(--plum);
    flex: 0 0 auto;
}

.toc-count {
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* The featured page: the start-here group takes the event feature's shape. */
.res-feature {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--pink-soft);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}

/* Link entries: the bibliography rows. Titles are data, so they take the
   label face, and the host prints where a link goes before the click. */
.res-list {
    display: grid;
    margin-top: 20px;
    border: 2px solid var(--ink);
    background: var(--panel);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
}

.res-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 16px;
}

.res-row + .res-row {
    border-top: 2px dashed var(--rule);
}

.res-row .res-num {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.res-row h3 {
    margin: 0 0 3px;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.res-row h3 a {
    color: var(--plum);
}

.res-row p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
}

.res-host {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: right;
}

.res-host .ico {
    color: var(--plum);
    flex: 0 0 auto;
}

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

.footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo), var(--lift);
}

.footer p {
    margin: 0;
    max-width: none;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.9;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Footer navigation in this world's grammar. Deliberately NOT called a webring:
   a ring points at other people's sites, and there are none to point at, so the
   name would promise something the links do not do. */
.footnav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 2px dashed var(--rule);
}

.footnav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    background: var(--panel-alt);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
    color: var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.footnav a:hover {
    background: var(--butter);
}

.footnav .ico {
    color: var(--plum);
}

.footnav-label {
    margin-right: 2px;
    color: var(--ink-faint);
}

/* 88x31 is the authentic badge size; min-height keeps it from ever clipping.
   Its 8px type is the one deliberate exception to the 10px functional floor:
   the badge is a found artifact of the 88x31 idiom, read as an object. */
.badge88 {
    display: grid;
    place-content: center;
    width: 88px;
    min-height: 31px;
    padding: 3px 2px;
    letter-spacing: 0;
    border: 2px solid var(--ink);
    background: var(--lilac-soft);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
    color: var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 8px;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

.badge88:hover {
    background: var(--butter);
}

.badge88 b {
    display: block;
    font-weight: 400;
    color: var(--plum);
}

/* ----------------------------------------------------------- club desk */

.desk-login-row {
    margin-top: 20px;
}

.nav-action {
    margin: 0;
}

.nav-action button {
    min-height: 34px;
    padding: 6px 10px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--panel-alt);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
    color: var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-action button:hover {
    background: var(--butter);
}

.calendar-picker-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.calendar-picker-field input {
    min-width: 0;
}

.picker-open,
.picker-nav,
.time-stepper button {
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--panel-alt);
    color: var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
    cursor: pointer;
}

.picker-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 8px 12px;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.picker-open:hover,
.picker-nav:hover,
.time-stepper button:hover {
    background: var(--butter);
}

.calendar-picker {
    position: fixed;
    z-index: 20;
    top: 50%;
    left: 50%;
    width: min(360px, calc(100vw - 24px));
    transform: translate(-50%, -50%);
    padding: 16px;
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo), var(--lift-lg);
}

.calendar-picker[hidden] {
    display: none;
}

.calendar-picker-head,
.calendar-time-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.calendar-picker-head {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
}

.calendar-picker-head h2 {
    margin: 0;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
}

.picker-nav {
    min-width: 44px;
    min-height: 44px;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 18px;
    font-weight: 700;
}

.picker-today {
    display: block;
    width: 100%;
    margin-top: 8px;
    min-height: 40px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--butter-soft);
    color: var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.picker-today:hover {
    background: var(--butter);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-top: 12px;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: .04em;
    text-align: center;
}

.calendar-grid {
    margin-top: 6px;
}

.calendar-day {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 40px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 0;
    background: var(--panel-alt);
    color: var(--ink);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 12px;
    cursor: pointer;
}

button.calendar-day:hover,
.calendar-day.is-today {
    border-color: var(--plum);
    background: var(--pink-soft);
}

.calendar-day.is-selected {
    border-color: var(--ink);
    background: var(--pink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
    font-weight: 700;
}

/* Today keeps its light mark even when it is also the selected day:
   a plum inner ring that survives both states and greyscale. */
.calendar-day.is-today.is-selected {
    box-shadow: inset 0 0 0 2px var(--plum), inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}

.calendar-day--blank {
    background: transparent;
}

.calendar-time {
    margin-top: 14px;
    padding: 8px;
    border-top: 2px dashed var(--rule);
    color: var(--plum);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.calendar-time-controls {
    gap: 10px;
    margin-top: 8px;
}

.time-stepper {
    display: grid;
    grid-template-columns: 44px 44px 44px 44px;
    align-items: center;
    gap: 4px;
}

.time-stepper > span {
    grid-column: 1 / -1;
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.time-stepper button,
.time-stepper b {
    display: grid;
    place-items: center;
    min-height: 40px;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 14px;
}

.time-stepper b {
    background: var(--ink);
    color: var(--butter);
}

@media (max-width: 620px) {
    .calendar-picker-field {
        grid-template-columns: minmax(0, 1fr);
    }

    .picker-open {
        width: 100%;
    }

    .calendar-picker {
        padding: 12px;
    }
}

@media (pointer: coarse) {
    .picker-open,
    .picker-nav,
    .picker-today,
    .calendar-day,
    .time-stepper button,
    .nav-action button {
        min-height: 44px;
    }
}

/* ----------------------------------------------------------- club desk */

.desk-shell {
    width: min(900px, 100% - 40px);
    margin-inline: auto;
    padding: 22px 0 56px;
}

.desk-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* The desk's editing panels: one grid, two columns of fields, wide rows
   for prose and the actions. */
.desk-lede {
    max-width: 66ch;
    margin: -6px 0 22px;
    color: var(--ink-soft);
}

.note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 16px;
    padding: 15px 16px;
    border-top: 2px dashed var(--rule);
}

.note-form--bare {
    padding: 0;
    border-top: 0;
}

.note-form .form-row:last-child {
    margin-bottom: 0;
}

.form-row--wide {
    grid-column: 1 / -1;
}

.form-row--tight {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 2px dashed var(--rule);
}

/* One resource link slot: title and address share a row, the note spans. */
.link-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 16px;
}

.link-slot .form-row--span {
    grid-column: 1 / -1;
}

.desk-hint {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
}

.desk-pill {
    padding: 3px 7px;
    background: var(--panel-alt);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.delete-row {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 10px 16px 14px;
    border-top: 2px dashed var(--rule);
}

.delete-confirm-copy {
    margin: 0;
}

.delete-confirm-actions {
    margin-top: 14px;
}

.delete-link {
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.btn--danger {
    background: var(--red-soft);
    color: var(--red);
}

.btn--danger:hover {
    background: var(--red);
    color: var(--red-soft);
}

.btn--danger:active {
    box-shadow:
        inset 1px 1px 0 var(--bevel-hi),
        inset -1px -1px 0 var(--bevel-lo),
        0 0 0 var(--ink),
        0 2px 4px rgba(43, 36, 64, .2);
}

.desk-head h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    background: var(--butter);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-win {
    width: min(460px, 100%);
    margin: 64px auto;
}

.login-win .btn {
    width: 100%;
    margin-top: 6px;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0 0;
    padding: 11px 13px;
    border: 2px solid var(--red);
    background: var(--red-soft);
    color: var(--red);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

/* The desk's save confirmations: same grammar, the success side of it. */
.notice--ok {
    border-color: var(--deep-mint);
    background: var(--mint-soft);
    color: var(--deep-mint);
}

.notice--ok .ico {
    color: var(--deep-mint);
}

.notice .ico {
    flex: 0 0 auto;
    margin-top: 2px;
}

.inbox {
    display: grid;
    gap: 14px;
}

.note {
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo), var(--lift);
}

.note-head {
    display: flex;
    align-items: center;
    gap: 10px 16px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-bottom: 2px solid var(--ink);
    background: var(--sky-soft);
}

.note-head .who {
    font-size: 19px;
    font-weight: 700;
}

.note-head time,
.note-head .contact {
    color: var(--ink-soft);
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.note-head .contact {
    margin-left: auto;
    color: var(--plum);
    text-transform: none;
}

.note blockquote {
    margin: 0;
    padding: 15px 16px;
    white-space: pre-wrap;
    font-size: 17px;
    line-height: 1.6;
}

.empty {
    padding: 52px 24px;
    text-align: center;
    background: var(--panel);
    border: 2px dashed var(--rule);
}

.empty b {
    display: block;
    margin-bottom: 6px;
    font-size: 21px;
}

.empty p {
    margin: 0 auto;
    color: var(--ink-soft);
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1000px) {
    .lede {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Identity before telemetry: a phone visitor meets the club's name and
       its CTAs before the status widgets. */
    .plate {
        order: -1;
    }

    .rail {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        align-items: start;
    }

    .about-grid,
    .guest-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    /* Full-width rows would stretch the 4:3 pixel grid absurdly tall,
       so the field keeps a plate-like width and centres instead. */
    .flag-bands {
        width: min(100%, 420px);
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 17px;
    }

    .shell,
    .desk-shell {
        width: calc(100% - 24px);
        padding-top: 16px;
    }

    .win-body {
        padding: 18px;
    }

    .plate .win-body {
        padding: 20px 20px 0;
    }

    .plate-mark {
        width: 56px;
        height: 56px;
    }

    .pride-wave {
        height: 46px;
        margin: 0 -20px;
    }

    .plate-actions .btn {
        width: 100%;
    }

    .event-feature,
    .res-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .datechip,
    .pagechip {
        height: auto;
        padding: 10px;
        grid-auto-flow: column;
        gap: 8px;
        place-content: center;
    }

    .toc-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 11px 12px;
    }

    /* Numbers keep their place beside the title; only the host drops.
       Rows run tall here, so the number tops the entry instead of floating. */
    .res-row {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 4px 12px;
        align-items: start;
    }

    .res-row .res-num {
        margin-top: 3px;
    }

    .res-host {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

    .datechip b {
        font-size: 26px;
    }

    .event-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .note-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-row .rowwhere {
        text-align: left;
    }

    /* 20 hearts at 15px do not fit a 390px viewport. */
    .hearts .ico {
        width: 11px;
        height: 11px;
    }

    .form-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .form-foot .btn {
        width: 100%;
    }

    .footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .desk-head {
        align-items: flex-start;
    }

    .note-head .contact {
        margin-left: 0;
    }
}

/* Touch, not hover: chips become real thumb targets only where a finger,
   not a cursor, will find them. */
@media (pointer: coarse) {

    .sitenav a,
    .footnav a,
    .skip-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        padding: 8px 14px;
    }
}

/* One orchestrated clock, and nothing moves when motion is unwelcome.
   (Raise, from the shader portal: one shared tick, not scattered effects.) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .lamp {
        background: var(--lamp-on);
    }

    .lamp.is-off {
        background: var(--mint-soft);
    }

    .blinky::before,
    .readout .caret {
        opacity: 1;
    }
}
