/* Gate Appointments landing site.
   Palette and type from US road signage: sign green and white, lane-marking
   yellow, asphalt and concrete. Overpass is derived from Highway Gothic. */

@font-face {
  font-family: "Overpass";
  src: url("/assets/fonts/overpass-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sign: #00553a;
  --sign-deep: #003d2a;
  --lane: #ffc72c;
  --asphalt: #23292d;
  --concrete: #eef0ec;
  --rule: #c8cec7;
  --muted: #555e66;
  --paper: #ffffff;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --measure: 66ch;
}

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

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

body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a { color: var(--sign); text-underline-offset: 0.18em; }
a:hover { color: var(--sign-deep); }

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

.sign-panel :focus-visible { outline-color: var(--lane); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 1;
}
.skip:focus { top: 0.5rem; }

/* Header and footer */

.masthead,
.colophon {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--asphalt);
  text-decoration: none;
}
.wordmark-name { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.wordmark-by { color: var(--muted); font-size: var(--step--1); }

.lang { font-size: var(--step--1); font-weight: 600; }

.colophon {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(72rem - 2 * var(--gutter));
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.colophon p { margin: 0; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Home: the sign */

.sign {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sign-panel {
  background: var(--sign);
  color: var(--paper);
  border-radius: 1.25rem;
  padding: 0.5rem;
}

.sign-inner {
  border: 3px solid var(--paper);
  border-radius: 0.9rem;
  padding: clamp(1.75rem, 1rem + 4vw, 4rem) clamp(1.25rem, 0.75rem + 3vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.sign h1 {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.sign .lede {
  margin: 1.25rem 0 0;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34ch;
}

.sign .launch {
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-weight: 600;
}
.sign .launch a { color: var(--paper); }

.badge {
  display: inline-block;
  background: var(--lane);
  color: var(--asphalt);
  font-weight: 800;
  padding: 0.3rem 0.7rem 0.15rem;
  border-radius: 0.3rem;
}

/* Home: the gate pass */

.pass {
  margin: 0;
  background: var(--paper);
  color: var(--asphalt);
  border-radius: 0.5rem;
  padding: 1.5rem 1.5rem 1.25rem 2.25rem;
  position: relative;
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 25, 17, 0.55);
  transform: rotate(1.5deg);
  max-width: 24rem;
  justify-self: end;
  width: 100%;
}

/* Tear-off edge on the left, like a printed gate ticket. */
.pass::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0.75rem;
  bottom: 0.75rem;
  border-left: 2px dashed var(--rule);
}

.pass-title {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step-0);
  font-weight: 800;
}
.pass-title .status {
  background: var(--lane);
  font-size: var(--step--1);
  padding: 0.2rem 0.55rem 0.05rem;
  border-radius: 0.25rem;
}

.pass dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1rem;
  font-size: var(--step--1);
}
.pass dt { color: var(--muted); }
.pass dd { margin: 0; font-weight: 600; }
.pass dd span { display: block; }

.pass-code {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}
.pass-code strong {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--asphalt);
  letter-spacing: 0.08em;
}

/* Home: sections below the sign */

.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem var(--gutter) 0;
}

.section h2 {
  margin: 0 0 1.75rem;
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 1rem;
  /* Dashed lane line on the way to the gate; the last step gets a solid stop line. */
  background: repeating-linear-gradient(to right, var(--asphalt) 0 2rem, transparent 2rem 3rem) top left / 100% 4px no-repeat;
}
.steps li:last-child {
  background: linear-gradient(var(--asphalt), var(--asphalt)) top left / 100% 4px no-repeat;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.steps h3,
.audiences h3 {
  margin: 0 0 0.4rem;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.25;
}
.steps p,
.audiences p { margin: 0; color: var(--muted); }

.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.audiences > div { border-left: 3px solid var(--sign); padding-left: 1.25rem; }

.prose-short { max-width: var(--measure); }
.prose-short p { margin: 0 0 1rem; }

/* Legal pages */

.legal {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
}
.legal article { max-width: var(--measure); }
.legal h1 {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.legal .updated { color: var(--muted); margin: 0.75rem 0 2rem; }
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.25;
}
.legal p,
.legal li { margin: 0 0 0.85rem; }
.legal ul { padding-left: 1.25rem; }
.legal .note {
  background: var(--paper);
  border-left: 4px solid var(--sign);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}
.legal .note p:last-child { margin-bottom: 0; }

/* Narrow screens */

@media (max-width: 56rem) {
  .sign-inner { grid-template-columns: 1fr; }
  .pass { justify-self: start; transform: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audiences { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .pass { animation: pass-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both 150ms; }
  @keyframes pass-in {
    from { opacity: 0; transform: translateY(1.5rem) rotate(4deg); }
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 56rem) {
  @keyframes pass-in {
    from { opacity: 0; transform: translateY(1.5rem); }
  }
}
