/* Disgruntled Toad — site stylesheet
   Palette: bark #2A2017 · cream #F2E6C9 · parchment #D9CDB3 · olive #5B6B3A · amber #E8C062 · toadstool #B9412E
   Type: Fredoka 600 for h1/h2 only; Source Sans 3 for everything else. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-600.59e993bcdc.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/sourcesans3-400.edfc08e7f9.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/sourcesans3-400i.89ed95ee32.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/sourcesans3-600.9d429dba45.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bark: #2a2017;
  --bark-deep: #1e1710;
  --bark-raised: #352a1f;
  --cream: #f2e6c9;
  --parchment: #d9cdb3;
  --amber: #e8c062;
  --olive: #5b6b3a;
  --toadstool: #b9412e;
  --gutter: 16px;
  --measure: 65ch;
  --space: 3rem;
  --display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --space: 4.5rem; }
}
@media (min-width: 1200px) {
  :root { --gutter: 32px; --space: 6rem; }
}

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

html {
  background: var(--bark);
  color: var(--parchment);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }

p, li, figcaption { max-width: var(--measure); }
p { margin: 0 0 1em; }

a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 150ms ease, color 150ms ease;
}
a:hover {
  text-decoration-color: var(--toadstool);
  text-decoration-thickness: 2px;
}
/* Inline links: vertical padding on an inline box doesn't move the line, but
   it does grow the tap target to 44px. */
p a { padding-block: 0.625rem; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 20;
  background: var(--amber);
  color: var(--bark);
  padding: 0.75rem 1rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { margin-top: var(--space); }

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 2px;
}
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; gap: 0.1rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--amber); border-bottom-color: var(--toadstool); }
.site-nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--olive); }

@media (min-width: 768px) {
  .site-head { padding-block: 0.9rem; }
  .brand img { height: 64px; }
}

/* ---------- Studio: band ---------- */

.band {
  position: relative;
  width: 100%;
  background: var(--bark-deep);
}
.band .scene {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  object-position: 100% 50%; /* phones: crop the left edge so the toad clears the overlay */
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 48%, rgba(30, 23, 16, 0.55) 78%);
  pointer-events: none;
}
.band-text {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 7%;
  width: auto;
  max-width: 70%;
  margin: 0;
  text-align: right;
}
.band-text img {
  width: 100%;
  max-width: 168px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}
.tagline {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 14px rgba(30, 23, 16, 0.8);
}

@media (min-width: 768px) {
  .band .scene { aspect-ratio: 3 / 1; object-position: 50% 50%; }
  .band-text {
    top: 36%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(46%, 440px);
    max-width: none;
    right: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter)));
  }
  .band-text img { max-width: none; }
  .tagline {
    margin-top: 0.35rem;
    font-size: clamp(1.25rem, 0.75rem + 1.9vw, 1.9rem);
    white-space: normal;
  }
}

/* ---------- Studio: about, with the mascot pulled out ---------- */

.about { padding-top: 1.25rem; }
.about .mascot {
  position: relative;
  z-index: 2;
  width: auto;
  height: 200px;
  margin: 0.25rem auto 1.5rem;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
@media (min-width: 481px) {
  .about .mascot {
    float: right;
    width: 38%;
    max-width: 320px;
    height: auto;
    margin: -23% 0 0.5rem 1rem;
  }
}
.about::after { content: ""; display: block; clear: both; }
.lede { font-size: 1.25rem; }
.contact { margin-bottom: 0; max-width: 80ch; }

@media (min-width: 768px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    column-gap: 2.5rem;
    align-items: start;
    padding-top: 2rem;
  }
  .about > div { grid-column: 1; grid-row: 1; }
  .about .mascot {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: 240px;
    max-width: none;
    margin: -100px 0 0;
    justify-self: end;
  }
  .about::after { display: none; }
  .lede { font-size: 1.35rem; }
}
@media (min-width: 1200px) {
  .about { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 4rem; }
  .about .mascot { width: 320px; margin-top: -150px; }
}

