/* Sidro · Sidrište. The page is a working nautical chart: chart paper, ink,
   course magenta, shoal blue and land buff, overprinted, nothing else. */

/* Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-var-07596fe5.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 90% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/spectral-regular-b19145f2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/spectral-semibold-22100d5b.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/spectral-italic-fcb644ca.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/spectral-semibolditalic-01deffcd.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Tokens --------------------------------------------------------------- */

:root {
  --paper: #FBFAF4;
  --white: #FFFFFF;
  --ink: #16202A;
  --ink-2: #4A5560;
  --ink-text: #26313B;
  --rule: #C9CDD1;
  --mag: #B0136F;
  --mag-deep: #8E0F5A;
  --shoal: #CFE6EF;
  --shoal-2: #A9D3E6;
  --isobath: #7FA9BE;
  --sounding: #55707F;
  --land: #EBD89A;
  --land-ink: #6E5B22;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --frame: 6px;
  --neat: 10px;
  --gutter: 1.625rem;
  --measure: 74rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-course: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
  accent-color: var(--mag);
  caret-color: var(--mag);
  scrollbar-color: var(--ink-2) var(--paper);
}

@media (min-width: 48rem) {
  :root {
    --frame: 10px;
    --neat: 16px;
    --gutter: clamp(2rem, 4.4vw, 3.5rem);
  }
}

/* Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-stretch: 108%;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor;
}

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

strong,
b {
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--shoal);
  padding: 0.05em 0.3em;
  overflow-wrap: anywhere;
}

ins {
  text-decoration: none;
}

svg {
  overflow: visible;
}

::selection {
  background: var(--shoal-2);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--mag);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot from abuse_protection_fields: off-screen, never display:none. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 1.25rem;
  top: -10rem;
  z-index: 20;
  padding: 0.75rem 1.1rem;
  background: var(--mag);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  top: 1.25rem;
  color: var(--white);
  outline: 3px solid var(--ink);
}

/* Deadline states: body[data-deadline] is set by the server and kept
   current by site.js; [data-when] lists the states an element belongs to. */
[data-deadline="countdown"] [data-when]:not([data-when~="countdown"]),
[data-deadline="consultation_closed"] [data-when]:not([data-when~="consultation_closed"]),
[data-deadline="in_force"] [data-when]:not([data-when~="in_force"]) {
  display: none;
}

/* The sheet: graticule border, neat line ---------------------------------- */

.page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  container-type: inline-size;
  --u: calc(min(100cqw, 1600px) / 1280);
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.page::before {
  inset: 0;
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: calc(-1 * var(--frame) - 1px);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 64px, var(--paper) 64px 128px) top left / 100% var(--frame) no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 64px, var(--paper) 64px 128px) bottom left / 100% var(--frame) no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 64px, var(--paper) 64px 128px) top left / var(--frame) 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 64px, var(--paper) 64px 128px) top right / var(--frame) 100% no-repeat;
}

.page::after {
  inset: var(--neat);
  border: 1px solid var(--ink);
}

/* Masthead ------------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.75rem var(--gutter) 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 2.75rem;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark__glyph {
  width: 1.5rem;
  height: 1.75rem;
  color: var(--mag);
}

.wordmark__name {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.16em;
  line-height: 1;
}

.masthead__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  list-style: none;
  padding: 0;
}

.masthead__nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 450;
  text-decoration: none;
  color: var(--ink);
}

.masthead__nav a:hover {
  color: var(--mag);
  text-decoration: underline;
}

.flashes {
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter);
}

.flash {
  max-width: var(--measure);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

/* Chart inks (shared by every chart on the site) ----------------------- */

