/* Mutt N Moxie landing site. Colours and frames come from the game lobby. */

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #4a2b17;
  --ink-muted: #6b4a30;
  --ink-faint: #856952;
  --cream: #fff6e8;
  --cream-deep: #f3e2c4;
  --paper: #f6ead4;
  --wood: #c4894a;
  --wood-dark: #2c1810;
  --leaf: #3f9a34;
  --honey: #fac23d;
  --clay: #f0942e;
  --alarm: #9c2e28;
  --on-dark: #fff5e3;
  --on-dark-muted: rgba(255, 245, 227, 0.76);
  --shadow: 0 16px 40px rgba(60, 28, 10, 0.16);
  --wrap: 1120px;
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-weight: 560;
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 800;
}

::selection {
  background: #f6c453;
  color: #3d2414;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 246, 232, 0.94);
  border-bottom: 4px solid var(--wood);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 750;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(244, 194, 61, 0.35);
}

.site-nav a[aria-current="page"] {
  background: var(--honey);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle img {
  width: 28px;
  height: 28px;
}

.scene-sunset { --scene: url("../assets/bg/sunset.jpg"); --focus: 72% center; }
.scene-village { --scene: url("../assets/bg/village.jpg"); --focus: center 42%; }
.scene-meadow { --scene: url("../assets/bg/meadow.jpg"); --focus: center 40%; }
.scene-shelter { --scene: url("../assets/bg/shelter.jpg"); --focus: 78% center; }
.scene-room { --scene: url("../assets/bg/room.jpg"); --focus: center 55%; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: flex;
  align-items: center;
  color: var(--on-dark);
  background-color: #e39a55;
  background-image:
    linear-gradient(180deg, rgba(42, 20, 8, 0.12), rgba(42, 20, 8, 0.2) 55%, rgba(42, 20, 8, 0.45)),
    var(--scene);
  background-repeat: no-repeat;
  background-size: auto, cover;
  background-position: center, var(--focus, center);
}

.hero-grid {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 18px;
  padding: 48px 0 72px;
}

.mascot {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(40, 18, 6, 0.35));
}

.hero-copy {
  text-align: center;
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  letter-spacing: -0.03em;
  color: #ffe28a;
  text-shadow:
    0 3px 0 #8a4b12,
    0 7px 0 #5c3010,
    0 14px 24px rgba(40, 16, 4, 0.35);
}

.lede {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.2rem;
  color: var(--on-dark);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-hero {
  min-height: 340px;
  align-items: flex-end;
}

.page-hero .hero-grid {
  grid-template-columns: 1fr;
  padding-bottom: 48px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.wood-label {
  display: inline-block;
  margin: 0;
  padding: 2px 6px 4px;
  border: 16px solid transparent;
  border-image: url("../assets/ui/header_wood.png") 16 62 16 62 fill;
  border-image-width: 16px 54px;
  color: #fff8ea;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(90, 40, 10, 0.45);
}

.btn,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 16px;
  border: 14px solid transparent;
  border-image: url("../assets/ui/plate_play_default.png") 22 28 22 28 fill;
  border-image-width: 14px 22px;
  background: var(--leaf);
  color: #fffdf8;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(30, 70, 16, 0.35);
  cursor: pointer;
}

.btn img,
.chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.btn-gold,
.chip[aria-pressed="true"] {
  border-image-source: url("../assets/ui/plate_shop_default.png");
  background: #e6b423;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-wood {
  border-image-source: url("../assets/ui/plate_house_default.png");
  background: #e0b15a;
  color: var(--ink);
  text-shadow: none;
}

.chip {
  min-height: 48px;
  border-image-source: url("../assets/ui/plate_neutral_default.png");
  background: #d9d3c8;
  color: var(--ink);
  text-shadow: none;
  font-size: 0.98rem;
}

.btn:hover,
.chip:hover {
  filter: brightness(1.06);
}

.btn:active,
.chip:active {
  filter: brightness(0.94);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e0a020;
  outline-offset: 3px;
}

.band {
  padding: 72px 0;
}

.band-scene {
  position: relative;
  color: var(--on-dark);
  background-color: #c98448;
  background-image: var(--scene);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--focus, center);
}