/* ---------- Studio: what we're making ---------- */

.feature-link {
  display: block;
  position: relative;
  max-width: 920px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bark-deep);
  color: var(--cream);
  text-decoration: none;
}
.feature-link img { width: 100%; height: auto; }
.feature-text {
  display: block;
  padding: 1rem 1.25rem 1.25rem;
}
.feature-text strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--amber);
  transition: text-decoration-color 150ms ease;
}
.feature-text span { display: block; margin-top: 0.3rem; color: var(--parchment); }
.feature-link:hover .feature-text strong { text-decoration-color: var(--toadstool); }
.feature-link:focus-visible { outline-offset: 4px; }

@media (min-width: 768px) {
  .feature-text {
    position: absolute;
    inset: 0 auto 0 0;
    width: 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(90deg, rgba(30, 23, 16, 0.9) 50%, rgba(30, 23, 16, 0));
  }
  .feature-text strong { font-size: 1.5rem; }
}

/* ---------- Studio: sticker signature ---------- */

.moods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 0.5rem;
  max-width: 760px;
}
.moods figure { margin: 0; text-align: center; }
.moods img { width: 96px; height: auto; margin-inline: auto; }
.moods figcaption { font-size: 1rem; margin-top: 0.25rem; }

@media (min-width: 768px) {
  .moods { grid-template-columns: repeat(6, 1fr); }
  .moods img { width: 104px; }
}

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

.site-foot {
  margin-top: var(--space);
  border-top: 3px solid var(--toadstool);
  background: var(--bark-deep);
  padding-block: 1.75rem 2.25rem;
  font-size: 1rem;
}
.foot-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
}
.foot-mark { width: 56px; height: auto; margin-top: 0.4rem; }
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  column-gap: 1.5rem;
  max-width: none;
}
.foot-links li { max-width: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot-links li:first-child { grid-column: 1 / -1; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 768px) {
  .foot-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
  }
  .foot-links li:first-child { flex-basis: 100%; }
  .foot-links li:nth-child(2)::before { content: none; margin: 0; }
  .foot-links li + li::before {
    content: "\00b7";
    margin-right: 0.75rem;
    color: var(--olive);
    font-weight: 600;
  }
}

@media (min-width: 1200px) {
  .foot-links li:first-child { flex-basis: auto; }
  .foot-links li:nth-child(2)::before { content: "\00b7"; margin-right: 0.75rem; }
}

/* ---------- Game page ---------- */

.game-head { padding-top: 1.25rem; }
.feature-art {
  max-width: 880px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bark-deep);
  margin-block: 1.25rem 1.5rem;
}
.feature-art img { width: 100%; height: auto; }
.pitch { font-size: 1.25rem; }
.badge {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1.05rem;
  margin: 0.25rem 0 0.5rem;
}
.status { margin-top: 0; }

.shot-row {
  list-style: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) 1rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  max-width: none;
}
.shot-row li {
  flex: 0 0 min(72%, 280px);
  scroll-snap-align: start;
  max-width: none;
}
.phone { margin: 0; }
.phone-frame {
  border: 2px solid rgba(242, 230, 201, 0.38);
  background: var(--bark-deep);
  border-radius: 30px;
  padding: 9px;
}
.phone-frame img { width: 100%; height: auto; border-radius: 20px; }
.phone figcaption { margin-top: 0.7rem; font-size: 1rem; line-height: 1.45; }
.phone figcaption b { color: var(--cream); font-weight: 600; }

@media (min-width: 768px) {
  .shot-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .shot-row li { flex: none; }
  .pitch { font-size: 1.35rem; }
}

.plays {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plays li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.plays li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Privacy / plain prose ---------- */

.prose { padding-top: 1.25rem; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-top: 2rem; }
.dateline { font-style: italic; margin-bottom: 1.5rem; }

/* ---------- 404 ---------- */

.lost { padding-top: 2rem; }
.lost img { width: 160px; height: auto; margin-bottom: 1rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
