/* ====================================================================
   Goonies House :: goonieshouse.com
   Same design system as the Coin Registry: night-cave cinematic ground,
   aged-parchment cards, doubloon gold, wax-seal red.
   Display: Goonies (licensed) / Pirata One. Body: IM Fell English.
   ==================================================================== */

@font-face {
  font-family: 'Goonies';
  src: url('./assets/fonts/Goonies.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pirata One';
  src: url('./assets/fonts/pirata-one-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell English';
  src: url('./assets/fonts/im-fell-english-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IM Fell English';
  src: url('./assets/fonts/im-fell-english-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --night-950: #0b0805;
  --night-900: #120c06;
  --night-800: #241809;
  --parchment: #ecdcb4;
  --parchment-hi: #f4e8c8;
  --parchment-lo: #dfc893;
  --ink: #2a1c10;
  --gold: #c9992e;
  --gold-bright: #ecc45c;
  --gold-deep: #8a6516;
  --wax: #7e1d12;
  --sea: #16302c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--parchment);
  background:
    radial-gradient(1100px 520px at 50% -120px, var(--night-800) 0%, var(--night-900) 55%, var(--night-950) 100%)
    fixed var(--night-950);
}

/* film-grain over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0 0.25 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app { max-width: 980px; margin: 0 auto; padding: 0 1.25rem; min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------ typography */
h1, h2, .display {
  font-family: 'Goonies', 'Pirata One', 'IM Fell English', serif;
  word-spacing: -0.32em;
  text-transform: uppercase;
}
h3 { font-family: 'Pirata One', 'IM Fell English', serif; }
h1, h2, h3, .display {
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  margin: 1.2rem 0 0.6rem;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }
a { color: var(--gold-bright); text-underline-offset: 3px; }
small { opacity: 0.8; }
em { font-style: italic; }

/* ------------------------------------------------ header / footer */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
  margin: 0 -1.25rem;
  padding-inline: 1.25rem;
  background: rgba(11, 8, 5, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 153, 46, 0.35);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Goonies', 'Pirata One', serif;
  word-spacing: -0.32em;
  text-transform: uppercase;
  font-size: 1.35rem;
  color: var(--gold-bright);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(236, 196, 92, 0.35);
}
nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
nav a {
  color: var(--parchment);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}
nav a:hover { color: var(--gold-bright); text-decoration: underline; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 153, 46, 0.55);
  box-shadow: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
}

.head-actions { display: flex; align-items: center; gap: 0.55rem; }
/* compact registry CTA in the sticky header: mobile only (desktop nav has the full button).
   Scoped selector so it outranks .btn's display: inline-block. */
.head-actions .head-register { display: none; }
/* one-tap Venmo in the sticky header: mobile only (desktop gets the QR section) */
.venmo-head {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #3d95ce, #2b6e9e);
  border: 1px solid #1f567e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

footer {
  margin-top: 3rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid rgba(201, 153, 46, 0.35);
  text-align: center;
}
footer .motto {
  font-family: 'Goonies', 'Pirata One', serif;
  word-spacing: -0.32em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}
footer a { color: var(--parchment); opacity: 0.75; font-size: 0.9rem; }

main { flex: 1; padding-bottom: 1rem; }

/* ------------------------------------------------ buttons */
button, .btn {
  font-family: 'Pirata One', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #241503;
  background: linear-gradient(180deg, var(--gold-bright), #b9861f);
  border: 1px solid var(--gold-deep);
  border-radius: 6px;
  padding: 0.5rem 1.35rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 210, 0.55),
    0 2px 0 #5f450f,
    0 8px 20px rgba(0, 0, 0, 0.55);
  transition: filter 120ms ease, transform 120ms ease;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:active, .btn:active { transform: translateY(1px); }
.btn.ghost, button.ghost {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 153, 46, 0.55);
  box-shadow: none;
}
.btn.ghost:hover, button.ghost:hover { background: rgba(201, 153, 46, 0.12); }

/* ------------------------------------------------ parchment cards */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--parchment-hi), var(--parchment-lo));
  color: var(--ink);
  border: 1px solid #9c7a2e;
  border-radius: 5px;
  padding: 1.4rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), inset 0 0 46px rgba(140, 100, 30, 0.22);
}
.card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(122, 88, 26, 0.5);
  border-radius: 3px;
  pointer-events: none;
}
.card h1, .card h2, .card h3 { color: #5a3a12; text-shadow: 0 1px 0 rgba(255, 244, 205, 0.7); }
.card a { color: var(--wax); }
.card small { color: #5c452a; }

/* ------------------------------------------------ hero */
.hero {
  position: relative;
  margin-top: 1.25rem;
  min-height: 520px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(201, 153, 46, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 8, 5, 0.45), rgba(11, 8, 5, 0.25) 45%, rgba(11, 8, 5, 0.72));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem;
  max-width: 680px;
  background: radial-gradient(closest-side, rgba(11, 8, 5, 0.55), rgba(11, 8, 5, 0.25) 60%, transparent);
}
.hero-kicker {
  font-variant: small-caps;
  letter-spacing: 0.35em;
  color: var(--parchment);
  opacity: 0.85;
  margin-bottom: 0.4rem;
}
.hero-kicker span { white-space: nowrap; }
.hero-title {
  font-family: 'Goonies', 'Pirata One', serif;
  word-spacing: -0.32em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7.5vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  background: linear-gradient(180deg, #f8dd85 20%, #d3a234 55%, #92691a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 26px rgba(236, 196, 92, 0.25));
}
.hero-sub { font-style: italic; font-size: 1.2rem; margin: 0.9rem 0 1.6rem; color: var(--parchment-hi); text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------ dividers */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.6rem 0 0.4rem;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 153, 46, 0.55), transparent);
}
.divider h2 { margin: 0; }

