/* Ordinal's public site (docs/project/website.md), drawn from the canvas
   "Ordinal website & UCA CAD": the HUD's Cold Civic Minimalism at page
   size (docs/design/design-bible.md). Charcoal, off-white and grey; the
   1.5 px vertical rule marks what is current; desaturated accents that
   each mean one thing. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url("fonts/barlowcondensed_medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 400; src: url("fonts/barlowsemicondensed_regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; src: url("fonts/barlowsemicondensed_medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Space Mono"; font-weight: 400; src: url("fonts/space_mono_regular.ttf") format("truetype"); font-display: swap; }

:root {
    --canvas: #0e1012;
    --figure: #131618;
    --strong: #e3e6e6;
    --body: #cdd2d3;
    --label: #8e969a;
    --rule: rgba(214, 220, 223, .72);
    --faint: rgba(205, 212, 216, .16);
    --normal: #86a08a;
    --attention: #b99c62;
    --danger: #a8665f;
    --structure: #8795a1;
    --sans: "Barlow Semi Condensed", "Segoe UI", system-ui, sans-serif;
    --caps: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --mono: "Space Mono", ui-monospace, Consolas, monospace;
    --gutter: clamp(16px, 4vw, 48px);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--body);
    font: 400 18px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--strong); text-underline-offset: 3px; text-decoration-color: var(--faint); }
a:hover { color: #fff; text-decoration-color: var(--rule); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--rule); outline-offset: 3px; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.caps, .eyebrow, .tag {
    font-family: var(--caps);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--label);
}
.eyebrow { letter-spacing: .2em; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0; }
.strong { color: var(--strong); }
.normal { color: var(--normal); }
.attention { color: var(--attention); }
.danger { color: var(--danger); }
.structure { color: var(--structure); }
.dim { color: var(--label); }

/* The vertical rule: 1.5 px, text 14 px to its right, in the block's state. */
.ruled { border-left: 1.5px solid var(--rule); padding-left: 14px; }
.ruled.normal { border-left-color: var(--normal); }
.ruled.attention { border-left-color: var(--attention); }
.ruled.danger { border-left-color: var(--danger); }
.ruled.faint { border-left-color: var(--faint); }
.unruled { padding-left: 15.5px; }

/* Header and footer --------------------------------------------------------------------- */

.launch-banner {
    border-bottom: 1px solid rgba(185, 156, 98, .35);
    background: rgba(185, 156, 98, .12);
    text-align: center;
}
.launch-banner a {
    display: block; padding: 12px 0;
    font: 500 15px/1.5 var(--caps); letter-spacing: .14em;
    color: var(--strong); text-decoration: none;
}
.launch-banner a:hover { text-decoration: underline; }

.site-head { border-bottom: 1px solid var(--faint); }
.site-head .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 32px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 44px; height: 44px; }
.brand b { font: 500 22px/1 var(--caps); letter-spacing: .28em; color: var(--strong); }
.brand span { font: 12px var(--mono); color: var(--label); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 26px; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-left: 12px;
    border-left: 1.5px solid transparent; text-decoration: none;
    font: 500 14px/1 var(--caps); letter-spacing: .18em; color: var(--label);
}
.site-nav a:hover { color: var(--strong); }
.site-nav a[aria-current="page"] { border-left-color: var(--rule); color: var(--strong); }
.site-nav svg { width: 12px; height: 14px; flex: none; }

.site-foot { border-top: 1px solid var(--faint); }
.site-foot .wrap {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px;
    padding-top: 40px; padding-bottom: 48px;
}
.marks { display: flex; flex-wrap: wrap; align-items: center; }
.marks span { padding: 0 16px; border-left: 1px solid var(--rule); }
.marks span:last-child { height: 14px; padding: 0; }
.site-foot p { max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--label); }

/* Rows that are links: the rule appears on hover; the current one carries it. */
.crow {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 52px; padding-left: 14px; border-left: 1.5px solid transparent;
    text-decoration: none; font-size: 22px; color: var(--body);
}
.crow:hover { box-shadow: inset 1.5px 0 0 var(--rule); color: var(--strong); }
.crow.current { border-left-color: var(--rule); color: var(--strong); }
.crow .tag { flex: none; }
.crows { display: flex; flex-direction: column; gap: 6px; }

/* Home: the hero and the server --------------------------------------------------------- */

