/* Redfox Ventures: one stylesheet for every page. No inline styles (strict CSP). */

@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-hi: #fbf8f2;
  --ink: #0e0d0c;
  --muted: #57524a;
  --line: rgb(14 13 12 / 0.16);
  /* Fox orange: large text, surfaces, borders and stamps only. */
  --accent: #f2611d;
  /* Orange for small text and links on paper (AA contrast). */
  --accent-ink: #a93d0c;

  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, 'Courier New', monospace;

  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --t: 160ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

main {
  flex: 1;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease);
}
a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: -10rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper-hi);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}

/* ---------- Mono labels ---------- */

.eyebrow,
.status,
.game-label,
.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.site-header {
  padding-block: 1.25rem;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

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

.brand-mark {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  transition: rotate var(--t) var(--ease);
}
.brand:hover .brand-mark {
  rotate: -8deg;
}

.brand-text {
  display: grid;
  gap: 0.2rem;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.site-nav ul,
.foot ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul {
  gap: 0.5rem;
}

.site-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper-hi);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
    translate var(--t) var(--ease);
}
.site-nav li:nth-child(1) a {
  rotate: -1.5deg;
}
.site-nav li:nth-child(2) a {
  rotate: 1deg;
}
.site-nav li:nth-child(3) a {
  rotate: -0.6deg;
}
.num {
  color: var(--accent);
}
.site-nav a:hover {
  translate: 0 -2px;
  background: var(--accent);
  color: var(--ink);
}
.site-nav a:hover .num {
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.3rem;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: translate var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease);
}
.button-primary {
  background: var(--ink);
  color: var(--paper-hi);
  box-shadow: 5px 5px 0 var(--accent);
}
.button-primary:hover {
  translate: -2px -2px;
  box-shadow: 7px 7px 0 var(--accent);
}
.button-ghost {
  background: transparent;
  color: var(--ink);
}
.button-ghost:hover {
  translate: -2px -2px;
  background: var(--paper-hi);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 12.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  rotate: -1.2deg;
}
.hero-l1,
.hero-l2 {
  display: block;
}
/* Solid orange where the hatched outline isn't supported. A touch deeper than
   --accent so this text reaches 3:1 on paper (AA for large text). */
.hero-l2 {
  --hero-orange: #ea5b18;
  margin-top: 0.02em;
  color: var(--hero-orange);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) and (-webkit-text-stroke-width: 1px) {
  .hero-l2 {
    color: transparent;
    -webkit-text-stroke: max(2px, 0.016em) var(--hero-orange);
    background-image: repeating-linear-gradient(
      -58deg,
      var(--hero-orange) 0 max(3px, 0.014em),
      transparent 0 max(10px, 0.045em)
    );
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.hero-body {
  max-width: 40rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
.hero-lede {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 48rem) {
  .hero-l2 {
    padding-left: 0.35em;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  border-top: 2px solid var(--ink);
}

.section-tag {
  display: inline-flex;
  gap: 0.5em;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.6rem;
  background: var(--ink);
  color: var(--paper-hi);
  font-weight: 600;
  rotate: -1.5deg;
}

.section-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.section-intro {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
}

.text-link {
  color: var(--accent-ink);
  font-weight: 600;
}
.text-link:hover {
  color: var(--ink);
}

/* ---------- Games ---------- */

.games {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.game-card {
  position: relative;
  margin: 0;
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Abstract CSS-only art: no images, nothing to download. */
.game-art {
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--ink);
}
.art-stripes {
  background:
    radial-gradient(circle at 70% 55%, var(--ink) 0 21%, transparent 21.5%),
    repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--paper-hi) 14px 28px);
}
.art-dots {
  background:
    radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px) 0 0 / 18px 18px,
    conic-gradient(from 135deg at 38% 22%, var(--accent) 0 90deg, transparent 0),
    var(--paper-hi);
}

.stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem 0.2rem;
  background: var(--paper-hi);
  border: 3px solid var(--accent);
  box-shadow: inset 0 0 0 2px var(--paper-hi), inset 0 0 0 4px var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
  white-space: nowrap;
}
.tilt-left {
  rotate: -8deg;
}
.tilt-right {
  rotate: 6deg;
}

.game-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.game-label {
  margin: 0;
  font-weight: 600;
  color: var(--accent-ink);
}
.game-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4;
}
.game-data dt {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-data dt::after {
  content: ':';
}
.game-data dd {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.redacted {
  padding: 0.05em 0.45em;
  background: var(--ink);
  color: var(--paper-hi);
  letter-spacing: 0.14em;
}

.games-cta {
  margin: 2.75rem 0 0;
  font-size: 1.125rem;
}

@media (min-width: 48rem) {
  .games {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .games .game-card:first-child {
    rotate: -0.5deg;
  }
  .games .game-card:last-child {
    rotate: 0.5deg;
  }
}

/* ---------- Studio ---------- */

.what-label {
  margin: 2.75rem 0 0;
  color: var(--muted);
}
.what {
  display: grid;
  gap: 1.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.what li {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.what h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.what h3 .num {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
}
.what p {
  margin: 0;
}

.facts-row {
  display: grid;
  gap: 2px;
  margin: 3rem 0 0;
  background: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
}
.facts-row div {
  padding: 0.9rem 1.15rem;
  background: var(--paper-hi);
}
.facts-row dt {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts-row dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

@media (min-width: 30rem) {
  .facts-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 48rem) {
  .what {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
@media (min-width: 64rem) {
  .facts-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Contact ---------- */

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 5.6vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}
.contact-email:hover {
  color: var(--accent-ink);
}
.contact-note {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.contact-note a {
  color: var(--ink);
}

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

.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.foot p {
  margin: 0;
}
.foot ul {
  gap: 0.5rem 1.5rem;
}
.foot a[aria-current='page'] {
  text-decoration-color: var(--accent);
}

/* ---------- Legal pages and 404 ---------- */

.page {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}

.prose {
  max-width: calc(46rem + 2 * var(--gutter));
  overflow-wrap: break-word;
}
.prose h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}
.prose h2 {
  margin: 2.5rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.prose p,
.prose ul {
  margin: 0 0 1rem;
}
.prose li {
  margin-bottom: 0.45rem;
}
.prose a {
  color: var(--accent-ink);
}
.prose a:hover {
  color: var(--ink);
}
.prose a.button {
  color: var(--paper-hi);
}

.prose .updated {
  margin: 1.25rem 0 2rem;
  color: var(--muted);
}

.facts {
  display: grid;
  margin: 1.5rem 0 1.25rem;
  background: var(--paper-hi);
  border: 2px solid var(--ink);
}
.facts dt {
  padding: 0.85rem 1rem 0.1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0;
  padding: 0 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.facts dd:last-of-type {
  border-bottom: 0;
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: 11rem 1fr;
  }
  .facts dt,
  .facts dd {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .facts dt:last-of-type,
  .facts dd:last-of-type {
    border-bottom: 0;
  }
}

.lost .eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
}
.lost h1 {
  margin-bottom: 1.25rem;
}
.lost p {
  font-size: 1.125rem;
}
.lost .actions {
  margin-top: 2rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .brand:hover .brand-mark {
    rotate: none;
  }
  .site-nav a:hover,
  .button:hover {
    translate: none;
  }
}
