@font-face {
  font-family: Newsreader;
  src: url("newsreader.woff2") format("woff2");
  font-display: swap;
}

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

:root {
  --ink: #111111;
  --paper: #f4f1ea;
  --orange: #f2673a;
  --rule: #f4f1ea38;
  --display: Newsreader, Georgia, serif;
  --gutter: clamp(1.25rem, 5.5vw, 7rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: system-ui, sans-serif;
}

p, h1 { margin: 0; }
.frame { width: min(100% - 2 * var(--gutter), 100rem); margin-inline: auto; }
.overline { font: 600 .7rem/1.5 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--rule);
}

.masthead img { width: clamp(7rem, 14vw, 11.25rem); height: auto; }
.masthead p { text-align: end; }

main {
  flex: 1;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.opening { padding-block: clamp(3rem, 9vh, 7rem); }
.status { color: var(--orange); width: fit-content; padding: .3rem .55rem; border: 1px solid currentColor; }

h1 {
  max-width: 13ch;
  margin-block: clamp(1.6rem, 4vw, 3.5rem);
  font: 400 clamp(3.35rem, 9.5vw, 10rem)/.87 var(--display);
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 0 .3em var(--ink), 0 0 .12em var(--ink);
}

h1 em { display: block; }
.intro { max-width: 41ch; width: fit-content; background: var(--ink); font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.6; }
.footer { padding-block: 1.2rem; border-top: 1px solid var(--rule); }

.horizon { position: absolute; z-index: -1; width: 78%; height: 100%; inset: 0 -12% auto auto; }
.contours { fill: none; stroke: var(--rule); }
.band { fill: var(--orange); opacity: .63; }
.seam { fill: none; stroke: var(--ink); opacity: .45; }
.trace, .waypoint { fill: none; stroke: var(--orange); }
.trace { stroke-width: 2; }
.marker { fill: var(--orange); }

@media (max-width: 42rem) {
  .horizon { width: 115%; height: 64%; inset: 25% -49% auto auto; opacity: .58; }
}

@media (prefers-reduced-motion: no-preference) {
  .trace { animation: draw 1250ms cubic-bezier(.19, .74, .27, 1) both; }
  @keyframes draw {
    from { stroke-dasharray: 1; stroke-dashoffset: 1; }
    to { stroke-dasharray: 1; stroke-dashoffset: 0; }
  }
}
