:root {
    color-scheme: dark;
    --ink: #f4f1ea;
    --ink-dim: #b4b0a8;
    --ink-faint: #77746d;
    --red: #cf1020;
    --ok: #86a957;
    --warn: #d9a441;
    --bad: #e0453a;
    --gold: #cda85b;
    --line: rgba(255, 255, 255, .12);
    --rule: rgba(244, 241, 234, .55);
    --bg: #000;
    --paper: #e9e2d2;
    --paper-ink: #17130f;
    --paper-ink-dim: #4c4539;
    --paper-line: rgba(23, 19, 15, .3);
    --paper-gold: #73551a;
    --font-title: 'Lino', 'Hapna', sans-serif;
    --font-body: 'Hapna', Georgia, serif;
    --stroke: url('../img/kit-row.png') center / 100% 100% no-repeat;
    --stroke-hover: url('../img/kit-row-hover.png') center / 100% 100% no-repeat;
    --stroke-red: url('../img/kit-row-red.png') center / 100% 100% no-repeat;
    --panel-mask: url('../img/kit-blot.png') 70 fill / 2.2rem / 0 stretch;
    --paper-mask: url('../img/kit-blot.png') 70 fill / 2.4rem / 0 round;
    --frame: url('../img/kit-header.png') 36 fill / 1.45rem stretch;
    --taper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 4' preserveAspectRatio='none'%3E%3Cpath d='M0 2C120 1.4 160 .2 200 0C240 .2 280 1.4 400 2C280 2.6 240 3.8 200 4C160 3.8 120 2.6 0 2Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-film: cubic-bezier(.16, .84, .24, 1);
    --page-max: 1100px;
    --page-wide: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --space-section: clamp(104px, 13vw, 184px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.65 var(--font-body);
    font-synthesis: none;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
}

body.site::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: url('../img/grain.png') 0 0 / 96px 96px;
    pointer-events: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-title);
    font-weight: 400;
    letter-spacing: .02em;
}

b,
strong {
    font-weight: 400;
    color: var(--ink);
}

a {
    color: var(--ink);
    text-decoration-color: var(--rule);
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

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

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1200;
    padding: 10px 16px;
    background: var(--ink);
    color: #000;
    font: 400 18px/1 var(--font-title);
    text-decoration: none;
    translate: 0 -200%;
}

.skip-link:focus {
    translate: none;
}

/* ------------------------------------------------------------------
   Subpages. The page is as wide as the homepage chapters, its head is
   a title card and its parts are set apart by rules and scale, not boxes.
   ------------------------------------------------------------------ */
.page {
    flex: 1 0 auto;
    width: min(var(--page-wide), 100% - 2 * var(--gutter));
    margin: 0 auto;
    padding: calc(var(--navbar-height, 0px) + clamp(56px, 8vw, 112px)) 0 clamp(24px, 4vw, 48px);
}

.page-head {
    margin: 0 0 clamp(64px, 8vw, 112px);
}

.page-head .title-card-rule:last-child {
    margin-bottom: 0;
}

/* Section: its heading sits between two rules that run to the page edges. */
.panel {
    position: relative;
    min-width: 0;
}

.panel + .panel {
    margin-top: clamp(88px, 10vw, 144px);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 36px);
    margin: 0 0 clamp(36px, 4.4vw, 60px);
    color: var(--ink);
    font: 400 clamp(30px, 3.4vw, 46px)/1 var(--font-title);
    letter-spacing: .02em;
    text-align: center;
    text-wrap: balance;
}

.panel-title::before,
.panel-title::after {
    content: '';
    flex: 1 1 0;
    min-width: 24px;
    height: 1px;
    margin-top: -.12em;
    background: currentColor;
    opacity: .32;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 30px 0;
    border: 0;
    border-radius: 0;
    background: var(--stroke);
    color: var(--ink);
    font: 400 20px/1.05 var(--font-title);
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, filter .2s, transform .15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

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

.btn:active {
    transform: translateY(1px) scale(.985);
}

.btn:focus-visible {
    outline-offset: 5px;
}

.btn-primary,
.btn-primary:hover {
    background: var(--stroke-red);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.14) saturate(1.05);
}

