/* CheeseSMP — cheesesmp.top */

:root {
  --bg:        #0e0d0b;
  --bg-alt:    #131210;
  --line:      #2a2722;
  --line-soft: #1e1c19;
  --ink:       #ede8dd;
  --ink-dim:   #a49d90;
  --ink-mute:  #736c60;
  --amber:     #f0ae33;
  --amber-hi:  #ffc861;
  --blood:     #cf4630;
  --radius:    4px;
  --wrap:      1180px;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { 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(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint warm grain so the flats don't read as plastic */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

code, .mono { font-family: var(--f-mono); font-size: .9em; letter-spacing: -.01em; }

code {
  background: #1c1a16;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .1em .38em;
  color: var(--amber-hi);
  white-space: nowrap;
}

.muted { color: var(--ink-mute); }
.small { font-size: .82rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--amber); color: #000; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── top bar ──────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 13, 11, .88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-in {
  display: flex; align-items: center; gap: 28px;
  height: 62px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 800; font-size: 1.06rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand img { image-rendering: pixelated; border-radius: 3px; }
.brand-b { color: var(--amber); }

.nav { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; }
.nav a { color: var(--ink-dim); transition: color .14s ease; }
.nav a:hover { color: var(--ink); }

.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .topbar-right { margin-left: 0; }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-dim); }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #58c05a;
  box-shadow: 0 0 0 0 rgba(88, 192, 90, .55);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}
.dot-off { background: var(--ink-mute); animation: none; box-shadow: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(88, 192, 90, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(88, 192, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 192, 90, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font: inherit; font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.btn-sm { padding: 7px 13px; font-size: .84rem; }

.btn-copy { background: transparent; border-color: var(--line); color: var(--ink-dim); }
.btn-copy:hover { border-color: #453f36; color: var(--ink); }
.btn-copy.done { color: var(--amber); border-color: #574620; }

.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: #4a443a; background: #1a1815; }

.burger {
  display: none;
  width: 38px; height: 34px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 15px; height: 1.5px; background: var(--ink); transition: transform .18s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.mnav { display: none; flex-direction: column; border-top: 1px solid var(--line-soft); background: var(--bg); }
.mnav a { padding: 13px 24px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); font-size: .95rem; }
.mnav a:last-child { border-bottom: none; }

/* ── hero ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

/* blocky nod to the game, kept quiet */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 68%);
  opacity: .55;
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}

h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--ink-mute);
}

.lede {
  margin: 26px 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.55vw, 1.13rem);
  color: var(--ink-dim);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.ipbox {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--amber);
  color: #17130a;
  border: none; border-radius: var(--radius);
  padding: 10px 10px 10px 18px;
  font: inherit;
  cursor: pointer;
  transition: background .14s ease;
}
.ipbox:hover { background: var(--amber-hi); }
.ipbox-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; opacity: .62;
}
.ipbox-ip { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.ipbox-action {
  font-size: .78rem; font-weight: 700;
  background: rgba(23, 19, 10, .16);
  border-radius: 3px;
  padding: 7px 12px;
}
.ipbox.done .ipbox-action { background: rgba(23, 19, 10, .34); }

.hero-meta {
  margin: 22px 0 0;
  font-size: .78rem;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

/* live readout panel */
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #191713, #141210);
  padding: 20px 22px 8px;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.panel-count { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 12px; }
.count {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.count-of { font-size: .84rem; color: var(--ink-mute); }

.meter { height: 4px; background: #221f1a; border-radius: 2px; overflow: hidden; }
.meter span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi));
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

.panel-rows { margin: 20px 0 0; font-size: .8rem; }
.panel-rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.panel-rows dt { color: var(--ink-mute); letter-spacing: .04em; }
.panel-rows dd { margin: 0; color: var(--ink-dim); text-align: right; }

/* ── ticker ───────────────────────────────────────────────────────── */

.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 44px;
  width: max-content;
  padding: 13px 0;
  animation: slide 48s linear infinite;
}
.ticker-track span {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.ticker-track span::after { content: "·"; margin-left: 44px; color: #332e27; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── sections ─────────────────────────────────────────────────────── */

.sec { padding: clamp(60px, 8vw, 104px) 0; border-bottom: 1px solid var(--line-soft); }
.sec-alt { background: var(--bg-alt); }

.sec-head { margin-bottom: clamp(34px, 5vw, 56px); max-width: 46ch; }
.sec-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.sec-head p { margin: 14px 0 0; color: var(--ink-mute); }

/* features */
.feats { border-top: 1px solid var(--line); }

.feat {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}

.feat-side { display: flex; flex-direction: column; gap: 8px; }
.feat-n { font-size: .78rem; color: #3c362e; font-weight: 700; letter-spacing: .06em; }
.feat-tag {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
}

.feat-body h3 {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.22rem, 2.1vw, 1.55rem);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.feat-body p { margin: 0; color: var(--ink-dim); max-width: 62ch; }

.feat-body ul {
  margin: 20px 0 0; padding: 0; list-style: none;
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feat-body li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--ink-dim);
}
.feat-body li::before {
  content: "";
  position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px;
  background: var(--amber);
  opacity: .75;
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step-n { font-size: .78rem; color: #3c362e; font-weight: 700; letter-spacing: .06em; }
.steps h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em;
}
.steps p { margin: 0; color: var(--ink-dim); max-width: 62ch; }
.steps strong { color: var(--ink); font-weight: 600; }

.join-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: -.01em;
  transition: color .14s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber); }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-mute);
  border-bottom: 1.5px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 22px; }