.hero {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 64px;
    padding-top: 24px; padding-bottom: 72px;
}
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero h1 {
    position: relative; aspect-ratio: 1834 / 495; overflow: hidden;
    max-width: 760px; margin: 0 0 28px; line-height: 0;
}
/* Exclude the supplied logo's transparent border when aligning its visible edges. */
.hero-logo {
    position: absolute; left: -5.288986%; top: -19.595960%;
    display: block; width: 110.577972%; max-width: none; height: auto;
}
.lede { max-width: 620px; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.hero .crows { margin-top: 44px; max-width: 420px; }

.hero-side {
    flex: 1 1 360px; max-width: 400px; min-width: 0;
    display: flex; flex-direction: column; gap: 28px;
}
.discord-widget { width: 100%; }
.discord-widget iframe { display: block; width: 100%; height: 340px; border: 0; }
.discord-fallback { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.status { width: 100%; min-width: 0; }
.status-head { margin-bottom: 22px; }
.status-head .big { font-size: 26px; line-height: 1.25; color: var(--strong); }
.facts { border-bottom: 1px solid var(--faint); }
.facts > div { display: flex; gap: 16px; align-items: center; min-height: 48px; border-top: 1px solid var(--faint); }
.facts dt { width: 92px; flex: none; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.copy {
    margin-left: auto; flex: none; min-height: 44px; padding: 0 0 0 12px;
    background: none; border: 0; cursor: pointer;
}
.copy.done { color: var(--normal); }

.day-strip { border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.day-strip ul {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
    padding-top: 16px; padding-bottom: 16px; letter-spacing: .16em;
}
.day-strip b { font-weight: 500; font-size: 15px; letter-spacing: .04em; color: var(--strong); margin-right: 4px; }
.day-strip b.danger { color: var(--danger); }

.shot { padding-top: 72px; }
.shot .frame {
    position: relative; aspect-ratio: 21 / 8; min-height: 200px; background: var(--figure);
    display: flex; align-items: center; justify-content: center;
}
.shot .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.shot .frame i { position: absolute; z-index: 1; width: 16px; height: 16px; border: 0 solid rgba(214, 220, 223, .5); }
.shot .frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.shot .frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.shot .frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.shot .frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.shot figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.shot figcaption span:last-child { font-size: 16px; color: var(--label); }

/* Home: sections ------------------------------------------------------------------------- */

.band { border-top: 1px solid var(--faint); }
.section { padding-top: 112px; padding-bottom: 112px; }
.section h2 {
    margin: 14px 0 16px; max-width: 760px;
    font: 500 clamp(36px, 4.4vw, 54px)/1.04 var(--caps); color: var(--strong);
}
.section h2.spaced { margin-bottom: 56px; }
.section .intro { max-width: 640px; margin-bottom: 56px; font-size: 20px; }
.section .intro.tight { margin-bottom: 48px; }
.pillars { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.pillars > div { flex: 1 1 440px; min-width: 0; }
.pillars p { margin-top: 6px; font-size: 20px; }

.timeline { display: flex; gap: 3px; }
.timeline > div { min-width: 0; }
.timeline i { display: block; height: 6px; background: var(--faint); }
.timeline span { display: block; margin-top: 10px; font: 14px var(--caps); }
.timeline .ration i { background: var(--normal); }
.timeline .shift i { background: rgba(205, 212, 216, .55); }
.timeline .daylight i { background: rgba(205, 212, 216, .32); }
.timeline .evening i { background: rgba(205, 212, 216, .18); }
.timeline .curfew i { background: var(--danger); }
.grow-10 { flex: 10 1 0; } .grow-15 { flex: 15 1 0; } .grow-20 { flex: 20 1 0; } .grow-30 { flex: 30 1 0; }

.hours { margin-top: 48px; border-bottom: 1px solid var(--faint); }
.hours li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding: 16px 0; border-top: 1px solid var(--faint); }
.hours .clock { width: 76px; flex: none; font: 500 24px var(--caps); color: var(--strong); }
.hours .clock.danger { color: var(--danger); }
.hours .what { flex: 1 1 360px; min-width: 0; }

.factions { border-bottom: 1px solid var(--faint); }
.factions > div { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--faint); }
.factions .who { flex: 1 1 280px; }
.factions .who .unruled { padding-left: 15.5px; }
.factions .name { font-size: 26px; line-height: 1.25; color: var(--strong); }
.factions .about { flex: 2 1 480px; min-width: 0; font-size: 19px; }
.factions .about .crow { margin-top: 14px; display: inline-flex; min-height: 44px; font-size: 18px; color: var(--strong); }

.join { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.join-main { flex: 999 1 600px; min-width: 0; }
.join-main .intro { margin-bottom: 48px; max-width: 600px; }
.steps { border-bottom: 1px solid var(--faint); }
.steps li { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--faint); }
.steps .n { width: 36px; flex: none; font: 500 16px var(--caps); color: var(--label); }
.steps .body { min-width: 0; flex: 1; }
.steps h3 { font: 500 20px var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--strong); }
.steps p { margin-top: 4px; }
.steps p.lead { margin-bottom: 12px; }
.connect { display: flex; align-items: center; gap: 16px; max-width: 520px; border-bottom: 1px solid var(--rule); }
.connect code { flex: 1; min-width: 0; padding: 10px 0; font: 15px var(--mono); color: var(--strong); overflow-wrap: anywhere; }
.connect .copy { padding: 0; margin: 0; }
.community { flex: 1 1 300px; min-width: 0; max-width: 380px; }
.community .crows { margin-top: 18px; }
.community .crow { font-size: 20px; }
.community p { margin-top: 28px; padding-left: 15.5px; font-size: 16px; color: var(--label); }
.placeholder { color: var(--label); }

/* The city -------------------------------------------------------------------------------- */

.lore { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 120px; }
.lore-head { padding-bottom: 40px; border-bottom: 1px solid var(--faint); }
.lore-head h1 { margin-top: 12px; font: 500 clamp(56px, 7vw, 92px)/.95 var(--caps); color: var(--strong); }
.lore-head .eyebrow { letter-spacing: .24em; }
.lore-body { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 56px; }
.toc { flex: 1 1 220px; min-width: 0; max-width: 280px; }
.toc ul { margin-top: 14px; display: flex; flex-direction: column; }
.toc a {
    display: flex; align-items: center; min-height: 40px; padding-left: 12px;
    border-left: 1.5px solid var(--faint); text-decoration: none; font-size: 17px; color: var(--body);
}
.toc a:hover { box-shadow: inset 1.5px 0 0 var(--rule); color: var(--strong); }
.toc a.current { border-left-color: var(--rule); color: var(--strong); }
.chapters { flex: 999 1 600px; min-width: 0; max-width: 800px; line-height: 1.55; }
.chapter { padding: 56px 0; border-top: 1px solid var(--faint); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter:last-child { padding-bottom: 0; }
.chapter h2 { margin-bottom: 10px; font: 500 14px var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.chapter h2.structure { color: var(--structure); }
.chapter .read { font-size: 21px; }
.chapter .read + .read { margin-top: 16px; }
.chapter .read.first { color: var(--strong); }
.chapter .read.spaced { margin-bottom: 32px; }
.chapter .read.table-intro { margin-bottom: 24px; }
.chapter h3 { margin: 48px 0 8px; padding-left: 15.5px; font: 500 30px var(--caps); color: var(--strong); }
.chapter h3.small {
    margin: 0 0 10px; padding-left: 0;
    font: 500 14px var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--label);
}
.chapter h3 + p.unruled { margin-bottom: 20px; }
.chapter .note { margin-top: 16px; padding-left: 15.5px; font-size: 16px; color: var(--label); }

.scroll { overflow-x: auto; }
table.lined { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 17px; }
table.lined.narrow { min-width: 480px; }
table.lined th, table.lined td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--faint); }
table.lined thead th {
    padding-top: 0; padding-bottom: 10px; border-top: 0;
    font: 500 13px var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--label);
}
table.lined tr > :first-child { padding-left: 15.5px; }
table.lined tr > :last-child { padding-right: 0; }
table.lined tbody tr:last-child > * { border-bottom: 1px solid var(--faint); }
table.lined th[scope="row"] {
    font: 500 13px var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--label);
}
table.lined .rank { font: 500 19px var(--caps); color: var(--strong); }
table.lined .code-cell { padding-left: 0; }
table.lined .code-cell span { display: block; border-left: 1.5px solid var(--faint); padding-left: 14px; color: var(--strong); }
table.lined .code-cell span.normal { border-left-color: var(--normal); }
table.lined .code-cell span.attention { border-left-color: var(--attention); }
table.lined .code-cell span.danger { border-left-color: var(--danger); }
table.lined .tier th {
    padding-top: 22px; font: 500 13px var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--strong);
}
table.lined td.offence { width: 34%; color: var(--strong); }
table.lined .w-120 { width: 120px; } table.lined .w-76 { width: 76px; } table.lined .w-190 { width: 190px; }
table.lined .w-210 { width: 210px; } table.lined .w-130 { width: 130px; }

.divisions { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.divisions > div { flex: 1 1 320px; min-width: 0; }
.divisions b { font: 500 24px var(--caps); letter-spacing: .14em; color: var(--strong); }
.divisions p { margin-top: 2px; }
.callout { margin-top: 32px; }
.callout p { margin-top: 4px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.split > div { flex: 1 1 300px; min-width: 0; }
.split.wide > div { flex-basis: 320px; }
.split p { margin-top: 4px; }
.plain { border-bottom: 1px solid var(--faint); }
.plain li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0 12px 15.5px; border-top: 1px solid var(--faint); }
.plain li > span:first-child.label-cell { width: 120px; flex: none; color: var(--strong); }
.plain.wide li { padding-top: 14px; padding-bottom: 14px; }
.plain.wide li > span:first-child { width: 200px; flex: none; color: var(--strong); }
.plain.wide li > span:last-child { flex: 1 1 280px; min-width: 0; }
.plain-head { padding: 0 0 10px 15.5px; }

@media (max-width: 600px) {
    .site-nav ul { gap: 0 14px; }
    .site-nav a { padding-left: 8px; }
}
