/* ==========================================================
   De Erfenis van Catan — Spellenweekend XX
   Walnut + amber + ivory, vintage typewriter motif
   ========================================================== */

:root {
  --walnut-900: #15090430;
  --walnut-850: #1c0e06;
  --walnut-800: #261509;
  --walnut-700: #2f1d10;
  --walnut-600: #3d2817;
  --walnut-500: #5a3a22;
  --amber-500:  #c89a4e;
  --amber-400:  #d8b06a;
  --amber-300:  #e8c98a;
  --brass:      #b8893a;
  --ivory-100:  #f3e6cc;
  --ivory-200:  #e9d9b6;
  --ivory-300:  #d8c69a;
  --ivory-400:  #b8a47c;
  --paper:      #efe2c4;
  --paper-shadow: #c8b48b;
  --ink:        #1c0f06;
  --ink-soft:   #3a2415;
  --shadow-deep: 0 30px 80px -20px #000;
  --shadow-mid:  0 12px 32px -8px rgba(0,0,0,.6);

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body:    "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-mono:    "Special Elite", "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--walnut-850);
  color: var(--ivory-100);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, #3a2010 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 80%, #2a160a 0%, transparent 60%);
  background-attachment: fixed;
}

/* Paper grain overlay on entire site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.45  0 0 0 0 0.25  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* Dust particles container */
#dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.dust-mote {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,201,138,.9), rgba(232,201,138,0));
  filter: blur(.4px);
  opacity: 0;
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translate3d(0, 100vh, 0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .6; }
  100% { transform: translate3d(40px, -10vh, 0); opacity: 0; }
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  background: linear-gradient(to bottom, rgba(20,10,4,.8), transparent);
  backdrop-filter: blur(2px);
}
.nav-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--amber-300);
  text-transform: uppercase;
}
.nav-mark span { color: var(--ivory-300); }
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ivory-300);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav-links a:hover { color: var(--amber-300); }
.nav-links a::after {
  content: "_";
  position: absolute;
  right: -8px;
  opacity: 0;
  color: var(--amber-400);
  animation: blink 1.1s steps(1) infinite;
}
.nav-links a:hover::after { opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
}

/* ================= SECTIONS ================= */
section {
  position: relative;
  z-index: 5;
  padding: 120px 5vw;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--amber-400);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber-500), transparent);
  max-width: 80px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ivory-100);
  text-wrap: balance;
}
.section-title em { color: var(--amber-300); font-style: italic; }

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  padding: 140px 5vw 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero::before {
  /* warm sunbeam from top right */
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at top right, rgba(232,201,138,.18), transparent 60%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
}
.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--amber-300);
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--amber-500);
  border-radius: 2px;
  margin-bottom: 32px;
  background: rgba(200,154,78,.08);
}
.hero-stamp .dot { width: 6px; height: 6px; background: var(--amber-400); border-radius: 50%; box-shadow: 0 0 10px var(--amber-400); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .98;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.hero h1 .ed {
  display: block;
  font-style: italic;
  font-size: .55em;
  color: var(--amber-300);
  letter-spacing: .02em;
  margin-top: 4px;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ivory-200);
  margin: 28px 0 0;
  letter-spacing: .01em;
}
.hero-sub::before {
  content: "—";
  color: var(--amber-400);
  margin-right: 12px;
}
.hero-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-300);
}
.hero-meta .label { display: block; color: var(--amber-400); font-size: 10px; margin-bottom: 4px; }
.hero-meta .addr { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .15em; color: var(--ivory-400); text-transform: none; line-height: 1.5; }

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ================= TYPEWRITER (CSS) ================= */
.typewriter-stage {
  position: relative;
  perspective: 1400px;
  height: clamp(420px, 60vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.typewriter {
  --tw-w: 460px;
  position: relative;
  width: var(--tw-w);
  height: 320px;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-8deg) rotateZ(-1deg);
  filter: drop-shadow(0 50px 50px rgba(0,0,0,.55));
}
.typewriter::after {
  /* desk surface shadow */
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -50px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0,0,0,.7), transparent 70%);
  filter: blur(8px);
}

