/* ==========================================================================
   TRAFFIC WAR — maintenance page of trafficwar.com (D-122)
   --------------------------------------------------------------------------
   One poster on the night sky of the blue hour (D-107, D-109), with the
   values of `src/styles/tw/tokens.css` copied here: this page is served by
   its own Worker and loads nothing from the site's bundle.
   ========================================================================== */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/archivo-latin-wdth-normal.woff2") format("woff2-variations");
}

:root {
  --tw-surface-0: #0a0f24;
  --tw-sky: #1f3a86;
  --tw-ink: #f3efe6;
  --tw-ink-muted: #aeb8d0;
  --tw-ink-subtle: #8e9ab8;
  --tw-line: rgb(157 180 255 / 10%);
  --tw-line-strong: rgb(157 180 255 / 20%);
  --tw-sign: #69c3ff;
  --tw-attack: #ff2e1f;
  --tw-font: "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --tw-gutter: clamp(1rem, 3.2vw, 2.75rem);
  --tw-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tw-surface-0);
  color: var(--tw-ink);
  font-family: var(--tw-font);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.tw-maintenance {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(28px, 7vh, 72px) var(--tw-gutter);
  overflow: hidden;
  overflow: clip;
  text-align: center;
}

/* The light of the sky: a radial wash at the top, fading into the page. */
.tw-maintenance::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: clamp(340px, 62dvh, 560px);
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 18% -20%, color-mix(in srgb, var(--tw-sky) 70%, transparent), transparent 70%),
    radial-gradient(50% 70% at 88% 0%, color-mix(in srgb, var(--tw-sky) 35%, transparent), transparent 70%);
}

.tw-maintenance__body {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 40rem;
}

/* The mark (`src/components/tw/Mark.tsx`): the attacker's arrow in red, the
   one that holds its ground in the colour of the text, then the name. */
.tw-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.66em;
  color: var(--tw-ink);
  font-size: clamp(20px, 16px + 1.2vw, 30px);
  line-height: 1;
  white-space: nowrap;
}

.tw-mark__glyph {
  flex: none;
  width: 2.27em;
  height: 1.2em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.tw-mark__attack {
  stroke: var(--tw-attack);
  animation: tw-mark-from-left 700ms var(--tw-ease-out) both;
}

.tw-mark__defence {
  animation: tw-mark-from-right 700ms var(--tw-ease-out) both;
}

.tw-mark__name {
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: 0.01em;
}

.tw-maintenance__title {
  margin: 14px 0 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.75rem, 1rem + 3.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tw-maintenance__body p {
  margin: 0;
  color: var(--tw-ink-muted);
  font-size: clamp(1rem, 0.93rem + 0.34vw, 1.25rem);
}

@keyframes tw-mark-from-left {
  from {
    opacity: 0;
    transform: translateX(-9px);
  }
}

@keyframes tw-mark-from-right {
  from {
    opacity: 0;
    transform: translateX(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-mark__attack,
  .tw-mark__defence {
    animation: none;
  }
}

/* The footer of the maintenance page: one quiet link. */
.tw-maintenance__footer {
  position: absolute;
  bottom: clamp(16px, 4vh, 32px);
  left: 0;
  right: 0;
  font-size: 0.875rem;
}

.tw-maintenance__footer a,
.tw-document__body a {
  color: var(--tw-ink-muted);
  text-underline-offset: 3px;
}

.tw-maintenance__footer a:hover,
.tw-maintenance__footer a:focus-visible {
  color: var(--tw-ink);
}

/* A document page (the Acceptable Use Policy): the same sky, a reading column. */
.tw-document {
  position: relative;
  isolation: isolate;
  max-width: 44rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 56px) var(--tw-gutter) 64px;
}

.tw-document::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(340px, 62dvh, 560px);
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 18% -20%, color-mix(in srgb, var(--tw-sky) 70%, transparent), transparent 70%),
    radial-gradient(50% 70% at 88% 0%, color-mix(in srgb, var(--tw-sky) 35%, transparent), transparent 70%);
}

/* The frame the site gives every document (UI/UX audit of 2026-11-17, item
   3.2): the link that skips to the content, the bar with the mark and the
   menu, the document's label and the footer of legal links. The page runs no
   script, so on a phone the menu is a line of links that wraps. */
.tw-skip {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 14px 18px;
  border-radius: 13px;
  background: var(--tw-ink);
  color: var(--tw-surface-0);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}

.tw-skip:focus-visible {
  transform: none;
}

a:focus-visible {
  outline: 2px solid var(--tw-sign);
  outline-offset: 3px;
}

.tw-document__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 clamp(14px, 2.4vw, 36px);
  padding: 4px var(--tw-gutter);
  border-bottom: 1px solid var(--tw-line);
}

