:root {
  --ink: #711811;
  --paper: #ece8e2;
  --paper-2: #d8d4ce;
  --gold: #711811;
  --gold-dim: #4a100c;
  --mute: #6a4a46;
  --line: #9a6a64;
  --card: #e4e0da;
  --warn: #711811;
  --ok: #6ea36a;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --display: "Anton", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: #e4e0da; }
body {
  margin: 0;
  min-height: 100vh;
  color: #1c1210;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  background-color: #e4e0da;
  background-image: linear-gradient(180deg, #ece8e2 0%, #ddd9d3 48%, #d2cec8 100%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #4a100c; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 8px; top: 8px; background: var(--gold); color: #f4ece8; padding: 6px 10px; z-index: 9; }

.ll-beam {
  display: flex;
  align-items: stretch;
  height: 2.5rem;
  overflow: hidden;
  background: #d8d4ce;
  font-family: var(--mono);
}
.ll-L, .ll-l {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  background: #711811;
  color: #e6e2dc;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.ll-l { font-weight: 500; font-size: 1.65rem; }
.ll-zeros {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.2em;
  color: #711811;
  opacity: 0.42;
  font-size: 1.15rem;
  line-height: 2.5rem;
  padding: 0 6px;
}
.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 2.5rem auto;
  padding: 0;
  border-bottom: 1px solid rgba(113, 24, 17, 0.2);
  position: sticky;
  top: 0;
  background-color: #e6e2dc;
  z-index: 4;
  color: #711811;
}
.topbar .ll-beam { grid-column: 1 / -1; }
.logo {
  display: flex;
  flex-direction: column;
  color: #711811;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.2rem;
}
.logo strong { font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0.06em; }
.logo span { color: #6a4a46; font-family: var(--mono); font-size: 0.7rem; }
.nav { display: flex; gap: 1rem; align-items: center; font-family: var(--mono); font-size: 0.82rem; margin-left: auto; padding: 0 1.2rem; }
.nav a { color: #711811; text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: #4a100c; }
.nav .cta {
  border: 1px solid #711811;
  color: #711811;
  padding: 0.35rem 0.7rem;
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.6rem 0 4rem; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 0 0 0.55rem;
}
h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.03em; font-size: 1.8rem; margin: 0 0 0.4rem; }
.lede { color: #4a342e; max-width: 40rem; }
.type { font-family: var(--mono); color: var(--mute); font-size: 0.85rem; margin: 0 0 1rem; }

.paper {
  background: var(--paper);
  color: #1a1612;
  padding: 0.7rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.paper img { width: 100%; height: auto; }
.paper figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #5a5248;
  padding: 0.45rem 0.2rem 0.15rem;
}

.mods {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: #711811;
}
.mods li { margin: 0.15rem 0; }
.mods li::before { content: ""; }

.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #f4ece8;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: #711811; color: #f4ece8; }

.section { margin-top: 2.8rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
}
.shelf a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.shelf a:hover { border-color: var(--gold); }
.shelf .thumb { background: var(--paper); }
.shelf .meta { padding: 0.65rem 0.7rem 0.8rem; }
.shelf h3 { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 1.2rem; margin: 0; }
.shelf p { margin: 0.2rem 0 0; color: var(--mute); font-family: var(--mono); font-size: 0.72rem; }
.shelf a[aria-current="true"] { outline: 1px solid var(--gold); }

.mint {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
}
label { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--mute); margin: 0.7rem 0 0.3rem; }
textarea, input[type="text"], select {
  width: 100%;
  background: #0b0908;
  color: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.6rem 0.7rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0.6rem; }
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

.json {
  background: #0b0908;
  border: 1px solid var(--line);
  color: #d7ccb8;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 0.8rem;
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.hash { font-family: var(--mono); font-size: 0.75rem; color: var(--ok); margin: 0.4rem 0 0; overflow-wrap: anywhere; }
.kept { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.kept button {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}
.kept button:hover { border-color: var(--gold); }

.footer {
  border-top: 1px solid rgba(113, 24, 17, 0.2);
  padding: 0;
  color: #4a342e;
  font-family: var(--mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #e6e2dc;
}
.footer a { color: #711811; }
.footer > p {
  padding: 0.6rem 1.2rem;
  margin: 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.2rem 1.1rem;
}

@media (max-width: 860px) {
  .hero, .mint { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 3.1rem; }
}
@media (max-width: 520px) {
  .shelf { grid-template-columns: 1fr; }
  .nav { gap: 0.65rem; }
}
