/* ARtefacts Collectibles. Dark museum at night: the objects are the only bright things. Square corners. */
:root {
    --ground: #0B0B0D;
    --ground-2: #0F0F12;
    --surface: #131316;
    --edge: #23221F;
    --edge-2: #3A3833;
    --text: #ECE6DA;
    --text-2: #B9B3A8;
    --muted: #A39E94;
    --accent: #D9B878;
    --accent-hi: #F0D7A2;
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Manrope', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    --page: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
/* Cormorant's default old-style 0 reads as a lower-case o, which turns "Zer0" into "Zero". */
h1, h2, h3, .hex__name, .others a, .title__line { font-variant-numeric: lining-nums; }
/* Blazor moves focus to the h1 after navigation, for screen readers. It is not a control, so no ring. */
h1:focus { outline: none; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: 24px; }
.band { border-top: 1px solid var(--edge); padding-block: 96px; }
.band--deep { background: var(--ground-2); }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.label--quiet { color: var(--muted); letter-spacing: 0.1em; }
.lede { font-size: 19px; color: var(--text-2); max-width: 540px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; }

/* A fact we do not have yet. Loud on purpose so a reviewer cannot miss it. */
.todo { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.02em; color: var(--accent); border: 1px dashed var(--edge-2); padding: 1px 6px; white-space: normal; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid var(--edge-2); background: transparent; color: var(--text); font: 600 16px var(--body); text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.btn--solid:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--ground); }
.btn--line { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* Header and footer */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-block: 24px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
.wordmark__name { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
.wordmark__name b { font-weight: 600; color: var(--accent); }
.wordmark__kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--edge); padding-block: 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 64px; align-items: center; padding-block: 40px 96px; }
.hero__copy { gap: 28px; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); line-height: 0.98; text-wrap: balance; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__coin { align-items: center; gap: 16px; }

/* The 3D coin */
.coin { position: relative; width: min(100%, 520px); aspect-ratio: 1; }
.coin::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); filter: blur(30px); }
.coin model-viewer:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.coin model-viewer { position: relative; width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--accent); --progress-bar-height: 2px; }
.coin__ar { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--ground); }
.coin__faces { display: flex; gap: 8px; justify-content: center; }

/* Honeycomb of six. Seven half-columns on a wide screen (3 + 3, second row offset), five on a phone (2 + 2 + 2). */
.hive-wrap { container-type: inline-size; max-width: 1040px; margin-inline: auto; }
.hive { --g: 12px; --cols: 7; --c: calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols)); --w: calc(2 * var(--c) + var(--g)); --h: calc(var(--w) * 1.1547);
    display: grid; grid-template-columns: repeat(var(--cols), var(--c)); column-gap: var(--g); list-style: none; margin: 0; padding: 0; }
.hive > * { grid-column: span 2; height: var(--h); }
.hive > :nth-child(n+4) { margin-top: calc(var(--h) * -0.25 + var(--g) * 0.866); }
.hive > :nth-child(4) { grid-column: 2 / span 2; }
@container (max-width: 620px) {
    .hive { --cols: 5; --g: 8px; }
    .hive > :nth-child(n+3) { margin-top: calc(var(--h) * -0.25 + var(--g) * 0.866); }
    .hive > :nth-child(4) { grid-column: span 2; }
    .hive > :nth-child(3) { grid-column: 2 / span 2; }
    .hive > :nth-child(5) { grid-column: 1 / span 2; }
}

/* One cell: an edge-coloured hexagon with a surface hexagon inset, so the cell has a 1px hex border. */
.hex { --tint: var(--accent); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%; width: 100%; height: 100%; padding: 16% 12%; text-align: center; text-decoration: none; color: var(--text); clip-path: var(--hex); background: var(--edge); transition: background .2s; }
.hex::before { content: ""; position: absolute; inset: 1.5px; clip-path: var(--hex); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tint) 14%, var(--surface)), var(--surface) 62%); }
.hex > * { position: relative; }
a.hex:hover { background: var(--tint); color: var(--text); }
/* An outline would be clipped by the hexagon, so keyboard focus thickens the hex border instead. */
.hex:focus-visible { outline: none; background: var(--accent-hi); transition: none; }
.hex:focus-visible::before { inset: 5px; }
.hex__numeral { font-family: var(--mono); font-size: clamp(10px, 4.2cqw, 13px); letter-spacing: 0.16em; color: var(--tint); }
.hex__name { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 2.9cqw, 30px); line-height: 1.02; text-wrap: balance; }
.hex__note { font-size: clamp(11px, 1.5cqw, 14px); color: var(--muted); line-height: 1.3; }
.hex__img { width: 46%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
.hex__img--portrait { width: 44%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; filter: grayscale(.35) contrast(1.05); border: 1px solid var(--edge-2); }
.hex__disc { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--tint) 55%, white) 0%, var(--tint) 34%, color-mix(in srgb, var(--tint) 30%, black) 100%); box-shadow: 0 12px 24px rgba(0,0,0,.6), inset 0 0 0 3px rgba(255,255,255,.1); }
.hex--sealed { color: var(--muted); }
.hex--sealed::before { background: var(--ground-2); }
.hex--sealed .hex__name { font-weight: 500; font-style: italic; }
@container (max-width: 620px) {
    .hex { padding: 14% 9%; gap: 4%; }
    .hex__name { font-size: clamp(14px, 4.6cqw, 22px); }
    .hex__numeral { font-size: 10px; }
    .hex__note { display: none; }
    .hex__img { width: 50%; }
}