.land {
  fill: var(--land);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.shoal {
  fill: var(--shoal);
}

.shoal--deep {
  fill: var(--shoal-2);
}

.isobath {
  fill: none;
  stroke: var(--isobath);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.chart-land {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.42em;
  fill: var(--land-ink);
}

.chart-land--narrow {
  font-size: 11px;
  letter-spacing: 0.3em;
}

.chart-soundings {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  fill: var(--sounding);
}

.chart-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  fill: var(--mag);
}

.chart-label--strong {
  font-weight: 600;
}

.chart-label--small {
  font-size: 14.5px;
}

.course {
  fill: none;
  stroke: var(--mag);
  stroke-width: 2.4;
  stroke-dasharray: 14 7;
}

.course-start {
  fill: var(--paper);
  stroke: var(--mag);
  stroke-width: 2.4;
}

.waypoint {
  fill: var(--paper);
  stroke: var(--mag);
  stroke-width: 2.4;
}

.anchorage > circle {
  fill: var(--paper);
  stroke: var(--mag);
  stroke-width: 2;
}

.anchorage__anchor {
  stroke: var(--mag);
}

.anchorage__flukes {
  fill: var(--mag);
}

/* Hero: narrow screens first ---------------------------------------------- */

.hero {
  position: relative;
}

.hero__sheet {
  position: relative;
  padding: 1.5rem var(--gutter) 3rem;
}

.chart--wide {
  display: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__title {
  font-stretch: 106%;
  font-weight: 780;
  font-size: clamp(2.35rem, 8.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.hero__lede {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-text);
  margin-bottom: 1.5rem;
  max-width: 34em;
}

.hero__notice {
  font-size: 1rem;
  line-height: 1.45;
  margin: -0.5rem 0 1.25rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--ink);
  background: var(--shoal);
  max-width: 34em;
}

.hero__band {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.chart--narrow {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
}

@media (min-width: 44rem) {
  .hero__band {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
    align-items: end;
    column-gap: 2.5rem;
  }

  .chart--narrow {
    grid-row: 1 / span 2;
  }
}

/* Chart note (the boxed example on the chart) */

.note {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 1.125rem 1.25rem 1rem;
  font-family: var(--sans);
}

.note__title {
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 120%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.note__product {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.note__price {
  font-size: 2.75rem;
  font-weight: 800;
  font-stretch: 90%;
  color: var(--mag);
  line-height: 1;
  margin-bottom: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.note__rows {
  display: grid;
}

.note__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.3;
}

.note__row dd {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.note__row--base dt {
  font-weight: 700;
}

/* Scale bar with the live day count */

.scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.scale__bar {
  flex: none;
  width: 10rem;
  height: 7px;
  border: 1px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 0 25%, transparent 25% 50%, var(--ink) 50% 75%, transparent 75%);
}

/* Hero: the chart composition from 70rem up. Everything is measured in --u,
   1/1280 of the sheet, so the composition holds its proportions. */

@media (min-width: 72rem) {
  .masthead {
    width: calc(1280 * var(--u));
    margin-inline: auto;
    height: calc(96 * var(--u));
    padding: calc(30 * var(--u)) calc(56 * var(--u)) 0;
    align-items: center;
  }

  .wordmark__glyph {
    width: calc(26 * var(--u));
    height: calc(32 * var(--u));
  }

  .wordmark__name {
    font-size: calc(24 * var(--u));
  }

  .masthead__nav ul {
    gap: 0 calc(32 * var(--u));
  }

  .masthead__nav a {
    font-size: max(15px, calc(15 * var(--u)));
  }

  .hero__sheet {
    width: calc(1280 * var(--u));
    min-height: calc(664 * var(--u));
    margin-inline: auto;
    padding: calc(30 * var(--u)) 0 calc(124 * var(--u)) calc(56 * var(--u));
  }

  .chart--wide {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(664 * var(--u));
    overflow: visible;
  }

  .hero__copy {
    width: calc(600 * var(--u));
    max-width: none;
  }

  .hero__title {
    font-stretch: 112%;
    font-size: calc(66 * var(--u));
    line-height: 1;
    margin-bottom: calc(22 * var(--u));
  }

  .hero__lede {
    font-size: max(17px, calc(20 * var(--u)));
    max-width: calc(560 * var(--u));
    margin-bottom: calc(26 * var(--u));
  }

  .hero__notice {
    font-size: max(15px, calc(16 * var(--u)));
    margin-top: calc(-8 * var(--u));
  }

  .hero__copy .signup {
    width: calc(580 * var(--u));
  }

  .hero__band {
    display: contents;
  }

  .chart--narrow {
    display: none;
  }

  .hero__note {
    position: absolute;
    z-index: 1;
    left: calc(880 * var(--u));
    bottom: calc(88 * var(--u));
    width: calc(336 * var(--u));
    padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u));
  }

  .hero__note .note__title {
    font-size: max(11px, calc(11.5 * var(--u)));
  }

  .hero__note .note__product {
    font-size: max(15px, calc(16 * var(--u)));
  }

  .hero__note .note__price {
    font-size: calc(44 * var(--u));
  }

  .hero__note .note__row {
    font-size: max(13px, calc(14 * var(--u)));
  }

  .scale {
    position: absolute;
    z-index: 1;
    left: calc(300 * var(--u));
    bottom: calc(20 * var(--u));
    font-size: max(12px, calc(12 * var(--u)));
    flex-wrap: nowrap;
    gap: calc(12 * var(--u));
  }

  .scale__bar {
    width: calc(240 * var(--u));
  }
}

/* Signup form ----------------------------------------------------------- */

.signup {
  max-width: 36rem;
}

.signup__box {
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.signup__row {
  display: flex;
  flex-direction: column;
}

.signup__field {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.45rem 1rem 0.35rem;
}

.signup__field:focus-within {
  outline: 3px solid var(--mag);
  outline-offset: -3px;
}

.signup__label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.2;
}

.signup__input {
  width: 100%;
  border: 0;
  padding: 0.15rem 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.3;
  border-radius: 0;
}

.signup__input:focus {
  outline: none;
}

.signup__input::placeholder {
  color: #66717B;
  opacity: 1;
}

.signup__submit {
  min-height: 3.25rem;
  padding: 0.6rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--mag);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 100%;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}

.signup__submit:hover {
  background: var(--mag-deep);
}

.signup__submit:active {
  background: var(--ink);
}

.signup__submit:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.signup__consent {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 1rem 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.96875rem;
  line-height: 1.4;
  color: var(--ink-text);
}

.signup__consent input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.05rem 0 0;
  accent-color: var(--mag);
  cursor: pointer;
}

.signup__consent label {
  cursor: pointer;
}

.signup__field.is-invalid,
.signup__consent.is-invalid {
  outline: 2px dashed var(--mag);
  outline-offset: -4px;
}

.signup__field.is-invalid:focus-within {
  outline: 3px solid var(--mag);
  outline-offset: -3px;
}

.signup__error {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0 1rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--mag);
}