.faq-a p { margin: 0; color: var(--ink-dim); max-width: 68ch; }

/* prose (about + legal pages) */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 17px; color: var(--ink-dim); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--amber-hi); }
.prose h2 {
  margin: 46px 0 14px;
  font-family: var(--f-display);
  font-weight: 700; font-size: 1.34rem; letter-spacing: -.02em;
  scroll-margin-top: 80px;
}
.prose h3 {
  margin: 30px 0 10px;
  font-family: var(--f-display);
  font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em;
}
.prose ul { margin: 0 0 17px; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-dim);
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; background: var(--amber); opacity: .7;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .92rem;
}
.prose th, .prose td {
  text-align: left; padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.prose th { color: var(--ink); font-weight: 600; width: 34%; }
.prose td { color: var(--ink-dim); }

/* legal page header */
.pagehead { padding: clamp(48px, 7vw, 76px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line-soft); }
.pagehead h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.02; }
.pagehead .eyebrow { margin-bottom: 16px; }
.pagehead .updated { margin: 20px 0 0; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-mute); }

.toc {
  margin: 0 0 8px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-alt);
}
.toc h2 { margin: 0 0 12px !important; font-size: .74rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--f-mono) !important; font-weight: 500 !important; }
.toc ol { margin: 0; padding-left: 20px; color: var(--ink-mute); font-size: .93rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-dim); }
.toc a:hover { color: var(--amber); }

/* ── footer ───────────────────────────────────────────────────────── */

.foot { padding: clamp(52px, 6vw, 72px) 0 36px; background: var(--bg); }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand p { margin: 16px 0 0; color: var(--ink-mute); font-size: .88rem; max-width: 44ch; }
.foot h3 {
  margin: 0 0 16px;
  font-family: var(--f-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-dim); font-size: .92rem; transition: color .14s ease; }
.foot ul a:hover { color: var(--amber); }

.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 24px;
  font-size: .82rem;
  color: var(--ink-mute);
}
.foot-base p { margin: 0; }
.foot-base a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }
.foot-base a:hover { color: var(--amber); }

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .panel { max-width: 460px; }
  .feat, .steps li { grid-template-columns: 1fr; gap: 14px; }
  .feat-side { flex-direction: row; align-items: baseline; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .burger { display: flex; }
  .mnav[data-open] { display: flex; }
  .topbar-right { margin-left: auto; }
  .live { display: none; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: clamp(2.15rem, 10vw, 2.9rem); }
  .cta, .join-cta { flex-direction: column; align-items: stretch; }
  .ipbox { justify-content: space-between; }
  .btn-ghost { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .feat-body ul { grid-template-columns: 1fr; }
}
