/*
  Patrivos landing page — editorial cartography / civic road infrastructure.

  Paper, ink, road green and safety amber. No gradients, no shadows, radii 0–4 px:
  hierarchy comes from rules, space, colour and type. Colour carries meaning:
    open ring        raw record
    amber square     under review / in progress
    green triangle   verified (survey control point; also the logo)
*/

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

:root {
  --paper: #f3f0e8;
  --ink: #0b1318;
  --ink-2: #3f474d;
  --green: #0f5a47;
  --green-dark: #0a4234;
  --amber: #f2b134;
  --line: #c9c5ba;
  --green-tint: #e1ebe3;
  --amber-tint: #f7e7bf;
  --line-on-tint: #b9c9bd;
  --paper-on-green: #d3e5da;
  --rule-on-green: rgba(243, 240, 232, 0.32);
  --orange: #e5622c;
  --text-on-ink: #b8c1c6;
  --rule-on-ink: rgba(243, 240, 232, 0.22);
  --rule-on-orange: rgba(11, 19, 24, 0.3);

  --font-display: Bahnschrift, "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed",
    "Arial Narrow", system-ui, sans-serif;
  --font-text: "Sitka Text", Georgia, "Noto Serif", "Times New Roman", serif;
  --font-mono: "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono",
    "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --max: 78rem;
  --margin-col: 5.5rem;

  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-text);
  font-kerning: normal;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  text-wrap: balance;
}