.signup__error--field {
  padding: 0.3rem 0 0.15rem;
}

.signup__error::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--mag);
  transform: rotate(45deg) translateY(-0.1rem);
}

.signup__fine {
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.signup__fine a {
  color: var(--ink);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.875rem;
  white-space: nowrap;
}

.signup__fine a:hover {
  color: var(--mag);
}

.signup__unavailable {
  padding: 1rem;
  border: 1.5px solid var(--ink);
  background: var(--white);
  font-size: 1rem;
}

@media (min-width: 36rem) {
  .signup__row {
    flex-direction: row;
  }

  .signup__submit {
    min-height: auto;
  }
}

@media (min-width: 72rem) {
  .hero .signup__field {
    min-height: calc(58 * var(--u));
    padding-inline: calc(18 * var(--u));
  }

  .hero .signup__input {
    font-size: max(16px, calc(17 * var(--u)));
  }

  .hero .signup__submit {
    font-size: max(15px, calc(16 * var(--u)));
    padding-inline: calc(24 * var(--u));
  }

  .hero .signup__consent {
    font-size: max(15px, calc(15.5 * var(--u)));
    padding: calc(9 * var(--u)) calc(18 * var(--u)) calc(10 * var(--u));
  }

  .hero .signup__fine {
    font-size: max(14px, calc(15 * var(--u)));
    margin-top: calc(10 * var(--u));
  }
}

/* Error summary (subscriptions/new) */

.error-summary {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--mag);
  background: var(--white);
}

.error-summary:focus {
  outline: 3px solid var(--mag);
  outline-offset: 2px;
}

.error-summary .error-summary__title {
  margin: 0 0 0.4rem;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mag);
  margin-bottom: 0.4rem;
}

.error-summary ul {
  padding-left: 1.1rem;
  font-size: 1rem;
}

/* Sections ------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section__inner {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__title {
  font-stretch: 112%;
  font-weight: 760;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin-bottom: 1rem;
}

.section__lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-text);
  max-width: 36em;
}

.section--shoal {
  background:
    linear-gradient(var(--shoal-2), var(--shoal-2)) top / 100% 10px no-repeat,
    linear-gradient(var(--shoal-2), var(--shoal-2)) bottom / 100% 10px no-repeat,
    var(--shoal);
  border-block: 1px solid var(--isobath);
}

.section--land {
  background: var(--land);
  border-block: 1.5px solid var(--ink);
}

/* Legend: the chart's key, used for the law and for agencies */

