/* mrhga.com: #MRHGA. Sherwood at dusk: the banner's dark forest, lantern gold and the hat's own colours. */
:root {
  --night: #080d06;
  --bg: #0f180c;
  --text: #efe7cc;
  --text-soft: #c4bc9c;
  --line: rgba(246, 215, 124, .3);
  --paper: #f4f0dc;
  --ink: #24140b;
  --ink-soft: #3d2d20;
  --forest: #3f6d33;
  --forest-dk: #2c4f25;
  --forest-deep: #182b14;
  --gold: #e4b440;
  --gold-hi: #f6d77c;
  --gold-dk: #b5852a;
  --feather: #e0392d;
  --feather-dk: #a8261d;
  --cream: #f5ecd0;
  --display: "Grenze Gotisch", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .8 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  font: 400 1.125rem/1.6 var(--body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 38% at 50% 14%, rgba(255, 186, 84, .17), transparent 72%),
    radial-gradient(ellipse 50% 40% at 0% 34%, rgba(62, 104, 46, .26), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 68%, rgba(62, 104, 46, .22), transparent 70%);
}
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background-image: var(--grain); opacity: .06; }
body::after { background: radial-gradient(ellipse at 50% 42%, transparent 50%, rgba(0, 0, 0, .55) 100%); }

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.notice :focus-visible, .maker :focus-visible { outline-color: var(--feather); }
.nb { white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--gold); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── Top bar ── */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 14px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 1.4rem/1 var(--display); color: var(--gold-hi); text-decoration: none; }
.brand img { display: block; filter: drop-shadow(0 0 6px rgba(255, 200, 100, .45)); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { font: 600 1.15rem/1 var(--display); color: var(--text); text-decoration: none; padding: 9px 12px 7px; border-radius: 10px; white-space: nowrap; }
.top nav a:hover { background: rgba(255, 240, 200, .08); }
.top nav .nav-cta { margin-left: 4px; color: var(--ink); background: var(--gold); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 #000, 0 0 18px rgba(255, 200, 90, .25); }
.top nav .nav-cta:hover { background: var(--gold-hi); }
@media (max-width: 560px) { .top nav .nav-why { display: none; } }

/* ── Buttons and chips ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 52px; padding: .55em 1.25em .42em;
  font: 800 1.35rem/1 var(--display); letter-spacing: .02em;
  color: var(--ink); text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 #000;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.btn:disabled { cursor: not-allowed; filter: grayscale(.7) opacity(.55); transform: none; box-shadow: 0 5px 0 #000; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #d39e2e); box-shadow: 0 5px 0 #000, 0 0 26px rgba(255, 196, 90, .28); }
.btn-gold:hover { box-shadow: 0 7px 0 #000, 0 0 34px rgba(255, 196, 90, .4); }
.btn-green { color: var(--cream); background: linear-gradient(180deg, #548a44, var(--forest) 55%, var(--forest-dk)); }
.btn-sm { min-height: 42px; font-size: 1.15rem; padding: .45em 1em .35em; }
.maker .btn, .notice .btn { box-shadow: 0 5px 0 var(--ink); }
.maker .btn:hover { box-shadow: 0 7px 0 var(--ink); }
.maker .btn:active { box-shadow: 0 1px 0 var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 6px 12px 5px; margin: 2px 0;
  font: 700 .95rem/1.1 var(--body); color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 2px 0 #000;
}
.chip:active { transform: translateY(2px); box-shadow: none; }
.chip-gold { background: var(--gold); }

.kicker {
  display: inline-block; margin: 0 0 14px; padding: 7px 16px 5px;
  font: 800 1.25rem/1 var(--display); letter-spacing: .04em;
  color: var(--gold-hi); background: var(--forest-dk);
  border: 2px solid rgba(246, 215, 124, .6); border-radius: 999px; box-shadow: 0 3px 0 #000;
  transform: rotate(-2deg);
}

/* The hat's lettering: gold, inked, glowing like the hat on the banner. */
.hero h1, .final h2, .section-head h2, .why-card .num, .lost h1 {
  color: var(--gold);
  -webkit-text-stroke: .045em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 #000, 0 0 .55em rgba(255, 186, 80, .35);
}

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 92px 16px 84px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 34%;
  width: min(1100px, 150vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 190, 90, .26) 0%, rgba(255, 170, 70, .1) 32%, transparent 62%);
  animation: lantern 5s ease-in-out infinite;
}
@keyframes lantern { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.hero-hat {
  width: min(78vw, 480px); margin: 0 0 8px;
  transform-origin: 50% 85%;
  animation: hat-drop 1.1s cubic-bezier(.2, .9, .3, 1.2) both, hat-bob 6s ease-in-out 1.1s infinite;
}
.hero-hat img, .glow-hat {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 1.5px #ffe9a8) drop-shadow(0 0 4px rgba(255, 214, 120, .85)) drop-shadow(0 0 26px rgba(255, 186, 80, .45)) drop-shadow(0 26px 22px rgba(0, 0, 0, .6));
}
@keyframes hat-drop { from { opacity: 0; transform: translateY(-70px) rotate(-12deg) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes hat-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.6deg); } }
.hero h1 { margin: 0; max-width: 16ch; font-size: clamp(2.8rem, 9.5vw, 6.6rem); line-height: .9; letter-spacing: .01em; }
.lede { margin: 20px 0 0; font: italic 400 clamp(1.3rem, 2.8vw, 1.7rem)/1.3 var(--body); color: var(--text-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.ca {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  max-width: min(100%, 800px); margin-top: 24px; padding: 8px 10px 8px 14px;
  color: var(--ink); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 #000;
}
.ca-label { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; }
.ca b { font: 800 1.25rem/1 var(--display); }
.ca small { font: 700 .72rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #6b5a45; }
.ca code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font: 600 clamp(.66rem, 3.1vw, .9rem)/1.3 ui-monospace, Consolas, monospace; user-select: all; }
.final-ca { margin-top: 30px; }
.cue { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: var(--text-soft); opacity: .7; padding: 6px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Embers drifting up through the hero (made by site.js). */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers span {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: #ffd98a; box-shadow: 0 0 8px 2px rgba(255, 186, 80, .65);
  opacity: 0; animation: ember linear infinite;
}
.embers span:nth-child(even) { animation-name: ember-left; }
@keyframes ember { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate3d(40px, -78vh, 0); opacity: 0; } }
@keyframes ember-left { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate3d(-46px, -70vh, 0); opacity: 0; } }

/* ── Ribbon ── */
.ribbon {
  position: relative; z-index: 2; overflow: hidden;
  margin: 0 -6vw; padding: 15px 0 13px;
  background: linear-gradient(180deg, #4a7b3c, var(--forest) 50%, var(--forest-dk));
  border-block: 3px solid var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: rotate(-2deg);
}
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(246, 215, 124, .75) 0 10px, transparent 10px 18px); }
.ribbon::before { top: 5px; }
.ribbon::after { bottom: 5px; }
.ribbon-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ribbon-track span { padding-right: .7em; white-space: nowrap; font: 800 clamp(1.3rem, 2.8vw, 1.8rem)/1 var(--display); letter-spacing: .03em; color: var(--gold-hi); text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.ribbon-track .sep { color: var(--feather); font-family: var(--body); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── The notice, nailed up with an arrow ── */
.call { display: grid; place-items: center; padding: clamp(90px, 11vw, 136px) 16px clamp(70px, 9vw, 110px); }
.notice {
  position: relative; max-width: 680px; color: var(--ink);
  padding: clamp(30px, 5.5vw, 56px) clamp(24px, 5.5vw, 56px);
  background: radial-gradient(ellipse at 30% 20%, #faf7e8, var(--paper) 55%, #e6dfc0);
  border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 190, 90, .12);
  transform: rotate(-1.2deg);
}
.notice::before { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 2px dashed rgba(36, 20, 11, .26); border-radius: 4px; }
.notice-kicker { margin: 0 0 8px; font: 700 .9rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--feather-dk); }
.notice h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: .95; }
.notice p { margin: 0 0 14px; font-size: 1.2rem; }
.notice .notice-three { font-weight: 700; font-style: italic; }
.notice .sign { margin: 24px 0 0; font: 800 clamp(1.55rem, 3.8vw, 2.2rem)/1.05 var(--display); color: var(--forest-dk); }
.pin {
  position: absolute; z-index: 2; top: 12px; right: -64px;
  width: clamp(160px, 28vw, 240px); height: auto;
  transform-origin: 2% 50%; transform: rotate(-30deg);
  filter: drop-shadow(6px 9px 4px rgba(0, 0, 0, .45));
}
.js .notice .pin { opacity: 0; }
.js .notice.in .pin { opacity: 1; animation: arrow-in .5s cubic-bezier(.25, 1.4, .5, 1) both, wobble .7s ease-out .5s; }
@keyframes arrow-in { from { opacity: 0; transform: translate(240px, -200px) rotate(-30deg); } 60% { opacity: 1; } to { opacity: 1; transform: rotate(-30deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-30deg); } 20% { transform: rotate(-35deg); } 45% { transform: rotate(-27deg); } 70% { transform: rotate(-31.5deg); } }
@media (max-width: 600px) { .pin { right: -30px; top: 6px; } }