/* Paper sheet rolling out */
.tw-paper {
  position: absolute;
  left: 50%;
  top: -180px;
  transform: translateX(-50%) rotateZ(-1deg);
  width: 280px;
  min-height: 300px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 26px, rgba(60,40,20,.06) 26px 27px),
    linear-gradient(to bottom, #f6ead0, #ebd9b3 70%, #d8c4a0);
  padding: 22px 26px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 26px;
  color: #2a1a08;
  box-shadow:
    0 1px 0 #fff7e3 inset,
    0 -1px 0 rgba(120,80,30,.3) inset,
    0 30px 40px -20px rgba(0,0,0,.6),
    0 12px 0 -8px #d8c294;
  border-radius: 1px;
  z-index: 2;
}
.tw-paper::before {
  /* torn / curl top */
  content: "";
  position: absolute;
  top: -6px; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.tw-paper-stamp {
  position: absolute;
  top: 18px;
  right: -12px;
  width: 64px;
  height: 64px;
  border: 2px solid #8a3a1a;
  color: #8a3a1a;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .15em;
  text-align: center;
  border-radius: 50%;
  display: grid;
  place-content: center;
  transform: rotate(-12deg);
  opacity: .75;
  background: rgba(255,240,210,.4);
  line-height: 1.2;
}
.tw-typed {
  display: block;
  white-space: pre-wrap;
  min-height: 130px;
}
.tw-typed .cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background: #2a1a08;
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
.tw-sig {
  margin-top: 14px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 18px;
  color: #5a3416;
  border-top: 1px dashed #b89868;
  padding-top: 10px;
  opacity: 0;
  transition: opacity .8s;
}
.tw-paper.signed .tw-sig { opacity: 1; }

/* Body of typewriter */
.tw-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  background:
    linear-gradient(to bottom, #1c0a04 0%, #2a1408 30%, #1a0804 100%);
  border-radius: 18px 18px 8px 8px;
  border-top: 2px solid #4a2a14;
  box-shadow:
    0 2px 0 #5a3416 inset,
    0 -8px 30px rgba(0,0,0,.7) inset,
    0 8px 0 -2px #0c0502;
}
.tw-body::before {
  /* maker plate */
  content: "OLIVETTI · LETTERA";
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--brass);
  opacity: .7;
}
/* Roller / platen */
.tw-roller {
  position: absolute;
  top: -20px; left: 8%; right: 8%;
  height: 36px;
  background: linear-gradient(to bottom, #3a2414, #1a0a04);
  border-radius: 18px;
  border: 1px solid #4a2a14;
  box-shadow: 0 4px 10px rgba(0,0,0,.6);
}
.tw-roller::before, .tw-roller::after {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px;
  width: 18px;
  background: radial-gradient(circle, var(--brass) 0%, #6a4a1a 60%, #2a1a04 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.6);
}
.tw-roller::before { left: -8px; }
.tw-roller::after  { right: -8px; }

/* Keys grid */
.tw-keys {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  transform: perspective(400px) rotateX(20deg);
  transform-origin: center bottom;
}
.tw-keys .row { display: contents; }
.tw-key {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 30% 30%, #f3e6cc 0%, #c8b48b 60%, #6a4a2a 100%);
  border-radius: 50%;
  border: 1px solid #2a1a08;
  box-shadow:
    0 2px 0 #1a0a04,
    0 4px 6px rgba(0,0,0,.5),
    inset 0 -2px 4px rgba(0,0,0,.3);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #1a0a04;
  display: grid;
  place-content: center;
  transition: transform .08s, box-shadow .08s;
}
.tw-key.pressed,
.tw-key:hover {
  transform: translateY(2px);
  box-shadow: 0 0 0 #1a0a04, 0 1px 2px rgba(0,0,0,.5), inset 0 -1px 2px rgba(0,0,0,.4);
}
.tw-key.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: linear-gradient(to bottom, #c8b48b, #6a4a2a);
}
/* Type bars going up */
.tw-bars {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 30px;
  pointer-events: none;
}
.tw-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: linear-gradient(to top, #b8893a, #5a3416);
  transform-origin: bottom center;
  opacity: 0;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .typewriter-stage { height: 460px; }
  .typewriter { --tw-w: 380px; transform: rotateX(6deg) rotateY(-4deg); }
  .tw-paper { width: 240px; top: -140px; }
}
@media (max-width: 480px) {
  .typewriter { --tw-w: 320px; height: 280px; }
  .tw-body { height: 200px; }
  .tw-paper { width: 220px; top: -120px; min-height: 240px; font-size: 12px; line-height: 22px; }
}

/* ================= BUTTONS ================= */
.btn {
  --btn-bg: var(--amber-500);
  --btn-fg: #1a0a04;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  box-shadow:
    0 2px 0 #6a4a1a,
    0 8px 24px -6px rgba(200,154,78,.45);
  transition: transform .15s, box-shadow .15s, background .2s;
  overflow: hidden;
}
.btn::before {
  /* paper-fed feel - subtle scanline */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0,0,0,.04) 4px 5px);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--amber-400);
  box-shadow:
    0 3px 0 #6a4a1a,
    0 12px 30px -6px rgba(216,176,106,.6);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #6a4a1a, 0 2px 8px -2px rgba(0,0,0,.4);
}
.btn .key {
  display: grid;
  place-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1a0a04;
  color: var(--amber-300);
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,.1);
}
.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--amber-300);
  border: 1px solid var(--amber-500);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(200,154,78,.1); }
