/* KJO Studios, Tangerine & Ink v1.0, dark-first.
   Brand tokens from the kit's 07-Developer-Kit/kjo-tokens.css. The page ground is a
   deeper shade of Ink; Ink itself is the raised surface. Tangerine is the accent for
   buttons, rules and graphics; Amber carries accent *text* (Tangerine on Ink is 4.2:1,
   under the 4.5:1 normal-text threshold in the kit's contrast table).
   --mc-city-ink is Meme City After Dark's City Ink, used only behind its wordmark. */
:root {
  --kjo-tangerine: #ED6A23;
  --kjo-ink: #183342;
  --kjo-porcelain: #FAFAF7;
  --kjo-amber: #F4AD42;
  --kjo-rust: #A63F13;
  --kjo-white: #FFFFFF;
  --kjo-black: #000000;
  --kjo-font: "DejaVu Sans", Arial, sans-serif;
  --mc-city-ink: #0B0D17;

  --ground: #0F2230;
  --surface: var(--kjo-ink);
  --line: rgba(250, 250, 247, 0.14);
  --text: var(--kjo-porcelain);
  --muted: #B9C6CE;
  --radius: 16px;
}

@font-face {
  font-family: "DejaVu Sans";
  src: url("/assets/fonts/dejavu-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans";
  src: url("/assets/fonts/dejavu-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--kjo-font);
  font-size: 16px;
  line-height: 1.55;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible {
  outline: 3px solid var(--kjo-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 16 px side gutter at every width; content column caps at 1120 px. */
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--kjo-amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Header. The logo link pads the artwork by 12 px; with the SVG's own inner margin
   that is at least one STUDIOS cap height of clear space on every side. */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding-block: 8px;
}
.logo { display: block; padding: 12px; margin-left: -12px; }
.logo img { width: 240px; }
nav ul {
  display: flex;
  gap: 8px;
  margin-left: -12px;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover { color: var(--kjo-amber); }

/* Hero: K-stroke pattern from the kit's brand elements, a tangerine glow, and the
   approved render on a porcelain holding plate (the guide's "solid light holding
   area" for the dark STUDIOS). */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 72px;
  background:
    radial-gradient(60% 70% at 100% 100%, rgba(237, 106, 35, 0.28), transparent 70%),
    url("/assets/brand/kjo-k-pattern.svg") 0 0 / 160px 160px repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 34, 48, 0.2), var(--ground) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  justify-items: start;
}
h1 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 14em;
}
.lead {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 30em;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.plate {
  position: relative;
  width: min(100%, 560px);
  padding: 32px 24px;
  background: var(--kjo-porcelain);
  border-radius: 24px;
  box-shadow: 14px 14px 0 var(--kjo-tangerine);
  transform: rotate(-2deg);
}
.hero-logo { width: 100%; max-width: 512px; margin-inline: auto; }

/* Sections */
.section { padding-block: 64px; }
h2 { font-size: 34px; margin-bottom: 24px; }
.section p { max-width: 44em; }
.section p + p { margin-top: 16px; }
.quiet { margin-top: 24px; color: var(--muted); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--kjo-porcelain);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.button-primary {
  background: var(--kjo-tangerine);
  border-color: var(--kjo-tangerine);
  color: var(--kjo-black);
}
.button-primary:hover { background: var(--kjo-amber); border-color: var(--kjo-amber); }
.button-secondary { background: transparent; color: var(--kjo-porcelain); }
.button-secondary:hover { background: rgba(250, 250, 247, 0.1); }

/* Game card: Meme City's own night-city art with its wordmark on a City Ink holding
   area; body on Ink. */
.game {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.game-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 40px 32px;
  background: var(--mc-city-ink);
}
.game-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.game-art h3 {
  position: relative;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(11, 13, 23, 0.82);
}
.game-art h3 img { width: 200px; }
.game-body { padding: 28px 24px 32px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.game-lead { font-size: 22px; font-weight: 700; line-height: 1.3; }
.game-body p + p { margin-top: 12px; }

/* Tangerine slab: the kit's website-header corner, as a section divider. */
.slab {
  height: 56px;
  background: var(--kjo-tangerine);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Studio */
.section-studio { background: var(--surface); }
.studio-grid { display: grid; gap: 40px; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.facts div { padding: 20px; background: var(--surface); }
.facts dt {
  color: var(--kjo-amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; }

/* Contact */
.contacts { border-top: 1px solid var(--line); }
.contacts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.contact-label { color: var(--muted); font-weight: 700; }
.contacts a {
  display: inline-block;
  padding-block: 10px;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contacts a:hover { color: var(--kjo-amber); }
.social-title { font-size: 20px; margin-top: 40px; }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0 -12px;
}
.social a {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
}
.social a:hover { color: var(--kjo-amber); }

/* Footer */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-row p + p { margin-top: 8px; }

@media (min-width: 720px) {
  .game { grid-template-columns: 1fr 1fr; }
  .game-art { min-height: 360px; }
  .game-body { padding: 36px; align-self: center; }
  .studio-grid { grid-template-columns: 3fr 2fr; }
  .slab { height: 96px; }
}

@media (min-width: 960px) {
  .logo img { width: 280px; }
  .hero { padding-block: 88px 112px; }
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    column-gap: 64px;
  }
  .plate { justify-self: end; }
  h1 { font-size: 60px; }
  .lead { font-size: 20px; }
  .section { padding-block: 96px; }
  h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
