/* Amaranth website.
   The look: ink on paper, with colour only where it means something.
   Amaranth = what is kept. Highlighter = this, now. True blue = the source talking. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
/* Until the title face has loaded, titles are set in Arial Bold, scaled to the title face's
   width so that the lines break in the same places and the page does not jump. */
@font-face {
  font-family: "Amaranth Title Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 800;
  size-adjust: 96%;
  ascent-override: 97%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #FFFFFF; --ink: #1F1724; --ink-2: #5E5766; --ink-3: #7B7282; --rule: #E6E1E7; --wash: #F6F3F6;
  --am-1: #EE8FB0; --am-2: #E52B50; --am-3: #AB274F;
  --hl: #FFE433; --on-hl: #1F1724; --hl-edge: #A88500; --hl-soft: #FFEC70;
  --blue: #2B59E8; --green: #007A6E; --caution: #8A6100; --purple: #7A3BD1;
  --grey: #D4CED6; --shaky: #E79A00;
  --band-bg: #17131B; --band-ink: #F5F1F4; --band-ink-2: #B8AEBD; --band-card: #241D2B;
  --shadow: 0 0 0 1px var(--rule), 0 24px 60px rgba(31, 23, 36, .14);
  --display: "Bricolage Grotesque", "Amaranth Title Fallback", Arial, "Helvetica Neue", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17131B; --ink: #F5F1F4; --ink-2: #B8AEBD; --ink-3: #988EA0; --rule: #352D3B; --wash: #211B27;
    --am-1: #B04670; --am-2: #F0527A; --am-3: #FF9DB5;
    --hl-edge: transparent; --hl-soft: #6D6325;
    --blue: #7DA2FF; --green: #3ECFB0; --caution: #FFCB47; --purple: #B693FF;
    --grey: #4A4152; --shaky: #FFD23F;
    --band-bg: #211B27; --band-card: #2C2433;
    --shadow: 0 0 0 1px var(--rule), 0 24px 60px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, blockquote, ul, ol { margin: 0; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; }
mark { background: var(--hl); color: var(--on-hl); padding: 0 .12em; border-radius: .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--hl); color: var(--on-hl); padding: .6rem 1rem; font-weight: 700; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: 70rem; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }

/* the printer's colour bar */
.colourbar { display: flex; height: .75rem; }
.colourbar i { flex: 1; }
.c-1 { background: #F19CBB; } .c-2 { background: #E52B50; } .c-3 { background: #AB274F; } .c-4 { background: #FFE433; }
.c-5 { background: #2B59E8; } .c-6 { background: #007A6E; } .c-7 { background: #7A3BD1; } .c-8 { background: #1F1724; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; }
.brand img { width: 9.5rem; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(1rem, 3vw, 1.75rem); font-weight: 700; font-size: clamp(.95rem, 2.6vw, 1.0625rem); }
.top nav a { color: var(--ink); text-decoration: none; padding: .6rem 0; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: .12em; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(3.25rem, 9.5vw, 6.5rem); line-height: .95; letter-spacing: -.03em; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.01em; line-height: 1.1; }
.lede { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; max-width: 34rem; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.prose { display: grid; gap: .9rem; max-width: 38rem; }
.small { font-size: .9375rem; color: var(--ink-2); }

.btn { display: inline-block; font: 700 1.0625rem/1 var(--text); padding: .95rem 1.4rem; border-radius: .7rem; text-decoration: none; background: var(--hl); color: var(--on-hl); box-shadow: inset 0 0 0 1px var(--hl-edge); border: 0; cursor: pointer; }
.btn:hover { color: var(--on-hl); filter: brightness(.96); }
.btn-plain { background: var(--grey); color: var(--ink); box-shadow: none; }
.btn-plain:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }

section { padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
.stack { display: grid; gap: 2rem; }

/* hero */
.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-text { display: grid; gap: 1.4rem; justify-items: start; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; font-weight: 700; color: var(--ink-2); }
.status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--shaky); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; } }

/* a screenshot in a window */
.shot { border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.shot-bar { display: flex; gap: .4rem; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); background: var(--wash); }
.shot-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--grey); }
.shot img { width: 100%; }
figcaption { font-size: .9375rem; color: var(--ink-2); padding-top: .8rem; }

