/* tychosgate.com. Colours are the Duels app's Theme.swift: ink, panel, amber, cyan, gold. */
:root {
  --ink: #05080f;
  --ink-2: #0a0f1a;
  --panel: rgba(15, 20, 33, 0.86);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #e9edf4;
  --dim: rgba(233, 237, 244, 0.62);
  --amber: #ff9e33;
  --cyan: #59ccff;
  --gold: #ffd15c;
  --green: #73f28c;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--mono); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--amber); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.kicker { font: 700 0.8rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.sub { color: var(--dim); max-width: 62ch; }
.lead { font-size: 1.15rem; color: var(--dim); max-width: 56ch; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { font: 900 1rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--gold); }
.top nav { display: flex; gap: 22px; font: 600 0.9rem/1 var(--mono); }
.top nav a { color: var(--dim); }
.top nav a[aria-current="page"], .top nav a:hover { color: var(--text); text-decoration: none; }
footer { border-top: 1px solid var(--stroke); margin-top: 72px; padding: 28px 0 40px; color: var(--dim); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--dim); margin-right: 20px; }

/* Home: the Gate */
.gate { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.gate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, 0.55) 0%, rgba(5, 8, 15, 0) 30%, rgba(5, 8, 15, 0.2) 55%, var(--ink) 100%); }
.gate .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; }
.gate h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: 0.04em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); margin-bottom: 12px; }
.gate .lead { color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }

/* Sections */
section { padding: 56px 0; }
.band { background: var(--ink-2); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--stroke); border-radius: 18px; padding: 22px; }
.card p { color: var(--dim); margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

/* A game on the home page */
.game { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: var(--panel); border: 1px solid var(--stroke); border-radius: 24px; padding: 28px; }
.game .icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 16px; }

/* Duels hero */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 20px; box-shadow: 0 10px 40px rgba(255, 158, 51, 0.18); }
.screen { border-radius: 22px; border: 1px solid var(--stroke); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); background: #000; }

/* Store badge (not live yet) */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: #000; font: 700 1rem/1 var(--sans); padding: 13px 20px; border-radius: 14px; }
.badge svg { width: 20px; height: 20px; }
.badge.soon { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.3); }
.badge:hover { text-decoration: none; }
.price { font: 600 0.85rem/1.4 var(--mono); color: var(--dim); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.shots img { border-radius: 16px; border: 1px solid var(--stroke); }

/* Leagues */
.leagues { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.league { background: var(--panel); border: 1px solid var(--stroke); border-radius: 18px; padding: 18px 16px; text-align: center; }
.league img { width: 72px; height: 72px; margin: 0 auto 12px; }
.league h3 { font-size: 0.95rem; margin-bottom: 6px; }
.league p { color: var(--dim); font-size: 0.88rem; line-height: 1.45; margin: 0; }
.league .rungs { font: 700 0.75rem/1 var(--mono); color: var(--gold); letter-spacing: 0.1em; margin-top: 12px; }

/* Pilots */
.pilots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 24px; }
.pilots figure { margin: 0; }
.pilots img { border-radius: 14px; border: 1px solid var(--stroke); aspect-ratio: 1; object-fit: cover; }
.pilots figcaption { font: 700 0.8rem/1.3 var(--mono); margin-top: 8px; }
.pilots figcaption span { display: block; font-weight: 500; color: var(--dim); font-family: var(--sans); font-size: 0.8rem; }

/* Lists of kit */
.kit { list-style: none; padding: 0; margin: 0; }
.kit li { padding: 10px 0; border-bottom: 1px solid var(--stroke); color: var(--dim); }
.kit li:last-child { border-bottom: 0; }
.kit b { font-family: var(--mono); color: var(--text); margin-right: 6px; }

/* Articles: support and privacy */
article { padding: 24px 0 8px; }
article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
article h2 { font-size: 1.2rem; margin-top: 2em; }
article p, article li { color: var(--dim); }
article strong { color: var(--text); }
.meta { font: 600 0.85rem/1 var(--mono); color: var(--dim); }
details { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--text); }
details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .split, .hero, .game { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .leagues { grid-template-columns: repeat(2, 1fr); }
  .pilots { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid.three, .grid.two, .shots { grid-template-columns: 1fr; }
  .pilots { grid-template-columns: repeat(3, 1fr); }
  .top nav { gap: 14px; }
  .hide-sm { display: none; }
  section { padding: 40px 0; }
  .game { padding: 20px; }
}
