/*
 * Gumshark studio theme. Loaded after taphack/assets/tap-hack.css on studio pages only
 * (body.gumshark), so the Tap Hack pages keep their own look.
 *
 * Palette from the Gumshark brand kit (reference/colors.json): pink #EE6F9A, cream #FEF6F0,
 * dark #1E2024, dark-version cream #FDF7F0, black. Lettering echoes the logo's bold condensed
 * capitals: Barlow Condensed Bold, as in the Figma wordmark, with Barlow for body text. Both are
 * self-hosted latin subsets under the SIL Open Font License (fonts/barlow-ofl-1.1.txt).
 */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-700-latin.woff2") format("woff2");
}

body.gumshark {
  --gs-pink: #ee6f9a;
  --gs-pink-ink: #b8365f;
  --gs-cream: #fef6f0;
  --gs-dark: #1e2024;
  --gs-condensed: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --canvas: var(--gs-cream);
  --raised: #fffaf6;
  --ink: #000;
  --muted: #4d4a47;
  --line: #000;
  --surface: #fffaf6;
  --surface-solid: #fffaf6;
  --shadow: none;
  --accent: var(--gs-pink);
  background-image: none;
}

@media (prefers-color-scheme: dark) {
  body.gumshark {
    --canvas: var(--gs-dark);
    --raised: #272a2f;
    --ink: #fdf7f0;
    --muted: #c9c4bd;
    --line: #fdf7f0;
    --surface: #272a2f;
    --surface-solid: #272a2f;
    --gs-pink-ink: var(--gs-pink);
  }
}

body.gumshark ::selection {
  color: #000;
  background: var(--gs-pink);
}

/* Lettering: bold condensed capitals, like the wordmark */
body.gumshark h1,
body.gumshark h2,
body.gumshark .card-action,
body.gumshark .button,
body.gumshark .nav-links a,
body.gumshark .footer-links a,
body.gumshark .footer-mission {
  font-family: var(--gs-condensed);
  text-transform: uppercase;
}

body.gumshark h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 0.9;
}

body.gumshark h2 {
  font-weight: 700;
  letter-spacing: 0;
}

body.gumshark .eyebrow {
  color: var(--gs-pink-ink);
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.gumshark .lede {
  color: var(--muted);
}

/* Header: cream bar with an ink rule */
body.gumshark .site-header {
  border-bottom: 2px solid var(--line);
  background: var(--canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.gumshark .nav-links a {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.gumshark .nav-links a:hover {
  text-decoration-color: var(--gs-pink);
  text-decoration-thickness: 0.18rem;
}

/* Cards: flat, inked outlines with a hard pink offset, like a printed sticker */
body.gumshark .resource-card,
body.gumshark .game-feature {
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--gs-pink);
}

body.gumshark .resource-card::after {
  display: none;
}

body.gumshark .resource-card:hover,
body.gumshark .resource-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--gs-pink);
}

body.gumshark .card-action {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

body.gumshark .game-feature .game-icon {
  border: 2px solid var(--line);
}

/* Buttons: pink pill with ink outline */
body.gumshark .button {
  min-height: 3.1rem;
  border: 2px solid var(--line);
  border-radius: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

body.gumshark .button-primary {
  color: #000;
  background: var(--gs-pink);
}

body.gumshark .button-secondary {
  color: var(--ink);
  background: transparent;
}

body.gumshark a:focus-visible {
  outline-color: var(--gs-pink);
}

/* Footer: always the dark brand panel, like the dark logo lockup */
body.gumshark .site-footer {
  --ink: #fdf7f0;
  --muted: #c9c4bd;
  --line: rgba(253, 247, 240, 0.25);
  border-top: 0;
  color: var(--ink);
  background: var(--gs-dark);
}

body.gumshark .footer-mission {
  color: #fdf7f0;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
}

body.gumshark .footer-mission em {
  color: var(--gs-pink);
  font-style: normal;
}

body.gumshark .footer-links a {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

body.gumshark .footer-links a:hover {
  color: var(--gs-pink);
}

body.gumshark .footer-manifesto .footer-brand a {
  color: #fdf7f0;
}

@media (prefers-reduced-motion: reduce) {
  body.gumshark .resource-card:hover,
  body.gumshark .resource-card:focus-visible {
    transform: none;
  }
}

body.gumshark .brand img.brand-logo {
  height: 3.9rem;
}

/* Focus ring in ink, so it stays visible (3:1) on cream, pink and dark surfaces */
body.gumshark a:focus-visible,
body.gumshark summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

body.gumshark .button:focus-visible {
  outline-offset: 3px;
}

/* Barlow Condensed runs narrow, so its labels need a little more size */
body.gumshark .nav-links a {
  font-size: 1.3rem;
}

body.gumshark .button {
  font-size: 1.35rem;
}

body.gumshark .card-action {
  font-size: 1.3rem;
}

body.gumshark .footer-links a {
  font-size: 1.2rem;
}

body.gumshark .lede {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

body.gumshark p,
body.gumshark li {
  font-size: 1.06rem;
}

body.gumshark .prose a {
  color: var(--ink);
  text-decoration-color: var(--gs-pink);
  text-decoration-thickness: 0.14rem;
}
