:root {
  --night: #100e0c;
  --night-2: #1b1713;
  --ink: #1a140f;
  --paper: #f4ecdd;
  --paper-2: #e6d9c4;
  --amber: #e4a43c;
  --lamp: #f6d48a;
  --green: #1e6a45;
  --stamp: #b4332a;
  --muted: #8b7764;
  --cream: #f7f1e6;
  --line: rgba(244, 236, 221, 0.16);
  --serif: "Fraunces", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(228, 164, 60, 0.18), transparent 60%),
    var(--night);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 14, 12, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.brand svg { width: 36px; height: 36px; }
.links { display: flex; gap: 18px; margin-left: 8px; }
.links a {
  text-decoration: none;
  color: rgba(247, 241, 230, 0.72);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.links a:hover { color: var(--cream); }
.tick, .ca {
  margin-left: auto;
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.tick { margin-left: auto; color: var(--lamp); }
.ca { margin-left: 0; }
.ca.big {
  margin: 18px 0 0;
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--paper);
  padding: 14px 18px;
  font-size: 15px;
}
.ca.copied { background: var(--green); border-color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
  padding: 64px 0 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.eyebrow.light { color: var(--lamp); }
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.9;
}
h1 em { font-style: italic; color: var(--lamp); }
h2 { margin: 0 0 12px; font-size: clamp(36px, 4vw, 56px); line-height: 0.95; }
.deck { max-width: 460px; color: rgba(247, 241, 230, 0.82); font-size: 16px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(247, 241, 230, 0.8);
  font-size: 13px;
}

.lamp-stage {
  height: 210px;
  display: grid;
  place-items: end center;
  background: radial-gradient(120px 80px at 50% 42%, rgba(246, 212, 138, 0.45), transparent 70%);
}
.lamp-stage svg, .mark-card svg {
  width: 168px;
  height: 190px;
  transform-origin: 50% 88%;
  animation: sway 6s ease-in-out infinite, glow 3.4s ease-in-out infinite;
}
.mark-card svg { width: 140px; height: 160px; animation-duration: 7.5s, 4.2s; }
.mark-card {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: radial-gradient(180px 120px at 50% 42%, rgba(246, 212, 138, 0.2), transparent 70%), var(--night-2);
}
.mark-card svg { width: 140px; height: 160px; }
.mark-card { animation: breathe 3.6s ease-in-out infinite; }
.mark-card b { font-family: var(--serif); font-weight: 560; font-size: 28px; color: var(--lamp); }
.facts li { animation: bob 4.2s ease-in-out infinite; }
.facts li:nth-child(2) { animation-delay: .45s; }
.facts li:nth-child(3) { animation-delay: .9s; }
.hero .lede > * { opacity: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero .lede > *:nth-child(2) { animation-delay: .1s; }
.hero .lede > *:nth-child(3) { animation-delay: .22s; }
.hero .lede > *:nth-child(4) { animation-delay: .34s; }
.desk { animation: drop .7s cubic-bezier(.2, .7, .2, 1) .15s both; }
.eyebrow i { animation: blink 1.6s infinite; }
.slip {
  position: relative;
  margin-top: -8px;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 18px 16px;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.slip-top, .slip-row { display: flex; justify-content: space-between; align-items: center; }
.slip-top { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slip-top b { color: var(--green); font-weight: 600; }
.slip-top b.off { color: var(--stamp); }
.slip label { display: block; margin: 14px 0 8px; font-size: 13px; }
.slip input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 20, 15, 0.25);
  padding: 8px 0 10px;
  outline: none;
}
.slip input:focus { border-bottom-color: var(--ink); }
.slip input:disabled { opacity: 0.45; }
.slip-row { margin-top: 14px; }
#count { color: var(--muted); font-size: 12px; }
.stamp {
  position: relative;
  overflow: hidden;
  background: var(--stamp);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.stamp::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}
.stamp:disabled { background: #8d756c; cursor: not-allowed; }
.stamp:disabled::after { animation: none; opacity: 0; }
.stamp:not(:disabled):hover { transform: rotate(-2deg); }
.slip-note { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; color: #5e4e40; }
.slip.filed { background-image: radial-gradient(circle at 88% 18%, transparent 36px, rgba(180, 51, 42, 0.08) 37px); }

.wall-sec {
  position: relative;
  padding: 72px 0 80px;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(228, 164, 60, 0.12), transparent 60%),
    var(--night);
  border-top: 1px solid var(--line);
}
.sec-head { max-width: 640px; margin-bottom: 28px; }
.sec-head p:last-child { color: rgba(247, 241, 230, 0.78); }
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 16px;
}
.note {
  background: var(--paper);
  color: var(--ink);
  padding: 16px 14px 12px;
  min-height: 148px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--r));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.note p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 560; }
