/* The landing and the guide, on top of tokens.css and the shell's styles.css, whose .faction-card,
   .btn, .eyebrow, .ticker, .podium and .hull are reused as they are. Ink & Daylight (docs/13):
   paper accent, hairlines, faction light only on the two cards, no gradients, radius 2 px.
   Twelve columns from 960 px, one column below, a 16 px gutter at phone width. */

@font-face {
  font-family: "Unbounded";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/unbounded-500.woff2") format("woff2");
}

@font-face {
  font-family: "Unbounded";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/unbounded-700.woff2") format("woff2");
}

:root {
  --gutter: var(--space-4);
  --measure: 72rem;
}

@media (min-width: 960px) {
  :root {
    --gutter: var(--space-6);
  }
}

/* styles.css locks the page for the canvas; the site scrolls and selects like any page. */
html,
body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  overscroll-behavior: auto;
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--paper-100);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper-000);
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.15;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--paper-000);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.eyebrow {
  margin: 0 0 var(--space-2);
}

.lead {
  max-width: 36rem;
  margin-top: var(--space-3);
  color: var(--graphite-200);
}

/* One measure for the header, the page and the footer. */
.site-header,
.site-footer,
main[data-page] {
  box-sizing: border-box;
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: var(--hairline);
}

.site-wordmark {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: var(--space-4);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  color: var(--graphite-200);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--paper-000);
}

.lang-nav {
  display: flex;
  border: var(--hairline);
  border-radius: var(--radius);
}

.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  justify-content: center;
  color: var(--graphite-300);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-decoration: none;
}

.lang-nav a + a {
  border-left: var(--hairline);
}

.lang-nav a[aria-current="page"] {
  background: var(--ink-600);
  color: var(--paper-000);
}

/* Links dressed as the shell's buttons. */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

a.btn[hidden] {
  display: none;
}

main[data-page="landing"] > section {
  padding-block: var(--space-7);
  border-top: var(--hairline);
}

main[data-page="landing"] > section:first-child {
  border-top: 0;
}

/* Hero: copy on the left, the map capture on the right. */
.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 5fr 7fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero-wordmark {
  font-size: clamp(var(--text-2xl), 8vw, 56px);
  font-weight: 700;
  line-height: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--paper-000);
}

.hero-lead {
  max-width: 30rem;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--graphite-200);
}

.hero-actions {
  justify-content: flex-start;
  margin-top: var(--space-2);
}

.hero .ticker {
  align-items: flex-start;
  margin-top: var(--space-2);
}

.hero .ticker-line {
  text-align: left;
  color: var(--graphite-200);
}

.hero .podium {
  justify-content: flex-start;
}

/* A capture in a hairline frame; the attributes keep the aspect ratio before the image lands. */
.frame {
  margin: 0;
  overflow: hidden;
  background: var(--ink-800);
  border: var(--hairline);
  border-radius: var(--radius);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame figcaption {
  padding: var(--space-3) var(--space-4);
  border-top: var(--hairline);
  color: var(--graphite-200);
  font-size: var(--text-md);
}

.frame-portrait {
  width: min(100%, 20rem);
  margin-inline: auto;
}

/* How a shift goes: three numbered steps. */
.step-list {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 960px) {
  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-index {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  color: var(--graphite-300);
}

.step p {
  color: var(--graphite-200);
}

/* The two syndicates: the shell's cards, side by side; the name keeps the card's h2 leading. */
.syndicates .faction-row {
  margin-top: var(--space-5);
}

.syndicates .faction-card h3 {
  line-height: 1.15;
}

/* Showcase: captures two across. */
.captures {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 960px) {
  .captures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last capture sits centred under the pairs, at their size. */
  .captures li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--space-5)) / 2);
  }
}

/* Season and Board: three facts and the Board's line. */
.facts {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-5) 0 0;
}

@media (min-width: 960px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.facts dt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper-000);
}

.facts dd {
  margin: var(--space-2) 0 0;
  color: var(--graphite-200);
}

.board-line {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-300);
}

/* Play anywhere: the device list and the iPad capture. */
.anywhere {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 960px) {
  .anywhere {
    grid-template-columns: 7fr 5fr;
  }
}

.anywhere ul {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.anywhere li {
  padding-block: var(--space-3);
  border-top: var(--hairline);
  color: var(--graphite-200);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: var(--hairline);
  font-size: var(--text-sm);
}

.site-footer .build {
  color: var(--graphite-300);
}

/* The guide: the page list beside the article. */
main[data-page="guide"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
}

@media (min-width: 960px) {
  main[data-page="guide"] {
    grid-template-columns: 3fr 9fr;
    align-items: start;
  }
}

.guide-nav ul {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.guide-nav a {
  display: block;
  padding-block: var(--space-2);
  color: var(--graphite-200);
  text-decoration: none;
}

.guide-nav a[aria-current="page"] {
  color: var(--paper-000);
}

.guide-page {
  max-width: 44rem;
}

.guide-page h1 {
  font-size: var(--text-2xl);
}

.guide-page h2 {
  margin-top: var(--space-6);
  font-size: var(--text-xl);
}

.guide-page p,
.guide-page li {
  margin-top: var(--space-3);
  color: var(--paper-100);
}

.guide-page ol,
.guide-page ul {
  padding-left: var(--space-5);
}

.guide-page strong {
  color: var(--paper-000);
  font-weight: 600;
}

.guide-page code {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--paper-000);
}

/* Wide tables scroll inside the article, never the page. */
.guide-page table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: var(--space-4);
  border-collapse: collapse;
  font-size: var(--text-md);
}

.guide-page th,
.guide-page td {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--hairline);
  text-align: left;
  vertical-align: top;
  color: var(--paper-100);
}

.guide-page th {
  border-bottom: var(--hairline-strong);
  color: var(--graphite-200);
  font-weight: 500;
}

.guide-page .guide-index {
  padding: 0;
  list-style: none;
}

.guide-index li {
  padding-block: var(--space-4);
  border-bottom: var(--hairline);
}

.guide-index a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--paper-000);
  text-decoration: none;
}

.guide-index p {
  margin-top: var(--space-2);
}
