/* Twelve Doors Interactive. Colours come from the logo: Mughal sandstone, the Ravi's teal, and gold. */

:root {
  --cream: #f7efdf;
  --paper: #fffaf0;
  --ink: #2b2118;
  --ink-soft: #5d4d3f;
  --sand: #b4553a;
  --sand-soft: #e58a68;
  --teal: #17707a;
  --teal-soft: #4fb3b8;
  --gold: #d9a23a;
  --deep: #16302f;
  --line: rgba(43, 33, 24, 0.12);
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.12);

  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--sand);
  --link: var(--teal);

  --display: "Century Gothic", "Avenir Next", "Avenir", "Futura", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #102423;
    --surface: #16302f;
    --text: #f7efdf;
    --muted: #c9bba6;
    --accent: var(--sand-soft);
    --link: var(--teal-soft);
    --line: rgba(247, 239, 223, 0.14);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

@media (prefers-color-scheme: light) {
  .logo-dark { display: none; }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 560px) {
  .brand img { height: 34px; }
  .site-header .wrap { padding-block: 10px; justify-content: center; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0;
}
/* A faint lattice of twelve-pointed stars, like a carved jali screen. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/jali.svg");
  background-size: 96px 96px;
  opacity: 0.07;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { .hero::before { opacity: 0.1; filter: invert(1); } }

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-mark { width: min(420px, 100%); margin-inline: auto; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero-mark { width: min(280px, 80%); order: -1; }
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(23, 112, 122, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 112, 122, 0.35); }
.button.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.button.soon { background: var(--deep); cursor: default; }
.button.soon:hover { transform: none; }

/* ---------- sections ---------- */

section { padding: clamp(48px, 7vw, 88px) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }

.game-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
section.alt .game-card { background: var(--bg); }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: clamp(24px, 4vw, 40px); }
.game-card .icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
@media (max-width: 760px) { .game-card { grid-template-columns: 1fr; } }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--text);
}

.story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.story figure { margin: 0; }
.story figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } .story figure { max-width: 320px; margin-inline: auto; } }

.word { font-style: italic; color: var(--accent); }

.contact {
  text-align: center;
}
.contact .email {
  font-family: var(--display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  word-break: break-word;
}

/* ---------- FarmOff! page ---------- */

.game-hero { text-align: center; padding-bottom: 32px; }
.game-hero .icon { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.game-hero .actions { justify-content: center; }

.trailer {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}
.trailer video { width: 100%; height: 100%; object-fit: cover; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
section.alt .feature { background: var(--bg); }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3 span { font-size: 1.5rem; }
.feature p { margin: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.shots figure { margin: 0; }
.shots img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; height: auto; }
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }

/* ---------- long text (privacy pages) ---------- */

.prose { max-width: 44em; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose .meta { color: var(--muted); }
.prose li { margin-bottom: 0.4em; }
.callout {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer img { width: 36px; height: 36px; }
.site-footer .left { display: flex; align-items: center; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

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