.tw-document__bar .tw-mark {
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}

.tw-document__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(12px, 1.9vw, 28px);
}

/* On a phone the site's menu button, opened with no script (2026-11-22):
   the line of links that wrapped under the mark was not the site's bar. */
.tw-document__menu {
  display: none;
}

.tw-document__menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 4px 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--tw-line-strong);
  color: var(--tw-ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.tw-document__menu > summary::-webkit-details-marker {
  display: none;
}

.tw-document__menu > summary:focus-visible {
  outline: 2px solid var(--tw-sign);
  outline-offset: 3px;
}

.tw-document__menu[open] > summary {
  box-shadow: inset 0 0 0 1px var(--tw-sign);
}

.tw-document__menu-icon,
.tw-document__menu-icon::before,
.tw-document__menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.tw-document__menu-icon {
  position: relative;
}

.tw-document__menu-icon::before,
.tw-document__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.tw-document__menu-icon::before {
  top: -6px;
}

.tw-document__menu-icon::after {
  top: 6px;
}

.tw-document__menu[open] .tw-document__menu-icon {
  background: transparent;
}

.tw-document__menu[open] .tw-document__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.tw-document__menu[open] .tw-document__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.tw-document__drawer {
  position: absolute;
  z-index: 5;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  padding: 6px var(--tw-gutter) 16px;
  border-top: 1px solid var(--tw-line);
  border-bottom: 1px solid var(--tw-line-strong);
  background: linear-gradient(180deg, #121a3a, #0d1430);
}

.tw-document__drawer a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--tw-line);
  color: var(--tw-ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.tw-document__drawer a:last-child {
  border-bottom: 0;
}

@media (max-width: 819.98px) {
  .tw-document__bar {
    position: relative;
    flex-wrap: nowrap;
  }

  .tw-document__nav {
    display: none;
  }

  .tw-document__menu {
    display: block;
  }
}

.tw-document__nav a,
.tw-document__legal a,
.tw-document__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--tw-ink-muted);
  font-size: 0.84375rem;
  text-decoration: none;
}

.tw-document__nav a:hover,
.tw-document__legal a:hover,
.tw-document__legal a[aria-current="page"],
.tw-document__home:hover {
  color: var(--tw-ink);
}

.tw-document__label {
  margin: 0;
  color: var(--tw-ink-subtle);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* The site's footer (2026-11-22): the way home on one side, the documents
   on the other, the page being read in the text's ink. */
.tw-document__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  max-width: calc(62rem + 2 * var(--tw-gutter));
  margin: 0 auto;
  padding: 16px var(--tw-gutter) 32px;
  border-top: 1px solid var(--tw-line);
}

.tw-document__home {
  font-weight: 600;
}

.tw-document__legal a[aria-current="page"] {
  font-weight: 600;
}

.tw-document__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The arrow of the site's glyphs: the face has none. */
.tw-glyph {
  flex: none;
  width: 1em;
  height: 1em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.tw-document__body h1 {
  margin: 12px 0 20px;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tw-document__body p,
.tw-document__body li {
  color: var(--tw-ink-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.tw-document__body p {
  margin: 0 0 16px;
}

.tw-document__body ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.tw-document__body li {
  margin-bottom: 8px;
}

.tw-document__body li::marker {
  color: var(--tw-ink);
  font-weight: 700;
}

.tw-document__updated {
  margin-top: 28px !important;
  font-size: 0.9375rem !important;
}
