:root {
  --ink: #171313;
  --paper: #f7f3ea;
  --wine: #851d2d;
  --wine-bright: #b52b42;
  --cream: #fffaf0;
  --line: rgba(23, 19, 19, 0.18);
  --shadow: 8px 9px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 18%, rgba(181, 43, 66, 0.14), transparent 30rem),
    linear-gradient(125deg, var(--paper), #fffdf8 55%, #eee7dc);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.topbar {
  width: min(1480px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px 15px 12px 16px;
  color: var(--cream);
  background: var(--wine);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem;
  transform: rotate(-4deg);
}
.top-actions { display: flex; gap: 10px; }
.mini-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 12px 16px 11px 14px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Courier New", monospace;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-button.dark { color: var(--cream); background: var(--ink); }
.mini-button:hover, .mini-button:focus-visible { transform: translate(3px, 3px) rotate(-2deg); box-shadow: 0 0 0 var(--ink); }

.hero {
  width: min(1480px, calc(100% - 48px));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 4vw;
  padding: 56px 0 72px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-family: "Courier New", monospace;
  font-size: .88rem;
  letter-spacing: .13em;
}
.eyebrow span { width: 48px; height: 8px; background: var(--wine); border: 2px solid var(--ink); transform: skewX(-24deg); }
h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5.2rem, 10vw, 10rem);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.045em;
  text-transform: lowercase;
  text-shadow: 8px 9px 0 rgba(133, 29, 45, .28);
}
h1 span { color: var(--wine); }
.hero-line {
  margin: 30px 0;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.04em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.chunk-button {
  min-width: 190px;
  min-height: 72px;
  padding: 12px 15px 12px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 20px 13px 21px 15px;
  box-shadow: var(--shadow);
  color: var(--cream);
  text-decoration: none;
  transform: rotate(-1deg);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.chunk-button + .chunk-button { transform: rotate(1.5deg); }
.chunk-button span { grid-column: 1; font: 700 .72rem/1 "Courier New", monospace; letter-spacing: .12em; opacity: .75; }
.chunk-button strong { grid-column: 1; font-size: 1.18rem; }
.chunk-button b { grid-column: 2; grid-row: 1 / 3; font-size: 1.5rem; }
.chunk-button.burgundy { background: linear-gradient(145deg, var(--wine-bright), #68111f); }
.chunk-button.black { background: linear-gradient(145deg, #2c2828, #0d0c0c); }
.chunk-button:hover, .chunk-button:focus-visible { transform: translate(6px, 7px) rotate(0); box-shadow: 2px 2px 0 var(--ink); filter: brightness(1.08); }
.ca-box {
  width: min(100%, 470px);
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, transform .2s ease;
}
.ca-box:hover, .ca-box:focus-visible { background: white; transform: translateY(-2px); }
.ca-label, .copy-pill { padding: 9px 11px; border-radius: 9px; background: var(--ink); color: white; font: 700 .72rem/1 "Courier New", monospace; }
.copy-pill { background: var(--wine); }
.ca-box code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .84rem/1 "Courier New", monospace; }

.hero-art { position: relative; min-height: 650px; display: grid; place-items: center; perspective: 1000px; }
.character-frame {
  width: min(100%, 650px);
  aspect-ratio: 1;
  position: relative;
  z-index: 2;
  border: 3px solid var(--ink);
  border-radius: 45% 54% 49% 52% / 49% 45% 55% 51%;
  background: white;
  box-shadow: 17px 20px 0 var(--wine), 23px 27px 0 var(--ink);
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform .2s ease-out;
}
.character-frame::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 2px dashed rgba(133,29,45,.42);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}
.character-frame img { width: 100%; height: 100%; display: block; object-fit: contain; }
.stamp {
  position: absolute;
  top: 8%; right: 4%; z-index: 3;
  padding: 9px 14px;
  border: 3px solid var(--ink);
  border-radius: 16px 12px 15px 10px;
  background: var(--wine);
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
  font: 400 1.3rem/1 Impact, Haettenschweiler, sans-serif;
  transform: rotate(8deg);
}
.orbit { position: absolute; border: 28px solid var(--wine); border-radius: 50%; opacity: .12; }
.orbit-one { width: 560px; height: 250px; transform: rotate(-23deg); animation: breathe 5s ease-in-out infinite; }
.orbit-two { width: 420px; height: 640px; border-color: var(--ink); transform: rotate(34deg); animation: breathe 6s ease-in-out -2s infinite; }
.side-note { position: absolute; right: -20px; bottom: 4%; z-index: 3; margin: 0; font: 700 .75rem/1.4 "Courier New", monospace; letter-spacing: .12em; transform: rotate(5deg); }

.statement {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 28px 5vw;
  background: var(--ink);
  color: var(--cream);
  border-block: 4px solid var(--wine);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.5rem, 3vw, 3.4rem);
  letter-spacing: .015em;
  text-align: center;
}
.statement .knot { color: var(--wine-bright); font-size: 1.4rem; animation: twist 4s ease-in-out infinite; }

.billboard { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.section-label { display: flex; align-items: baseline; gap: 18px; margin-bottom: 24px; }
.section-label span { color: var(--wine); font: 700 .82rem/1 "Courier New", monospace; }
.section-label h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 400; letter-spacing: -.02em; }
.banner-wrap { border: 3px solid var(--ink); border-radius: 22px 34px 19px 30px; overflow: hidden; box-shadow: 13px 14px 0 var(--ink); transform: rotate(-.35deg); }
.banner-wrap img { width: 100%; height: auto; display: block; }

footer {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--ink);
}
footer div { display: flex; gap: 12px; align-items: baseline; }
footer strong { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 2.8rem; font-weight: 400; }
footer span, footer p { font: 400 .78rem/1.45 "Courier New", monospace; }
footer p { max-width: 450px; margin: 0; text-align: right; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes breathe { 50% { transform: rotate(-18deg) scale(1.04); } }
@keyframes twist { 50% { transform: rotate(45deg) scale(1.25); } }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .eyebrow, .cta-row { justify-content: center; }
  .ca-box { margin-inline: auto; }
  .hero-art { min-height: auto; padding: 35px 0; }
  .character-frame { width: min(88vw, 620px); }
  .side-note { right: 1%; }
  .statement { flex-direction: column; gap: 12px; }
  .statement .knot { transform: rotate(45deg); }
}

@media (max-width: 600px) {
  .topbar, .hero, .billboard, footer { width: min(100% - 28px, 1480px); }
  .topbar { height: 76px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 36px; height: 36px; }
  .mini-button { min-height: 38px; padding-inline: 12px; }
  .hero { min-height: auto; padding: 52px 0; }
  h1 { font-size: clamp(4.5rem, 19vw, 7rem); }
  .hero-line { margin: 25px 0; }
  .chunk-button { width: 100%; }
  .character-frame { box-shadow: 10px 12px 0 var(--wine), 15px 18px 0 var(--ink); }
  .orbit-one { width: 88vw; height: 38vw; }
  .orbit-two { width: 64vw; height: 92vw; }
  .side-note { display: none; }
  .billboard { padding: 72px 0 82px; }
  .banner-wrap { border-radius: 14px; box-shadow: 7px 8px 0 var(--ink); }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
