:root {
  --ink: #10110f;
  --paper: #f5f3ed;
  --green: #244f31;
  --green-bright: #5f8f43;
  --wine: #79333a;
  --line: rgba(16, 17, 15, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .09;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); }
.ticker { font: 800 .85rem/1 Arial, sans-serif; letter-spacing: .14em; color: var(--wine); }

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
  align-items: center;
  gap: clamp(24px, 3vw, 64px);
  padding: 56px clamp(20px, 5vw, 72px) 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 32%;
  height: 18px;
  background: var(--wine);
  transform: skewY(-3deg);
  opacity: .95;
  z-index: -2;
}

.eyebrow { margin: 0 0 18px; font-weight: 900; letter-spacing: .19em; font-size: .76rem; color: var(--wine); }
h1, h2 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; text-transform: uppercase; }
h1 { font-size: clamp(4.4rem, 9.2vw, 9.8rem); line-height: .79; letter-spacing: -.055em; max-width: 900px; }
h1 span { color: var(--green); text-shadow: 5px 5px 0 rgba(121, 51, 58, .18); }
.lead { margin: 28px 0; font: 700 clamp(1.05rem, 1.6vw, 1.35rem)/1.5 Georgia, serif; font-style: italic; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.sketch-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border: 3px solid var(--ink);
  color: var(--paper);
  background: var(--green);
  box-shadow: 5px 6px 0 var(--ink);
  border-radius: 54% 46% 49% 51% / 42% 58% 46% 54%;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sketch-button:hover { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 2px 3px 0 var(--ink); }
.sketch-button:focus-visible, .ca-card:focus-visible { outline: 4px solid #f2bd4d; outline-offset: 4px; }
.x-link { background: var(--wine); transform: rotate(1deg); }
.button-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font-weight: 900; }

.ca-card {
  width: min(100%, 670px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--green);
  background: rgba(255,255,255,.58);
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.ca-label, .copy-state { font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.ca-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .92rem/1.4 "Courier New", monospace; }
.copy-state { color: var(--wine); }

.portrait-wrap { --move-x: 0px; --move-y: 0px; position: relative; align-self: end; transform: translate(var(--move-x), var(--move-y)); transition: transform .15s ease-out; }
.portrait-wrap::after { content: ""; position: absolute; left: 16%; right: 10%; bottom: 7%; height: 7%; border-radius: 50%; background: rgba(16,17,15,.2); filter: blur(18px); z-index: -1; }
.portrait { display: block; width: min(100%, 690px); margin: auto; mix-blend-mode: multiply; position: relative; z-index: 2; }
.halo { position: absolute; inset: 14% 5% 12% 5%; background: radial-gradient(circle, #d5e0b8 0 34%, transparent 65%); border: 1px solid rgba(36,79,49,.2); border-radius: 50%; z-index: -1; }
.stamp { position: absolute; right: 1%; top: 7%; z-index: 3; width: 110px; height: 110px; display: grid; place-items: center; text-align: center; border: 3px solid var(--wine); color: var(--wine); border-radius: 50%; font: 900 .7rem/1.35 Arial; letter-spacing: .12em; transform: rotate(10deg); }
.portrait-note { position: absolute; right: 0; bottom: 4%; z-index: 3; margin: 0; padding: 12px 16px; background: var(--ink); color: var(--paper); font: 700 .78rem/1.4 "Courier New", monospace; transform: rotate(-2deg); }

.statement { display: grid; grid-template-columns: 100px 1fr minmax(260px, 420px); gap: 36px; align-items: end; padding: clamp(70px, 10vw, 150px) clamp(20px, 5vw, 72px); background: var(--green); color: var(--paper); }
.statement-number { align-self: start; font: 900 4rem/1 Impact, sans-serif; color: var(--green-bright); }
.statement .eyebrow { color: #d5a0a4; }
.statement h2 { font-size: clamp(4rem, 8vw, 8rem); line-height: .82; letter-spacing: -.04em; }
.manifesto { margin: 0; padding-left: 24px; border-left: 2px solid #d5a0a4; font: 700 clamp(1.1rem, 1.8vw, 1.45rem)/1.55 Georgia, serif; }
.banner-section { padding: clamp(30px, 5vw, 72px); background: #ece9df; }
.banner-section img { display: block; width: 100%; aspect-ratio: 3/1; object-fit: cover; border: 3px solid var(--ink); box-shadow: 9px 10px 0 var(--wine); }

footer { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px clamp(20px, 5vw, 72px); background: var(--ink); color: var(--paper); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 14px 20px; color: var(--paper); background: var(--wine); border: 2px solid var(--paper); font-size: .8rem; font-weight: 900; letter-spacing: .12em; transform: translate(-50%, 150%); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  h1 { font-size: clamp(4rem, 18vw, 7rem); }
  .portrait-wrap { max-width: 630px; margin: 0 auto; }
  .statement { grid-template-columns: 70px 1fr; }
  .manifesto { grid-column: 2; }
}
@media (max-width: 580px) {
  .topbar { min-height: 66px; }
  .brand img { width: 40px; height: 40px; }
  .hero { min-height: auto; padding-bottom: 10px; }
  .hero::before { top: 22%; height: 10px; }
  h1 { font-size: clamp(3.35rem, 20vw, 5.4rem); }
  .actions, .sketch-button { width: 100%; }
  .sketch-button { justify-content: center; }
  .ca-card { grid-template-columns: 1fr auto; }
  .ca-label { grid-column: 1 / -1; }
  .portrait-note { right: 8px; }
  .stamp { width: 82px; height: 82px; font-size: .56rem; }
  .statement { grid-template-columns: 1fr; gap: 22px; }
  .statement-number, .manifesto { grid-column: 1; }
  .statement h2 { font-size: 4rem; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
