/* Thrive: Alaska site. The game's UI language: dark gunmetal and brushed-steel panels, thin brass edge lines,
   warm cream text, and the vitals colours (health red, stamina green, food amber, water blue, rest yellow) as accents. */
:root {
  --bg: #101214;
  --bg-2: #15181b;
  --panel: #1b1e21;
  --panel-2: #23272b;
  --steel: #2c3135;
  --line: #353b40;
  --line-hi: #4a5157;
  --cream: #e0d6b8;
  --ink: #e0d6b8;
  --muted: #a7a08b;
  --dim: #7f7a6a;
  --brass: #c9a24a;
  --brass-hi: #e6c77a;
  --brass-lo: #8a6d2c;
  --v-health: #c0564c;
  --v-stamina: #79a35d;
  --v-food: #cf8f45;
  --v-water: #5f97c2;
  --v-rest: #d2bb52;
  --v-cold: #6f8fb8;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 36px -22px rgba(0, 0, 0, .9);
  --font-display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #f4dda0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brushed steel: a fine horizontal grain over a soft vertical light. */
.steel {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #262a2e, #1a1d20 60%, #16191b);
}

/* Header */
header.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(201, 162, 74, .35), 0 10px 24px -14px #000; }
header.bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.brand b { color: var(--brass); font-weight: 700; }
.brand:hover { color: var(--cream); }
nav.links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
nav.links a { color: var(--cream); text-decoration: none; padding: 7px 11px; border-radius: 6px; font-weight: 500; font-size: .98rem; white-space: nowrap; }
nav.links a:hover { background: rgba(255, 255, 255, .05); color: var(--brass-hi); }
nav.links a[aria-current="page"] { color: var(--brass-hi); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 6px 6px 0 0; }
nav.links a.studio { color: var(--muted); font-size: .9rem; }
.menu-btn { display: none; margin-left: auto; font: 600 .95rem var(--font-body); color: var(--cream); background: var(--panel-2); border: 1px solid var(--line-hi);
  border-radius: 6px; padding: 7px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  nav.links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px;
    background: #16191c; border-bottom: 1px solid var(--brass-lo); }
  header.bar.open nav.links { display: flex; }
  nav.links a { padding: 11px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brass); padding-left: 12px; }
}

/* Buttons and small labels */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 7px; font: 600 1rem var(--font-body); text-decoration: none;
  border: 1px solid var(--line-hi); color: var(--cream); background: linear-gradient(180deg, #30353a, #22262a); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.btn:hover { color: var(--brass-hi); border-color: var(--brass-lo); }
.btn.primary { color: #1a1408; border-color: #e0bd6a; background: linear-gradient(180deg, #e6c77a, #c09234); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px -10px rgba(201, 162, 74, .7); }
.btn.primary:hover { color: #1a1408; background: linear-gradient(180deg, #f0d48c, #cc9f40); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); }
.pill { display: inline-block; font: 600 .74rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--brass-lo); color: var(--brass-hi); background: rgba(201, 162, 74, .08); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 64ch; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -2; }  /* top-anchored: the hero art carries its title at the top */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 18, 20, .25) 0%, rgba(16, 18, 20, .15) 30%, rgba(16, 18, 20, .82) 72%, var(--bg) 100%),
              linear-gradient(90deg, rgba(16, 18, 20, .55), transparent 60%); }
