/* The Mile Marker — themilemarker.news
   Palette: lake navigation chart.
   paper #F0EDE2 · water #14506B · shallow #CFE3EA · ink #17211F
   buoy red #C6402E · buoy green #1F7A4D */

:root {
  --paper: #F0EDE2;
  --water: #14506B;
  --shallow: #CFE3EA;
  --ink: #17211F;
  --red: #C6402E;
  --green: #1F7A4D;
  --board-shadow: 0 2px 0 rgba(23, 33, 31, 0.9);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--water); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

header.site {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}
.board {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--board-shadow);
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
}
.board.logo {
  width: 54px;
  height: 54px;
  font-size: 26px;
  letter-spacing: 1px;
  flex: none;
}
.masthead-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}
.masthead-sub {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--water);
}
nav.site {
  display: flex;
  gap: 22px;
  padding: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
}
nav.site a { text-decoration: none; color: var(--ink); }
nav.site a:hover, nav.site a[aria-current="page"] {
  color: var(--red);
}

/* ---------- hero ---------- */

.hero {
  background: var(--water);
  color: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.hero .wrap {
  padding: 56px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.you-are-here {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.you-are-here .board {
  width: 74px;
  height: 74px;
  font-size: 20px;
  line-height: 1.05;
  text-align: center;
  padding: 4px;
}
.you-are-here .label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--shallow);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 15ch;
}
.hero p.dek {
  font-size: 19px;
  max-width: 52ch;
  color: #E8EFE9;
}
.hero p.dek strong { color: #fff; }

/* ---------- signup ---------- */

.signup { max-width: 460px; }
.signup form { display: flex; gap: 0; }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 14px;
  border: 3px solid var(--ink);
  border-right: 0;
  background: #fff;
  color: var(--ink);
}
.signup button {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--board-shadow);
}
.signup button:hover { background: #A93424; }
.signup .fine {
  margin-top: 10px;
  font-size: 14px;
  color: var(--shallow);
}
.hero .signup .fine { color: var(--shallow); }
main .signup .fine { color: #5A6660; }
.signup .msg {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 17px;
  display: none;
}
.signup .msg.ok { color: var(--green); display: block; }
.hero .signup .msg.ok { color: #BFE8CE; }
.signup .msg.err { color: var(--red); display: block; }
.hero .signup .msg.err { color: #FFC9BE; }

/* ---------- sections ---------- */

section.block { padding: 48px 0; }
section.block + section.block { border-top: 3px solid var(--ink); }
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
section.block h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
  margin-bottom: 16px;
}
section.block p { max-width: 62ch; margin-bottom: 14px; }

.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.coverage .card {
  border: 3px solid var(--ink);
  background: #fff;
  padding: 16px;
  box-shadow: var(--board-shadow);
}
.coverage .card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.coverage .card h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--green);
}
.coverage .card:nth-child(2n) h3::before { background: var(--red); }
.coverage .card p { font-size: 15.5px; margin: 0; }

.map-teaser {
  border: 3px solid var(--ink);
  background: var(--shallow);
  padding: 22px;
  box-shadow: var(--board-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.map-teaser .board { width: 58px; height: 58px; font-size: 22px; }
.map-teaser div.t { flex: 1; min-width: 240px; }
.map-teaser a.btn {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--water);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--board-shadow);
  padding: 12px 18px;
}

/* ---------- channel map ---------- */

.channel-intro { max-width: 62ch; }
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 18px 0 6px;
}
.legend span::before {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: -1px;
}
.legend .lm::before { background: var(--water); }
.legend .stop::before { background: var(--red); }

.channel {
  position: relative;
  margin: 30px 0 10px;
  padding-left: 46px;
}
.channel::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--water), #0D3A50);
  border: 2px solid var(--ink);
}
.mm {
  position: relative;
  margin-bottom: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.mm .board {
  position: relative;
  width: 52px;
  height: 52px;
  font-size: 20px;
  flex: none;
  margin-left: -46px;
  background: #fff;
  z-index: 1;
}
.mm .board::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 4px;
  height: 10px;
  background: var(--ink);
  transform: translateX(-50%);
}
.mm .info { padding-top: 3px; }
.mm .info h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
}
.mm .info h3 .tag {
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--water);
  border: 2px solid var(--ink);
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}
.mm .info h3 .tag.stop { background: var(--red); }
.mm .info p { font-size: 15.5px; color: #3A4540; margin: 4px 0 0; max-width: 58ch; }

.correction {
  border: 3px dashed var(--water);
  background: #fff;
  padding: 16px 18px;
  font-size: 15.5px;
  max-width: 640px;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  margin-top: 56px;
}
footer.site .wrap {
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 14.5px;
}
footer.site a { color: var(--shallow); }
footer.site .pub { color: #9FB0A9; }

@media (max-width: 560px) {
  .signup form { flex-direction: column; }
  .signup input[type="email"] { border-right: 3px solid var(--ink); border-bottom: 0; }
  .masthead-name { font-size: 27px; }
}
