/* Finnmark narrative site: cold, paper, restrained */

:root {
  --ink: #1a1714;
  --muted: #5c564d;
  --frost: #e8eef2;
  --deep: #1e2a33;
  --paper: #ede6d4;
  --paper-edge: #d4cbb8;
  --accent: #6b3030;
  --serif: "Crimson Pro", "Georgia", serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

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

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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(165deg, #dfe8ee 0%, #c9d4dc 45%, #b8c5ce 100%);
  font-family: var(--serif);
  line-height: 1.58;
  min-height: 100vh;
}

a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav a {
  margin-right: 0;
}

/* “Mission briefings” dropdown; missions listed inside */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown__summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font: inherit;
  letter-spacing: inherit;
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.nav-dropdown__summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown__summary::after {
  content: "";
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-top: 0.15em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

.nav-dropdown[open] .nav-dropdown__summary::after {
  margin-top: 0.35em;
  transform: rotate(-135deg);
}

.nav-dropdown__summary:hover {
  color: var(--accent);
}

.nav-dropdown__summary:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 2px;
}

body.page-home .nav-dropdown__summary:focus-visible,
body.page-mission .nav-dropdown__summary:focus-visible {
  outline-color: #b8d4ec;
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 100;
  min-width: 11rem;
  padding: 0.4rem 0;
  background: #fff;
  border: 1px solid rgba(30, 42, 51, 0.12);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 30, 40, 0.14);
}

.nav-dropdown__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-dropdown__list a {
  display: block;
  padding: 0.45rem 1rem;
  text-decoration: none;
  color: var(--deep);
}

.nav-dropdown__list a:hover {
  background: rgba(30, 42, 51, 0.06);
  color: var(--accent);
}

.nav-dropdown__list a[aria-current="page"] {
  font-weight: 600;
  background: rgba(30, 42, 51, 0.08);
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(30, 42, 51, 0.12);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--deep);
}

.hero .tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 auto;
  color: var(--ink);
}

.figure-full {
  margin: 2.5rem -1rem;
  max-width: none;
}

@media (min-width: 720px) {
  .figure-full {
    margin-left: calc(50% - 50vw + 1.5rem);
    margin-right: calc(50% - 50vw + 1.5rem);
    width: calc(100vw - 3rem);
    max-width: 56rem;
  }
}

.figure-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: min(72vh, 520px);
  box-shadow: 0 12px 40px rgba(20, 30, 40, 0.18);
}

.figure-full figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.6rem;
  padding: 0 0.5rem;
  font-style: italic;
}

/* Home: gloomy dark palette + masthead hero (typography unchanged) */

body.page-home,
body.page-mission {
  color: #b9c2ce;
  background: radial-gradient(ellipse 100% 70% at 50% 0%, #152028 0%, #0b0f14 42%, #050608 100%);
  background-attachment: fixed;
}

/* Masthead / single-image hero: capped width, centered; photo under type; edges feather (mask + scrim). */
.home-hero {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 2.75rem;
  padding: 0;
  min-height: clamp(280px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  -webkit-mask-image: radial-gradient(
    ellipse 120% 88% at 50% 42%,
    #000 0%,
    #000 54%,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 120% 88% at 50% 42%,
    #000 0%,
    #000 54%,
    transparent 80%
  );
}

.home-hero__media {
  position: absolute;
  inset: -2.5%;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.04);
  display: block;
  filter: saturate(0.96);
}

body.page-mission .home-hero--mission .home-hero__media img {
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.02);
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    195deg,
    rgba(5, 8, 12, 0.5) 0%,
    rgba(5, 8, 12, 0.12) 36%,
    rgba(5, 8, 12, 0.28) 55%,
    rgba(5, 8, 12, 0.94) 100%
  );
  box-shadow: inset 0 0 100px 36px rgba(5, 7, 10, 0.55);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.25rem clamp(1rem, 4vw, 3rem) 1.5rem;
  text-align: center;
}

