/* Side Quest Supply — 1B dark quest board storefront mockup */

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/press-start-2p.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/libre-baskerville-400.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/libre-baskerville-400i.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/libre-baskerville-700.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/nunito.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/nunito-italic.woff2") format("woff2");
}

:root {
  --bg: #121212;
  --gold: #E0B04A;
  --gold-deep: #B8892C;
  --gold-soft: #F0D089;
  --parchment: #D8B98A;
  --parchment-deep: #C4A06E;
  --cream: #F5EFE0;
  --ink: #2C2114;
  --ink-soft: #5A4630;
  --header: rgba(10, 10, 10, 0.88);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --font-note: "Libre Baskerville", "Times New Roman", serif;
  --header-h: 5.25rem;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--bg);
  background-image: url("assets/img/board-texture.jpg");
  background-size: 512px;
  background-repeat: repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--gold-soft); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header);
  background-image: url("assets/img/board-texture.jpg");
  background-size: 512px;
  background-blend-mode: multiply;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 3.5rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  border: 3px solid var(--gold-deep);
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--gold-deep), 0 6px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--gold-deep), 0 8px 14px rgba(0, 0, 0, 0.32);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--gold-deep);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-deep);
}

.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  border-color: #1a140c;
  box-shadow: 0 3px 0 #1a140c, 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-ink:hover { background: #3d2e1c; color: var(--cream); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  /* Height follows 16:9 until the cap. Do not use aspect-ratio here:
     max-height would transfer through the ratio and shrink the width
     on wide screens, leaving an empty band on the right. */
  height: clamp(28rem, 56.25vw, 46rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-color: #121212;
  background-image: url("assets/img/banner-1b.jpg");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: -2;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-copy {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 2.5rem 1.4rem 3rem;
  text-align: center;
}

.hero .btn {
  font-size: 0.7rem;
  padding: 1rem 1.45rem;
}

.hero-sub {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.92rem, 2.3vw, 1.45rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--cream);
  text-shadow: 0 2px 0 #000, 0 8px 18px rgba(0, 0, 0, 0.55);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.25rem 1.4rem 1.5rem;
}

.section[id],
.site-footer[id] {
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section h2,
.parchment-board h2,
.site-footer h2 {
  margin: 0 0 1rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.78rem, 1.7vw, 1.05rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--gold);
  text-shadow: 0 2px 0 #000;
}

.parchment-board h2,
.quest-card h3 {
  color: var(--ink);
  text-shadow: none;
}

.section-lead {
  margin: 0;
  color: var(--cream);
  font-size: 1.08rem;
}

/* ---------- Quest cards ---------- */

.quest-grid {
  list-style: none;
  margin: 0 auto;
  padding: 1.4rem 0 0;
  max-width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 1.8rem;
}

.quest-card,
.parchment-board {
  position: relative;
  background-color: var(--parchment);
  background-image: url("assets/img/parchment.jpg");
  background-size: 320px;
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 245, 220, 0.28) inset,
    0 0 0 1px rgba(80, 52, 24, 0.18),
    var(--shadow);
}