.btn.ghost .key { background: var(--amber-500); color: #1a0a04; }

/* ================= COUNTDOWN ================= */
.countdown-section {
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.3), transparent);
  padding: 100px 5vw;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 50px auto 0;
}
.cd-cell {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(to bottom, #1a0a04 0%, #0c0502 50%, #1a0a04 100%);
  border-radius: 8px;
  border: 1px solid #3a2414;
  box-shadow:
    inset 0 1px 0 rgba(216,176,106,.15),
    inset 0 -2px 8px rgba(0,0,0,.7),
    0 12px 30px -10px rgba(0,0,0,.7);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.cd-cell::before {
  /* split flap line */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(50% - 22px);
  height: 2px;
  background: #000;
  box-shadow: 0 1px 0 rgba(216,176,106,.1);
  z-index: 2;
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(54px, 9vw, 130px);
  line-height: 1;
  font-weight: 400;
  color: var(--amber-300);
  text-align: center;
  align-self: center;
  padding-top: 10px;
  text-shadow:
    0 0 30px rgba(216,176,106,.3),
    0 2px 0 #000;
  font-feature-settings: "lnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  position: relative;
  display: inline-block;
  perspective: 600px;
}
.cd-num .digit {
  display: inline-block;
  min-width: .6em;
  transition: transform .35s;
}
.cd-num .digit.flip {
  animation: flip .5s cubic-bezier(.5,.05,.3,1);
}
@keyframes flip {
  0%   { transform: rotateX(0); }
  50%  { transform: rotateX(-90deg); }
  51%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}
.cd-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ivory-300);
  text-align: center;
  padding: 14px 0 18px;
  border-top: 1px dashed #3a2414;
  background: rgba(0,0,0,.4);
}
.cd-target {
  text-align: center;
  margin-top: 38px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber-400);
}

@media (max-width: 600px) {
  .countdown { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ================= STORY ================= */
.story {
  padding: 140px 5vw;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1300px;
  margin: 60px auto 0;
}
.letter {
  background:
    repeating-linear-gradient(to bottom, transparent 0 32px, rgba(60,40,20,.05) 32px 33px),
    linear-gradient(to bottom right, #f3e6cc 0%, #e6d4ad 100%);
  color: var(--ink);
  padding: 50px 50px 40px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 32px;
  border-radius: 1px;
  box-shadow:
    0 1px 0 #fff7e3 inset,
    0 -1px 0 rgba(120,80,30,.3) inset,
    0 30px 60px -10px rgba(0,0,0,.6),
    0 14px 0 -10px #d8c294,
    0 28px 0 -20px #c8b48b;
  position: relative;
  transform: rotate(-1.2deg);
}
.letter::after {
  content: "";
  position: absolute;
  top: -14px;
  right: 40px;
  width: 80px;
  height: 28px;
  background: linear-gradient(135deg, rgba(200,154,78,.7), rgba(150,100,50,.6));
  transform: rotate(8deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  border-radius: 1px;
  /* tape effect */
}
.letter h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 22px;
  color: var(--ink);
  border-bottom: 1px dashed #8a6a3a;
  padding-bottom: 12px;
}
.letter p { margin: 0 0 18px; }
.letter p:last-child { margin-bottom: 0; }
.letter .sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: #5a3416;
  margin-top: 28px;
}
.letter .ps {
  margin-top: 22px;
  font-size: 13px;
  color: #5a3416;
  border-top: 1px dashed #b89868;
  padding-top: 14px;
}

.story-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.aside-stat {
  border: 1px solid var(--walnut-600);
  background: linear-gradient(to bottom, rgba(40,20,10,.4), rgba(20,10,4,.6));
  padding: 28px 30px;
  border-radius: 2px;
  position: relative;
}
.aside-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px;
  height: 24px;
  border-top: 1px solid var(--amber-500);
  border-left: 1px solid var(--amber-500);
}
.aside-stat::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 24px;
  height: 24px;
  border-bottom: 1px solid var(--amber-500);
  border-right: 1px solid var(--amber-500);
}
.aside-stat .num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--amber-300);
  font-style: italic;
}
.aside-stat .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory-300);
  margin-top: 8px;
}
.aside-stat .desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ivory-200);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-aside { position: static; }
  .letter { padding: 36px 28px; }
}

