/* Bad Harvest landing page.
   Palette follows the game's art direction:
   charcoal dust, crop green inside the dome, teal for the shield,
   rust for weathered Greenward kit, warm gold for the Kestrel's
   engine light only (that gold is flagged for review). */

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/saira-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/saira-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/saira-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/saira-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/russo-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-raise: #12141a;
  --paper: #f3eadb;
  --paper-dim: #d5cbbd;
  --muted: #b3aa9e;
  --line: rgba(243, 234, 219, 0.16);
  --teal-text: #9cf6ef;
  --teal: #2fbfb8;
  --gold: #f0b429;
  --rust: #e07a3d;
  --danger: #ff6a1a;
  --focus: #9cf6ef;
  --header: 4.25rem;
  --wrap: 72rem;
  --sans: "Saira", "Segoe UI", "Helvetica Neue", sans-serif;
  --cond: "Saira Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
.scene {
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

:focus {
  outline: none;
}

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

::selection {
  background: #145e5a;
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--paper);
  color: #14120e;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header);
  padding: 0.7rem clamp(1.1rem, 3vw, 2rem);
  background: #0e1014;
  border-bottom: 2px solid #1c6f6c;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
  font-family: "Russo One", "Saira Condensed", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wordmark .tbc-mark {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.62rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--paper-dim);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--teal-text);
}

.hero {
  display: flex;
  flex-direction: column;
  background: var(--bg-raise);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  padding: clamp(1.75rem, 4vw, 4.25rem);
  background:
    linear-gradient(180deg, rgba(224, 122, 61, 0.05), transparent 8rem),
    var(--bg-raise);
}

.kicker {
  margin: 0;
  color: var(--teal-text);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: "Russo One", "Saira Condensed", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4rem);
  letter-spacing: 0;
  line-height: 0.92;
  max-width: 11ch;
  text-wrap: wrap;
}

.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tagline {
  margin: 0;
  max-width: 22em;
  color: var(--paper);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
}

.tagline-end {
  white-space: nowrap;
}

.platform {
  display: inline-block;
  margin-left: 0.15em;
  padding: 0.18em 0.42em 0.14em;
  border: 1px solid rgba(179, 170, 158, 0.45);
  color: var(--muted);
  font-family: var(--cond);
  font-style: normal;
  font-weight: 600;
  font-size: 0.58em;
  letter-spacing: 0.14em;
  line-height: 1;
  vertical-align: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.verse {
  margin: 0;
  max-width: 24em;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.lede {
  margin: 0;
  max-width: 36em;
  color: var(--paper-dim);
  font-size: 1.05rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 0.25rem rgba(224, 122, 61, 0.18);
}

.scene {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 12rem;
  background: #101218;
  border-bottom: 1px solid var(--line);
}

.tbc {
  margin: 0;
  color: var(--paper-dim);
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.28em;
  line-height: 1;
  text-indent: 0.28em;
}

.tbc abbr {
  text-decoration: none;
}

.tbc-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-indent: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
}

.colony {
  max-width: 38rem;
  margin-top: 1.6rem;
}

.colony p {
  margin: 0 0 1.05rem;
  color: var(--paper-dim);
  font-size: 1.125rem;
  line-height: 1.55;
}

.colony .signoff {
  margin: 1.85rem 0 0;
  color: var(--paper);
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: 0.015em;
  line-height: 1.2;
}

blockquote {
  margin: 1.2rem 0 0;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 2px solid var(--rust);
  color: var(--paper);
  font-family: var(--cond);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

blockquote footer {
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.section-lead {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--paper-dim);
}

.concepts {
  background:
    linear-gradient(180deg, rgba(140, 70, 160, 0.16), transparent 14rem),
    #110d16;
  border-top: 1px solid rgba(186, 130, 196, 0.35);
}

.concepts .kicker {
  color: #e6c8f2;
}

.creature h3 {
  margin: 1.6rem 0 0;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
}

.creature + .creature {
  margin-top: 3.25rem;
}

.concept-gallery {
  display: grid;
  gap: 1.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.concept-gallery figure {
  margin: 0;
}

.creature-quote {
  margin: 1.75rem 0 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 2px solid #c6f0a8;
  max-width: 34rem;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  text-transform: none;
}

.creature-quote p {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

.creature-quote footer {
  margin-top: 0.55rem;
  color: #e6c8f2;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.concept-shot {
  display: block;
  padding: 0;
  border: 1px solid rgba(186, 130, 196, 0.45);
  background: #07060a;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.concept-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.concept-shot:hover,
.concept-shot:focus-visible {
  border-color: #c6f0a8;
}

.concept-viewer {
  width: min(68rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0.85rem 0.85rem 1.1rem;
  border: 1px solid rgba(186, 130, 196, 0.55);
  background: #110d16;
  color: var(--paper);
}

.concept-viewer::backdrop {
  background: rgba(8, 6, 12, 0.84);
}

.concept-viewer-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.7rem;
}

.concept-close {
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(198, 240, 168, 0.5);
  background: transparent;
  color: var(--paper);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.concept-close:hover,
.concept-close:focus-visible {
  border-color: #c6f0a8;
  color: #c6f0a8;
}

.concept-viewer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 11rem);
  object-fit: contain;
  background: #07060a;
}

.characters {
  border-top: 1px solid var(--line);
}

.character-list {
  --card-gap: 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--card-gap);
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.character-list::-webkit-scrollbar {
  display: none;
}

.character-list > li {
  flex: 0 0 calc((100% - var(--card-gap)) / 2);
  min-width: 0;
  scroll-snap-align: start;
}

.character h3 {
  margin: 0.9rem 0 0;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 600;
}

.portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #101218;
  border: 1px solid var(--line);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-focus, center center);
}

.site-footer {
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-name {
  margin: 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-place,
.footer-note,
.greenward {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.footer-note a {
  color: var(--teal-text);
}

.greenward {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.9rem;
  margin-top: 0.3rem;
}

.greenward-label {
  display: block;
  color: var(--muted);
  font-family: var(--cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slogan {
  display: block;
  color: var(--paper-dim);
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slogan s {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rust);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 800px) {
  .concept-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.35rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .character-list > li {
    flex-basis: calc((100% - 3 * var(--card-gap)) / 4);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }

  .greenward {
    justify-content: flex-end;
  }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(20rem, 38rem) minmax(22rem, 1.15fr);
    min-height: calc(100svh - var(--header));
    align-items: stretch;
  }

  .scene {
    min-height: calc(100svh - var(--header));
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 959px) {
  .scene {
    order: -1;
  }
}

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

@media (forced-colors: active) {
  .scene {
    border: 1px solid CanvasText;
  }

  .status .dot {
    background: CanvasText;
    box-shadow: none;
  }
}
