/* The Long Way Round: the site's one stylesheet. The faces are the game's own (Constantia for
   titles, Segoe UI for text) where the system has them; nothing is fetched from elsewhere. */

:root {
    --bg: #0b0d0f;
    --panel: #12161a;
    --line: rgba(242, 237, 224, 0.12);
    --ink: #f2ede0;
    --ink-2: rgba(242, 237, 224, 0.72);
    --ink-3: rgba(242, 237, 224, 0.5);
    --accent: #c7b37a;
    --green: #5fd47a;
    --serif: Constantia, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --wide: 1120px;
    --text: 720px;
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.label {
    font: 600 0.74rem/1 var(--sans);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 1rem;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--text); margin: 0 auto; padding: 0 24px; }

/* --- header and footer --- */

.site-head {
    position: absolute; inset: 0 0 auto 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: var(--wide); margin: 0 auto; padding: 22px 24px;
}
.site-head.solid { position: static; border-bottom: 1px solid var(--line); max-width: none; padding-left: max(24px, calc((100vw - var(--wide)) / 2 + 24px)); padding-right: max(24px, calc((100vw - var(--wide)) / 2 + 24px)); }
.brand { font: 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-head nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.site-head nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }

.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; color: var(--ink-3); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* --- the home page --- */

.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,15,0.55) 0%, rgba(11,13,15,0) 28%, rgba(11,13,15,0) 50%, rgba(11,13,15,0.92) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; }
.hero p.lede { font: 1.35rem/1.5 var(--serif); color: var(--ink-2); max-width: 34ch; margin: 0; }
.status { display: inline-block; margin-top: 28px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; color: var(--ink-2); background: rgba(11,13,15,0.5); }

section.band { padding: 96px 0 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.intro p { color: var(--ink-2); font-size: 1.08rem; }
.intro p.big { font: 1.6rem/1.45 var(--serif); color: var(--ink); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 48px; }
.features div { background: var(--bg); padding: 28px 26px 22px; }
.features h3 { margin-bottom: 0.4em; }
.features p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 48px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--panel); }
.gallery figure.w3 { grid-column: span 3; }
.gallery figure.w2 { grid-column: span 2; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px 12px; color: var(--ink-3); font-size: 0.88rem; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 12px; border: 1px solid var(--line); }
.split p { color: var(--ink-2); }

/* --- text pages --- */

.page { padding: 72px 0 0; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page .meta { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 2.5em; }
.page h2 { font-size: 1.6rem; margin-top: 2.2em; }
.page h3 { margin-top: 1.6em; }
.page p, .page li { color: var(--ink-2); }
.page strong { color: var(--ink); font-weight: 600; }
.page ul, .page ol { padding-left: 1.3em; margin: 0 0 1em; }
.page li { margin-bottom: 0.4em; }
.page code { font: 0.9em/1 Consolas, "Cascadia Mono", monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--ink); overflow-wrap: anywhere; }
kbd { font: 600 0.82em/1 var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 7px; color: var(--ink); background: var(--panel); }

.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); border-radius: 8px; padding: 16px 20px; margin: 1.5em 0; }
.note p:last-child { margin: 0; }

table.data { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink); font-weight: 600; }
table.data td { color: var(--ink-2); }

.centre { text-align: center; padding: 18vh 24px 0; }
.centre p { color: var(--ink-2); }

/* --- narrow screens --- */

@media (max-width: 860px) {
    .intro, .split { grid-template-columns: 1fr; gap: 28px; }
    .features { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery figure.w3, .gallery figure.w2 { grid-column: auto; }
    section.band { padding-top: 72px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .site-head { flex-direction: column; align-items: flex-start; }
    .site-head nav { justify-content: flex-start; gap: 16px; }
    .hero .wrap { padding-bottom: 48px; }
    .table-scroll { overflow-x: auto; }
}