.legend {
  display: grid;
  border-bottom: 1px solid var(--ink);
}

.legend__item {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--ink);
}

.legend dt {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.legend dd {
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 38em;
}

.legend dd strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.97em;
}

@media (min-width: 40rem) {
  .legend__item {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

/* Law */

.law .section__inner {
  display: grid;
  gap: 3rem;
}

.bulletin {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.bulletin__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.bulletin__title::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--mag);
  background: var(--paper);
  transform: rotate(45deg);
}

.law__sources {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-2);
  max-width: 48em;
}

.law__sources a {
  color: var(--ink);
}

@media (min-width: 62rem) {
  .law .section__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }

  .law__sources {
    grid-column: 2;
  }
}

/* Features: exhibits ------------------------------------------------------ */

.features__grid {
  display: grid;
  gap: 4rem 2.75rem;
}

.feature {
  min-width: 0;
}

.feature__title {
  font-size: 1.4375rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.feature > p,
.history__text > p,
.pricelist__text > p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-text);
  max-width: 34em;
}

@media (min-width: 62rem) {
  .features__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .feature--narrow {
    grid-column: span 5;
  }

  .feature--wide {
    grid-column: span 7;
  }

  .feature--full {
    grid-column: 1 / -1;
  }
}

.exhibit {
  margin-top: 1.4rem;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.exhibit__tag {
  display: block;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.71875rem;
  font-weight: 700;
  font-stretch: 120%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
}

/* A product page in miniature */

.shop {
  display: grid;
  grid-template-columns: minmax(5.5rem, 8.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  font-family: var(--sans);
}

.shop__image {
  position: relative;
  aspect-ratio: 1;
  background: var(--shoal);
}

.shop__image--towel {
  background: var(--land);
}

.shop__image svg {
  width: 100%;
  height: 100%;
}

.shop__drawing {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.shop__drawing--thin {
  stroke-width: 1.5;
}

.shop__badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.15rem 0.45rem;
  background: var(--mag);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.shop__name {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.shop__price {
  font-size: 1.875rem;
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.shop__price del {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-right: 0.35rem;
}

.shop__price ins {
  color: var(--mag);
}

.shop__line,
.shop__anchor {
  font-size: 0.9375rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.shop__anchor {
  font-weight: 700;
}

.shop__cart {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Tables in the ledger style */

.table-wrap {
  overflow-x: auto;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.ledger th,
.ledger td {
  padding: 0.6rem 1rem;
  text-align: left;
  vertical-align: baseline;
  border-top: 1px solid var(--rule);
}

.ledger thead th {
  border-top: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ledger tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.ledger__date {
  color: var(--ink-2);
  white-space: nowrap;
}

.ledger__flag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border: 1px solid var(--mag);
  color: var(--mag);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.ledger__new {
  background: var(--shoal);
}

/* A file in miniature */

.file__name {
  padding: 0.6rem 1rem;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.file__body {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink);
}

.file__body code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}

.archive {
  list-style: none;
  padding: 0 1rem 0.75rem;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
}

.archive li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.archive__date {
  font-weight: 600;
}

.archive__file {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.archive .archive__more {
  border-bottom: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Price history: log + step plot */

.history,
.pricelist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

.ledger--log {
  margin-top: 1.4rem;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.ledger--log caption {
  display: table-caption;
  caption-side: top;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
}

.ledger--log {
  border-top: 1px solid var(--ink);
}

.history__result {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.9375rem !important;
}

.history__result strong {
  font-weight: 700;
}

.history__plot {
  padding: 1rem 1rem 0.5rem;
}

.history__plot svg {
  display: block;
  width: 100%;
  height: auto;
}

.plot__window {
  fill: var(--shoal);
}

.plot__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  fill: var(--ink-2);
}

.plot__grid {
  stroke: var(--rule);
  stroke-width: 1;
  fill: none;
}

.plot__axis {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.plot__base {
  stroke: var(--mag);
  stroke-width: 2;
  stroke-dasharray: 10 6;
  fill: none;
}

.plot__base-label,
.plot__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}

.plot__base-label {
  fill: var(--mag);
}

.plot__label {
  fill: var(--ink);
}

.plot__price {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.plot__mark {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}

.plot__mark--sale {
  fill: var(--mag);
  stroke: var(--mag);
}

.pricelist__caveat {
  margin-top: 0.9rem;
  font-style: italic;
  color: var(--ink-2) !important;
}

@media (min-width: 62rem) {
  .history {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .history__plot {
    margin-top: 0;
    align-self: center;
  }

  .pricelist {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .pricelist .exhibit {
    margin-top: 0;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: 1rem 0;
  border-block: 1px solid var(--ink);
  list-style: none;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 650;
  font-stretch: 116%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.facts li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--mag);
  transform: rotate(45deg);
}

/* How it works: the course with four waypoints --------------------------- */

.how {
  border-top: 1px solid var(--ink);
}

.course-steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  list-style: none;
  padding: 0 0 0 3.25rem;
}

.course-steps::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.6rem;
  bottom: 2rem;
  width: 2.4px;
  background: repeating-linear-gradient(180deg, var(--mag) 0 14px, transparent 14px 21px);
}

.course-steps__step {
  position: relative;
}

.course-steps__mark {
  position: absolute;
  left: -2.65rem;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2.4px solid var(--mag);
  background: var(--paper);
  transform: rotate(45deg);
}

.course-steps__step--anchorage .course-steps__mark {
  left: -3.2rem;
  top: -0.45rem;
  width: 2.6rem;
  height: 2.6rem;
  border-width: 2px;
  border-radius: 50%;
  transform: none;
  display: grid;
  place-items: center;
}

.course-steps__glyph {
  width: 1.3rem;
  height: 1.5rem;
  color: var(--mag);
}

.course-steps__title {
  font-size: 1.3125rem;
  font-weight: 700;
  font-stretch: 108%;
  margin-bottom: 0.5rem;
}

.course-steps p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-text);
  max-width: 30em;
}

.path {
  font-family: var(--sans);
  font-size: 0.92em;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 62rem) {
  .course-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    padding: 3.25rem 0 0;
  }

  .course-steps::before {
    left: 0.6rem;
    right: calc(25% - 2.4rem);
    top: 0.95rem;
    bottom: auto;
    width: auto;
    height: 2.4px;
    background: repeating-linear-gradient(90deg, var(--mag) 0 14px, transparent 14px 21px);
  }

  .course-steps__mark {
    left: 0.05rem;
    top: -2.85rem;
  }

  .course-steps__step--anchorage .course-steps__mark {
    left: -0.6rem;
    top: -3.45rem;
  }
}

/* Agencies on the land */

.agencies__inner {
  display: grid;
  gap: 2.5rem;
}

.legend--land,
.legend--land .legend__item {
  border-color: var(--ink);
}

@media (min-width: 62rem) {
  .agencies__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* FAQ ------------------------------------------------------------------ */

.faq__inner {
  display: grid;
  gap: 2rem;
}

.faq__head a {
  white-space: nowrap;
}

.faq__list {
  border-bottom: 1px solid var(--ink);
}

.faq__item {
  border-top: 1px solid var(--ink);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 1.05rem 3rem 1.05rem 0;
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 1.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2.4px solid var(--mag);
  background: var(--paper);
  transform: rotate(45deg);
  transition: background-color 200ms var(--ease-out), transform 300ms var(--ease-out);
}

.faq__item[open] summary::after {
  background: var(--mag);
  transform: rotate(135deg);
}

.faq__item summary:hover {
  color: var(--mag);
}

.faq__answer {
  padding: 0 0 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-text);
  max-width: 40em;
}

@media (min-width: 62rem) {
  .faq__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }

  .faq__head {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

/* Download: the anchorage ------------------------------------------------- */

.download {
  border-top: 1px solid var(--ink);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.download__chart {
  display: none;
}

.download__inner > * {
  max-width: 36rem;
}

.download__inner .section__lede {
  margin-bottom: 1.4rem;
}

.release-status {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.release-status::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--mag);
  transform: rotate(45deg);
}

.release-status strong {
  font-weight: 700;
}

.next-steps__title {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.next-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
}

.next-steps strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.97em;
}

@media (min-width: 62rem) {
  .download__chart {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 100%;
    overflow: hidden;
  }

  .download__inner {
    position: relative;
  }
}

/* Footer --------------------------------------------------------------- */

.colophon {
  border-top: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
}

.colophon__inner {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 2.25rem var(--gutter) calc(2.5rem + var(--neat));
  display: grid;
  gap: 1rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.colophon__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.04em;
}

.colophon__glyph {
  width: 1.05rem;
  height: 1.2rem;
  color: var(--mag);
}

.colophon__by {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}

.colophon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
}

.colophon__links li {
  padding: 0.2rem 0;
  min-height: 1.5rem;
}

.colophon__note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (min-width: 62rem) {
  .colophon__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .colophon__note {
    grid-column: 1 / -1;
  }
}

/* Single-purpose pages: a chart note on the chart ------------------------ */

.sheet {
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}

.sheet__chart {
  position: absolute;
  top: 0;
  right: 0;
  width: min(56vw, 760px);
  height: auto;
  overflow: hidden;
  z-index: 0;
}

.sheet__note {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

.sheet__note--wide {
  max-width: 52rem;
}

.sheet__glyph {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--mag);
  border-radius: 50%;
  background: var(--paper);
}

.sheet__glyph svg {
  width: 1.6rem;
  height: 1.85rem;
  color: var(--mag);
}

.sheet__title {
  font-stretch: 110%;
  font-weight: 760;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.sheet__note > p,
.sheet__body > p {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-text);
  margin-bottom: 1rem;
}

.sheet__note h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 2rem 0 0.9rem;
}

.sheet__note .signup {
  margin-top: 1.5rem;
}

.sheet__aside {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem !important;
  font-style: italic;
  color: var(--ink-2) !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--mag);
  border-radius: 0;
  background: var(--mag);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}

.button:hover {
  background: var(--mag-deep);
  border-color: var(--mag-deep);
  color: var(--white);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.button--quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.button--quiet:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.button--danger {
  background: var(--ink);
  border-color: var(--ink);
}

.button--danger:hover {
  background: var(--mag-deep);
  border-color: var(--mag-deep);
}

.button__meta {
  font-weight: 450;
  font-size: 0.875rem;
  opacity: 0.92;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

.button-row form {
  display: inline;
}

.sheet .next-steps {
  margin-top: 0.5rem;
}

/* Data form (Moji podaci) */

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 650;
  font-stretch: 116%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  min-height: 3.25rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--ink);
}

.field input:focus-visible {
  outline: 3px solid var(--mag);
  outline-offset: 0;
}

.offers {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.offers li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.offers li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--mag);
  transform: rotate(45deg);
}

/* My data */

.record {
  margin-top: 0.5rem;
}

.record__list {
  display: grid;
  border-bottom: 1px solid var(--ink);
}

.record__list > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
}

.record__list dt {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-2);
}

.record__list dd {
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .record__list > div {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.record__empty {
  font-style: italic;
  color: var(--ink-2);
}

.record .ledger {
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.record blockquote {
  margin: 0;
  font-style: italic;
}

.danger {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.danger h2 {
  margin-top: 0 !important;
  color: var(--mag);
}

.danger p {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

/* Long-form legal page */

.legal {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-text);
}

.legal h1 {
  font-stretch: 110%;
  font-weight: 760;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 108%;
  color: var(--ink);
  margin: 2.75rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.legal h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal ul,
.legal ol,
.legal dl,
.legal table {
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule);
}

.legal a {
  color: var(--ink);
}

.legal strong {
  color: var(--ink);
}

/* Motion: the course draws itself from today to the anchorage ---------- */

@keyframes course-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mark-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.course-reveal {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  animation: course-draw 2.2s var(--ease-course) 0.35s both;
}

.chart .waypoint,
.chart .waypoint-label {
  animation: mark-arrive 500ms var(--ease-out) 1.45s both;
}

.chart .anchorage,
.chart .anchorage-label {
  animation: mark-arrive 700ms var(--ease-out) 2.4s both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .course-reveal,
  .chart .waypoint,
  .chart .waypoint-label,
  .chart .anchorage,
  .chart .anchorage-label {
    animation: none;
  }

  .faq__item summary::after,
  .signup__submit,
  .button {
    transition: none;
  }
}

/* Forced colours: keep the marks visible */

@media (forced-colors: active) {
  .scale__bar,
  .course-steps__mark,
  .facts li::before,
  .bulletin__title::before {
    forced-color-adjust: none;
    border-color: CanvasText;
  }
}

/* Print ---------------------------------------------------------------- */

@media print {
  :root {
    --gutter: 0;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .page::before,
  .page::after,
  .skip,
  .masthead__nav,
  .chart,
  .download__chart,
  .sheet__chart,
  .signup,
  .button-row,
  .hero__band .scale {
    display: none !important;
  }

  .section,
  .sheet {
    padding-block: 1.5rem;
    break-inside: auto;
  }

  .section--shoal,
  .section--land {
    background: none;
    border-color: #000;
  }

  .exhibit,
  .legend__item,
  .faq__item,
  .course-steps__step {
    break-inside: avoid;
  }

  .faq__item summary::after {
    display: none;
  }

  .law__sources a::after,
  .legal a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

@media (max-width: 47.99rem) {
  .sheet__chart {
    display: none;
  }
}

/* Narrow-screen refinements ---------------------------------------------- */

@media (max-width: 35.99rem) {
  .masthead__nav {
    width: 100%;
  }

  .masthead__nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    border-top: 1px solid var(--ink);
    padding-top: 0.25rem;
  }

  .shop {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .shop__badge {
    font-size: 0.6875rem;
    top: 0.25rem;
    left: 0.25rem;
  }

  .ledger th,
  .ledger td {
    padding: 0.55rem 0.6rem;
  }

  .ledger thead th {
    letter-spacing: 0.08em;
  }

  .ledger__date {
    display: block;
  }

  .ledger tbody th {
    white-space: normal;
  }
}

@media (max-width: 35.99rem) {
  /* The log table above carries the same data; the plot is unreadable this small. */
  .history__plot {
    display: none;
  }
}

/* Finish-review fixes ------------------------------------------------------ */

/* Chart lettering is knocked out of the linework, as on a printed chart. */
.chart-label,
.chart-land,
.chart-soundings text,
.plot__note,
.plot__label,
.plot__base-label {
  paint-order: stroke fill;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.plot__note {
  stroke: var(--shoal);
}

.plot__label,
.plot__base-label {
  stroke: var(--white);
}

.chart-land {
  stroke: var(--land);
}

/* The day count sits under the headline until the wide chart carries it. */
.scale--lead {
  margin: -0.35rem 0 1.25rem;
}

.scale--chart {
  display: none;
}

@media (min-width: 72rem) {
  .scale--lead {
    display: none;
  }

  .scale--chart {
    display: flex;
  }
}

.path {
  white-space: normal;
}

.button--download {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.file__body--wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hero__copy .signup {
  max-width: none;
}

@media (max-width: 35.99rem) {
  .masthead__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.95rem;
    border-top: 0;
    padding-top: 0;
  }

  .masthead__nav a {
    font-size: 0.875rem;
  }

  .ledger--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .ledger--stack,
  .ledger--stack tbody,
  .ledger--stack tr,
  .ledger--stack td {
    display: block;
  }

  .ledger--stack tr {
    padding: 0.4rem 0;
    border-top: 1px solid var(--rule);
  }

  .ledger--stack tr:first-child {
    border-top: 0;
  }

  .ledger--stack td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.75rem;
    border-top: 0;
  }

  .ledger--stack td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
}

@media (min-width: 72rem) {
  .masthead__nav a {
    padding: 0.2rem 0;
    margin: 0;
    background: none;
    text-shadow: 0 0 2px var(--paper), 0 0 3px var(--paper), 0 0 6px var(--paper);
  }

  /* Hold the chart note to the right edge; below 1280 the floors on its text
     would otherwise push it over the anchorage label. */
  .hero__note {
    left: auto;
    right: calc(64 * var(--u));
    min-width: 18.5rem;
  }

  .hero__note .note__title {
    font-size: max(10.5px, calc(11.5 * var(--u)));
  }
}

.signup__fine {
  text-wrap: wrap;
}

@media (max-width: 35.99rem) {
  .masthead__nav ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 0.5rem;
  }

  .masthead__nav a {
    font-size: clamp(0.78rem, 3.65vw, 0.875rem);
    white-space: nowrap;
  }
}