/* ── Why Robinhood ── */
.why { max-width: 1080px; margin: 0 auto; padding: 20px 16px clamp(84px, 10vw, 120px); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: .95; }
.section-head p { margin: 12px 0 0; font-size: 1.2rem; font-style: italic; color: var(--text-soft); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 720px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-card {
  position: relative; padding: 26px 26px 24px 94px;
  background: linear-gradient(180deg, rgba(52, 82, 40, .5), rgba(14, 24, 11, .78));
  border: 2px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 236, 170, .1);
}
.why-card .num { position: absolute; left: 18px; top: 18px; width: 60px; text-align: center; font: 800 2.7rem/1 var(--display); }
.why-card h3 { margin: 0 0 6px; font-size: 1.95rem; line-height: 1; color: var(--gold-hi); }
.why-card p { margin: 0; color: var(--text); }
.why-coda { margin: 46px auto 0; max-width: 640px; text-align: center; font: 800 clamp(1.6rem, 3.6vw, 2.2rem)/1.1 var(--display); color: var(--gold-hi); }

/* ── Wear the hat ── */
.wear {
  position: relative; isolation: isolate; color: var(--cream);
  padding: clamp(76px, 9vw, 116px) 16px;
  background: radial-gradient(ellipse 85% 60% at 50% 0%, #3a6730 0%, #22401c 50%, #13230f 100%);
  border-block: 2px solid var(--line);
}
.wear::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; pointer-events: none; }
.wear-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: clamp(30px, 4.5vw, 60px); align-items: start; }
@media (min-width: 940px) { .wear-inner { grid-template-columns: 1fr minmax(0, 1.08fr); } }
.wear .kicker { color: var(--ink); background: var(--gold); border-color: var(--ink); }
.wear h2 { margin: 4px 0 12px; font-size: clamp(2.8rem, 7.5vw, 4.8rem); line-height: .92; color: var(--gold-hi); text-shadow: 0 4px 0 #000, 0 0 .5em rgba(255, 190, 90, .3); }
.wear-intro { margin: 0; max-width: 36ch; font-size: 1.22rem; color: #e6dfc3; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 72px; line-height: 1.5; background: rgba(0, 0, 0, .28); border: 2px solid var(--line); border-radius: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 42px; height: 42px; display: grid; place-items: center;
  font: 800 1.55rem/1 var(--display); color: var(--ink);
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%;
}
.steps b { display: block; margin-bottom: 3px; font: 800 1.5rem/1.1 var(--display); color: var(--gold-hi); }
.official { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; padding: 14px; background: rgba(0, 0, 0, .28); border: 2px solid var(--line); border-radius: 16px; }
.official img { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 0 0 2px rgba(246, 215, 124, .5), 0 0 22px rgba(255, 190, 90, .3); }
.official b { display: block; margin-bottom: 8px; font: 800 1.35rem/1 var(--display); color: var(--gold-hi); }

.maker {
  display: grid; gap: 18px; padding: clamp(14px, 2.4vw, 22px);
  color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 #000, 0 30px 60px rgba(0, 0, 0, .45);
}
.stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; background: #cfd8bd; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.stage canvas:active { cursor: grabbing; }
.stage canvas:focus-visible { outline: none; }
.stage:has(canvas:focus-visible) { outline: 3px solid var(--feather); outline-offset: 3px; }
.ring {
  position: absolute; inset: 0; pointer-events: none; transition: opacity .2s;
  background: radial-gradient(circle closest-side, transparent calc(100% - 2px), rgba(255, 255, 255, .85) calc(100% - 1px), rgba(16, 28, 12, .5) 100%);
}
.ring.off { opacity: 0; }
.stage-hint {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 0; margin: 0;
  padding: 5px 12px; white-space: nowrap; pointer-events: none;
  font: 700 .9rem/1.2 var(--body); color: var(--cream); background: rgba(16, 28, 12, .72); border-radius: 999px;
  transition: opacity .4s;
}
.stage-hint.gone { opacity: 0; }
.controls { display: grid; gap: 14px; }
.file { position: relative; }
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 3px solid var(--feather); outline-offset: 3px; }
.range { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; font: 800 1.2rem/1 var(--display); }
.range input { width: 100%; height: 28px; accent-color: var(--forest); cursor: pointer; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.tog { padding: 9px 13px 8px; cursor: pointer; font: 700 1rem/1 var(--body); color: var(--ink); background: #fffaea; border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.tog:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.tog[aria-pressed="true"] { color: var(--cream); background: var(--forest); }
.fine { margin: 0; font-size: .95rem; color: var(--text-soft); }
.maker .fine { color: #5b4b3a; }
.fine a { font-weight: 700; color: var(--gold-hi); }
.maker .fine a { color: var(--forest-dk); }

/* ── Final call ── */
.final { position: relative; isolation: isolate; text-align: center; padding: clamp(90px, 11vw, 140px) 16px; overflow: hidden; }
.final::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 30%; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 190, 90, .18), transparent 60%);
}
.final .glow-hat { width: 150px; margin: 0 auto 10px; animation: hat-bob 6s ease-in-out infinite; }
.final h2 { margin: 8px auto 10px; max-width: 14ch; font-size: clamp(2.6rem, 7.5vw, 5.2rem); line-height: .92; }
.final p { margin: 0 0 28px; font: italic 400 1.4rem/1.3 var(--body); color: var(--text-soft); }