.btn-lg {
    min-height: 66px;
    padding: 5px 54px 0;
    font-size: clamp(22px, 2.6vw, 28px);
}

.btn:disabled,
.btn[disabled],
.btn[aria-disabled='true'],
.btn-link:disabled,
.btn-link[aria-disabled='true'] {
    opacity: .45;
    pointer-events: none;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--ink);
    font: 400 19px/1.2 var(--font-title);
    letter-spacing: .04em;
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
    cursor: pointer;
    transition: text-decoration-color .15s, color .15s;
}

.btn-link:hover {
    text-decoration-color: var(--ink);
}

.btn-link:active {
    transform: scale(.98);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

/* Form: dark fields closed by a bone rule, labels set in Lino. */
.form {
    display: grid;
    min-width: 0;
}

.field {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.field-label {
    display: block;
    color: var(--ink);
    font: 400 clamp(22px, 2vw, 26px)/1.15 var(--font-title);
    letter-spacing: .02em;
    text-wrap: balance;
}

.input {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 13px 16px 12px;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    background-color: rgba(244, 241, 234, .045);
    color: var(--ink);
    font: 400 18px/1.55 var(--font-body);
    outline: none;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

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

.input:hover {
    background-color: rgba(244, 241, 234, .065);
}

.input:focus,
.input:focus-visible {
    border-bottom-color: var(--ink);
    background-color: rgba(244, 241, 234, .085);
    box-shadow: inset 0 -1px 0 var(--ink);
    outline: none;
}

.input:disabled {
    opacity: .45;
    pointer-events: none;
}

textarea.input {
    min-height: 150px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.65;
    resize: vertical;
}

select.input {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b4b0a8' stroke-width='2.4' stroke-linecap='square'%3E%3Cpolyline points='5 9 12 16 19 9'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

select.input option {
    background: #111;
    color: var(--ink);
}

.field-hint {
    max-width: 46ch;
    margin: 0;
    color: var(--ink-dim);
    font-size: 16px;
    line-height: 1.55;
    text-wrap: pretty;
}

.field-error {
    margin: 0;
    color: var(--bad);
    font-size: 15px;
    line-height: 1.5;
}

.field.has-error .input,
.input[aria-invalid='true'] {
    border-bottom-color: var(--bad);
    box-shadow: inset 0 -1px 0 var(--bad);
}

.check {
    display: inline-flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 44px;
    color: var(--ink);
    font: 400 clamp(20px, 1.8vw, 23px)/1.25 var(--font-title);
    letter-spacing: .02em;
    cursor: pointer;
}

.check input {
    display: grid;
    place-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    margin: -2px 0 0;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: rgba(244, 241, 234, .045);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}

.check input::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--red);
    transform: scale(0);
    transition: transform .18s var(--ease);
}

.check input:checked::before {
    transform: none;
}

.check:hover input,
.check input:focus-visible {
    border-color: var(--ink);
}

.check input:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.field.has-error .check input {
    border-color: var(--bad);
}

.check input:disabled,
.check input:disabled + span {
    opacity: .45;
    pointer-events: none;
}

/* Rows: a ledger. Each entry is closed by a hairline, the state is set in
   small capitals after a diamond in its own colour. */
.rows {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px 28px;
    min-height: 54px;
    padding: 22px 0 21px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

a.row,
button.row {
    width: 100%;
    border-width: 0 0 1px;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s;
}

a.row:hover,
button.row:hover {
    border-bottom-color: var(--rule);
}

.row.is-active::before,
.row[aria-current]::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--stroke-red);
    pointer-events: none;
}

.row-main {
    flex: 1;
    min-width: 0;
    font: 400 clamp(22px, 2vw, 26px)/1.15 var(--font-title);
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}

.row-main small,
.row-main .meta {
    display: block;
    max-width: 64ch;
    margin-top: 6px;
    color: var(--ink-dim);
    font: 400 15px/1.5 var(--font-body);
    letter-spacing: 0;
}

.row-side {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-dim);
    font: 400 15px/1.4 var(--font-body);
    text-align: right;
}