.note time { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.note.fresh { outline: 2px solid var(--stamp); animation: drop .6s cubic-bezier(.2, .7, .2, 1) both; }
.board.arrive > .note { animation: notein .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * 80ms); }
.board.arrive > .note.fresh { animation: drop .6s cubic-bezier(.2, .7, .2, 1) both; }

.band { padding: 72px 0; }
.paper {
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px;
  padding: 36px 36px 18px;
}
.paper .eyebrow { color: var(--stamp); }
.paper .eyebrow i { background: var(--stamp); box-shadow: none; }
.clocks {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  margin: 8px 0 10px;
}
.clocks b { display: block; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1; font-weight: 560; }
.clocks span { display: block; margin-top: 8px; color: #5c4d3f; max-width: 420px; }
.steps { list-style: none; padding: 10px 0 18px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 12px; border-top: 1px solid rgba(26, 20, 15, 0.15); padding-top: 16px; }
.steps span { font-size: 12px; letter-spacing: 0.12em; color: var(--stamp); }
.steps h3 { margin: 0 0 6px; font-size: 24px; }
.steps p { margin: 0; color: #5c4d3f; font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 20px;
}
.prose { color: rgba(247, 241, 230, 0.8); max-width: 460px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rule-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.rule-list b { font-family: var(--serif); font-size: 28px; font-weight: 560; color: var(--lamp); }
.rule-list span { color: rgba(247, 241, 230, 0.78); }

.deny { padding: 28px 0 10px; }
.deny-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.deny-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 180px;
}
.deny-grid em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--stamp);
  font-size: 22px;
}
.deny-grid h3 { margin: 8px 0; font-size: 28px; }
.deny-grid p { margin: 0; color: rgba(247, 241, 230, 0.75); font-size: 14px; }

.token {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 48px 0 64px;
}
.token img { height: 320px; width: 100%; object-fit: cover; border-radius: 18px; }

footer { border-top: 1px solid var(--line); }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  align-items: center;
  color: rgba(247, 241, 230, 0.6);
  font-size: 13px;
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-in { flex-wrap: wrap; min-height: 0; padding: 12px 0; }
  .links { order: 3; width: 100%; gap: 14px; }
  .hero, .split, .token, .clocks, .steps, .deny-grid, .board { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .lamp-stage { height: 160px; }
  .lamp-stage svg { width: 120px; height: 140px; }
  .mark-card { min-height: 240px; }
  .paper { padding: 22px 18px 8px; }
  .rule-list li { grid-template-columns: 1fr; gap: 4px; }
}

:root { --ease: cubic-bezier(.2, .8, .2, 1); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.reveal.in .stagger > * { opacity: 1; transform: none; }

@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 16px rgba(246, 212, 138, .75)); } }
@keyframes breathe { 50% { box-shadow: 0 0 46px rgba(228, 164, 60, .28); border-color: rgba(246, 212, 138, .55); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.98) rotate(var(--r, 0deg)); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes notein { from { opacity: 0; transform: translateY(18px) rotate(var(--r)); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp:not(:disabled):hover { transform: none; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .hero .lede > *, .desk { opacity: 1; transform: none; }
  .hero .lede > *, .desk, .facts li, .lamp-stage svg, .mark-card, .mark-card svg, .eyebrow i, .stamp::after, .note, .board.arrive > .note { animation: none; }
}
