/* Stork Investments: one static stylesheet, no external fonts or scripts. */

:root {
  --paper: #f3f5f6;
  --ink: #17233a;
  --slate: #4b5a6b;
  --rule: #d3dae0;
  --night: #17233a;
  --night-text: #e6ebf0;
  --night-muted: #a9b6c4;
  --accent: #2f6f73;
  --accent-night: #8cc9c4;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --column: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-header .brand {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header nav { font-size: 0.95rem; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 9vw, 6rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

/* Illustrations */
.band { margin: 0; line-height: 0; }
.band img { display: block; width: 100%; height: auto; object-fit: cover; }
.band-hero {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band-hero img { aspect-ratio: 21 / 9; object-position: 50% 45%; border-radius: 3px; }
section.night { padding-top: 0; }
.band-hero { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.band-night { position: relative; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.band-night img { aspect-ratio: 21 / 8; object-position: 50% 55%; }
.band-night::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(23, 35, 58, 0), var(--night));
}

@media (max-width: 44rem) {
  .band-hero img { aspect-ratio: 4 / 3; object-position: 62% 40%; }
  .band-night img { aspect-ratio: 4 / 3; object-position: 80% 50%; }
}

/* Sections */
section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* The night: the one memorable element */
.night {
  background: var(--night);
  color: var(--night-text);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}
.night h2 { color: #fff; }
.night .intro { color: var(--night-muted); }
.night a { color: var(--accent-night); }

.shift {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  position: relative;
}
.shift::before {
  content: "";
  position: absolute;
  left: 4.6rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--night-muted);
  opacity: 0.45;
}
.shift li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: 1.5rem;
  padding: 0.75rem 0;
}
.shift time {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.shift .what { position: relative; padding-left: 0.6rem; }
.shift .what::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-night);
}
.shift strong { display: block; font-weight: 600; color: #fff; }
.shift span { color: var(--night-muted); }
.shift li.morning time,
.shift li.morning strong { color: var(--accent-night); }

/* Flow: the daily loop, a real sequence */
.flow {
  list-style: none;
  counter-reset: step;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.flow li {
  counter-increment: step;
  position: relative;
  padding: 0.25rem 1rem 0 0;
  border-top: 2px solid var(--ink);
}
.flow li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0.6rem 0 0.15rem;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(45deg);
  background: var(--paper);
}
.flow strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.flow span { display: block; color: var(--slate); font-size: 0.95rem; line-height: 1.5; }

.compute {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: #e9eef1;
}
.compute p { margin: 0; }
.compute strong { font-weight: 600; margin-right: 0.5rem; }
.compute .next { display: block; color: var(--accent); margin-top: 0.25rem; }

/* Team */
.team { margin: 1.5rem 0 0; }
.team > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.team > div:last-child { border-bottom: 1px solid var(--rule); }
.team dt { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
.team dd { margin: 0; }

/* Roadmap */
.roadmap { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.roadmap li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.roadmap li:last-child { border-bottom: 1px solid var(--rule); }
.roadmap strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.35; }
.roadmap li:nth-child(2) strong { color: var(--accent); }

/* Facts */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; }
.after-facts { margin-top: 1.5rem; }

/* Legal page */
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 2rem 0 1.5rem;
}
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.site-footer p { margin: 0 0 0.35rem; }

@media (max-width: 44rem) {
  .flow { grid-template-columns: 1fr; }
  .flow li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 1.1rem 1.1rem; }
  .flow li::before { margin-top: 0; }
  .flow li:not(:last-child)::after { top: auto; bottom: -6px; right: auto; left: -6px; transform: rotate(135deg); }
  .team > div,
  .roadmap li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
  .shift::before { left: 3.6rem; }
  .shift li { grid-template-columns: 3rem 1fr; column-gap: 1.4rem; }
  .shift time { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .shift li { animation: arrive 500ms ease-out both; }
  .shift li:nth-child(2) { animation-delay: 120ms; }
  .shift li:nth-child(3) { animation-delay: 240ms; }
  .shift li:nth-child(4) { animation-delay: 360ms; }
  .shift li:nth-child(5) { animation-delay: 480ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