.hero .wrap { padding-top: 120px; padding-bottom: 56px; width: 100%; }
.hero h1 { font-size: clamp(3rem, 10vw, 6.4rem); text-transform: uppercase; letter-spacing: .02em; line-height: .92; margin: 0 0 18px; text-shadow: 0 3px 24px rgba(0, 0, 0, .55); }
.hero h1 span { color: var(--brass); background: linear-gradient(180deg, #f2d891, #c39432); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.2; max-width: 30ch; margin: 0 0 14px; }
.hero .sub { color: #cfc6a9; max-width: 56ch; font-size: 1.08rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.status { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(201, 162, 74, .3); font-size: .93rem; color: var(--muted); }
.status b { color: var(--cream); font-weight: 600; }
.status span { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--v-rest); box-shadow: 0 0 10px var(--v-rest); }

/* Sections */
section { padding: 84px 0; position: relative; }
section.alt { background: var(--bg-2); border-top: 1px solid #0a0b0c; border-bottom: 1px solid #0a0b0c; }
.section-head { margin-bottom: 36px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .split.flip > :first-child { order: 2; } }

/* Framed picture: the UI's bevelled gunmetal frame with a brass hairline. */
.frame { margin: 0; border-radius: var(--radius); padding: 7px; background: linear-gradient(180deg, #3a3f44, #1d2023); box-shadow: 0 0 0 1px #000, 0 26px 50px -26px #000; }
.frame img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(201, 162, 74, .35); width: 100%; }
.frame figcaption { font-size: .86rem; color: var(--dim); padding: 8px 4px 2px; }

/* Panels */
.panel { border-radius: var(--radius); border: 1px solid #0b0c0d; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .03) inset; position: relative; }
.panel::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 162, 74, .22); border-radius: 7px; pointer-events: none; }

/* Storm facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.fact { padding: 20px 22px; }
.fact h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brass-hi); margin-bottom: 6px; }
.fact p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Pillars: five cards, each keyed to a vitals colour. */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pillar { padding: 24px 22px 22px; overflow: hidden; }
.pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c, var(--brass)); border-radius: var(--radius) var(--radius) 0 0; }
.pillar .num { font: 500 .78rem var(--font-data); color: var(--c, var(--brass)); letter-spacing: .1em; }
.pillar h3 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 8px; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }
.cells { display: flex; gap: 3px; margin-top: 16px; }
.cells i { flex: 1; height: 7px; border-radius: 1px; background: var(--c, var(--brass)); opacity: .9; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.cells i.off { background: #0c0d0e; opacity: 1; }
.supporting { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; color: var(--muted); font-size: .98rem; padding: 0; list-style: none; }
.supporting li { padding-left: 18px; position: relative; }
.supporting li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--brass); }
.supporting b { color: var(--cream); font-weight: 600; }