/* ================= REGISTRATION ================= */
.register {
  padding: 140px 5vw;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.25), transparent);
}
.register-grid {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-card {
  background:
    linear-gradient(to bottom, #f3e6cc 0%, #e6d4ad 100%);
  color: var(--ink);
  padding: 48px 44px;
  border-radius: 1px;
  box-shadow:
    0 30px 60px -10px rgba(0,0,0,.6),
    0 14px 0 -10px #d8c294;
  position: relative;
}
.form-card .stamp {
  position: absolute;
  top: -18px; left: 36px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  background: var(--ink);
  color: var(--amber-300);
  padding: 6px 14px;
  border-radius: 2px;
  text-transform: uppercase;
}
.form-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--ink);
}
.form-card p.lead {
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0 0 28px;
  color: var(--ink-soft);
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed #8a6a3a;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #5a3416;
  border-style: solid;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(60,40,20,.4);
  font-style: italic;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.submit-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .15em;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.form-success.on { display: block; }
.form-success .seal {
  width: 90px; height: 90px;
  border: 2px solid #8a3a1a;
  color: #8a3a1a;
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  transform: rotate(-8deg);
  background: rgba(255,240,210,.4);
}

/* Payment side */
.payment {
  background: linear-gradient(to bottom, rgba(40,20,10,.5), rgba(20,10,4,.7));
  border: 1px solid var(--walnut-600);
  padding: 48px 44px;
  border-radius: 2px;
  position: relative;
}
.payment::before, .payment::after {
  content: ""; position: absolute;
  width: 28px; height: 28px;
}
.payment::before { top: 0; left: 0; border-top: 1px solid var(--amber-500); border-left: 1px solid var(--amber-500); }
.payment::after  { bottom: 0; right: 0; border-bottom: 1px solid var(--amber-500); border-right: 1px solid var(--amber-500); }

.payment h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--ivory-100);
}
.payment .lead {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ivory-300);
  margin: 0 0 30px;
}
.qr-card {
  background: var(--paper);
  padding: 24px;
  border-radius: 2px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6);
  color: var(--ink);
  position: relative;
  transform: rotate(-.5deg);
}
.qr-card::before {
  content: "WERO · BETALING";
  position: absolute;
  top: -14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  background: var(--amber-500);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 1px;
}
.qr {
  width: 130px;
  height: 130px;
  background:
    conic-gradient(from 0deg at 14% 14%, #1a0a04 25%, transparent 0) 0 0/22px 22px,
    conic-gradient(from 0deg at 14% 14%, #1a0a04 25%, transparent 0) 11px 11px/22px 22px,
    var(--paper);
  background-blend-mode: multiply;
  position: relative;
  border: 4px solid var(--paper);
  outline: 1px solid var(--ink);
}
.qr::before, .qr::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  background: var(--paper);
  border: 6px solid var(--ink);
}
.qr::before { top: -1px; left: -1px; }
.qr::after  { top: -1px; right: -1px; }
.qr-mid {
  position: absolute;
  bottom: -1px; left: -1px;
  width: 28px; height: 28px;
  background: var(--paper);
  border: 6px solid var(--ink);
}
.qr-info { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.qr-info .amt {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  display: block;
  color: var(--ink);
}
.qr-info .iban {
  display: block;
  margin-top: 6px;
  letter-spacing: .1em;
  word-break: break-all;
}
.payment-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ivory-300);
  border-top: 1px dashed var(--walnut-600);
  padding-top: 18px;
}