.quest-card {
  margin: 0;
  padding: 2.15rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.quest-card .pin,
.parchment-board .pin {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  width: 2rem;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 2;
}

.parchment-board .pin-left {
  left: 18%;
  transform: none;
}

.parchment-board .pin-right {
  left: auto;
  right: 18%;
  transform: none;
}

.tilt-a { transform: rotate(-1.5deg); }
.tilt-b { transform: rotate(1.3deg); }
.tilt-c { transform: rotate(-0.7deg); }
.tilt-d { transform: rotate(1.7deg); }
.tilt-e { transform: rotate(-1.2deg); }
.tilt-f { transform: rotate(0.8deg); }

.quest-card:hover {
  transform: rotate(0deg) translateY(-6px);
  z-index: 3;
}

.sealed-stamp {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.28rem 0.5rem;
  border: 2px solid #7A4B16;
  color: #7A4B16;
  font-family: var(--font-pixel);
  font-size: 0.46rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
  transform: rotate(-5deg);
  text-align: center;
  max-width: 100%;
}

.quest-no {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.quest-card h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.7;
}

.quest-status {
  margin: 0 0 0.7rem;
  font-family: var(--font-note);
  font-style: italic;
  color: var(--ink-soft);
}

.quest-blurb {
  margin: 0 0 1.1rem;
  font-family: var(--font-note);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.price {
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-amt {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--ink);
}

.price-note {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.quest-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- Parchment boards (about + suggest) ---------- */

.parchment-board {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.6rem 2.1rem 2.2rem;
}

.faq-board dl {
  margin: 0.35rem 0 0;
}

.faq-board dt {
  margin: 1.15rem 0 0.35rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--ink);
}

.faq-board dt:first-of-type { margin-top: 0.15rem; }

.faq-board dd {
  margin: 0;
  font-family: var(--font-note);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-board p,
.suggest-intro p {
  font-family: var(--font-note);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.about-board p:last-child { margin-bottom: 0; }

.rules-note {
  margin: 0 !important;
  padding: 0.7rem 0.85rem;
  background: rgba(139, 46, 46, 0.1);
  border-left: 3px solid #8B2E2E;
  color: #5C221C;
  font-family: var(--font-body) !important;
  font-weight: 700;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

/* ---------- Suggest form ---------- */

.suggest-board { max-width: 40rem; }

.suggest-intro { margin-bottom: 1.6rem; }

.quest-form { display: grid; gap: 1.15rem; }

.field-label,
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.req, .opt {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.field input[type="email"],
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  font-family: var(--font-note);
  font-size: 1rem;
  line-height: 1.5;
  background: rgba(255, 250, 235, 0.45);
  border: 1px solid rgba(44, 33, 20, 0.28);
  border-bottom: 2px solid rgba(44, 33, 20, 0.5);
  border-radius: 2px;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder,
.field textarea::placeholder {
  color: #8A7355;
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  background: rgba(255, 250, 235, 0.75);
}

.photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  margin: 0;
  padding: 0.85rem;
  border: 2px dashed rgba(44, 33, 20, 0.4);
  background: rgba(255, 250, 235, 0.28);
  cursor: pointer;
  text-align: center;
}

.photo-drop:hover { background: rgba(255, 250, 235, 0.5); border-color: var(--ink); }

.photo-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-cta-title,
.photo-cta-sub { display: block; }

.photo-cta-title {
  font-weight: 700;
  color: var(--ink);
}

.photo-cta-sub {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.photo-preview {
  max-width: 7.5rem;
  max-height: 7.5rem;
  width: auto;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.15);
}

.photo-drop:has(.photo-preview:not([hidden])) {
  justify-content: flex-start;
  gap: 1rem;
}

.form-actions { padding-top: 0.25rem; }

.quest-success {
  text-align: center;
  padding: 1.4rem 0 0.4rem;
}

.quest-success p { font-family: var(--font-note); }

.success-stamp {
  margin: 0 0 1rem;
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 3px solid #2E6B3A;
  color: #2E6B3A;
  font-family: var(--font-pixel) !important;
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.success-stamp:focus { outline: none; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  padding: 3rem 1.4rem 2.5rem;
  border-top: 2px solid var(--gold);
  background: rgba(0, 0, 0, 0.42);
  text-align: center;
}

.footer-inner { max-width: 36rem; margin: 0 auto; }

.footer-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  image-rendering: pixelated;
  border-radius: 6px;
}

.site-footer h2 { color: var(--gold); }

.site-footer p {
  margin: 0 0 0.75rem;
  color: var(--cream);
}

.site-footer a { overflow-wrap: anywhere; }

.footer-meta {
  margin-top: 1.4rem !important;
  font-size: 0.9rem;
  color: #c8c0b0 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .quest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem 1.3rem;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 6.6rem; }

  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 1rem 0.7rem;
    gap: 0.45rem;
  }

  .logo img { height: 2.85rem; }

  .nav {
    justify-content: center;
    gap: 0.2rem 0.72rem;
  }

  .nav a { font-size: 0.74rem; }

  .hero {
    height: clamp(32rem, 133.33vw, 42rem);
    background-position: center 22%;
  }

  .hero-art { object-position: center 22%; }

  .hero-copy { padding: 2rem 1rem 2.2rem; }

  .hero h1 { font-size: 0.92rem; }

  .hero-sub { font-size: 0.98rem; margin-bottom: 1.25rem; }

  .section { padding: 3.2rem 1rem 1.2rem; }

  .quest-grid {
    grid-template-columns: 1fr;
    max-width: 22.5rem;
    gap: 2rem;
  }

  .tilt-a, .tilt-b, .tilt-c,
  .tilt-d, .tilt-e, .tilt-f { transform: rotate(0deg); }

  .parchment-board {
    padding: 2.3rem 1.15rem 1.7rem;
  }

  .parchment-board .pin-left { left: 12%; }
  .parchment-board .pin-right { right: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .quest-card { transition: none; }
}