/* the fade demonstration */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.25rem; align-items: center; background: var(--wash); border-radius: .5rem; padding: clamp(1.1rem, 3vw, 1.75rem); }
@media (min-width: 46rem) { .demo { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); } }
.tile { border-radius: .9rem; padding: 1.15rem; min-height: 9.5rem; display: grid; align-content: space-between; gap: 1.1rem; background: var(--am-2); color: #fff; transition: background-color .24s ease-out, opacity .24s ease-out; }
.tile b { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.tile span { font-size: 1.2rem; font-weight: 700; } /* large enough that white on the Solid red is readable as the tile fades */
.demo-side { display: grid; gap: .9rem; min-width: 0; }
.demo-read strong { display: block; font-family: var(--display); font-size: 1.4rem; letter-spacing: -.01em; }
.track { position: relative; height: 2.1rem; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 1rem; height: 2px; background: var(--grey); }
.track i { position: absolute; }
.track .rev { top: .6rem; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; background: var(--am-2); box-shadow: 0 0 0 2px var(--wash); }
.track .now { top: .1rem; width: 2px; height: 1.9rem; margin-left: -1px; background: var(--ink); }
.demo-ctl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.demo-ctl label { flex: 1 1 13rem; min-width: 0; display: grid; gap: .3rem; font-size: .9rem; color: var(--ink-2); }
.demo-ctl input { width: 100%; margin: 0; accent-color: var(--blue); }
.demo-ctl .btn { padding: .7rem 1rem; font-size: .9375rem; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; list-style: none; font-size: .9375rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend i { width: .8rem; height: .8rem; border-radius: 50%; }
.k-m { background: var(--am-3); } .k-s { background: var(--am-2); } .k-l { background: var(--am-1); } .k-k { background: var(--shaky); }
.k-n { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.legend b { color: var(--ink); }

/* how it works */
.steps { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 3rem; align-items: center; }
.step-text { display: grid; gap: .8rem; max-width: 30rem; }
/* Rules are ink. Colour on this page is kept for what it means: the highlighter, the one
   main button, and how well something is known. */
.step-text h3 { padding-top: .9rem; border-top: 2px solid var(--ink); }
.step-text p { color: var(--ink-2); }
@media (min-width: 56rem) {
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  /* Every other step swaps sides. The columns swap with it, so the picture always has the wide one. */
  .step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .step:nth-child(even) .step-text { order: 2; }
}

/* the dark band */
.band { background: var(--band-bg); color: var(--band-ink); margin-top: clamp(3.5rem, 8vw, 6rem); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.band .lede, .band p { color: var(--band-ink-2); }
.band h2 { color: var(--band-ink); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: center; }
@media (min-width: 56rem) { .band-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.band .shot { box-shadow: 0 0 0 1px #3A3141, 0 24px 60px rgba(0, 0, 0, .5); }
.band figcaption { color: var(--band-ink-2); }

/* three figures */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
.card { background: var(--wash); border-radius: .9rem; padding: 1.4rem; display: grid; gap: .4rem; align-content: start; }
.card b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.01em; }
.card span { color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split.flip > :first-child { order: 2; } }

/* an old idea */
.lineage { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1.5rem; padding: 0; list-style: none; }
.lineage li { display: grid; gap: .5rem; align-content: start; border-top: 2px solid var(--ink); padding-top: .8rem; }
.lineage q { quotes: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; letter-spacing: -.01em; }
.lineage cite { font-style: normal; font-size: .875rem; color: var(--ink-2); }

/* where it is up to */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem 2rem; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.facts div { display: grid; gap: .15rem; align-content: start; }
.facts span { font-size: .9375rem; color: var(--ink-2); }
.facts b { font-size: 1.0625rem; }
.facts p { font-size: .9375rem; color: var(--ink-2); padding-top: .2rem; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.status-row img { width: 8.5rem; margin: -.75rem; }
.status-row .lede { flex: 1 1 18rem; }

footer { margin-top: clamp(4rem, 9vw, 6.5rem); border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-size: .9375rem; color: var(--ink-2); }
.foot { display: grid; gap: 1.25rem 3rem; grid-template-columns: minmax(0, 1fr); }
.foot img { width: 8rem; }
.foot ul { padding: 0; list-style: none; display: grid; gap: .4rem; max-width: 40rem; }
@media (min-width: 46rem) { .foot { grid-template-columns: auto minmax(0, 1fr); } }

/* the page for a missing address */
.lost { min-height: 62vh; display: grid; align-content: center; gap: 1.4rem; justify-items: start; padding-block: 3rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}
