/* Vanira website: the Chart Room brand (Louis's pick, 2026-11-16; guide: design-reference/brand, Brand Rules page).
   Light only. Sand pages, parchment panels, bark text, ONE deep-gold button per screen, deep-teal links, needle red
   only as the "live" dot. Titles in Skranji Bold (words only), text and every number in Nunito
   (Louis's type pick, 2026-11-17).
   The page is a chart of the world: a compass scale between the parts, a map pin above each heading, and the world's
   pictures in one tabbed gallery. Painted objects in assets/art are drawn in the logo's own style (art/chatgpt). The logo is a drawing: never restyled, never on a plate. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2?v=c67f9657") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Skranji";
  src: url("fonts/skranji-700-latin.woff2?v=68dc7385") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* "Vanira Digits" holds Nunito's digits and money/maths symbols and nothing else. It goes FIRST in the title stack,
   so a number inside a title is drawn in Nunito and is still read exactly (Louis's rule, 2026-11-14). The same
   family and range as design-reference/brand/brand.py. */
@font-face {
  font-family: "Vanira Digits";
  src: url("fonts/nunito-num-900.woff2?v=26c16af8") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0023-0025, U+0028-003A, U+003C-003E, U+005B, U+005D, U+007B, U+007D-007E, U+00A2-00A3, U+00A5, U+00B0-00B1, U+00B7, U+00D7, U+00F7, U+2013-2014, U+20AC, U+2212;
}

:root {
  color-scheme: light;
  --bg: #F1E7D2;        /* Sand: the page */
  --panel: #FAF4E6;     /* Parchment: panels and cards */
  --raise: #FFFFFF;
  --beige: #E3CFAA;     /* the logo's ground: bands */
  --tan: #D1AC89;       /* light brown: the deepest band */
  --ink: #270D01;       /* Bark: text */
  --muted: #6B5646;     /* Soft bark: captions */
  --line: #DCCBA8;      /* borders */
  --brand: #FDAC26;     /* Deep gold: THE button */
  --gold: #FEC545;      /* highlights */
  --link: #0B5F5A;      /* Deep teal: links, labels, small icons */
  --soft: #F3DDB4;      /* Wheat: chips */
  --red: #BB2A10;       /* Needle red: the live dot only */
  --shadow: 0 3px 0 rgba(39, 13, 1, .12);
  --display: "Vanira Digits", "Skranji", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); font-weight: 600; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.14; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0; }
.sub { color: var(--muted); font-size: 19px; max-width: 60ch; margin-top: 12px; }
.num { font-family: var(--body); font-weight: 800; font-variant-numeric: tabular-nums; }

/* the coordinate line above a heading: a gold map pin, a teal label, then a reading in plain numbers */
.coord, .eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font: 800 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.coord::before, .eyebrow::before {
  content: ""; width: 9px; height: 9px; flex: none; transform: rotate(45deg);
  background: var(--brand); box-shadow: 0 0 0 1.5px var(--ink);
}
.coord b { color: var(--link); font-weight: 800; }
.eyebrow { color: var(--link); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--panel); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 16px; }
/* The full logo, never narrower than 110 px (brand rule), so the bar is as high as that needs. */
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 66px; width: auto; }
section[id] { scroll-margin-top: 44px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font: 700 15.5px/1 var(--body); color: var(--link); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.nav a:hover { background: var(--soft); }
.nav a.cta, .nav a.cta:hover {
  margin-left: 8px; padding: 11px 16px; color: var(--ink); background: var(--raise);
  outline: 1px solid var(--line); outline-offset: -1px; box-shadow: var(--shadow);
}
.nav a.cta:hover { outline-color: var(--link); }

/* ---------- buttons: one gold one per screen, the rest plain ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1.2 var(--body); color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--raise); border: 0; border-radius: 6px; padding: 13px 20px;
  outline: 1px solid var(--line); outline-offset: -1px; box-shadow: var(--shadow);
}
.btn:hover { outline-color: var(--link); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(39, 13, 1, .12); }
.btn.primary { background: var(--brand); outline: 0; box-shadow: 0 3px 0 rgba(39, 13, 1, .34); }
.btn.primary:hover { background: var(--gold); }
.btn.primary:active { box-shadow: 0 1px 0 rgba(39, 13, 1, .34); }
.btn.done, .btn.done:hover { background: var(--link); color: #fff; }
.btn.off { background: var(--soft); color: var(--muted); cursor: default; outline: 1px solid var(--line); box-shadow: none; }
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }

/* ---------- the compass scale: the ring of the logo's dial, laid out flat ---------- */
.scale, .ledge {
  position: relative; height: 22px;
  background:
    linear-gradient(90deg, var(--gold) 2px, transparent 2px) 50% 50% / 90px 12px repeat-x,
    linear-gradient(90deg, rgba(254, 197, 69, .75) 2px, transparent 2px) 50% 50% / 18px 6px repeat-x,
    var(--link);
  border-block: 3px solid var(--brand);
  box-shadow: 0 -1.5px 0 var(--ink), 0 1.5px 0 var(--ink);
}
.scale.rose { z-index: 2; }
.scale.rose::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%);
  background: url("art/compass.webp?v=fc7caa0e") center / contain no-repeat;
  filter: drop-shadow(0 3px 0 rgba(39, 13, 1, .18));
}