/* ── Footer ── */
.foot { padding: 40px 16px max(48px, env(safe-area-inset-bottom)); text-align: center; color: var(--text-soft); background: var(--night); border-top: 2px solid var(--line); }
.foot img { display: block; margin: 0 auto; }
.foot-tag { margin: 10px 0 6px; font: 800 1.55rem/1.1 var(--display); color: var(--gold-hi); }
.foot-links { display: flex; justify-content: center; gap: 18px; font-weight: 700; }
.foot-links a { color: var(--gold-hi); }
.foot .fine { max-width: 62ch; margin: 14px auto 0; color: #a7a088; font-size: .9rem; }

/* ── Scroll reveals (only once the script runs) ── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.why-card.reveal:nth-child(2) { transition-delay: .08s; }
.why-card.reveal:nth-child(3) { transition-delay: .16s; }
.why-card.reveal:nth-child(4) { transition-delay: .24s; }

/* ── 404 ── */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost .glow-hat { width: min(60vw, 300px); margin: 0 auto; transform: rotate(14deg); }
.lost h1 { margin: 16px 0 6px; font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: .95; }
.lost p { margin: 0 0 26px; font-size: 1.25rem; font-style: italic; color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .notice .pin { opacity: 1; transform: none; }
  .pin { transform: rotate(-30deg); }
  .embers { display: none; }
}