/* ------------------------------------------------ destination tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.tile {
  position: relative;
  display: block;
  text-decoration: none;
  background: linear-gradient(160deg, var(--parchment-hi), var(--parchment-lo));
  color: var(--ink);
  border: 1px solid #9c7a2e;
  border-radius: 5px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), inset 0 0 46px rgba(140, 100, 30, 0.22);
  transition: transform 150ms ease, filter 150ms ease;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(122, 88, 26, 0.5);
  border-radius: 3px;
  pointer-events: none;
}
.tile:hover { transform: translateY(-3px); filter: brightness(1.04); }
.tile h3 { margin: 0.4rem 0 0.4rem; color: #5a3a12; text-shadow: 0 1px 0 rgba(255, 244, 205, 0.7); }
.tile p { margin: 0; color: var(--ink); }
.tile .go {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: 'Pirata One', serif;
  color: var(--wax);
  letter-spacing: 0.05em;
}
.tile.soon:hover { transform: none; }
.tile.soon a.go:hover { text-decoration: underline; }
.tile-icon { font-size: 1.8rem; line-height: 1; }
.soon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--wax);
  color: #f6e0c6;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #5a140c;
  transform: rotate(3deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------ doubloon coins */
.coins { display: flex; gap: 3rem; justify-content: center; margin: 2.2rem 0 1rem; flex-wrap: wrap; }
.coin-stat { text-align: center; width: 200px; }
.coin {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%, #f6dd8c, #cf9f34 45%, #7a5713 82%, #5c400c);
  box-shadow:
    inset 0 0 0 7px rgba(122, 87, 19, 0.6),
    inset 0 0 26px rgba(60, 40, 5, 0.75),
    0 10px 26px rgba(0, 0, 0, 0.65);
  animation: coin-float 6s ease-in-out infinite;
}
.coin-stat:nth-child(2) .coin { animation-delay: 1.6s; }
.coin-stat:nth-child(3) .coin { animation-delay: 3.2s; }
.coin .num {
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: bold;
  font-size: 2.3rem;
  line-height: 1;
  color: #3d2a08;
  text-shadow: 0 1px 0 rgba(255, 240, 180, 0.7);
}
.coin .of { display: block; font-size: 0.85rem; font-family: 'IM Fell English', serif; font-weight: normal; }
.coin.silver {
  background: radial-gradient(circle at 35% 28%, #f4f4f0, #b9bcc2 45%, #6b6f77 82%, #4a4d55);
  box-shadow:
    inset 0 0 0 7px rgba(90, 94, 102, 0.65),
    inset 0 0 26px rgba(30, 32, 38, 0.7),
    0 10px 26px rgba(0, 0, 0, 0.65);
}
.coin.silver .num { color: #26282e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); }
.coin.proof {
  background: radial-gradient(circle at 35% 28%, #6a6560, #423d38 45%, #241f1b 82%, #16120f);
  box-shadow:
    inset 0 0 0 7px rgba(126, 29, 18, 0.55),
    inset 0 0 26px rgba(0, 0, 0, 0.8),
    0 10px 26px rgba(0, 0, 0, 0.65);
}
.coin.proof .num { color: var(--parchment-hi); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.coin-label { font-variant: small-caps; letter-spacing: 0.08em; color: var(--parchment); }
.coin-note { font-size: 0.92rem; opacity: 0.8; font-style: italic; }
@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .coin { animation: none; }
}

/* ------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin: 1.4rem 0; }
.steps .card { margin: 0; }
.step-head { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.3rem; }
.step-head h3 { margin: 0; flex: 1; }
.step-numeral {
  font-family: 'Pirata One', serif;
  font-size: 2.1rem;
  color: var(--wax);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 244, 205, 0.8);
}

/* ------------------------------------------------ photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.4rem 0; }
.gallery figure {
  margin: 0;
  padding: 0.6rem 0.6rem 0.4rem;
  background: linear-gradient(160deg, var(--parchment-hi), var(--parchment-lo));
  border: 1px solid #9c7a2e;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.6deg);
  transition: transform 150ms ease;
}
.gallery figure:nth-child(even) { transform: rotate(0.7deg); }
.gallery figure:hover { transform: rotate(0) scale(1.02); }
.gallery img { width: 100%; display: block; border: 1px solid #6b5320; border-radius: 2px; }
.gallery figcaption {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--ink);
  padding-top: 0.35rem;
}

/* ------------------------------------------------ support / donate */
.support-flex { display: flex; gap: 2.2rem; align-items: center; }
.support-copy { flex: 1; min-width: 0; }
/* a.venmo-btn outranks the parchment card's .card a wax-red link color */
a.venmo-btn, .card a.venmo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #4aa3dc, #2b6e9e);
  border: 1px solid #1f567e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 0 #1a4664,
    0 8px 20px rgba(0, 0, 0, 0.55);
}
.venmo-btn svg { flex-shrink: 0; }
.venmo-handle { margin: 0.5rem 0 0; }
.support-qr { text-align: center; flex-shrink: 0; }
.support-qr .qr-frame {
  display: inline-block;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid #9c7a2e;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  line-height: 0;
}
.support-qr img { width: 168px; height: 168px; display: block; }
.support-qr .scan-hint {
  display: block;
  margin-top: 0.5rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: #5c452a;
  font-size: 0.9rem;
}

/* ------------------------------------------------ misc */
.center { text-align: center; margin-top: 2.5rem; }
.stakes { margin-top: 1rem; line-height: 1.7; }
.quiet { opacity: 0.75; }
.lede { font-size: 1.12rem; max-width: 46rem; }

/* ------------------------------------------------ mobile */
@media (max-width: 640px) {
  body { font-size: 1.18rem; line-height: 1.6; }
  header { padding: 0.5rem 0; gap: 0.4rem; flex-wrap: nowrap; justify-content: space-between; }
  .brand { font-size: 1.4rem; gap: 0.45rem; white-space: nowrap; }
  .brand svg { width: 30px; height: 30px; }
  .nav-toggle { display: inline-flex; }
  .venmo-head { display: inline-flex; width: 34px; height: 34px; }
  .venmo-head svg { width: 17px; height: 17px; }
  .head-actions .head-register { display: inline-block; font-size: 1.05rem; padding: 0.4rem 0.8rem; }

  /* donation: big one-tap button, no QR (you're already on the phone) */
  .support-flex { flex-direction: column; align-items: stretch; gap: 0; }
  .support-qr { display: none; }
  .venmo-btn { width: 100%; justify-content: center; font-size: 1.25rem; padding: 0.8rem 1rem; }
  .venmo-handle { text-align: center; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 8, 5, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 153, 46, 0.35);
    padding: 0.4rem 1.25rem 1rem;
  }
  nav.open { display: flex; }
  nav a { font-size: 1.2rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(201, 153, 46, 0.18); }
  button, .btn { font-size: 1.02rem; padding: 0.5rem 1rem; }

  h3 { font-size: 1.4rem; }

  .hero { min-height: min(78vh, 640px); border-radius: 8px; margin-top: 1rem; }
  .hero-content { padding: 2.2rem 1rem; }
  .hero-kicker { letter-spacing: 0.2em; font-size: 0.9rem; }
  /* stack the kicker as two clean centered lines instead of a ragged wrap */
  .hero-kicker span { display: block; }
  .hero-kicker .sep { display: none; }
  .hero-sub { font-size: 1.15rem; margin: 0.7rem 0 1.3rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 0.7rem; }
  .hero-actions .btn { min-width: 260px; text-align: center; font-size: 1.35rem; padding: 0.85rem 1.5rem; }

  /* coins become compact side-by-side rows: coin left, story right */
  .coins { flex-direction: column; align-items: center; gap: 1.4rem; margin: 1.6rem 0 0.6rem; }
  .coin-stat {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    max-width: 360px;
    text-align: left;
  }
  .coin { width: 108px; height: 108px; margin: 0; flex-shrink: 0; }
  .coin .num { font-size: 1.55rem; }
  .coin .of { font-size: 0.72rem; }
  .coin-copy { flex: 1; min-width: 0; }
  .coin-label { font-size: 1.05rem; }
  .coin-note { margin: 0.2rem 0 0; font-size: 1rem; }

  .card { padding: 1.2rem 1.3rem; }
  .card p { font-size: 1.15rem; }
  .divider { margin-top: 2rem; }
  .steps { gap: 0.9rem; }
  .step-numeral { font-size: 2rem; }

  /* two-up polaroid wall instead of four screen-filling photos */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .gallery figure { padding: 0.45rem 0.45rem 0.3rem; }
  .gallery img { aspect-ratio: 4 / 5; object-fit: cover; }
  .gallery figcaption { font-size: 0.82rem; letter-spacing: 0.03em; padding-top: 0.28rem; }

  .tiles { gap: 0.9rem; }
  .lede { font-size: 1.15rem; }

  footer .motto { font-size: 1.35rem; }
  footer a { font-size: 1rem; }
}
