:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --ink: #173b33;
  --line: #bfc7b8;
  --gutter: clamp(20px, 5.5vw, 100px);
  --serif: "Baskerville", "Iowan Old Style", Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, figure, h1, h2 { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid #e18235; outline-offset: 4px; }
::selection { background: #c8e9cc; color: #163e33; }
.skip { position: absolute; z-index: 5; transform: translateY(-150%); background: var(--paper); padding: 1em; }
.skip:focus { transform: none; }
.mast, footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px var(--gutter); }
.brand { font: 600 clamp(32px, 3vw, 46px)/1 var(--serif); letter-spacing: -.045em; text-decoration: none; }
.brand span { color: #927044; }
nav, footer div { display: flex; align-items: center; gap: clamp(15px, 3vw, 44px); }
nav a, footer a { font-size: .95rem; text-decoration: none; }
nav a { padding-block: 8px; }
nav a[aria-current] { text-decoration: underline; }
.hero { overflow: hidden; position: relative; isolation: isolate; min-height: 490px; height: min(75svh, 790px); color: #fffaf0; display: flex; align-items: end; justify-content: space-between; padding: 0 var(--gutter) clamp(35px, 5vw, 78px); gap: 25px; background: #294c49; }
.scenery, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.scenery { object-fit: cover; object-position: center 53%; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(0deg, rgb(5 27 27 / .80), transparent 75%), linear-gradient(90deg, rgb(4 25 25 / .25), transparent 60%); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(72px, 8vw, 132px); line-height: .88; }
.hero-copy p { max-width: 31em; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.5; margin: 24px 0 0; }
.coast-picker, .arrows { display: flex; align-items: center; gap: 12px; }
.scene-name { font: italic 22px var(--serif); margin-right: 5px; white-space: nowrap; }
.arrows[hidden] { display: none; }
button { display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #d5e1d7; background: rgb(14 40 36 / .5); color: white; font-size: 21px; cursor: pointer; }
button:hover { background: var(--paper); color: var(--ink); }
.feature, .platforms { margin-inline: var(--gutter); display: grid; gap: clamp(36px, 7vw, 120px); }
.feature { padding-block: clamp(55px, 8vw, 126px); grid-template-columns: 4fr 6fr; align-items: center; }
.feature h2, .policy h1 { font-size: clamp(54px, 5.8vw, 95px); line-height: .98; }
.feature-copy p, .platforms p, .policy p { line-height: 1.65; font-size: clamp(16px, 1.22vw, 19px); max-width: 65ch; }
video { display: block; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #203d34; }
figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; font: italic 22px var(--serif); }
figcaption span, .policy .date { font: 14px/1.5 -apple-system, BlinkMacSystemFont, sans-serif; color: #516457; }
.platforms { border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; padding-block: clamp(42px, 6vw, 95px); }
.platforms h2 { font-size: clamp(36px, 3.7vw, 60px); }
.text-link { font-weight: 600; }
footer { background: var(--ink); color: var(--paper); padding-block: 32px; }
footer .brand span { color: #c7ab80; }
.policy { margin: 36px var(--gutter) 90px; display: grid; grid-template-columns: minmax(220px, 4fr) 6fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.policy aside { position: sticky; top: 24px; }
.policy img { width: 100%; height: min(72vh, 780px); object-fit: cover; }
.policy .lead { font: 32px/1.22 var(--serif); max-width: 25em; }
.policy h2 { font-size: 30px; margin-top: 32px; }
.policy h2 + p { margin-top: 8px; }
@media (max-width: 720px) {
  .mast { padding-block: 16px; }
  .hero { height: 76svh; max-height: 740px; min-height: 470px; flex-direction: column; align-items: start; justify-content: end; gap: 22px; }
  .hero-copy p { max-width: 24em; margin-top: 18px; }
  .coast-picker { width: 100%; justify-content: space-between; }
  .feature, .platforms, .policy { grid-template-columns: 1fr; }
  .feature { gap: 22px; }
  .feature h2 br { display: none; }
  .feature h2 em::before { content: " "; }
  .policy { margin-top: 0; }
  .policy aside { position: static; }
  .policy img { height: 170px; object-position: center 48%; }
  footer { align-items: start; flex-wrap: wrap; }
  footer div { flex-wrap: wrap; }
}

.scenery.drifting {
  animation: coast-drift 10s linear both;
  transform-origin: 38% 56%;
}
.scenery.arriving { animation: coast-drift 10s linear both, coast-dissolve 1.3s ease-out both; }
.hero[data-paused] .scenery { animation-play-state: paused, running; }
@keyframes coast-drift {
  from { transform: scale(1.015); }
  to { transform: translate(-.6%, .25%) scale(1.06); }
}
@keyframes coast-dissolve {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scenery.drifting, .scenery.arriving { animation: none; }
}
@media (max-width: 420px) {
  .coast-picker, .arrows { gap: 6px; }
  .scene-name { font-size: 18px; white-space: normal; }
}

.github-link { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 50%; }
.github-link:hover { background: #e5e8dc; }
@media (max-width: 420px) {
  .mast { flex-wrap: wrap; gap: 4px 12px; }
  .mast nav { gap: 10px; }
}
