/* Tarantela Games — the studio page. Plain HTML + CSS, no build step, no JavaScript.
   Studio palette was sampled from the first, embroidered badge (terracotta lizard,
   olive, cream, ink). ⚠ The badge of 5 November 2026 is forest green #0a2e19, gold
   #dfb558, sage #83a178 and cream, with no terracotta in it: the palette has NOT been
   re-tuned to it, which is Viktor's call (raised to him the same day). The two game cards wear
   their own game's colours and lettering: Arcana Nouveau's Peacock Room tokens
   (apps/game/src/styles/theme.ts) and Viktor's UI-kit frame; No No Banana's
   tokens and shapes from its own page. Fonts come from fonts.css, on this site. */

:root {
  /* studio — sampled from the first badge */
  --linen: #f4f0e8;
  --linen-deep: #ebe4d6;
  --ink: #1f1c18;
  --ink-soft: #5a4f45;
  --terracotta: #9a4a2a;        /* text-safe on linen (5.5:1) */
  --terracotta-bright: #b5582f; /* decoration only */
  --inactive: #9a948c;          /* not yet live: the social links */

  /* Arcana Nouveau — Peacock Room */
  --an-teal: #0f3b3f;
  --an-teal-deep: #0a2838;
  --an-gold: #c9a84c;
  --an-ivory: #e8dcc4;

  /* No No Banana */
  --nnb-ink: #6b5570;
  --nnb-cream: #fff7ec;
  --nnb-butter: #ffe3ae;
  --nnb-coral: #f9a495;

  --font-label: "Montserrat", system-ui, sans-serif;
  --font-body: "Fraunces", Georgia, serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--linen);
  /* a faint linen weave, so the page reads as cloth for the badge to sit on */
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 28, 24, 0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(31, 28, 24, 0.022) 0 1px, transparent 1px 3px);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--terracotta); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--linen);
  font-family: var(--font-label); font-weight: 700; border-radius: 8px;
}
.skip-link:focus { top: 8px; color: var(--linen); }

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; }

/* A row of stitches, echoing the badge's embroidery. */
.stitch {
  height: 3px;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
  width: calc(100% - 2 * var(--gutter));
  background: repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 20px);
  opacity: 0.35;
  border-radius: 2px;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(31, 28, 24, 0.08);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.brand img { width: 40px; height: 40px; }
.site-header nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none;
  font-family: var(--font-label); font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.site-header nav a:hover { color: var(--terracotta); }