.home-hero__credit {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(186, 196, 210, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

body.page-home .site-nav--home,
body.page-mission .site-nav--home {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

body.page-home .site-nav a,
body.page-mission .site-nav a {
  color: #9eb6cc;
}

body.page-home .site-nav a:hover,
body.page-mission .site-nav a:hover {
  color: #d8b896;
}

body.page-home .nav-dropdown__summary,
body.page-mission .nav-dropdown__summary {
  color: #9eb6cc;
}

body.page-home .nav-dropdown__summary:hover,
body.page-mission .nav-dropdown__summary:hover {
  color: #d8b896;
}

body.page-home .nav-dropdown__panel,
body.page-mission .nav-dropdown__panel {
  background: #121820;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body.page-home .nav-dropdown__list a,
body.page-mission .nav-dropdown__list a {
  color: #c8d4e0;
}

body.page-home .nav-dropdown__list a:hover,
body.page-mission .nav-dropdown__list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #d8b896;
}

body.page-home .nav-dropdown__list a[aria-current="page"],
body.page-mission .nav-dropdown__list a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f4f8;
}

/* Home main: newspaper-style two columns (multicol) on wide viewports */
body.page-home main,
body.page-mission main {
  display: block;
  max-width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 4rem;
}

body.page-home .newspaper-article {
  color: #aeb8c4;
  font-size: 0.97rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body.page-home .newspaper-sheet {
  column-count: 1;
  column-gap: 2.75rem;
  column-rule: 1px solid rgba(255, 255, 255, 0.12);
  column-fill: balance;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  widows: 2;
  orphans: 2;
}

body.page-home .newspaper-sheet p {
  margin: 0 0 1.05em;
  text-indent: 1.35em;
}

body.page-home .newspaper-sheet:first-of-type > p:first-of-type {
  text-indent: 0;
}

body.page-home .newspaper-sheet:first-of-type > p:first-of-type::first-letter {
  float: left;
  font-size: 3.15rem;
  line-height: 0.82;
  padding: 0.04em 0.1em 0 0;
  margin: 0.04em 0.12em 0 0;
  font-weight: 600;
  color: #d8e0ea;
}

body.page-home .newspaper-page-turn,
body.page-home .newspaper-sheet-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

body.page-home .newspaper-sheet-head {
  margin: 0 0 1.5rem;
  padding: 0;
}

body.page-home .newspaper-page-turn {
  margin: 2.5rem 0 2.25rem;
  padding: 1rem 0 0;
}

body.page-home .newspaper-page-turn__rule {
  display: block;
  width: min(100%, 26rem);
  height: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

body.page-home .newspaper-page-turn__label {
  margin: 0;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6f7d8c;
}

@media (min-width: 56rem) {
  body.page-home .newspaper-sheet {
    column-count: 2;
  }
}

body.page-home .hero--over-image,
body.page-mission .hero--over-image {
  border-bottom: none;
  margin: 0;
  padding: 0 0 0.25rem;
}

body.page-home .hero--over-image h1,
body.page-mission .hero--over-image h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f6f9fc;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.85);
}

body.page-home .hero--over-image .hero-subtitle,
body.page-mission .hero--over-image .hero-subtitle {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.75vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #dce4ec;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

body.page-home .hero--over-image .tag,
body.page-mission .hero--over-image .tag {
  color: #b4c0d0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

body.page-home .hero--over-image .lede,
body.page-mission .hero--over-image .lede {
  margin-top: 0;
  color: #d0d8e2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

body.page-home footer.site-foot,
body.page-mission footer.site-foot {
  max-width: min(70rem, calc(100% - 2rem));
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  color: #6f7d8c;
}

body.page-home footer.site-foot a,
body.page-mission footer.site-foot a {
  color: #9eb6cc;
}

footer.site-foot {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Mission page: POV strip, map, typewritten brief */
body.page-mission .mission-pov {
  max-width: 42rem;
  margin: -0.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem) 2rem;
  font-size: 0.82rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(186, 196, 210, 0.82);
  text-align: center;
  text-wrap: balance;
}

body.page-mission .mission-map-panel {
  margin: 0 auto 2.75rem;
  max-width: 1600px;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

body.page-mission .mission-map-panel__inner {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: #0d1218;
}

body.page-mission .mission-map-panel img {
  width: 100%;
  height: auto;
  display: block;
}

body.page-mission .mission-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2.25rem;
  max-width: min(70rem, calc(100% - 2rem));
  padding: 0 clamp(1rem, 4vw, 2rem);
}

body.page-mission .mission-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #dce4ec;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

body.page-mission .mission-download-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f0f4f8;
}

body.page-mission .mission-download-btn:focus-visible {
  outline: 2px solid #b8d4ec;
  outline-offset: 3px;
}

body.page-mission .briefing-typewriter {
  max-width: min(52rem, calc(100% - 2rem));
  margin: 0 auto 3.5rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

body.page-mission .briefing-typewriter .briefing-paper {
  margin: 0;
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 1.75rem;
  max-width: none;
  background: #0d1218;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

body.page-mission .briefing-typewriter .briefing-paper h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a96a3;
  margin: 0 0 1rem;
  font-weight: 500;
}

body.page-mission .briefing-typewriter .briefing-pre {
  font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  line-height: 1.5;
  color: #aeb8c4;
  letter-spacing: 0.04em;
}

body.page-mission .briefing-typewriter .briefing-fallback {
  color: #8a96a3;
}

body.page-mission .briefing-typewriter .briefing-fallback a {
  color: #b8c8d8;
}

/* Mission 01 / briefing (legacy / shared) */

.mission-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(30, 42, 51, 0.12);
  margin-bottom: 2rem;
}

.mission-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.35rem;
  color: var(--deep);
}

.mission-header .sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.map-panel {
  margin: 2rem 0 2.5rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  box-shadow: 0 4px 20px rgba(20, 30, 40, 0.1);
}

.map-panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.map-panel img,
.map-panel object,
.map-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.briefing-paper {
  margin: 2.5rem 0;
  padding: 1.75rem 1.25rem 2rem;
  background: var(--paper);
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.03) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(90, 80, 60, 0.06) 23px,
      rgba(90, 80, 60, 0.06) 24px
    );
  border: 1px solid var(--paper-edge);
  box-shadow: 0 2px 0 rgba(60, 50, 40, 0.08), 0 12px 32px rgba(20, 30, 40, 0.12);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.briefing-paper h2 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.briefing-pre {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.35vw, 0.78rem);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #252018;
}

.briefing-scan {
  margin: 2rem auto;
  max-width: 52rem;
}

.briefing-scan img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--paper-edge);
  box-shadow: 0 8px 28px rgba(20, 30, 40, 0.14);
}

.briefing-fallback {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.briefing-error {
  color: var(--accent);
  font-size: 0.95rem;
}