/* ---------- hero: the homepage picture with the logo on it. Swap the picture by replacing assets/img/hero.jpg ---------- */
.hero { position: relative; height: clamp(360px, 64vh, 660px); background: #9CC7E8; overflow: hidden; }
.hero .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 50% 50%); }
.hero .wrap { position: relative; height: 100%; display: grid; place-items: center; padding-bottom: 76px; }
.hero .logo { width: min(520px, 82%); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .38)); }

.join { position: relative; z-index: 2; margin: -92px auto 0; width: min(880px, 100%); padding: 30px 32px 30px; text-align: center; }
.join .lead { color: var(--muted); font-size: 19px; max-width: 56ch; margin: 12px auto 0; }
.server {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; text-align: left;
  width: min(560px, 100%); margin: 24px auto 0; padding: 12px 14px;
  background: var(--raise); border: 1px solid var(--line); border-radius: 8px;
}
.server .icon { width: 56px; height: 56px; object-fit: contain; }
.server .l1 { display: flex; align-items: center; gap: 10px; }
.server .name { font-family: var(--display); font-weight: 700; font-size: 19px; flex: 1; }
.server .count { display: inline-flex; align-items: center; gap: 7px; font: 800 14px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); }
.server .count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.server .motd { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.4; font-variant-numeric: tabular-nums; }
.server .motd span { color: var(--link); }
.bars { display: none; }

.address { display: flex; gap: 12px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin: 16px auto 0; }
.address .ip {
  font: 700 19px/1.2 var(--body); background: var(--raise); padding: 12px 18px; border-radius: 6px;
  border: 1px solid var(--line); user-select: all; overflow-wrap: anywhere; display: flex; align-items: center;
}
.notice { display: inline-block; margin-top: 18px; padding: 7px 14px; border-radius: 20px; background: var(--soft); color: var(--ink); font-size: 14.5px; font-weight: 600; }

/* ---------- sheets ---------- */
section { position: relative; padding: 84px 0 88px; }
.layer.overworld, .layer.plain { background: var(--bg); }
.layer.end, .layer.paper { background: var(--panel); }
.layer.first { padding-top: 64px; }
.head { margin-bottom: 34px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.split .sub { margin-top: 0; }

/* ---------- screenshots: a picture pinned to the chart ---------- */
.shots { display: grid; gap: 22px; }
.shots.s3 { grid-template-columns: repeat(3, 1fr); }
.shots.s2 { grid-template-columns: 1fr 1fr; }
.shots.more { margin-top: 22px; }
.shot {
  margin: 0; display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 0;
  box-shadow: var(--shadow);
}
.shot img, .shot .ph { width: 100%; flex: 1; object-fit: cover; border-radius: 5px; aspect-ratio: 16 / 9; }
.shot figcaption {
  display: flex; align-items: center; gap: 9px; padding: 10px 6px 11px;
  font: 700 15px/1.3 var(--body); color: var(--ink);
}
.shot figcaption::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: var(--link); }
.ph { display: grid; place-items: center; text-align: center; padding: 20px; background: var(--soft); color: var(--muted); font-weight: 600; }
.ph .soon { font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.ph .what { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); max-width: 22ch; }

