/* Ironvein website (decision 118): the game's own ground, ink and nation colours, fonts served from this site, nothing from third parties. */
@font-face { font-family: Archivo; font-weight: 400; font-display: swap; src: url(/site/fonts/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 600; font-display: swap; src: url(/site/fonts/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(/site/fonts/archivo-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(/site/fonts/archivo-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/site/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --ground: #0b0f12; --ground2: #0f1418; --panel: #141b21; --panel2: #1c252d; --line: #2a3640;
  --ink: #eef2f5; --ink2: #aebbc6; --mute: #8593a0;
  --acc: #e88a1a; --acc2: #ffb35c; --acc-ink: #170f05;
  --kova: #e88a1a; --veyra: #20b7a3; --grath: #d04a42;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc2); text-underline-offset: 3px; }
a:hover { color: #ffd29a; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-weight: 800; letter-spacing: .06em; font-size: 20px; color: var(--ink); text-decoration: none; } .logo em { font-style: normal; color: var(--acc); }
.top nav { display: flex; gap: 20px; align-items: center; } .top nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; } .top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 4px; font: 700 16px/1 Archivo, system-ui, sans-serif; text-decoration: none; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); }
.btn:hover { color: var(--ink); border-color: var(--mute); }
.btn.pri { background: linear-gradient(180deg, var(--acc2), var(--acc)); color: var(--acc-ink); border-color: transparent; }
.btn.pri:hover { color: var(--acc-ink); filter: brightness(1.06); }
.btn.lg { min-height: 56px; font-size: 18px; padding: 0 30px; }
.soon { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 30%, #23303b, var(--ground) 70%); }
.hero .art { position: absolute; inset: 0; background: url(/ui/door.webp) 70% 80% / cover no-repeat; opacity: .6; }
.hero .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0f1200 30%, var(--ground) 96%), linear-gradient(90deg, var(--ground) 0%, #0b0f1200 60%); }
.hero .wrap { position: relative; padding-top: clamp(80px, 16vw, 180px); padding-bottom: clamp(56px, 10vw, 110px); }
.hero h1 { margin: 0; font-size: clamp(48px, 10vw, 96px); line-height: .95; font-weight: 800; letter-spacing: .02em; } .hero h1 em { font-style: normal; color: var(--acc); }
.hero p.lead { font-size: clamp(19px, 2.4vw, 23px); max-width: 34ch; color: var(--ink); margin: 18px 0 30px; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* sections */
section { padding: clamp(56px, 9vw, 96px) 0; border-bottom: 1px solid var(--line); }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 20px; margin: 0 0 6px; }
.sub { color: var(--ink2); max-width: 60ch; margin: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.card .body { padding: 18px 20px 22px; } .card p { margin: 0; color: var(--ink2); }
.nation { border-top: 3px solid var(--nc); } .nation .motto { font-style: italic; color: var(--nc); font-weight: 600; margin: 2px 0 8px; }
.nation img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feat h3 { display: flex; align-items: baseline; gap: 10px; } .feat h3 span { font: 500 13px var(--mono); color: var(--acc2); }
.promise { background: var(--ground2); }
.promise ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.promise li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 6px; padding: 14px 16px; color: var(--ink); }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; margin-top: 28px; scroll-snap-type: x mandatory; }
.shots img { height: min(62vh, 560px); width: auto; border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; flex: none; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 600; min-height: 52px; display: flex; align-items: center; }
details p { margin: 0 0 16px; color: var(--ink2); }

/* legal and support pages */
.doc { padding: clamp(40px, 7vw, 72px) 0 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 6px; letter-spacing: -.01em; }
.doc .meta { color: var(--mute); font: 500 13px var(--mono); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; } .doc h3 { margin-top: 22px; }
.doc p, .doc li { color: var(--ink2); } .doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.box { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 8px; padding: 16px 20px; margin: 18px 0; }
.box p { margin: 0; color: var(--ink); }
.tbl { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: 15px; } th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); } th { color: var(--ink); } td { color: var(--ink2); }

/* footer */
footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--mute); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } footer a { color: var(--ink2); text-decoration: none; } footer a:hover { color: var(--ink); }

/* on a narrow screen the three heroes stand below the words instead of being cropped away */
@media (max-width: 700px) { .hero .art { background-size: 175% auto; background-position: 50% 100%; opacity: .7; } .hero .art::after { background: linear-gradient(180deg, var(--ground) 0%, var(--ground) 50%, #0b0f1200 72%, #0b0f1200 88%, var(--ground) 100%); } .hero .wrap { padding-bottom: 260px; } }
