/* The look of while.sh: its tokens, Archivo condensed for titles, a second
   title line in orange, yellow primary buttons, light cards, a navy callout. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --ink: #10213a;
  --ink-2: #44506a;
  --ink-3: #5c6578;
  --paper: #edede8;
  --paper-2: #e3e3dc;
  --sheet: #f6f6f2;
  --rule: #cfcfc5;
  --rule-2: #b9b9ad;
  --encre: #10213a;
  --encre-2: #1a2d4a;
  --encre-texte: #e9e8e1;
  --encre-doux: #a9b6ca;
  --encre-filet: #2c3f5c;
  --orange: #d4560a;
  --yellow: #f2b705;
  --yellow-hover: #ffc61a;
  --focus: #1f5fbf;
  --ok-bg: #e1edd5;
  --ok-text: #2f5714;
  --bad: #b03a0e;
  --bad-bg: #f6ded3;
  --bad-text: #8a3309;
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 84rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9e8e1;
    --ink-2: #b3bccb;
    --ink-3: #98a3b6;
    --paper: #121c2b;
    --paper-2: #0e1622;
    --sheet: #182435;
    --rule: #2a3a50;
    --rule-2: #3c4e66;
    --encre: #0a1322;
    --encre-2: #12203a;
    --encre-filet: #24364f;
    --orange: #f07433;
    --focus: #8fb3f5;
    --ok-bg: #1d2e14;
    --ok-text: #c4e6a2;
    --bad: #f07433;
    --bad-bg: #3a1d14;
    --bad-text: #ffb4a0;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-2);
}
a:hover { text-decoration-color: currentColor; }

code { font-family: var(--mono); font-size: 0.875em; }

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

.frame {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons, as on while.sh */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .16s ease;
}
.btn:active { transform: scale(.97); }
.btn--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #10213a;
  box-shadow: 0 1px #10213a1f, 0 12px 26px -14px #9c7400cc;
}
.btn--yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.top__frame { display: flex; align-items: center; gap: 2.5rem; min-height: 4.5rem; }
.top__home { line-height: 0; border-radius: 6px; }
.top__logo { height: 2.5rem; width: auto; }
.top__nav { display: flex; gap: 1.5rem; }
.top__nav a { color: var(--ink-2); font-size: .9375rem; font-weight: 520; text-decoration: none; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
.top__cta { margin-left: auto; min-height: 2.5rem; font-size: .9375rem; }
@media (max-width: 52rem) { .top__nav { display: none; } }

/* Titles: condensed and heavy, the second line in orange */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.display {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 820;
  font-variation-settings: "wdth" 78;
  max-width: 24ch;
  text-wrap: balance;
}
.display__line { display: block; }
.display__line + .display__line { color: var(--orange); }
.lede { margin: 1.5rem 0 0; max-width: 40rem; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.5; }

.block { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.block__head { margin-bottom: 2rem; }
.title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 800;
  font-variation-settings: "wdth" 82;
  max-width: 20ch;
}
.block__intro { margin: .9rem 0 0; max-width: 40rem; color: var(--ink-2); }

.card {
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: 16px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--rule);
}

/* Who we are: title on the left, the text on the right */
.about { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 60rem) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; } }
.about__lead { margin: 0 0 1.25rem; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
.about__lead strong { color: var(--ink); font-weight: 680; }
.about__lead a { text-decoration-color: var(--orange); }
.about .dots { max-width: 40rem; }

/* Report: the form card, and what to include beside it */
.report { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .report { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; } }
.report__form { box-shadow: inset 0 0 0 2px var(--ink); }

.aside__title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 760; }
.dots { margin: 0; padding: .75rem 0 0; list-style: none; display: grid; gap: .6rem; border-top: 1px solid var(--rule); }
.dots li { position: relative; padding-left: 1.25em; line-height: 1.4; color: var(--ink-2); }
.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--orange);
}

.form { display: grid; gap: 1.5rem; }
.row { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-size: .9375rem; font-weight: 650; }
fieldset.field > legend { margin-bottom: .6rem; }
.optional { color: var(--ink-3); font-weight: 450; }
.field__hint { margin: 0; color: var(--ink-3); font-size: .875rem; }
.field__error { margin: 0; color: var(--bad-text); font-size: .875rem; font-weight: 600; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .75rem;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .12s ease;
}
textarea { resize: vertical; line-height: 1.5; }
textarea.mono { font-family: var(--mono); font-size: .8125rem; }
input:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--bad); }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 .95rem;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule-2);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .12s ease, box-shadow .12s ease;
}
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked) { background: var(--ink); color: var(--paper); box-shadow: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice { box-shadow: inset 0 0 0 1px var(--bad); }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--orange); flex: none; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin: 0 0 1.5rem; padding: .85rem 1rem; border-radius: 8px; font-weight: 560; }
.notice[data-kind="ok"] { background: var(--ok-bg); color: var(--ok-text); }
.notice[data-kind="error"] { background: var(--bad-bg); color: var(--bad-text); }