/* Section heads */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 56px; }
.head h2 { font-size: clamp(36px, 5vw, 56px); }

/* Hero banner: a picture with copy over it. The picture fades into the page ground on every side that meets text. */
.banner { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(400px, 44vw, 640px); border-top: 1px solid var(--edge); overflow: hidden; }
.banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.banner__copy { width: 100%; gap: 24px; padding-block: 48px 64px; }
.banner__slot { position: absolute; inset: 24px; z-index: -2; margin: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding: 16px; border: 1px dashed var(--edge-2); }
.banner--title::after { background: linear-gradient(90deg, rgba(11,11,13,.94) 0%, rgba(11,11,13,.72) 38%, rgba(11,11,13,.12) 78%), linear-gradient(0deg, var(--ground) 0%, rgba(11,11,13,0) 42%); }
.banner--title h1 { font-size: clamp(52px, 9vw, 120px); line-height: 0.95; text-wrap: balance; }
.banner--quote { align-items: center; text-align: center; }
.banner--quote::after { background: radial-gradient(ellipse at center, rgba(11,11,13,.72) 0%, rgba(11,11,13,.5) 60%, rgba(11,11,13,.82) 100%), linear-gradient(0deg, var(--ground) 0%, rgba(11,11,13,0) 30%, rgba(11,11,13,0) 70%, var(--ground) 100%); }
.banner--quote .banner__copy { align-items: center; max-width: 820px; }
.banner--quote blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.25; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.banner__after { color: var(--text-2); text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.band--flush { border-top: 0; }
.banner__h { font-size: clamp(44px, 7vw, 96px); line-height: 0.98; }
.banner__video { z-index: -2; }
@media (prefers-reduced-motion: reduce) { .banner__video { display: none; } }

/* Sister sites */
.kin { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.kin__card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--edge); color: var(--text); text-decoration: none; }
a.kin__card:hover { border-color: var(--accent); color: var(--text); }
.kin__card h3 { font-size: 30px; font-weight: 600; }
.kin__mark img { height: 56px; width: auto; }
.kin__go { color: var(--accent); font-size: 15px; margin-top: auto; }
@media (max-width: 640px) {
    .banner--title::after { background: linear-gradient(0deg, var(--ground) 0%, rgba(11,11,13,.86) 45%, rgba(11,11,13,.3) 100%); }
    .banner__copy { padding-block: 32px 40px; }
}

/* Lore */
.fragment { max-width: 780px; margin-inline: auto; text-align: center; align-items: center; gap: 28px; }
.fragment blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; text-wrap: balance; }
.fragment cite { font-style: normal; }
.lore { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 56px; }
.lore h2 { font-size: 34px; line-height: 1.15; margin-top: 16px; }
.lore__body { gap: 20px; color: var(--text-2); line-height: 1.75; }
.sealed-note { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px dashed var(--edge-2); font-size: 15px; color: var(--muted); }

/* Hold, scan, unlock */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.steps > div { gap: 12px; }
.steps h3 { font-size: 28px; line-height: 1.1; }
.steps p { font-size: 15px; color: var(--muted); }

/* Follow */
.follow { max-width: 640px; margin-inline: auto; text-align: center; align-items: center; gap: 24px; }
.follow h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; text-wrap: balance; }
.signup { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; justify-content: center; }
.signup input[type=email] { flex: 1 1 260px; min-height: 52px; padding: 0 16px; background: var(--ground); border: 1px solid var(--edge-2); color: var(--text); font: 16px var(--body); }
.signup input[type=email]::placeholder { color: #8D887F; }
.signup__msg { width: 100%; font-size: 15px; }
.signup__msg--ok { color: var(--accent); }
.signup__msg--error { color: #E39A6B; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Collection and artefact pages */
.title { padding-block: 56px 80px; gap: 24px; }
.title h1 { font-size: clamp(52px, 9vw, 120px); line-height: 0.95; text-wrap: balance; }
.title__line { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: #CFC8BB; max-width: 760px; }
.crumb { color: var(--muted); text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.crumb:hover { color: var(--text); }
.piece { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 64px; align-items: center; padding-block: 24px 96px; }
.piece__view { align-items: center; gap: 20px; }
.piece__copy { gap: 24px; }
.piece h1 { font-size: clamp(48px, 6.5vw, 88px); }
.piece__portrait { width: min(100%, 460px); aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--edge); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; padding-top: 24px; border-top: 1px solid var(--edge); font-size: 15px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.others a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 20px; border: 1px solid var(--edge); color: var(--text); text-decoration: none; font-family: var(--display); font-size: 22px; }
.others a:hover { border-color: var(--accent); }
.others small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }

@media (max-width: 640px) {
    .band { padding-block: 64px; }
    .head { margin-bottom: 36px; }
    .hero { padding-block: 16px 64px; }
    .wordmark__name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