.status {
    --tone: var(--ink-dim);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tone);
    font: 400 12.5px/1.3 var(--font-body);
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    background: currentColor;
    transform: rotate(45deg);
}

.status-ok {
    --tone: var(--ok);
}

.status-warn {
    --tone: var(--warn);
}

.status-bad {
    --tone: var(--bad);
}

.status-wait {
    --tone: var(--gold);
}

/* Notice: a line of text with a rule in its tone on the left. A warning
   gets the full bone white; gold stays reserved for money and waiting. */
.notice {
    --tone: var(--ink-faint);
    max-width: 64ch;
    margin: 0;
    padding: 2px 0 2px 20px;
    border-left: 2px solid var(--tone);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.55;
    text-wrap: pretty;
}

.notice-ok {
    --tone: var(--ok);
}

.notice-warn {
    --tone: var(--ink);
}

.notice-bad {
    --tone: var(--bad);
}

/* On a paper slip the notice is the printed message under a double rule. */
.paper .notice {
    --tone: var(--paper-ink);
    max-width: none;
    padding: 0;
    border: 0;
    color: var(--paper-ink);
    font: 400 clamp(26px, 2.5vw, 34px)/1.12 var(--font-title);
    letter-spacing: .02em;
    text-wrap: balance;
}

.paper .notice::before {
    content: '';
    display: block;
    height: 7px;
    margin-bottom: 24px;
    border-top: 3px solid var(--tone);
    border-bottom: 1px solid var(--tone);
}

.paper .notice-ok {
    --tone: #47621f;
}

.paper .notice-warn {
    --tone: var(--paper-ink);
}

.paper .notice-bad {
    --tone: var(--red);
}

.empty {
    display: grid;
    justify-items: center;
    gap: 22px;
    margin: 0;
    padding: clamp(28px, 4vw, 48px) 0;
    color: var(--ink-dim);
    font-size: 17px;
    text-align: center;
    text-wrap: balance;
}

.empty::before {
    content: '';
    width: min(160px, 50%);
    height: 4px;
    background: currentColor;
    opacity: .7;
    -webkit-mask: var(--taper);
    mask: var(--taper);
}

.meta {
    color: var(--ink-dim);
    font-size: 15px;
    line-height: 1.5;
}

/* Choices: big doors side by side, a rule between and across. Hover paints
   a red stroke under the title and the arrow moves on. */
