@font-face {
  font-family: 'Barlow Condensed';
  src: url('./assets/barlow-condensed.woff2') format('woff2');
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./assets/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #1c110d;
  --panel: #2a1812;
  --inset: #20130f;
  --paper: #fff0dc;
  --muted: #e1bfa4;
  --gold: #ffbd72;
  --line: #82543e;
  --sans: 'DM Sans', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100svh;
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font: 400 1rem/1.5 var(--sans);
  scrollbar-color: #9e6744 var(--ground);
}

h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--ground); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.wall {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, #240c09c9, #100c0bdd 65%, #200e09d6),
    url('./assets/rizzgiving.webp') center top / clamp(155px, 16vw, 220px) repeat;
  pointer-events: none;
}

.shell {
  position: relative;
  width: min(calc(100% - 48px), 1424px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  border-bottom: 1px solid #dba88975;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: italic 900 1.65rem/1 var(--display);
  letter-spacing: .025em;
  text-shadow: 0 2px 10px #0009;
}

.brand:hover { color: var(--gold); }

.brand img {
  display: block;
  border: 1px solid #edaf63a8;
  border-radius: 3px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: clamp(11px, 2vw, 22px);
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font-size: .9rem;
  font-weight: 700;
  text-shadow: 0 2px 8px #140805;
}

.topbar-nav a:hover { color: var(--gold); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  align-items: center;
  gap: clamp(32px, 6.3vw, 94px);
  padding-block: clamp(53px, 5.75vw, 82px);
}

.identity { min-width: 0; container-type: inline-size; }

.identity h1 {
  color: var(--paper);
  font: italic 900 clamp(2.75rem, 22cqi, 7.55rem)/.86 var(--display);
  white-space: nowrap;
  text-shadow: 0 5px 22px #170804d9;
}

.tagline {
  margin-block: 13px 26px;
  color: var(--gold);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 700;
  text-shadow: 0 2px 8px #140805;
}

.contract {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  box-shadow: 0 9px 27px #10070466;
}

.contract-heading,
.contract-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contract-heading {
  margin-bottom: 8px;
  color: var(--muted);
}

.contract-heading h2,
.contract-heading span {
  font-size: .875rem;
  font-weight: 700;
}

.contract-heading span { color: var(--gold); }

.contract-value {
  min-height: 46px;
  border: 1px solid #734e3b;
  border-radius: 3px;
  background: var(--inset);
  font-size: .88rem;
}

.contract-value code {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  color: var(--paper);
  font: .78rem/1.35 ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.contract-value code:focus-visible,
.contract-value button:focus-visible { outline-offset: -4px; }

.contract-value button {
  align-self: stretch;
  padding-inline: 14px;
  border: 0;
  border-left: 1px solid #734e3b;
  background: #814321;
  color: var(--paper);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
}

.contract-value button:hover { background: #9b5127; }

.actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.actions:has(.share[hidden]) { grid-template-columns: 1fr; }

.action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #211410;
  color: var(--paper);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
}

.action:hover {
  background: #4c2a1c;
  border-color: var(--gold);
}

.pump-link {
  grid-column: 1 / -1;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ground);
}

.pump-link:hover { background: #ffd19b; }

.banner-download {
  grid-column: 1 / -1;
  background: #814321;
  border-color: #b56a38;
}

.banner-download:hover { background: #9b5127; }

.share-fallback {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--inset);
  color: var(--paper);
  font: 400 .78rem/1.35 var(--sans);
}

.chart {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid #de985a;
  border-radius: 6px;
  background: #211410;
  box-shadow: 0 14px 42px #100704a6;
}

.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 11px;
  min-height: 56px;
  padding: 8px 15px;
  border-bottom: 1px solid #734e3b;
  background: var(--panel);
}

.chart-heading h2 { font-size: 1rem; }

.chart-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-size: .81rem;
  font-weight: 700;
}

.chart-link:hover { text-decoration: underline; }

.chart-frame {
  display: block;
  width: 100%;
  height: clamp(410px, 42vw, 660px);
  border: 0;
  background: #13161b;
}

.video-section,
.meme-gallery {
  padding-block: 23px 39px;
  border-top: 1px solid #dba88975;
  scroll-margin-top: 12px;
}

.section-title {
  margin-bottom: 18px;
  font: italic 900 clamp(2.1rem, 4.5vw, 3rem)/1 var(--display);
  text-shadow: 0 4px 12px #140805;
}

.video-content {
  width: min(100%, 1000px);
  margin-inline: auto;
}

.showdown-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--inset);
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meme-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--inset);
}

.meme-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.meme-card a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--gold);
  font-size: .83rem;
  font-weight: 700;
}

.meme-card a:hover { background: #4c2a1c; }
.meme-card a:focus-visible { outline-offset: -4px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 14px;
  min-height: 60px;
  padding-block: 12px;
  border-top: 1px solid #dba88975;
  color: var(--muted);
  font-size: .84rem;
  text-shadow: 0 2px 8px #140805;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 928px) {
  .shell { width: min(calc(100% - 28px), 760px); }
  .topbar { min-height: 64px; }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 39px 36px;
  }
  .identity h1 { font-size: clamp(2.75rem, 22cqi, 6.3rem); }
  .tagline { margin-block: 11px 21px; }
  .chart-frame { height: clamp(330px, 85vw, 460px); }
  .meme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 570px) {
  .meme-grid { grid-template-columns: 1fr; }
}