@media (max-width: 900px) {
  .register-grid { grid-template-columns: 1fr; }
  .form-card, .payment { padding: 36px 28px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ================= MEDIA / UPDATES ================= */
.media {
  padding: 140px 5vw;
}
.notes {
  max-width: 1300px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}
.note {
  background: var(--paper);
  color: var(--ink);
  padding: 30px 28px 26px;
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  box-shadow:
    0 1px 0 #fff7e3 inset,
    0 20px 40px -10px rgba(0,0,0,.6);
  transform: rotate(var(--rot, -1deg));
  transition: transform .3s;
}
.note:hover { transform: rotate(0) translateY(-4px); }
.note::before {
  /* push pin */
  content: "";
  position: absolute;
  top: -10px; left: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e85a3a 0%, #8a2010 70%, #4a0808 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
  z-index: 2;
}
.note:nth-child(2)::before { background: radial-gradient(circle at 35% 30%, #c89a4e 0%, #6a4a1a 70%, #2a1804 100%); }
.note:nth-child(3)::before { background: radial-gradient(circle at 35% 30%, #4a8a4a 0%, #1a4a1a 70%, #08200a 100%); }
.note:nth-child(4)::before { background: radial-gradient(circle at 35% 30%, #4a6a8a 0%, #1a3a5a 70%, #08182a 100%); }

.note .date {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  border-bottom: 1px dashed #b89868;
  padding-bottom: 8px;
}
.note h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink);
}
.note p { margin: 0 0 8px; }
.note .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, rgba(60,40,20,.06) 0 8px, rgba(60,40,20,.12) 8px 16px),
    linear-gradient(to bottom right, #d8c294, #b89868);
  margin: 12px 0;
  position: relative;
  display: grid;
  place-content: center;
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.note .tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--amber-300);
  padding: 4px 10px;
  margin-top: 8px;
}

/* ================= FOOTER ================= */
footer {
  position: relative;
  z-index: 5;
  padding: 100px 5vw 60px;
  border-top: 1px solid var(--walnut-700);
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.4));
}
.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin: 0 0 14px;
}
.footer-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ivory-100);
  line-height: 1.3;
}
.footer-mark .sig {
  display: block;
  margin-top: 20px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 32px;
  color: var(--amber-300);
}
.footer-grid p, .footer-grid a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ivory-300);
  text-decoration: none;
  line-height: 1.9;
}
.footer-grid a:hover { color: var(--amber-300); }
.footer-meta {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px dashed var(--walnut-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ivory-400);
}
.footer-meta .catan-trigger {
  cursor: help;
  border-bottom: 1px dashed var(--amber-500);
  color: var(--amber-300);
  user-select: none;
}

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

/* ================= EASTER EGG MODAL ================= */
.egg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,4,2,.85);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 30px;
  opacity: 0;
  transition: opacity .4s;
}
.egg-modal.on { display: grid; opacity: 1; }
.egg-card {
  background: var(--paper);
  color: var(--ink);
  padding: 50px 50px 44px;
  max-width: 560px;
  border-radius: 1px;
  box-shadow:
    0 1px 0 #fff7e3 inset,
    0 40px 80px -10px rgba(0,0,0,.8),
    0 14px 0 -10px #d8c294;
  font-family: var(--font-mono);
  position: relative;
  transform: rotate(-1deg);
}
.egg-card .seal {
  position: absolute;
  top: 30px; right: 30px;
  width: 80px; height: 80px;
  border: 2px solid #8a3a1a;
  color: #8a3a1a;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 9px;
  letter-spacing: .15em;
  transform: rotate(-12deg);
  text-align: center;
  line-height: 1.2;
}
.egg-card h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 14px;
  color: var(--ink);
}
.egg-card .clue {
  margin-top: 22px;
  padding: 14px 18px;
  background: rgba(60,40,20,.08);
  border-left: 3px solid var(--amber-500);
  font-size: 13px;
}
.egg-card .close {
  position: absolute;
  bottom: 14px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.egg-card .close:hover { color: var(--ink); }

/* ================= UTILITIES ================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s, transform 1s;
}
.fade-up.in { opacity: 1; transform: none; }
