/* Teacup Kraken Games - site styles.
   Palette: deep sea-ink, porcelain cream, coral, and one added colour (tea
   brown, lifted straight from the mark's saucer) used only for decoration,
   never for text, so contrast stays predictable.
   Fonts: Bagel Fat One (big display headings, self-hosted, matches the logo
   wordmark), Fredoka (labels, buttons, nav) and Inter (body), all self-hosted. */

@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bagel-fat-one-latin-400-normal.woff2') format('woff2');
}

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

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

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}

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

:root {
  /* sea-ink */
  --ink: #16363f;
  --ink-black: #0d2129;
  --ink-soft: #2c4750;
  --ink-tint: #56707a;

  /* porcelain cream (matched to the mark's exact cream) */
  --cream: #fbf3e2;
  --cream-deep: #ecdfc4;
  --cream-card: #fffaf0;

  /* coral */
  --coral: #ff6b4a;
  --coral-deep: #b03f23;

  /* tea: the one added colour, decoration only, never text-on-background */
  --tea: #b8612f;
  --tea-soft: #d98a52;

  --line: rgba(22, 54, 63, 0.16);
  --line-on-ink: rgba(251, 243, 226, 0.18);
  --focus: #1c7a8c;
  --radius: 20px;
  --container: 1120px;
  --wave-h: clamp(46px, 8vw, 96px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: 'Bagel Fat One', 'Fredoka', sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.7em;
}

.eyebrow.on-cream { color: var(--coral-deep); }
.eyebrow.on-dark { color: var(--coral); }
.eyebrow.on-coral { color: var(--ink); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--ink-black);
  border-bottom: 3px solid var(--coral);
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-chip {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px var(--line);
}

.brand-chip img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1;
}

.brand-name small {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-top: 0.25em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  color: var(--cream);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover {
  border-bottom-color: var(--coral);
}

/* Wave seams between bands. A thick, high-contrast wave (not a hairline),
   coloured per-instance to match the band that follows it. */
.wave-seam {
  display: block;
  width: 100%;
  height: var(--wave-h);
  margin-bottom: -1px;
  line-height: 0;
}

.wave-seam svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 20% 0%, var(--ink) 0%, var(--ink-black) 62%);
  color: var(--cream);
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-mark-disc {
  position: relative;
  width: clamp(180px, 24vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55), inset 0 0 0 6px var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  transform: rotate(-4deg);
}

.hero-mark-disc img {
  width: 78%;
  height: 78%;
}

.hero-text {
  text-align: left;
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--coral);
  margin-bottom: 0.15em;
}

.hero-name .games {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.24em;
  letter-spacing: 0.34em;
  color: var(--cream);
  margin-top: 0.4em;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  max-width: 34ch;
  color: var(--cream);
  font-weight: 500;
}

.hero-tentacle {
  position: absolute;
  left: 0;
  bottom: calc(var(--wave-h) * -0.15);
  width: clamp(90px, 16vw, 220px);
  height: auto;
  z-index: 1;
  opacity: 0.9;
}

/* Sections */
section {
  position: relative;
}

.band-inner {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.games-band {
  background: var(--cream);
}

.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.game-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--ink);
  box-shadow: 0 20px 40px -22px rgba(22, 54, 63, 0.55);
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.game-media video,
.game-media .game-media-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-media .game-media-static {
  display: none;
}

.game-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.25em;
}

.game-tagline {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--coral-deep);
  margin-bottom: 0.7em;
  font-size: 1.05rem;
}

.game-blurb {
  font-size: 1.08rem;
  max-width: 44ch;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  text-decoration: none;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  margin-top: 0.4rem;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  background: #ff8265;
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--ink);
}

.button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--ink);
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.filmstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 0.7rem;
  margin-top: 1.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.filmstrip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--ink);
}

/* Brewing teaser */
.brewing-band {
  background: var(--coral);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}

.brewing-band .container {
  position: relative;
  z-index: 2;
}

.brewing-band h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--ink);
}

.brewing-band p {
  max-width: 46ch;
  margin-inline: auto;
  font-size: 1.1rem;
  font-weight: 500;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bubbles span {
  position: absolute;
  /* Start above the wave seam at the bottom of the band, so no bubble shows over the ink band below. */
  bottom: 90px;
  width: var(--size, 14px);
  height: var(--size, 14px);
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.5;
  left: var(--x, 10%);
  animation: bubble-rise 7s ease-in var(--delay, 0s) infinite;
}

@keyframes bubble-rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-220px) scale(1.3); opacity: 0; }
}

/* About */
.about-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.about-band .band-inner {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.about-line {
  font-family: 'Bagel Fat One', sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  max-width: 22ch;
  margin: 0 auto;
  color: var(--cream);
  line-height: 1.25;
}

/* Contact */
.contact-band {
  background: var(--cream);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-tint);
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--cream-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.contact-list .label {
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: var(--ink);
  min-width: 11rem;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  font-weight: 600;
  word-break: break-word;
  color: var(--ink-soft);
}

.contact-list a:hover {
  color: var(--coral-deep);
}

/* Footer */
.site-footer {
  background: var(--ink-black);
  color: var(--cream-deep);
  padding-block: 2rem;
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
}

/* Press page */
.press-hero {
  background: var(--ink-black);
  color: var(--cream);
}

.press-hero .band-inner {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.press-hero h1 {
  color: var(--coral);
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.press-hero .section-head p {
  color: var(--cream-deep);
}

.press-hero a {
  color: var(--coral);
}

.press-hero .fact-sheet dt {
  color: var(--cream);
}

.fact-sheet {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 0.75rem 1.5rem;
  max-width: 42rem;
  margin: 0;
}

.fact-sheet dt {
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: var(--ink);
}

.fact-sheet dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.boilerplate {
  max-width: 60ch;
  background: var(--cream-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.logo-card {
  background: var(--cream-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.logo-card .swatch {
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 130px;
}

.logo-card .swatch.on-cream { background: var(--cream); }
.logo-card .swatch.on-ink { background: var(--ink); }

.logo-card .swatch img { max-height: 96px; width: auto; }

.logo-card .swatch.on-ink .ink-disc {
  background: var(--cream);
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.download-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.download-links a {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
  font-weight: 600;
}

/* 404 page */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--ink-black);
  color: var(--cream);
}

.not-found .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.not-found .hero-mark-disc {
  width: 140px;
  margin-bottom: 0.5rem;
}

.not-found h1 {
  color: var(--coral);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* Responsive */
@media (max-width: 820px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-tagline {
    margin-inline: auto;
  }

  .games-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-list .label {
    min-width: 100%;
  }

  .site-header .container {
    justify-content: center;
    text-align: center;
  }

  .fact-sheet {
    grid-template-columns: 1fr;
    gap: 0.2rem 1rem;
  }

  .fact-sheet dt {
    margin-top: 0.6rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1280px;
  }

  body {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles span {
    animation: none;
    display: none;
  }

  .button {
    transition: none;
  }
}
