:root {
  --bg: #f4efe5;
  --paper: rgba(255, 250, 240, 0.8);
  --ink: #101010;
  --muted: #5f5a52;
  --accent: #b5441a;
  --accent-dark: #7c2408;
  --line: rgba(16, 16, 16, 0.14);
  --shadow: 0 20px 60px rgba(57, 36, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(181, 68, 26, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(16, 16, 16, 0.08), transparent 22%),
    linear-gradient(180deg, #f7f0e4 0%, #efe4d2 100%);
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 16, 16, 0.04) 0.7px, transparent 0.7px);
  background-size: 10px 10px;
  opacity: 0.35;
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 24px 24px 56px;
}

.topbar,
.hero,
.grid-section,
.bands,
.split,
.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  gap: 18px;
}

.navlinks a,
.button,
.footer a {
  color: inherit;
  text-decoration: none;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-label {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  max-width: 900px;
  margin-top: 14px;
}

.lede,
.hero-copy p,
.grid-section p,
.band p,
.panel li,
.footer p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 999px;
  transition: transform 220ms ease, background 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: #fff7f1;
  border-color: transparent;
}

.ghost {
  background: rgba(255, 255, 255, 0.55);
}

.hero-card {
  margin-top: 40px;
}

.terminal {
  background: rgba(20, 16, 12, 0.92);
  color: #f8f0e7;
  border-radius: 28px;
  padding: 18px 20px 8px;
  box-shadow: var(--shadow);
  overflow: auto;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 7px;
}

.red { background: #f66; }
.amber { background: #f7c456; }
.green { background: #69d28a; }

pre {
  margin: 14px 0 4px;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
}

.grid-section,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 20px 0 12px;
}

.grid-section article,
.panel,
.band {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.grid-section article,
.panel {
  padding: 28px;
}

.bands {
  display: grid;
  gap: 16px;
  padding: 10px 0 20px;
}

.catalog-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 8px 0 22px;
}

.catalog-header {
  margin-bottom: 16px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card {
  background: rgba(255, 250, 240, 0.84);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  padding: 22px;
}

.band {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 22px 24px;
}

.band-index {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.panel ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.panel.alt {
  background: rgba(16, 16, 16, 0.93);
}

.panel.alt h2,
.panel.alt li,
.panel.alt .section-label {
  color: #f8f0e7;
}

.footer {
  padding: 24px 0 42px;
}

@media (max-width: 820px) {
  .navlinks,
  .grid-section,
  .split,
  .band,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  h1 {
    line-height: 1;
  }
}
