:root {
  color-scheme: dark;
  --bg: #0c0b09;
  --bg-2: #16130f;
  --panel: rgba(20, 17, 14, 0.92);
  --panel-solid: #171410;
  --line: rgba(226, 180, 90, 0.28);
  --line-strong: rgba(240, 205, 130, 0.7);
  --text: #f3eee4;
  --muted: #b7ab99;
  --amber: #e2b45a;
  --amber-2: #f0d08a;
  --ink: #24180c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(226, 180, 90, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(92, 104, 78, 0.18), transparent 50%),
    linear-gradient(180deg, #1a1612 0%, var(--bg) 320px);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("img/hero-outskirts.jpg");
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  filter: saturate(0.7);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
}
a { color: var(--amber-2); }
img { max-width: 100%; display: block; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 22px;
  background: rgba(12, 10, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.mark {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--amber);
  background:
    linear-gradient(160deg, transparent 0 42%, var(--amber) 42% 48%, transparent 48% 58%, #8d6a32 58% 64%, transparent 64%),
    linear-gradient(#2a2218, #120f0c);
}
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand small { color: var(--muted); letter-spacing: 0.04em; }
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 2px;
}
.tabs a, .btn, .chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #6a5434;
  border-radius: 999px;
  background: linear-gradient(#2c261e, #1a1612);
  color: #f6edd9;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 236, 205, 0.08);
  white-space: nowrap;
}
.tabs a:hover, .btn:hover, .chips a:hover, .tile:hover {
  border-color: var(--amber-2);
  color: #fff8e8;
}
.tabs a.is-on, .btn-primary {
  background: linear-gradient(#f3d48a, #c9963e);
  color: var(--ink);
  border-color: #ffe7ad;
  font-weight: 650;
}
.search input {
  width: 220px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #6a5434;
  border-radius: 999px;
  background: #0d0b09;
  color: var(--text);
  font: inherit;
}
.search input:focus, .tabs a:focus-visible, .btn:focus-visible, .chips a:focus-visible, .tile:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.ribbon {
  margin: 0;
  padding: 8px 22px;
  background: #2a170f;
  color: #f3d2c0;
  border-bottom: 1px solid rgba(196, 106, 50, 0.45);
  text-align: center;
}

.wrap {
  position: relative;
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 48px;
}
.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-copy {
  position: relative;
  padding: 36px;
  background: linear-gradient(90deg, rgba(8, 7, 6, 0.88) 0%, rgba(8, 7, 6, 0.55) 58%, rgba(8, 7, 6, 0.15) 100%);
}
.kicker {
  margin: 0 0 8px;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 0 0 8px; font-size: 64px; letter-spacing: 0.03em; }
.lede { margin: 0; max-width: 38rem; font-size: 18px; color: #ebe4d6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 18px;
}
.panel, .infobox, .entry, .tile, .navbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.panel { padding: 18px 20px 8px; }
.panel p, .entry p { color: #e6dfd2; }
.infobox { overflow: hidden; align-self: start; }
.infobox img { width: 100%; height: 190px; object-fit: cover; }
.infobox h2 { margin: 14px 16px 8px; font-size: 22px; }
.kv { margin: 0; padding: 0 16px 16px; }
.kv div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.kv dt { margin: 0; color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin: 28px 0 12px;
}
.section-head h2 { margin: 0; font-size: 32px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.tile img { height: 160px; width: 100%; object-fit: cover; }
.tile div { padding: 12px 14px 14px; }
.tile h3 { margin: 0 0 6px; font-size: 22px; }
.tile p { margin: 0 0 12px; color: var(--muted); }
.tile .btn { align-self: flex-start; }

.page-title { margin: 8px 0 0; }
.page-title h1 { font-size: 46px; }
.page-title p { margin: 0; color: var(--muted); max-width: 46rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.entries { display: grid; gap: 14px; }
.entry {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
}
.entry img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.entry div { padding: 16px 18px 18px; }
.entry h2 { margin: 0 0 8px; font-size: 30px; }
.soon { color: var(--amber); font-size: 14px; }
.traders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trader {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px;
}
.mono {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(#3a3126, #211c16);
  border: 1px solid var(--line-strong);
  color: var(--amber-2);
  font-family: Georgia, serif;
  font-size: 20px;
}
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}
.num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(#f3d48a, #c9963e);
  color: var(--ink);
  font-weight: 700;
}
.navbox { margin-top: 18px; padding: 14px 16px 16px; }
.navbox h2 { margin: 0 0 10px; font-size: 18px; }
.navbox .tabs { justify-content: flex-start; }
.empty { color: var(--muted); }
footer {
  position: relative;
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 13px;
}
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .top, .layout, .entry, .traders, .tiles { grid-template-columns: 1fr; }
  .top { justify-items: stretch; }
  .search input { width: 100%; }
  h1 { font-size: 46px; }
  .hero { min-height: 360px; }
  .hero-copy { background: linear-gradient(to top, rgba(8, 7, 6, 0.92), rgba(8, 7, 6, 0.35)); }
}