/* Navy callout, like "Essayez en 3 minutes" on while.sh */
.callout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 18px;
  background: var(--encre);
  color: var(--encre-texte);
  border: 1px solid var(--encre-filet);
  box-shadow: 0 28px 56px -32px #10213a99;
}
@media (min-width: 60rem) { .callout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; } }
.callout__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.025em;
  font-weight: 820;
  font-variation-settings: "wdth" 80;
  text-wrap: balance;
}
.callout__text p { margin: .75rem 0 0; max-width: 46ch; color: var(--encre-doux); line-height: 1.5; }
.callout__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--encre-filet);
}
@media (min-width: 60rem) {
  .callout__box { padding: 0 0 0 2.5rem; border-top: 0; border-left: 1px solid var(--encre-filet); }
}
.callout__address {
  flex: 1 1 14rem;
  color: #fff;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 560;
  text-decoration-color: var(--encre-filet);
  overflow-wrap: anywhere;
}
.callout__address:hover { text-decoration-color: var(--yellow); }
.callout :focus-visible { outline-color: #8fb3f5; }

/* Steps: a real sequence, three cards */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; gap: .5rem; align-content: start; }
.step__n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--yellow);
  color: #10213a;
  box-shadow: 0 0 0 3px var(--orange);
  font-weight: 760;
  font-size: .9375rem;
  margin: .2rem 0 .5rem .2rem;
}
.step__name { margin: 0; font-size: 1.25rem; font-weight: 760; }
.step p { margin: 0; color: var(--ink-2); line-height: 1.45; }

/* Footer */
.foot { border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .875rem; }
.foot__frame { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.75rem; }
.foot p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }

/* Short pages (sent, 404) */
.short { padding-block: clamp(3rem, 8vw, 6.5rem); }
.short .lede a { color: var(--ink); }

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

/* Abuse page additions */
.prefixes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.prefixes code {
  padding: .35rem .7rem;
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 1rem;
  color: var(--ink);
}
.about .about__lead a, .about .dots a { color: var(--ink); text-decoration-color: var(--orange); }

/* Evidence table, as on while.sh's pricing page */
.table-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 1rem; }
.grid th, .grid td { text-align: left; vertical-align: top; padding: .8em .9em; border-bottom: 1px solid var(--rule); }
.grid thead th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.grid tbody th { font-weight: 650; white-space: nowrap; width: 16rem; }
.grid td { color: var(--ink-2); }
.grid a { color: var(--ink); text-decoration-color: var(--orange); }
@media (max-width: 40rem) {
  .grid thead { display: none; }
  .grid tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .grid th, .grid td { padding: .15rem 0; border: 0; white-space: normal; }
}

/* Groups that only some categories need */
.group {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 2px solid var(--ink);
  min-width: 0;
}
.group[hidden] { display: none; }
.group__title { padding: 0; font-size: 1.25rem; font-weight: 760; }
.group__intro { margin: -.75rem 0 0; color: var(--ink-3); font-size: .9375rem; }
.statements { display: grid; gap: .75rem; }

.numbered { margin: 0 0 1.5rem; padding-left: 1.4rem; display: grid; gap: .45rem; color: var(--ink-2); line-height: 1.45; }
.numbered li::marker { color: var(--orange); font-weight: 700; }

/* Peering page */
.facts { margin: 0; display: grid; max-width: 44rem; }
.facts > div { display: grid; gap: .2rem 1.5rem; padding-block: .85rem; border-bottom: 1px solid var(--rule); }
.facts > div:first-child { padding-top: 0; }
@media (min-width: 36rem) { .facts > div { grid-template-columns: 9rem 1fr; } }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--ink-2); }
.facts code, .grid code { font-size: .9375rem; color: var(--ink); }
.grid tbody th { white-space: normal; }
.grid--numbers td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
@media (max-width: 40rem) {
  .grid td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 450; font-family: var(--sans); }
}
