/* Ten Arrows Game Studio
   Navy #0B1F3A and red #9B1B2E are sampled from the approved logo. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2");
}

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

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --navy: #0b1f3a;
  --red: #9b1b2e;
  --white: #ffffff;
  --cream: #f7f4ef;
  --line: rgba(11, 31, 58, 0.16);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 1rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
figure {
  margin: 0;
}

h1,
h2,
.game-name,
.map-title,
.footer-name,
cite {
  font-family: var(--serif);
}

h1,
h2,
.map-title,
.footer-name {
  font-weight: 500;
  letter-spacing: -0.025em;
}

cite {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

.campaign ::selection {
  background: var(--cream);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 0.8rem;
  z-index: 10;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  border-top: 4px solid var(--red);
  background: var(--white);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-block: 0.65rem 0.35rem;
}

.brand {
  display: block;
  width: calc(100% + (2 * var(--gutter)));
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
  color: inherit;
}

.brand:hover {
  color: inherit;
}

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

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.2rem;
  width: 100%;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.05rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--navy);
}

nav a:visited {
  color: var(--navy);
}

nav a:hover {
  color: var(--red);
}

.campaign {
  background: var(--navy);
  color: var(--cream);
  border-top: 4px solid var(--red);
  padding: 1.75rem 0 2.25rem;
  scroll-margin-top: 0.75rem;
}

.campaign .eyebrow {
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.game-name {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
}

.campaign h1 {
  margin: 0 0 0.9rem;
  max-width: 16em;
  font-size: clamp(2.15rem, 7.2vw, 5.15rem);
  line-height: 1.02;
  text-wrap: balance;
}

.pitch-line {
  display: block;
}

.lede {
  max-width: 38rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.campaign-map {
  margin-top: 1.6rem;
  margin-inline: calc(-1 * var(--gutter));
}

.map-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  padding: 2.35rem 1.35rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  text-align: left;
}

.map-sheet::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(11, 31, 58, 0.22);
  pointer-events: none;
}

.tick {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--red);
  z-index: 1;
}

.tick-nw { top: 0.45rem; left: 0.45rem; border-right: 0; border-bottom: 0; }
.tick-ne { top: 0.45rem; right: 0.45rem; border-left: 0; border-bottom: 0; }
.tick-sw { bottom: 0.45rem; left: 0.45rem; border-right: 0; border-top: 0; }
.tick-se { bottom: 0.45rem; right: 0.45rem; border-left: 0; border-top: 0; }

.map-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.map-flag {
  margin: 0 0 0.55rem;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.map-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 1.02;
}

.campaign-map figcaption {
  margin: 0.8rem 0 0;
  padding-inline: var(--gutter);
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.about {
  padding: 2.5rem 0 2.75rem;
  scroll-margin-top: 0.75rem;
}

.about h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.about p:last-child {
  max-width: 34rem;
  margin: 0;
  font-size: 1.125rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.6rem;
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-name {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.footer-note,
.footer-legal {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.footer-note + .footer-note {
  margin-top: 0.15rem;
}

.text-link {
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--red);
}

.text-link:visited {
  color: var(--navy);
}

.text-link:hover {
  color: var(--red);
}

.missing {
  padding: 2.75rem 0 3.5rem;
}

.missing h1 {
  max-width: 11ch;
  margin: 0 0 0.9rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.missing .lede {
  margin-bottom: 1.1rem;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }

  body {
    font-size: 1.125rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 0.85rem 0.7rem;
  }

  .brand {
    width: min(24rem, 46vw);
    margin-inline: 0;
  }

  nav ul {
    width: auto;
    justify-content: flex-end;
    padding-top: 0;
    gap: 0.15rem 1.6rem;
  }

  .campaign {
    padding: 2.75rem 0 3rem;
  }

  .campaign-map {
    margin-inline: 0;
    margin-top: 2rem;
  }

  .map-sheet {
    aspect-ratio: 16 / 8.5;
    padding: 2.75rem 2.25rem 2rem;
  }

  .campaign-map figcaption {
    padding-inline: 0;
  }

  .about {
    padding: 3.25rem 0 3.5rem;
  }
}

@media (min-width: 64rem) {
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
  }

  .footer-legal {
    padding-top: 0.4rem;
    text-align: right;
  }
}

@media (max-width: 23rem) {
  .campaign h1 {
    font-size: 1.85rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(11, 31, 58, 0.55);
  }

  .map-sheet::before {
    border-color: var(--navy);
  }
}

@media (forced-colors: active) {
  .map-sheet,
  .tick,
  .campaign {
    border: 1px solid CanvasText;
  }

  .tick {
    forced-color-adjust: none;
  }
}

@media print {
  .skip,
  nav {
    display: none;
  }

  body,
  .campaign,
  .map-sheet {
    background: #fff;
    color: #000;
  }

  .site-header,
  .campaign {
    border-color: #000;
  }

  a {
    text-decoration: underline;
  }
}