.choices {
    --door-x: clamp(28px, 4.4vw, 72px);
    --door-y: clamp(44px, 5.6vw, 80px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.choices > * {
    min-width: 0;
}

.choices > * + * {
    border-left: 1px solid var(--line);
}

.choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 44px;
    padding: var(--door-y, 48px) var(--door-x, 32px);
    color: var(--ink);
    text-decoration: none;
}

.choices > :first-child .choice {
    padding-left: 0;
}

.choices > :last-child .choice {
    padding-right: 0;
}

.choice::after {
    content: '';
    flex: none;
    width: 88px;
    height: 14px;
    margin-top: 36px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 14'%3E%3Cpath d='M0 7.5H85M78 1.5L86 7.5L78 13.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 14'%3E%3Cpath d='M0 7.5H85M78 1.5L86 7.5L78 13.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transition: transform .7s var(--ease-film);
}

.choice:hover::after,
.choice:focus-visible::after,
.choice.is-active::after,
.choice[aria-current]::after {
    transform: translateX(14px);
}

.choice:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

/* Narrow enough that every door title breaks into two lines the same way. */
.choice-title {
    position: relative;
    max-width: 6em;
    padding-bottom: 20px;
    color: var(--ink);
    font: 400 clamp(44px, 5.4vw, 76px)/.95 var(--font-title);
    letter-spacing: .015em;
    text-wrap: balance;
}

.choice-title::after {
    content: '';
    position: absolute;
    left: -4px;
    bottom: 0;
    width: min(100%, 3.4em);
    height: 9px;
    background: var(--stroke-red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .8s var(--ease-film);
}

.choice:hover .choice-title::after,
.choice:focus-visible .choice-title::after,
.choice.is-active .choice-title::after,
.choice[aria-current] .choice-title::after {
    transform: none;
}

.choice-text {
    max-width: 40ch;
    margin: 26px 0 0;
    color: var(--ink-dim);
    font-size: 18px;
    line-height: 1.6;
    text-wrap: pretty;
}

.choice[aria-disabled='true'] {
    opacity: .38;
    pointer-events: none;
}

.choice[aria-disabled='true']::after {
    display: none;
}

.flashes {
    position: fixed;
    top: calc(var(--navbar-height, 0px) + 14px);
    left: 50%;
    z-index: 1100;
    display: grid;
    gap: 8px;
    width: min(520px, 100% - 32px);
    translate: -50% 0;
}

.flash {
    --tone: var(--ink-dim);
    margin: 0;
    padding: 14px 20px 14px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--tone);
    background: #000;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    animation: flash-out .4s ease 10s forwards;
}

.flash:hover {
    animation-play-state: paused;
}

.flash-success {
    --tone: var(--ok);
}

.flash-error {
    --tone: var(--bad);
}

.flash-warning {
    --tone: var(--warn);
}

@keyframes flash-out {
    to {
        opacity: 0;
        visibility: hidden;
        translate: 0 -8px;
    }
}

/* Title card: kicker, big Lino title, tapering rule, short text, buttons.
   Used by error pages, maintenance, the homepage finale and chapter heads. */
.title-card {
    display: grid;
    justify-items: center;
    text-align: center;
}

.title-card-kicker,
.kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 18px;
    color: var(--ink-dim);
    font: 400 13px/1 var(--font-body);
    letter-spacing: .34em;
    text-transform: uppercase;
}

.title-card-kicker::before,
.title-card-kicker::after,
.kicker::before,
.kicker::after {
    content: '';
    flex: none;
    width: clamp(28px, 4vw, 48px);
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.title-card-kicker::before,
.kicker::before {
    margin-right: .34em;
}

.title-card-title {
    max-width: 100%;
    margin: 0;
    color: var(--ink);
    font: 400 clamp(46px, 7.2vw, 96px)/.95 var(--font-title);
    letter-spacing: .015em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.title-card-rule,
.rule-taper {
    display: block;
    width: min(240px, 60%);
    height: 4px;
    margin: 28px 0 24px;
    background: currentColor;
    color: var(--ink-dim);
    -webkit-mask: var(--taper);
    mask: var(--taper);
}

.title-card-text {
    max-width: 44ch;
    margin: 0;
    color: var(--ink-dim);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.6;
    text-wrap: pretty;
}

.title-card .btn-row {
    justify-content: center;
    margin-top: 36px;
}

.title-card-meta {
    margin: 36px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink-dim);
    font-size: 14px;
}

.title-card-meta span {
    color: var(--ink);
    user-select: all;
}

/* A title card alone on the black (errors, maintenance): together with the
   strip of landscape below it fills the first screen. The two clamps are the
   height and top margin of .foot-horizon. */
.page-card {
    display: grid;
    place-items: center;
    min-height: calc(100vh - clamp(112px, 10.5vw, 160px) - clamp(40px, 6vw, 80px));
    min-height: calc(100svh - clamp(112px, 10.5vw, 160px) - clamp(40px, 6vw, 80px));
    padding-bottom: clamp(24px, 6vh, 72px);
}

/* Team: cabinet portraits. Printed in sepia at rest, in colour on hover. */
.team-grid {
    --cols: 4;
    --gap-x: clamp(28px, 3.6vw, 52px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(48px, 5.2vw, 72px) var(--gap-x);
    margin: 0;
    padding: 0;
    list-style: none;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols));
    min-width: 0;
    text-align: center;
}

.member-photo {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    margin: 0 0 28px;
    overflow: hidden;
    background: #14110e;
    outline: 1px solid rgba(244, 241, 234, .34);
    outline-offset: 7px;
    transition: outline-color .5s var(--ease);
}