@media (max-width: 520px) {
  .brand span { display: none; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__patch {
  width: min(72vw, 340px);
  margin-bottom: clamp(28px, 5vw, 44px);
  transform: rotate(-4deg);
  /* the badge's shadow on the cloth */
  filter: drop-shadow(0 2px 1px rgba(31, 28, 24, 0.18)) drop-shadow(0 14px 22px rgba(31, 28, 24, 0.16));
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 1.25rem;
}
.hero__lede {
  max-width: 34rem;
  text-wrap: balance;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
}
.hero__games {
  list-style: none; padding: 0; margin: 0.75rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
/* each chip in its own game's colours and lettering */
.chip {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip--arcana {
  background: var(--an-teal);
  color: var(--an-gold);
  border: 2px solid var(--an-gold);
  font-family: "Cinzel", Georgia, serif; font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--an-teal-deep);
}
.chip--arcana:hover { color: var(--an-ivory); }
.chip--banana {
  background: var(--nnb-butter);
  color: var(--nnb-ink);
  border: 3px solid var(--nnb-ink);
  font-family: "Fredoka", "Trebuchet MS", sans-serif; font-weight: 700;
  font-size: 1.0625rem; letter-spacing: 0.01em;
  padding: 9px 22px;
  box-shadow: 0 4px 0 rgba(107, 85, 112, 0.28);
}
.chip--banana:hover { color: var(--nnb-ink); }

/* ── Games ────────────────────────────────────────────── */
.games { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px); }
.section-head { margin-bottom: clamp(32px, 5vw, 48px); }

.game-cards {
  list-style: none;
  margin-top: 0; margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
}
.game-cards li { display: flex; }

.game-card {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  min-height: 300px;
  padding: 40px 32px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.game-card:hover { transform: translateY(-4px); }

/* Arcana Nouveau: Viktor's ornate panel frame round the teal texture, as the game
   draws its own panels (uiKit.ts `panel`: slice 202/232, corner drawn 96 px wide). */
.game-card--arcana {
  border: 8px solid transparent;
  border-image: url("assets/arcana/panel-frame.webp") 202 232 / 84px 96px stretch;
  background: var(--an-teal) url("assets/arcana/texture-teal.webp") repeat;
  background-size: 256px 256px;
  background-clip: padding-box;
  color: var(--an-gold);
  filter: drop-shadow(0 18px 24px rgba(10, 40, 56, 0.28));
}
.game-card--arcana .game-card__title {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-gold);
}
.game-card--arcana .game-card__status {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 1.375rem;
  color: var(--an-ivory);
}
.game-card--arcana:hover .game-card__title { color: var(--an-ivory); }

/* the game's divider: the gold line fading out either side of its ornament */
.arcana-divider { display: flex; align-items: center; width: min(100%, 300px); }
.arcana-divider span {
  flex: 1; min-width: 0; height: 14px;
  background: url("assets/arcana/divider-line.webp") center / auto 14px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%);
  mask-image: linear-gradient(90deg, transparent, #000 85%);
}
.arcana-divider span:last-child {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 85%);
  mask-image: linear-gradient(270deg, transparent, #000 85%);
}
.arcana-divider img { flex: none; width: 40px; height: 14px; }

/* No No Banana: its cream card, thick plum outline and drop-step shadow, over the
   coral sunburst its menu sits on. */
.game-card--banana {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nnb-cream);
  border: 6px solid var(--nnb-ink);
  border-radius: 34px;
  box-shadow: 0 10px 0 rgba(107, 85, 112, 0.45);
  color: var(--nnb-ink);
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
}
.game-card--banana::before {
  content: "";
  position: absolute; inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 240, 0.95) 22%, rgba(255, 247, 236, 0.5) 45%, rgba(255, 247, 236, 0) 70%),
    repeating-conic-gradient(from -9deg, rgba(249, 164, 149, 0.45) 0deg 13deg, rgba(255, 247, 236, 0.45) 13deg 26deg);
}
.game-card--banana .game-card__title {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.05;
  color: var(--nnb-ink);
}
.game-card--banana .game-card__status {
  padding: 2px 14px;
  background: var(--nnb-butter);
  border: 4px solid var(--nnb-ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
}
.game-card--banana:active { transform: translateY(6px); box-shadow: 0 4px 0 rgba(107, 85, 112, 0.45); }

/* ── About & contact ──────────────────────────────────── */
.about { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); }
.about h2 { margin-bottom: 1.25rem; }
.about p:not(.eyebrow) { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--ink-soft); }

.contact { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 9vw, 112px); }
.contact__card {
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(32px, 5vw, 48px);
  background: var(--linen-deep);
  border: 2px dashed rgba(31, 28, 24, 0.35);
  border-radius: var(--radius);
  text-align: center;
}
.contact h2 { margin-bottom: 0.75rem; }
.contact p:not(.eyebrow) { color: var(--ink-soft); text-wrap: balance; }
.contact__mail {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 14px 26px;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--ink);
  color: var(--linen);
  border-radius: 999px;
  font-family: var(--font-label); font-weight: 700;
  font-size: clamp(0.875rem, 2.4vw, 1rem); letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease;
}
.contact__mail:hover { background: var(--terracotta); color: var(--linen); }

/* Social links. One without an address is not live yet and sits greyed out; adding
   its href is all it takes to switch it on (see the note in index.html). */
.social {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px dashed rgba(31, 28, 24, 0.18);
}
.contact .social__label {
  margin: 0;
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.social__label span { color: var(--inactive); letter-spacing: 0.12em; }
.social__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.social__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-label); font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.social__link svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.social__link[href]:hover { color: var(--terracotta); }
.social__link:not([href]) { color: var(--inactive); cursor: default; }

/* ── Not found (404.html) ─────────────────────────────── */
.notfound { padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 128px); text-align: center; }
.notfound__inner { display: flex; flex-direction: column; align-items: center; }
.notfound__gecko {
  width: 96px; height: 96px;
  margin-bottom: 24px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 8px 14px rgba(31, 28, 24, 0.18));
}
.notfound h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.notfound__text {
  max-width: 30rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  text-wrap: balance;
}
.notfound__links {
  list-style: none; padding: 0; margin: 0.75rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.notfound__home {
  display: inline-block;
  padding: 11px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--linen);
  font-family: var(--font-label); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.notfound__home:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--linen); transform: translateY(-2px); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { padding: 32px 0 40px; border-top: 1px solid rgba(31, 28, 24, 0.1); }
.site-footer__inner { display: flex; align-items: center; gap: 16px; }
.site-footer img { width: 56px; height: 56px; flex: none; }
.site-footer p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

/* ── Small screens ────────────────────────────────────── */
@media (max-width: 720px) {
  .game-cards { grid-template-columns: 1fr; }
  .game-card { min-height: 240px; }
}

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