/* Frolic website. One stylesheet for every page.
   Colours come from Indian highway milestones: white stone, yellow cap,
   signboard green. Overpass descends from the Highway Gothic road-sign face. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --verge: #eef1ec;
  --road: #24272b;
  --muted: #5b6067;
  --rule: #d7dbd4;
  --sign: #0b6b47;
  --cap: #f2b600;
  --cap-ink: #24272b;
  --stone: #ffffff;
  --stone-ink: #24272b;
  --todo: rgba(242, 182, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16191b;
    --verge: #1d2124;
    --road: #e6e8e3;
    --muted: #a4aaa6;
    --rule: #343a3d;
    --sign: #5cc596;
    --todo: rgba(242, 182, 0, 0.26);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--road);
  font: 400 1.0625rem/1.6 "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--road);
  color: var(--paper);
  z-index: 1;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--road);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: 0.95rem;
  height: auto;
  margin-top: -0.2rem;
}

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

.site-nav a {
  color: var(--road);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--sign);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

/* Milestone drawing: the stone stays white in both themes, like a real one. */

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

.stone-line {
  fill: none;
  stroke: var(--stone-ink);
}

.stone-cap {
  fill: var(--cap);
}

.stone-text {
  fill: var(--stone-ink);
  font-family: "Overpass", system-ui, sans-serif;
  font-weight: 800;
  text-anchor: middle;
}

.stone-ground {
  stroke: var(--road);
}

/* Home */

.hero {
  padding: 3rem 0 3.5rem;
}

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

.hero h1 {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw + 0.75rem, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  font-size: 1.1875rem;
}

.status {
  margin: 0;
  color: var(--muted);
}

.milestone {
  width: 9.5rem;
}

@media (min-width: 48rem) {
  .hero {
    padding: 5.5rem 0 5rem;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .milestone {
    width: 15rem;
    justify-self: center;
  }
}

.section {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--rule);
}

.section h2 {
  max-width: 24ch;
  margin: 0 0 2.25rem;
  font-weight: 800;
  font-size: clamp(1.625rem, 1.5vw + 1.2rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section h3 {
  margin: 0 0 0.375rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
}

.section p {
  margin: 0;
}

/* The steps sit on a dashed lane marking, in the order a booking happens. */

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

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  background: linear-gradient(90deg, var(--road) 0 62%, transparent 0) 0 0 / 1.5rem 3px repeat-x;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.625rem;
  color: var(--sign);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
}

.steps p,
.facts p {
  color: var(--muted);
}

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

.section--verge {
  background: var(--verge);
  border-top: 0;
}

.facts {
  display: grid;
  gap: 1.75rem;
  max-width: 60rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-left: 1rem;
  border-left: 3px solid var(--cap);
}

@media (min-width: 48rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 4rem;
  }
}

.contact p + p {
  margin-top: 0.75rem;
}

.contact address {
  margin: 0.5rem 0 1rem;
  font-style: normal;
}

.contact-grid {
  display: grid;
  gap: 2.25rem;
  max-width: 60rem;
}

.contact .contact-policies {
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

.contact .company {
  font-weight: 700;
  font-size: 1.1875rem;
}

/* Policy pages */

.doc {
  padding: 2.5rem 0 4.5rem;
}

.doc .wrap {
  max-width: 41rem;
}

.draft {
  margin: 0 0 2.25rem;
  padding: 1rem 1.125rem;
  background: var(--cap);
  color: var(--cap-ink);
  border-radius: 2px;
}

/* Road-works stripes: this text is still under construction. */
.draft::before {
  content: "";
  display: block;
  height: 0.5rem;
  margin: -1rem -1.125rem 0.875rem;
  background: repeating-linear-gradient(-45deg, var(--cap-ink) 0 0.5rem, var(--cap) 0.5rem 1rem);
  border-radius: 2px 2px 0 0;
}

.doc .draft p {
  margin: 0;
}

.doc .draft p + p {
  margin-top: 0.375rem;
}

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

.doc h1 {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: clamp(2rem, 2.5vw + 1.25rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.125rem 1rem;
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc-meta dt {
  font-weight: 700;
}

.doc-meta dd {
  margin: 0;
}

.toc {
  margin: 0 0 2.75rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.doc .toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

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

.toc ol ol {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1rem;
  columns: 2 13rem;
  column-gap: 1.5rem;
}

.doc .toc li {
  break-inside: avoid;
  margin: 0;
  padding: 0.2rem 0;
}

.toc > ol > li > a {
  font-weight: 700;
}

.doc h2 {
  margin: 3.25rem 0 0.25rem;
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 2.25rem 0 0.5rem;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
}

/* A short policy has no parts, so its section headings are h2 at h3 size. */
.doc--short h2 {
  margin: 2.25rem 0 0.5rem;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.doc h2,
.doc h3 {
  scroll-margin-top: 1.5rem;
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

mark.todo {
  background: var(--todo);
  color: inherit;
  padding: 0.05em 0.2em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.not-found {
  padding: 5rem 0 6rem;
}

.not-found h1 {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: clamp(2rem, 3vw + 1.25rem, 3rem);
  line-height: 1.1;
}

.not-found p {
  max-width: 34rem;
  margin: 0 0 0.75rem;
}

/* Policy pages are often saved as PDF or printed as a record. */
@media print {
  .site-nav,
  .site-footer,
  .skip {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  a {
    color: inherit;
  }

  .draft {
    border: 2px solid #000;
  }
}