/* Without a photo the card carries the initial, printed like a monogram. */
.member-initial {
    margin-top: .08em;
    color: var(--ink-dim);
    font: 400 clamp(72px, 9vw, 136px)/1 var(--font-title);
    opacity: .55;
    user-select: none;
}

.member-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) sepia(.3) contrast(1.06) brightness(.84);
    transition: filter .7s var(--ease), transform 1.4s var(--ease-film);
}

.member:hover .member-photo {
    outline-color: var(--ink);
}

.member:hover .member-photo img {
    filter: none;
    transform: scale(1.035);
}

.member-name {
    max-width: 100%;
    margin: 0;
    color: var(--ink);
    font: 400 clamp(22px, 2vw, 27px)/1.1 var(--font-title);
    letter-spacing: .03em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.member-roles {
    margin: 12px 0 0;
    color: var(--ink-dim);
    font: 400 12px/1.6 var(--font-body);
    letter-spacing: .24em;
    text-transform: uppercase;
    text-wrap: balance;
}

.member-text {
    max-width: 30ch;
    margin: 12px 0 0;
    color: var(--ink-dim);
    font-size: 15px;
    line-height: 1.55;
    text-wrap: pretty;
}

/* Paper sheet: a printed page laid on the black. Children inherit paper ink. */
.paper {
    position: relative;
    color: var(--paper-ink);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .16 0 0 -1.25 0 .6'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .012' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 -.9 .42'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23f)'/%3E%3C/svg%3E");
    -webkit-mask-box-image: var(--paper-mask);
}

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

.paper :focus-visible {
    outline-color: var(--paper-ink);
}

.paper a:not(.btn) {
    color: var(--paper-ink);
    text-decoration-color: var(--paper-line);
}

/* Rules: double (thick over thin, like a newspaper masthead) and hairline. */
.rule-double {
    display: block;
    height: 7px;
    border-top: 3px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.rule-double.is-up {
    border-top-width: 1px;
    border-bottom-width: 3px;
}

.rule-hair {
    display: block;
    height: 0;
    border-top: 1px solid currentColor;
    opacity: .35;
}

/* Low strip of landscape that closes every subpage above the footer. */
.foot-horizon {
    position: relative;
    flex: none;
    height: clamp(112px, 10.5vw, 160px);
    margin-top: clamp(40px, 6vw, 80px);
    overflow: hidden;
    background: linear-gradient(#000 0%, #000 14%, #120103 32%, #3c050b 50%, #6a0912 66%, #4a060d 100%);
}

.foot-horizon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
}

.site-foot {
    position: relative;
    flex: none;
    background: #000;
}

.foot-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px 40px;
    width: min(var(--page-wide), 100% - 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px);
}

.foot-name {
    justify-self: start;
    color: var(--ink);
    font: 400 clamp(38px, 5.4vw, 72px)/.92 var(--font-title);
    letter-spacing: .015em;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 30px;
}

.foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-dim);
    font: 400 19px/1 var(--font-title);
    letter-spacing: .04em;
    text-decoration: none;
    transition: color .15s;
}

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

.foot-note {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-dim);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .team-grid {
        --cols: 3;
    }
}

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

    .choices > * + * {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .choices .choice {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .row {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .row-main {
        flex-basis: 100%;
    }

    .row-side {
        text-align: left;
    }

    .team-grid {
        --cols: 2;
        --gap-x: 22px;
        row-gap: 40px;
    }

    .member-photo {
        margin-bottom: 20px;
        outline-offset: 5px;
    }

    .member-name {
        font-size: 20px;
    }

    .member-roles {
        margin-top: 8px;
        font-size: 11px;
        letter-spacing: .18em;
    }

    .member-text {
        font-size: 14px;
    }

    .foot-inner {
        grid-template-columns: 1fr;
    }

    .foot-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }

    .flash {
        animation: none;
    }

    .member:hover .member-photo img,
    .choice:hover::after,
    .choice:focus-visible::after {
        transform: none;
    }
}