/* ---------- the world gallery: one panel, a tab for each part of the world ---------- */
.gallery { padding: 18px 22px 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  font: 700 16px/1 var(--body); color: var(--link); cursor: pointer;
  background: var(--raise); border: 0; border-radius: 6px; padding: 13px 20px;
  outline: 1px solid var(--line); outline-offset: -1px; box-shadow: var(--shadow);
}
.tabs button:hover { outline-color: var(--link); }
.tabs button[aria-selected="true"] { background: var(--link); color: #fff; outline: 0; box-shadow: 0 3px 0 rgba(39, 13, 1, .34); }
.tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pane .about { color: var(--muted); font-size: 18px; margin-bottom: 18px; }
.pane .about strong { color: var(--ink); font-weight: 800; }
.gallery .shot { background: var(--raise); }

/* ---------- tier chips (item tiers only) ---------- */
.tiers { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 14px; }
.tier { font: 800 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 5px 7px; border-radius: 3px; background: #6F756F; }
.tier.rare { background: #1F63D6; } .tier.epic { background: #D8521C; } .tier.mythic { background: #A93AF0; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 22px 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.card .art { width: 92px; height: 92px; object-fit: contain; margin: -2px 0 14px -4px; filter: drop-shadow(0 3px 0 rgba(39, 13, 1, .14)); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.promise span { font: 800 12.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--soft); color: var(--ink); padding: 9px 12px; border-radius: 4px; }

code { font: 700 .95em/1.2 var(--body); background: var(--raise); color: var(--ink); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); overflow-wrap: anywhere; }

/* ---------- store band ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { margin-top: 10px; padding-left: 24px; position: relative; color: var(--muted); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--link); }
.display {
  margin: 0; min-width: 0; display: grid; justify-items: center; gap: 0;
  background: radial-gradient(ellipse at 50% 88%, var(--soft) 0, var(--raise) 72%);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 22px 18px 0; overflow: hidden;
}
.display img { height: min(380px, 60vw); width: auto; object-fit: contain; }
.display figcaption { width: calc(100% + 36px); margin-top: 6px; padding: 11px 16px; background: var(--panel); border-top: 1px solid var(--line); font: 700 15px/1.3 var(--body); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }

/* ---------- inner pages ---------- */
.pagehead { padding: 56px 0 10px; }
.pagehead p { color: var(--muted); font-size: 19px; margin-top: 12px; max-width: 60ch; }
.center { text-align: center; }
.center .sub, .center .row { margin-inline: auto; justify-content: center; }
.lost { width: min(300px, 70%); margin: 0 auto 22px; filter: drop-shadow(0 4px 0 rgba(39, 13, 1, .14)); }
.doc { width: min(760px, 100% - 40px); margin: 0 auto; padding: 16px 0 84px; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0; }
.doc .updated { color: var(--muted); font-size: 15px; }
.draft { background: var(--soft); color: var(--ink); padding: 12px 16px; font-weight: 600; margin: 18px 0 0; border-radius: 8px; border: 1px solid var(--line); }
.doc mark { background: #FCE2A0; padding: 0 3px; border-radius: 2px; }

/* ---------- footer ---------- */
footer { background: var(--beige); padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
footer .who { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
footer .who img { width: 36px; height: 36px; object-fit: contain; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer .links a { font: 700 15.5px/1.4 var(--body); text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer .legal { grid-column: 1 / -1; font-size: 12px; letter-spacing: .04em; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .grid.four, .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { width: min(1120px, 100% - 32px); }
  .nav a:not(.cta) { display: none; }
  section { padding: 60px 0 64px; }
  .hero { height: clamp(300px, 52vh, 460px); }
  .hero .wrap { padding-bottom: 60px; }
  .join { margin-top: -72px; padding: 24px 18px 24px; }
  .join .lead, .sub { font-size: 17.5px; }
  .shots.s3, .shots.s2, .band { grid-template-columns: 1fr; }
  .gallery { padding: 14px 12px 12px; }
  .tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; padding-bottom: 14px; margin-bottom: 14px; }
  .tabs button { padding: 12px 6px; font-size: 15px; }
  .pane .about { font-size: 16.5px; }
  .band { gap: 30px; }
  .scale.rose::after { width: 76px; height: 76px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tabs { grid-template-columns: 1fr 1fr; }
  .grid.four, .grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .card .art { width: 72px; height: 72px; margin: 0; grid-row: span 3; }
  .card:not(:has(.art)) { display: block; }
  .server { grid-template-columns: 44px 1fr; }
  .server .icon { width: 44px; height: 44px; }
  .address .ip { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