h2 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 var(--font-display);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.skip-link:hover {
  color: var(--paper);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  padding-block: 0.25rem;
  color: var(--ink);
  font: 700 1.375rem/1 var(--font-display);
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.brand-mark {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 600 0.9375rem/1 var(--font-display);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font: 500 1rem/1.2 var(--font-display);
  text-decoration: none;
}

.nav-list a:hover {
  border-bottom-color: var(--green);
  color: var(--ink);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.5rem;
  color: var(--ink);
  font: 500 0.8125rem/1 var(--font-mono);
  text-decoration: none;
}

.lang-switch a + a {
  border-left: 1px solid var(--ink);
}

.lang-switch a:hover {
  color: var(--green);
}

.lang-switch a[aria-current="page"] {
  background: var(--green);
  color: var(--paper);
}

@media (max-width: 999.98px) {
  .js .header-bar {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  html:not(.js) .site-nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 0.5rem;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .js .site-nav.is-open .nav-list {
    display: flex;
  }

  .js .nav-list a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
}

@media (max-width: 419.98px) {
  .brand {
    font-size: 1.25rem;
  }

  .nav-toggle {
    padding-inline: 0.6rem;
  }

  .lang-switch a {
    min-width: 2.25rem;
  }
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4rem;
  }
}

.nw-m {
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 6.4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

/* On wide screens the headline sets in three lines; word groups never split
   and the size follows the column width (measured in Bahnschrift Bold). */
@media (min-width: 1000px) {
  .hero h1 {
    font-size: min(calc(0.6rem + 5.3vw), 5.5rem);
  }

  .nw {
    white-space: nowrap;
  }
}

.lead {
  max-width: 34rem;
  margin: 2rem 0 2.25rem;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.3rem;
  border: 2px solid var(--green);
  border-radius: 2px;
  background: var(--green);
  color: var(--paper);
  font: 600 1.0625rem/1 var(--font-display);
  text-decoration: none;
}

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

.text-link {
  color: var(--ink);
  font: 600 1.0625rem/1.2 var(--font-display);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--green);
}

.figure {
  margin: 0;
}

.hero .figure {
  width: 100%;
  max-width: 30rem;
}

@media (min-width: 1000px) {
  .hero .figure {
    max-width: none;
  }
}

.figure > svg {
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.fig-num {
  color: var(--ink);
  font: 500 0.8125rem/1 var(--font-mono);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 0.875rem/1.3 var(--font-display);
}

.legend li,
.state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sym {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

/* Status strip under the hero: a green road-sign band read like a map's title block */

.status-strip {
  display: grid;
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
  padding: 0 1.1rem;
  border-radius: 2px;
  background: var(--green);
  color: var(--paper);
}

.status-strip > div {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
}

.status-strip > div + div {
  border-top: 1px solid var(--rule-on-green);
}

.status-strip dt {
  min-width: 4.5rem;
  color: var(--paper-on-green);
  font: 400 0.8125rem/1.3 var(--font-mono);
}

.status-strip dd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font: 600 1.0625rem/1.3 var(--font-display);
}

@media (min-width: 720px) {
  .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 1.5rem;
  }

  .status-strip > div {
    display: block;
    padding: 1rem 1.5rem;
  }

  .status-strip > div + div {
    border-top: 0;
    border-left: 1px solid var(--rule-on-green);
  }

  .status-strip > div:first-child {
    padding-left: 0;
  }

  .status-strip dt {
    margin-bottom: 0.3rem;
  }
}

/* Sections: a map sheet with a numbered margin column */

.section {
  padding-block: clamp(4rem, 3rem + 4vw, 7.5rem);
  border-top: 3px double var(--ink);
}

.hero + .section {
  border-top: 0;
}

.sheet {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1000px) {
  .sheet {
    grid-template-columns: var(--margin-col) minmax(0, 1fr);
    gap: 0 2rem;
  }
}

/* Section numbers sit on small green plates, like road route numbers. */
.sheet-num {
  justify-self: start;
  align-self: start;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0.55rem;
  border-radius: 2px;
  background: var(--green);
  color: var(--paper);
  font: 600 0.875rem/1 var(--font-mono);
}

/* Colour zones: a pale green field (like parkland on a map) and a full green sign. */
.section-tint {
  background: var(--green-tint);
}

.section-tint .spec > div,
.section-tint .where > div {
  border-bottom-color: var(--line-on-tint);
}

.section-green {
  background: var(--green);
  color: var(--paper);
}

.section-green h2 {
  color: var(--paper);
}

.section-green .intro,
.section-green .fine {
  color: var(--paper-on-green);
}

.section-green .sheet-num {
  background: var(--paper);
  color: var(--green);
}

.section-green .contact-mail {
  color: var(--paper);
  text-decoration-color: var(--amber);
}

.section-green .contact-mail:hover {
  color: var(--amber);
}

.section-green :focus-visible,
.status-strip :focus-visible {
  outline-color: var(--amber);
}

/* Ink section: the problem, with work-zone orange as the warning accent. */
.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.section-ink h2 {
  color: var(--paper);
}

.section-ink .body p {
  color: var(--text-on-ink);
}

.section-ink .sheet-num {
  background: var(--orange);
  color: var(--ink);
}

.section-ink .observations {
  border-top-color: var(--paper);
}

.section-ink .observations > div {
  border-bottom-color: var(--rule-on-ink);
}

.section-ink .observations dt {
  color: var(--orange);
}

.section-ink .observations dd {
  color: var(--text-on-ink);
}

/* Orange section: the approach, set like a temporary road-works sign. */
.section-orange {
  background: var(--orange);
  color: var(--ink);
}

.section-orange .intro,
.section-orange .principles p {
  color: var(--ink);
}

.section-orange .sheet-num {
  background: var(--ink);
  color: var(--paper);
}

.section-orange .principles {
  border-top-color: var(--ink);
}

.section-orange .principles li {
  border-bottom-color: var(--rule-on-orange);
}

.section-orange .principle-num {
  color: var(--paper);
}

/* Sand section: a warm amber tint. */
.section-sand {
  background: var(--amber-tint);
}

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

@media (min-width: 900px) {
  .cols-46 {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 3rem 4.5rem;
  }

  .cols-64 {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    gap: 3rem 4.5rem;
  }
}

.intro {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
}

.body p {
  max-width: 36rem;
}

.sub-title {
  margin: 2.75rem 0 1rem;
  font-size: 1.5rem;
}

/* 01 Problem */

.observations {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.observations > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.observations dt {
  font: 600 1.25rem/1.3 var(--font-display);
}

.observations dd {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .observations > div {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
}

/* 02 Process: a vertical route with three stations */

.stations {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stations li {
  position: relative;
  padding: 0 0 2.75rem 3.5rem;
}

.stations li:last-child {
  padding-bottom: 0;
}

.stations li::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: 0.25rem;
  left: calc(1rem - 1px);
  width: 2px;
  background: var(--ink);
}

.stations li:last-child::before {
  display: none;
}

.station-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.station-mark svg {
  width: 1.125rem;
  height: 1.125rem;
}

.stations li:nth-child(2) .station-mark {
  background: var(--amber-tint);
}

.stations li:nth-child(3) .station-mark {
  background: var(--green-tint);
}

.ref {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-2);
  font: 400 0.8125rem/1 var(--font-mono);
}

.stations p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
}

.note {
  max-width: 30rem;
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--green);
}

.note-label {
  margin: 0 0 0.5rem;
  color: var(--green);
  font: 400 0.8125rem/1 var(--font-mono);
}

.note p {
  color: var(--ink-2);
  font-size: 1rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* 03 Drive tracking */

.sign {
  max-width: 34rem;
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem 1.5rem;
  border-radius: 4px;
  outline: 2px solid var(--paper);
  outline-offset: -7px;
  background: var(--green);
  color: var(--paper);
}

.sign-title {
  margin: 0 0 0.4rem;
  font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.75rem)/1.15 var(--font-display);
}