.band-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 23, 10, 0.38);
}

.band-scene > .wrap {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2,
.plain-title {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-head p,
.intro {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--ink-muted);
}

.band-scene .section-head p,
.band-scene .intro {
  color: var(--on-dark-muted);
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -46px;
  list-style: none;
  padding: 0;
}

.stat {
  text-align: center;
  padding: 8px 8px 12px;
}

.stat img {
  width: 42px;
  height: 42px;
  margin: 0 auto 4px;
  object-fit: contain;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.stat span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.parchment {
  border: 28px solid transparent;
  border-image: url("../assets/ui/panel_parchment_clean.png") 26 24 26 24 fill;
  border-image-width: 28px 24px;
  background: #f8ecd4;
  color: var(--ink);
}

.inset {
  border: 18px solid transparent;
  border-image: url("../assets/ui/panel_inset.png") 24 fill;
  border-image-width: 18px;
  background: #8a5a32;
  color: var(--on-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.game-card h3,
.fact-card h3,
.shop-card h3,
.place h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.species {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.species img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.tagline {
  margin: 0 0 8px;
  font-weight: 800;
  color: #7a4318;
}

.game-card p:last-child,
.fact-card p:last-child,
.shop-card p:last-child {
  margin-bottom: 0;
}

.more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  color: #7a4318;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.fact-card .fact-icon,
.shop-card .fact-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 8px;
}

.kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a2b;
}

.skies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.sky {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.55);
  font-weight: 750;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 232, 0.8);
  box-shadow: inset 0 0 0 1px rgba(60, 30, 10, 0.25);
  flex: none;
}

.places {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.place {
  grid-column: span 2;
}

.place:nth-child(4),
.place:nth-child(5) {
  grid-column: span 3;
}

.place img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.price {
  margin: 0 0 6px;
  font-weight: 800;
  color: #8a4b12;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 1.4em 0 0.4em;
  font-size: 1.35rem;
}

.prose ul,
.prose ol {
  margin-top: 0;
  padding-left: 1.2em;
}

.prose a {
  color: #8a4514;
  font-weight: 800;
}

.legal-hero {
  padding: 36px 0 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0c39a;
  border-radius: 12px;
  background: #fffaf2;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--alarm);
}

.error-text {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--alarm);
  font-size: 0.92rem;
  font-weight: 750;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 4px;
  accent-color: var(--leaf);
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.success {
  text-align: center;
}

.success img {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  align-items: start;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.side-list img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

.empty {
  margin: 8px 0 0;
  font-weight: 800;
}

.site-footer {
  background: var(--wood-dark);
  color: var(--on-dark);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.brand-on-dark {
  color: var(--on-dark);
  margin-bottom: 8px;
}

.site-footer p {
  color: var(--on-dark-muted);
  max-width: 28rem;
}

.site-footer h2 {
  margin: 8px 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6c453;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 6px 0;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 245, 227, 0.16);
}

.footer-base p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .card-grid,
  .shop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .places {
    grid-template-columns: 1fr 1fr;
  }

  .place,
  .place:nth-child(4),
  .place:nth-child(5) {
    grid-column: auto;
  }

  .hero-grid {
    grid-template-columns: 120px 1fr 120px;
  }

  .mascot {
    width: 120px;
  }

  .contact-layout,
  .split,
  .footer-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: rgba(255, 246, 232, 0.98);
    border-bottom: 4px solid var(--wood);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }
}

@media (max-width: 680px) {
  .hero-grid,
  .card-grid,
  .shop-grid,
  .stats,
  .split,
  .form-row,
  .contact-layout,
  .footer-grid,
  .skies,
  .places {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    justify-items: center;
    padding-top: 28px;
  }

  .mascot {
    width: 140px;
  }

  .hero-grid .mascot:first-child {
    order: 1;
  }

  .hero-copy {
    order: 3;
  }

  .hero-grid .mascot:last-child {
    order: 2;
  }

  .mascots-row {
    display: contents;
  }

  .parchment {
    border-width: 22px;
    border-image-width: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .chip {
    transition: none;
  }
}
