:root {
  color-scheme: dark;
  --bg: #0c0f0c;
  --panel: #121714;
  --panel-2: #171c19;
  --ink: #f6f1e6;
  --muted: #b6b9ad;
  --line: rgba(246, 241, 230, 0.16);
  --mint: #20c997;
  --cyan: #38d9e8;
  --amber: #f59f00;
  --red: #ff6b6b;
  --paper: #f4efe4;
  --paper-ink: #111510;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Geist Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.brand-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(246, 241, 230, 0.08);
  background: rgba(12, 15, 12, 0.86);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101611;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 36px;
  height: auto;
}

.brand-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.brand-nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  min-height: 76vh;
  padding: 118px clamp(18px, 5vw, 76px) clamp(48px, 8vw, 92px);
  background:
    linear-gradient(90deg, rgba(12, 15, 12, 0.94), rgba(12, 15, 12, 0.72)),
    repeating-linear-gradient(90deg, rgba(246, 241, 230, 0.04) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(246, 241, 230, 0.035) 0 1px, transparent 1px 84px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1050px;
  margin-bottom: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.principles {
  display: grid;
  gap: 12px;
}

.principles span {
  display: block;
  border-left: 3px solid var(--mint);
  padding: 12px 0 12px 16px;
  color: #e5dfd2;
  line-height: 1.4;
}

.logo-section,
.color-section,
.type-section,
.voice-section,
.merch-section {
  padding: clamp(72px, 10vw, 126px) clamp(18px, 5vw, 76px);
}

.section-intro {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.logo-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
}

.logo-tile,
.logo-rules,
.type-spec,
.type-scale,
.voice-grid article,
.merch-card,
.swatch {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.logo-tile {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 26px;
}

.logo-tile img {
  width: min(78%, 320px);
  height: auto;
}

.logo-tile span {
  align-self: end;
  color: var(--muted);
  font-size: 14px;
}

.primary-logo {
  background: var(--paper);
}

.dark-logo {
  background:
    radial-gradient(circle at 72% 24%, rgba(56, 217, 232, 0.12), transparent 28%),
    #0a0d0b;
}

.logo-rules {
  padding: 28px;
}

.logo-rules ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.color-section,
.voice-section {
  background: var(--paper);
  color: var(--paper-ink);
}

.color-section .eyebrow,
.voice-section .eyebrow {
  color: #087f5b;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.swatch {
  min-height: 230px;
  padding: 18px;
  background: #fffaf0;
  color: var(--paper-ink);
}

.swatch span {
  display: block;
  height: 92px;
  margin-bottom: 18px;
  border: 1px solid rgba(17, 21, 16, 0.14);
  border-radius: 8px;
  background: var(--swatch);
}

.swatch strong,
.swatch code {
  display: block;
}

.swatch code {
  margin: 6px 0 12px;
  color: #087f5b;
  font-family: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

.swatch p {
  margin-bottom: 0;
  color: #545a50;
  line-height: 1.45;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.type-spec,
.type-scale {
  min-height: 260px;
  padding: 28px;
}

.type-spec span,
.type-scale span {
  display: block;
  margin-bottom: 28px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.type-spec h3 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.type-spec p {
  color: var(--muted);
  line-height: 1.58;
}

.mono h3,
.mono p,
.type-scale em {
  font-family: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

.type-scale div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.type-scale div:last-child {
  border-bottom: 0;
}

.type-scale em {
  color: var(--amber);
  font-style: normal;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.voice-grid article {
  padding: 28px;
  background: #fffaf0;
}

.voice-grid p {
  margin-bottom: 12px;
  color: #4d5249;
  font-size: 18px;
  line-height: 1.4;
}

.voice-grid p:last-child {
  margin-bottom: 0;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.merch-card {
  min-height: 380px;
  padding: 22px;
  background: var(--panel-2);
}

.merch-card p {
  color: var(--muted);
  line-height: 1.5;
}

.shirt-shape,
.hoodie-shape,
.sticker-pack,
.cap-shape {
  position: relative;
  display: grid;
  height: 220px;
  margin-bottom: 22px;
  place-items: center;
}

.shirt-shape::before {
  content: "";
  width: 178px;
  height: 184px;
  background: #080a09;
  clip-path: polygon(25% 0, 40% 0, 44% 10%, 56% 10%, 60% 0, 75% 0, 100% 22%, 84% 42%, 78% 34%, 78% 100%, 22% 100%, 22% 34%, 16% 42%, 0 22%);
}

.shirt-shape img {
  position: absolute;
  width: 86px;
}

.hoodie-shape::before {
  content: "";
  width: 174px;
  height: 190px;
  border-radius: 8px 8px 24px 24px;
  background: #101310;
  box-shadow: inset 0 0 0 1px rgba(246, 241, 230, 0.14);
}

.hoodie-shape img {
  position: absolute;
  top: 80px;
  width: 72px;
}

.hoodie-shape span {
  position: absolute;
  right: 52px;
  bottom: 38px;
  color: var(--cyan);
  font-weight: 900;
}

.sticker-pack {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sticker-pack span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #101611;
  color: var(--mint);
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
}

.sticker-pack span:nth-child(2) {
  color: var(--amber);
}

.sticker-pack span:nth-child(3) {
  color: var(--cyan);
  font-size: 15px;
}

.cap-shape::before {
  content: "";
  width: 180px;
  height: 82px;
  border-radius: 82px 82px 22px 22px;
  background: #080a09;
  box-shadow: inset 0 0 0 1px rgba(246, 241, 230, 0.14);
}

.cap-shape::after {
  content: "";
  position: absolute;
  bottom: 52px;
  right: 32px;
  width: 96px;
  height: 28px;
  border-radius: 0 28px 28px 0;
  background: #1b211d;
}

.cap-shape span {
  position: absolute;
  color: var(--mint);
  font-size: 28px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .brand-hero,
  .logo-board,
  .swatch-grid,
  .type-grid,
  .voice-grid,
  .merch-grid {
    grid-template-columns: 1fr;
  }

  .brand-nav {
    display: none;
  }

  .logo-tile {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