.sign p:last-child {
  margin: 0;
  font: 400 1.0625rem/1.45 var(--font-display);
}

.spec {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.spec > div {
  position: relative;
  padding: 1.1rem 0 1.1rem 3.25rem;
  border-bottom: 1px solid var(--line);
}

.spec-ref {
  position: absolute;
  top: 1.35rem;
  left: 0;
  color: var(--green);
  font: 500 0.875rem/1 var(--font-mono);
}

.spec dt {
  margin-bottom: 0.25rem;
  font: 600 1.1875rem/1.3 var(--font-display);
}

.spec dd {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.where {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.where > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.where dt {
  font: 600 1.125rem/1.3 var(--font-display);
}

.where dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

@media (min-width: 640px) {
  .where > div {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .sticky-figure {
    position: sticky;
    top: 6rem;
  }
}

/* 04 Approach: numbered vertical list */

.principles {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.principle-num {
  color: var(--green);
  font: 700 2.25rem/1 var(--font-display);
}

.principles p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
}

/* 05 Status log */

.log {
  width: 100%;
  margin-top: 2.5rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.log th {
  padding: 0.6rem 1.25rem 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-2);
  font: 400 0.8125rem/1.3 var(--font-mono);
  text-align: left;
}

.log td {
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.log .log-id {
  color: var(--ink-2);
  font: 400 0.875rem/1.5 var(--font-mono);
  white-space: nowrap;
}

.log .log-area {
  font: 600 1.125rem/1.35 var(--font-display);
}

.log .log-state {
  font: 600 1rem/1.4 var(--font-display);
  white-space: nowrap;
}

.log .log-note {
  color: var(--ink-2);
}

@media (max-width: 719.98px) {
  .log thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .log,
  .log tbody,
  .log tr,
  .log td {
    display: block;
  }

  .log tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .log td {
    padding: 0.1rem 0;
    border: 0;
  }
}

/* 06 About */

.goal {
  max-width: 22ch;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--green);
  font: 600 clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem)/1.25 var(--font-display);
}

/* 07 Contact */

.contact-mail {
  display: inline-block;
  margin: 0.25rem 0 1rem;
  color: var(--green);
  font: 700 clamp(1.75rem, 0.9rem + 4.2vw, 4rem)/1.05 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

.fine {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2.5rem;
  border-top: 3px double var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-footer :focus-visible {
  outline-color: var(--amber);
}

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 0.12em;
  margin: 0 0 1.5rem;
  color: var(--paper);
  font: 700 clamp(3.25rem, 0.5rem + 14vw, 14rem)/0.8 var(--font-display);
  letter-spacing: -0.035em;
}

/* On ink the mark switches to its one-colour form with an orange control point. */
.footer-wordmark svg path {
  stroke: var(--paper);
}

.footer-wordmark svg circle {
  fill: var(--orange);
}

.footer-wordmark svg {
  width: 0.6em;
  height: 0.6em;
  flex: none;
}

.footer-row {
  display: grid;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-on-ink);
  color: var(--text-on-ink);
  font: 400 1rem/1.4 var(--font-display);
}

.footer-row a {
  color: var(--paper);
}

.footer-row a:hover {
  color: var(--amber);
}

.footer-row p {
  margin: 0;
}

.footer-row:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 900px) {
  .footer-row {
    grid-template-columns: minmax(0, 1.4fr) auto auto auto;
    align-items: baseline;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--paper);
}

.footer-links a:hover {
  color: var(--amber);
}

/* Privacy and other text pages */

.page {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.prose {
  max-width: 40rem;
}

.prose h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}

.prose h2 {
  max-width: none;
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--green);
}

.prose .intro {
  color: var(--ink);
}

.updated {
  color: var(--ink-2);
  font: 400 0.875rem/1.4 var(--font-mono);
}

/* 404 */

.notfound {
  display: grid;
  gap: 3rem;
  padding-block: clamp(3rem, 2rem + 6vw, 8rem);
}

@media (min-width: 768px) {
  .notfound {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.notfound h1,
.notfound h2 {
  max-width: none;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.05;
}

.notfound p {
  color: var(--ink-2);
}

.notfound-code {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-2);
  font: 400 1rem/1 var(--font-mono);
}

/* The one moment of motion: the verified route in figure 1 is drawn once. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .route-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s 0.2s cubic-bezier(0.45, 0, 0.2, 1) forwards;
  }
}

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

@media (forced-colors: active) {
  .sign,
  .button,
  .lang-switch a[aria-current="page"] {
    border: 2px solid CanvasText;
  }
}
