/* Driftwood Signal — shared stylesheet */

:root {
  --ink:        #101a1e;
  --ink-raised: #16262c;
  --sea:        #2f5a63;
  --signal:     #4fa8a0;
  --fog:        #8ba3a8;
  --driftwood:  #b9a68c;
  --text:       #c3ced2;
  --bright:     #e8f0f1;
  --rule:       rgba(139, 163, 168, 0.24);
  --rule-soft:  rgba(139, 163, 168, 0.13);

  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans:  'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --wrap: 68rem;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  background-image: linear-gradient(180deg, rgba(47, 90, 99, 0.30) 0%, rgba(16, 26, 30, 0) 46%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--bright);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fog);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--sans);
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }

a { color: var(--signal); text-decoration: none; border-bottom: 1px solid rgba(79, 168, 160, 0.36); }
a:hover { color: var(--bright); border-bottom-color: var(--bright); }

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.lede {
  font-size: 1.22rem;
  line-height: 1.62;
  color: var(--bright);
  font-family: var(--serif);
  font-weight: 400;
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--fog);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.muted { color: var(--fog); }
.small { font-size: 0.92rem; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.prose { max-width: var(--measure); }

section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--rule-soft); }

hr.hair { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border: 0;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  color: var(--ink);
}

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

.site-header {
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(16, 26, 30, 0.86);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--bright);
  border: 0;
  line-height: 0;
}
.wordmark svg { height: 26px; width: auto; display: block; }
.wordmark:hover { color: var(--signal); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  margin: 0;
  padding: 0;
  max-width: none;
}

.site-nav a {
  color: var(--fog);
  border: 0;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--bright); border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--bright); border-bottom-color: var(--signal); }

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

.hero { position: relative; padding: 0 0 4rem; overflow: hidden; }

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  margin-top: -3.5rem;
  position: relative;
}
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lede { max-width: 48ch; }

.page-head { padding: 4rem 0 2.5rem; }
.page-head h1 { margin-bottom: 0.4rem; }

/* ---------- generic blocks ---------- */

.row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.row3 h3 { margin-bottom: 0.4rem; }
.row3 p { margin: 0; font-size: 0.98rem; }

.panel {
  background: var(--ink-raised);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--sea);
  padding: 2rem 2.1rem;
}
.panel.accent { border-left-color: var(--driftwood); }

.game-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.2rem;
  align-items: center;
  background: var(--ink-raised);
  border: 1px solid var(--rule-soft);
  padding: 2rem;
}
.game-card .card-art { width: 100%; height: auto; display: block; }
.game-card h3 {
  font-size: 1.55rem;
  font-family: var(--serif);
  color: var(--bright);
  text-transform: none;
  letter-spacing: 0;
}

.meta-line {
  font-size: 0.86rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 0.9rem;
}

/* news teaser */
.news-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.news-list li { padding: 1.35rem 0; border-top: 1px solid var(--rule-soft); }
.news-list li:last-child { border-bottom: 1px solid var(--rule-soft); }
.news-list time {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 0.3rem;
}
.news-list a { font-family: var(--serif); font-size: 1.14rem; color: var(--bright); border: 0; }
.news-list a:hover { color: var(--signal); }

/* ---------- tables ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.spec-scroll { overflow-x: auto; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.spec caption {
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--fog);
  font-weight: 600;
  padding-bottom: 0.7rem;
}
table.spec th, table.spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.8rem 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
table.spec th {
  font-weight: 600;
  color: var(--fog);
  width: 34%;
}
table.spec td { color: var(--text); }
table.spec tr.anticheat th, table.spec tr.anticheat td { border-bottom-color: var(--rule); }
table.spec tr.anticheat td { color: var(--bright); }

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.team-grid li { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.team-grid .name {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--bright);
  font-weight: 600;
  display: block;
}
.team-grid .role-title {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0.15rem 0 0.6rem;
}
.team-grid p { font-size: 0.95rem; margin: 0; color: var(--text); }

/* ---------- fact list ---------- */

dl.facts {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.6rem;
  font-size: 0.96rem;
}
dl.facts dt { color: var(--fog); font-weight: 600; }
dl.facts dd { margin: 0; color: var(--bright); }

/* ---------- careers ---------- */

.role { border-top: 1px solid var(--rule); padding: 2.2rem 0 0.8rem; }
.role h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.25rem; }
.role .where { color: var(--driftwood); font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 1.2rem; }
.role ul { padding-left: 1.15rem; margin: 0 0 1.2rem; }
.role li { margin-bottom: 0.4rem; }

/* ---------- press ---------- */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  max-width: none;
}
.swatches li { width: 8.5rem; font-size: 0.82rem; }
.swatches .chip { display: block; height: 3.4rem; border: 1px solid var(--rule-soft); margin-bottom: 0.5rem; }
.swatches .hex {
  display: block;
  color: var(--fog);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.04em;
}

.kit-mark {
  background: var(--ink);
  border: 1px solid var(--rule);
  padding: 2rem;
  color: var(--bright);
  display: flex;
  justify-content: center;
}
.kit-mark svg { height: 34px; width: auto; max-width: 100%; }

.release { padding: 3rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
.release time {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
  display: block;
  margin-bottom: 0.6rem;
}
.release h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bright);
}
.release .ends { color: var(--fog); font-size: 0.9rem; margin-top: 1.6rem; }
.release blockquote {
  margin: 1.6rem 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--driftwood);
  font-family: var(--serif);
  color: var(--bright);
  max-width: var(--measure);
}
.release blockquote p:last-child { margin-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--rule-soft);
  margin-top: 3rem;
  padding: 2.6rem 0 3.4rem;
  background: rgba(22, 38, 44, 0.5);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; max-width: none; }
.footer-name { font-family: var(--serif); color: var(--bright); font-weight: 600; letter-spacing: 0.04em; }
.footer-meta { font-size: 0.9rem; color: var(--fog); }
.footer-meta a { color: var(--fog); border-bottom-color: var(--rule); }
.footer-meta a:hover { color: var(--bright); }
.footer-badge { font-size: 0.78rem; letter-spacing: 0.06em; }
.footer-badge a { color: var(--fog); opacity: 0.8; border-bottom: 1px solid var(--rule-soft); }
.footer-badge a:hover { color: var(--text); opacity: 1; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  section { padding: 3.2rem 0; }
  .wrap { padding: 0 1.15rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .wordmark svg { height: 22px; }
  .site-nav ul { gap: 0.35rem 1.15rem; }
  .site-nav a { font-size: 0.84rem; }
  .row3 { grid-template-columns: 1fr; gap: 1.8rem; }
  .specs { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.4rem; }
  .game-card .card-art { max-width: 260px; }
  .hero-copy { margin-top: -1.2rem; }
  dl.facts { grid-template-columns: 1fr; gap: 0.15rem; }
  dl.facts dd { margin-bottom: 0.7rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .panel { padding: 1.4rem 1.3rem; }
}