/* Feature rows */
.feature + .feature { margin-top: 84px; }
.feature ul { padding-left: 0; list-style: none; margin: 14px 0 0; }
.feature li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.feature li:last-child { border-bottom: 1px solid var(--line); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-radius: 1px; background: var(--c, var(--brass)); box-shadow: 0 0 0 1px #000; }
.feature li b { color: var(--cream); font-weight: 600; }
.kit-bar { width: auto; height: 34px; max-width: 100%; margin: 0 0 14px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #0b0c0d; background: var(--panel); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th { text-align: left; font: 600 .74rem var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--brass-hi); padding: 12px 16px;
  background: linear-gradient(180deg, #2a2f33, #212528); border-bottom: 1px solid var(--brass-lo); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
td:first-child { color: var(--cream); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--font-data); font-size: .88rem; white-space: nowrap; }
.season-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* Map */
.map-card { padding: 7px; }
.map-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 22px 0 0; }
.map-figures div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.map-figures b { display: block; font: 600 1.8rem/1.05 var(--font-display); color: var(--brass-hi); }
.map-figures span { font-size: .86rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.note { font-size: .88rem; color: var(--dim); margin-top: 14px; }

/* Multiplayer modes */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mode { padding: 24px 22px; }
.mode .count { font: 700 3rem/1 var(--font-display); color: var(--cream); }
.mode .count small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: .04em; }
.mode h3 { text-transform: uppercase; letter-spacing: .05em; color: var(--brass-hi); font-size: 1.2rem; margin: 10px 0 6px; }
.mode p { margin: 0; color: var(--muted); font-size: .97rem; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin-top: 28px; }
.setting { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.setting span { color: var(--muted); font-size: .95rem; }
.setting b { font: 500 .82rem var(--font-data); color: var(--cream); white-space: nowrap; }
.setting b.off { color: var(--v-cold); }

/* Early Access */
.ea { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ea .panel { padding: 24px 22px; }
.ea h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 1.25rem; }
.ea p { color: var(--muted); margin: 0; }
.cta { text-align: center; padding: 70px 0 84px; }
.cta p { margin-left: auto; margin-right: auto; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Roadmap timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--brass), var(--line) 30%, var(--line) 85%, transparent); }
.timeline > li { position: relative; padding: 0 0 26px 52px; }
.timeline .dot { position: absolute; left: 6px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: #121416; border: 2px solid var(--line-hi); }
.timeline .now .dot { border-color: var(--v-rest); box-shadow: 0 0 0 4px rgba(210, 187, 82, .15), 0 0 14px rgba(210, 187, 82, .6); }
.timeline .done .dot { background: var(--v-stamina); border-color: var(--v-stamina); }
.timeline .phase { padding: 18px 22px; }
.timeline .phase h3 { font-size: 1.45rem; text-transform: uppercase; letter-spacing: .04em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.timeline .phase h3 small { font: 500 .8rem var(--font-data); color: var(--dim); letter-spacing: .06em; }
.timeline .phase p { color: var(--muted); margin: 0; }
.timeline .phase ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.timeline .phase li { margin: 3px 0; }
.timeline .gate { position: relative; padding: 0 0 26px 52px; }
.timeline .gate .diamond { position: absolute; left: 9px; top: 6px; width: 14px; height: 14px; transform: rotate(45deg); background: var(--brass); box-shadow: 0 0 10px rgba(201, 162, 74, .6); }
.timeline .gate p { margin: 0; font-weight: 600; color: var(--brass-hi); font-size: .98rem; }
.timeline .gate p span { color: var(--dim); font-weight: 500; text-transform: uppercase; font-size: .74rem; letter-spacing: .14em; margin-right: 8px; }
.timeline .later .dot { border-style: dashed; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; margin: 0 0 30px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-hi); }
.legend i.now { border-color: var(--v-rest); box-shadow: 0 0 8px rgba(210, 187, 82, .6); }
.legend i.done { background: var(--v-stamina); border-color: var(--v-stamina); }
.legend i.gate { border-radius: 0; transform: rotate(45deg) scale(.85); background: var(--brass); border-color: var(--brass); }

/* Devlog */
.post { padding: 30px clamp(18px, 4vw, 40px) 34px; max-width: 860px; }
.post + .post { margin-top: 24px; }
.post time { font: 500 .82rem var(--font-data); color: var(--brass-hi); letter-spacing: .06em; }
.post h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 6px 0 14px; }
.post h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brass-hi); margin: 26px 0 8px; }
.post p, .post li { color: #cbc3a8; }
.post ul { padding-left: 20px; }
.post li { margin: 5px 0; }
.post .frame { margin: 20px 0; }
.page-head { padding: 70px 0 38px; background: radial-gradient(900px 300px at 20% 0%, rgba(201, 162, 74, .1), transparent 70%); border-bottom: 1px solid #0a0b0c; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }

/* Footer */
footer.foot { border-top: 1px solid #000; box-shadow: 0 -1px 0 rgba(201, 162, 74, .25); padding: 36px 0 44px; color: var(--muted); font-size: .94rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
footer.foot .grow { flex: 1 1 260px; display: flex; align-items: center; gap: 12px; }
footer.foot .grow img { width: 30px; height: 30px; }
footer.foot a { color: var(--cream); text-decoration: none; }
footer.foot a:hover { color: var(--brass-hi); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .reveal:nth-child(2) { animation-delay: .06s; } .hero .reveal:nth-child(3) { animation-delay: .12s; }
  .hero .reveal:nth-child(4) { animation-delay: .18s; } .hero .reveal:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .btn, .frame img, nav.links a { transition: color .15s, background .15s, border-color .15s, transform .25s; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .feature + .feature { margin-top: 60px; }
  .hero { min-height: 640px; }
  .hero .wrap { padding-bottom: 40px; }
  th, td { padding: 10px 12px; }
}

/* Art slots: the pillar tiles and the hero wordmark (img/logo.png appears once the art exists; text title until then). */
.pillar .tile { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin: 0 0 16px; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(201, 162, 74, .25); }
.hero h1 img.logo { width: min(640px, 92%); height: auto; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .6)); }
.hero h1 img.logo + .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone: darker hero for legible text over bright sky; wide tables scroll inside their frame; pillars go side by side. */
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(16, 18, 20, .35) 0%, rgba(16, 18, 20, .6) 35%, rgba(16, 18, 20, .9) 70%, var(--bg) 100%); }
  .table-wrap table { min-width: 640px; }
  .pillar { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .pillar .tile { grid-row: 1 / span 2; margin: 0; }
  .pillar .num { align-self: end; }
  .pillar p, .pillar .cells { grid-column: 1 / -1; }
  .pillar p { margin-top: 12px; }
}

/* Hero art carries its own title (user, 2026-10-18): never crop it. Wide screens show the whole 16:9 picture with the
   text along its lower part; narrower screens put the picture on top and the text below it. */
@media (min-width: 1200px) {
  .hero { min-height: 0; aspect-ratio: 16 / 9; max-height: none; }
  .hero > picture img, .hero > img { object-fit: cover; object-position: 50% 0; }
  .hero .wrap { padding-top: 0; }
}
@media (max-width: 1199px) {
  .hero { display: block; min-height: 0; }
  .hero > picture { display: block; margin-top: 56px; }
  .hero > picture img, .hero > img { position: static; width: 100%; height: auto; object-fit: contain;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 8px; }
}
