/* atmon.ai: the whole stylesheet.
 *
 * Design language: the site design book (docs/design/site-design-book.md),
 * adopted for marketing by ADR 0005. Warm speckled paper, one burnt-terracotta
 * voice carrying the chrome and the type, a second ink for illustrations and
 * the footer, hand-drawn line art, editorial page furniture. The Brutalist
 * Studio Black set this file used to carry retired with that ADR.
 *
 * Two places where the book's swatch and the book's own contrast rule disagree,
 * and the contrast rule wins, exactly as ADR 0004 section 2 already resolved it
 * for the console:
 *
 *   the marquee band and the primary button are filled --rust-600, not
 *   --rust-500. Paper text on --rust-500 measures 3.63 to 1 and fails the 4.5
 *   bar; on --rust-600 it measures 4.99 and passes. Both still read terracotta.
 *
 * --rust-500 keeps every job where it is not behind text: the hero frame, the
 * hairlines, the circle marks, the focus ring, display type at 24px and up.
 *
 * Every pair this file ships is recomputed from these values by
 * marketing/site_test.go, so a value edited here without the math being redone
 * fails `just marketing-check` rather than a reader's eyes.
 */

/* ---------- fonts: four families, all self-hosted, none fetched ---------- */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- grounds (book section 3, from ADR 0004) --- */
  --paper-50: #f1ece1; /* page ground, under the grain tile */
  --paper-100: #e9e2d4; /* cards and raised panels */
  --paper-200: #ded5c3; /* pressed states, table stripes */

  /* --- the voice, in three steps, each with a job --- */
  --rust-500: #bf5f3b; /* 3.63:1 on paper: display type, rules, marks, the hero frame */
  --rust-600: #a34a2a; /* 4.99:1 on paper: body, links, the band and button fills */
  --rust-700: #7f3819; /* 7.18:1 on paper: hover, labels, fine print */

  /* --- the inks (new in the book) --- */
  --ink: #2b2118; /* 13.37:1 on paper: poster headlines, line work, payloads */
  --indigo: #2f3a56; /* the footer block and the illustration second ink, never body text on paper */

  /* --- washes: behind line art only, which on this site means inside the
   * illustration SVGs and nowhere else. No rule in this file may set one as a
   * background, and marketing/site_test.go fails the build if one does. --- */
  --wash-blush: #f0d5c8;
  --wash-mist: #ccd4e0;

  /* Derived from --rust-500: one hairline weight at one alpha, because a second
   * rule weight is a second design language. */
  --rule: rgb(191 95 59 / 22%);
  --rust-tint: rgb(191 95 59 / 8%);

  /* --- type (book section 4) --- */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-poster: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --track-label: 0.16em;
  --measure: 68ch;

  /* --- shape and motion, kept from the brutalist contract --- */
  --radius: 4px;
  --motion-slow: 200ms;
  --motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --marquee-duration: 46s;
}

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

html {
  background: var(--paper-50);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* The grain tile is the ground's tooth. It repeats at its authored 192px, so
   * the speckle stays the same size at every viewport. */
  background-color: var(--paper-50);
  background-image: url("grain.svg");
  background-repeat: repeat;
  background-size: 192px 192px;
  color: var(--rust-600);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  /* Longhand on purpose: a section is also a .shell, and the shorthand here
   * would win on specificity and flatten the vertical rhythm below. */
  padding-left: 28px;
  padding-right: 28px;
}

section {
  padding-top: 84px;
  padding-bottom: 84px;
}

@media (min-width: 900px) {
  /* The book asks for 120 to 200px of air between sections. It is the rule an
   * edit erodes first, so it is spelled out rather than derived. */
  section {
    padding-top: 124px;
    padding-bottom: 124px;
  }
}

section + section {
  border-top: 1px solid var(--rule);
}

h1,
h2,
h3 {
  margin: 0 0 20px;
  color: var(--rust-500);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(44px, 6.6vw, 84px);
}

h2 {
  font-size: clamp(32px, 4.4vw, 54px);
}

h3 {
  font-size: 23px;
  line-height: 1.25;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 18px;
  max-width: var(--measure);
}

a {
  color: var(--rust-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rust-700);
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
}

.muted {
  color: var(--rust-700);
  font-size: 15px;
}

/* The script accent above a headline. Decorative in every case: it is
 * aria-hidden, the English beside it carries the meaning, and it never sits
 * inside a control. The squiggle under it is the R2 device, one drawn unit
 * repeated along x so a two-word accent and a full line use the same file. */
.script {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 14px;
  background-image: url("illustrations/squiggle.svg");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 96px 16px;
  color: var(--rust-600);
  font-size: 21px;
  letter-spacing: 0.12em;
}

/* ---------- the lockup ---------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lockup img {
  height: 44px;
  width: 44px; /* the mark is drawn in a square box */
  display: block;
}

/* The wordmark is the product name and nothing hangs off it: one word, the
 * poster face, lowercase, `at` in ink and `mon` in the voice. The proportion
 * between the mark and the type is the social card's (marketing/tools/
 * render-og.mjs), so the two lockups read as one drawing at two sizes. */
.wordmark {
  font-family: var(--font-poster);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wordmark-accent {
  color: var(--rust-600);
}

/* ---------- masthead and the numbered menu ---------- */

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

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}

/* Two lines, decided rather than left to wrapping. Seven numbered items and the
 * two account actions do not fit on one line at any width this site is read at,
 * so the top line carries the wordmark and the way in, and the site map runs
 * full width underneath it behind a hairline. */
.nav {
  order: 3;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 26px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--rust-600);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-num {
  color: var(--rust-700);
  font-size: 11px;
}

.nav a:hover {
  color: var(--rust-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The active item takes the circle-with-dot mark rather than a color change,
 * because the palette has one voice and cannot signal state with hue. The mark
 * is a mask, so the element's own color paints through it. */
.nav a[aria-current="page"]::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--rust-500);
  mask: url("circle-mark.svg") center / contain no-repeat;
  -webkit-mask: url("circle-mark.svg") center / contain no-repeat;
}

/* ---------- the account actions ---------- */

/* The second group in the masthead, on every page: where a visitor signs in and
 * where a visitor starts. It sits on the wordmark's line rather than in the
 * numbered menu, because these two are not sections of the site. */
.account {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Sign in takes the menu's own label treatment without a number, so the two
 * groups read as one masthead rather than as a menu with a widget bolted on. */
.account-link {
  color: var(--rust-600);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.account-link:hover {
  color: var(--rust-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- vertical edge labels ---------- */

/* Fixed to the viewport edges on wide screens, gone below 1024px where there is
 * no gutter to hold them. They repeat what the page already says and carry
 * aria-hidden, so a reader loses nothing when they go. */
.edge-label {
  position: fixed;
  top: 50%;
  z-index: 2;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  pointer-events: none;
  writing-mode: vertical-rl;
}

.edge-left {
  left: 14px;
  transform: translateY(-50%) rotate(180deg);
}

.edge-right {
  right: 14px;
  transform: translateY(-50%);
}

@media (max-width: 1023px) {
  .edge-label {
    display: none;
  }
}

/* ---------- corner metadata ---------- */

/* Version, catalog count with the date it was counted, and the build date.
 * R1 puts a live local time here; this site runs no script at all (the deploy
 * header sets default-src 'none' with no script-src), so the third slot is the
 * build date instead of a clock. */
.corner-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- the framed hero ---------- */

.hero-frame {
  background: var(--rust-500);
  padding: 26px;
}

@media (min-width: 900px) {
  .hero-frame {
    padding: 40px;
  }
}

.hero-card {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--paper-100);
  border: 1px solid var(--ink);
  /* The second thin line the reference echoes 8px outside the card. An outline
   * draws outside the border box without taking layout space, which is what
   * keeps the echo from moving the card inside the frame. */
  outline: 1px solid var(--ink);
  outline-offset: 8px;
  padding: 40px 28px;
}

@media (min-width: 900px) {
  .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
    padding: 64px 56px;
  }
}

/* The poster voice: uppercase Archivo Black in ink, with exactly one line
 * flipped to terracotta. Never used for body copy anywhere. */
.poster {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--font-poster);
  /* Sized off the longest headline the site carries, which is the security
   * page's two sentences, not off the shortest. */
  font-size: clamp(32px, 4.9vw, 54px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-transform: uppercase;
}

.poster em {
  color: var(--rust-600);
  font-style: normal;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 899px) {
  .hero-art {
    max-width: 420px;
    margin: 32px auto 0;
  }
}

/* ---------- the marquee band ---------- */

/* Solid terracotta, paper text, one slow continuous scroll. The band is
 * aria-hidden and every claim inside it is stated in ordinary text elsewhere on
 * the same page, so nothing lives only in the animation. */
.marquee {
  overflow: hidden;
  background: var(--rust-600);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  padding-right: 44px;
  color: var(--paper-50);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  /* The track holds the same list twice, so the halfway point is the seam and
   * translating to it and starting over is invisible. */
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--rust-600);
  box-shadow: 4px 4px 0 0 var(--ink);
  color: var(--paper-50);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  transition: box-shadow var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
}

/* The shadow collapses under the press rather than the button lifting: on a
 * paper surface a lift reads as a sticker, and the register is print. */
.button:active {
  box-shadow: 0 0 0 0 var(--ink);
  transform: translate(4px, 4px);
}

.button:hover {
  color: var(--paper-50);
}

.button-quiet {
  background: var(--paper-50);
  color: var(--rust-600);
}

.button-quiet:hover {
  color: var(--rust-700);
}

/* The masthead's own size for the same control. A hero button in a header row
 * sets the header's height, so the padding and the offset come down together
 * and the shadow stays hard. */
.button-compact {
  padding: 8px 14px;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.button-compact:active {
  transform: translate(3px, 3px);
}

.button-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rust-500);
  border-radius: var(--radius);
  padding: 1px 8px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Shipped is a solid outline, designed is a dashed one. The split is the
 * marketing site's honesty rule and it survives the visual rework unchanged.
 * Shipped names the solid border rather than inheriting it, so the two states
 * read as a pair in the markup and in this file. */
.chip-shipped {
  border-style: solid;
}

.chip-designed {
  border-style: dashed;
}

/* ---------- cards (R3) ---------- */

.card {
  background: var(--paper-100);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* The spot illustration a card carries. Sized in the stylesheet rather than on
 * the element, and capped by height rather than width, because the pieces have
 * different aspect ratios and it is the block of air above the title that has
 * to match across a row. */
.card-art {
  display: block;
  width: auto;
  max-width: 100%;
  height: 148px;
  margin-bottom: 18px;
}

/* The apps a scenario card names, above its heading. Same label treatment the
 * table headers take, because both are a column of small print over content. */
.card-apps {
  margin: 0 0 8px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
}

/* The scenario band. Its six spots are drawn to one canvas (design book
 * section 6), so they scale by width here rather than by height: six identical
 * ratios line their headings up on their own, and a narrow column shrinks the
 * drawing instead of squashing it. */
.scenario .card-art {
  width: 100%;
  height: auto;
}

.grid-2 {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.stack > * + * {
  margin-top: 22px;
}

/* A line of prose that follows a grid of cards or a table needs the gap put
 * back, because the grid's own margin does not collapse into it. */
.after-grid {
  margin-top: 26px;
}

/* A section that runs one wide illustration beside its prose. */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.split img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
  margin-bottom: 18px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}

th {
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: var(--paper-200);
}

/* Text on the deep fill steps up a stop: --rust-600 on --paper-200 measures
 * 4.04 to 1 and fails, --rust-700 measures 5.81 and passes. */
tbody tr:nth-child(even) td {
  color: var(--rust-700);
}

/* ---------- the price tag ---------- */

/* The number on a plan card, with what it buys under it. Poster face, because
 * a price is the one number on this site a reader came to read. */
.price-tag {
  display: block;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-poster);
  font-size: 40px;
  line-height: 1;
}

.price-unit {
  display: block;
  margin-top: 8px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* ---------- the apps wall ---------- */

/* Every app the product can act in, as a ruled grid of plain names. It is
 * generated from the same list the product runs on, so it cannot promise one
 * that is not there. Ruled rather than carded: sixty cards would read as sixty
 * decisions, and this is one statement made of many names. */
.apps-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  list-style: none;
}

.apps-wall li {
  margin: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
}

/* ---------- lists ---------- */

ul,
ol {
  max-width: var(--measure);
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

/* The failure walk and the plan walk: a key column and a body column. */
.walk {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.walk li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.walk li:last-child {
  border-bottom: 0;
}

.walk-key {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .walk li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- quotes and callouts ---------- */

.prompt {
  margin: 0 0 30px;
  padding: 20px 24px;
  max-width: none;
  background: var(--paper-100);
  border-left: 3px solid var(--rust-500);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
}

.note {
  padding: 18px 22px;
  background: var(--paper-100);
  border-left: 3px solid var(--rust-500);
  border-radius: var(--radius);
  font-size: 15px;
}

/* ---------- the speech-bubble figure ---------- */

/* A quoted number stands beside a small drawn character, inside a drawn bubble.
 * The bubble is a border-image, which is what lets one hand-drawn box hold live
 * text: the corners keep their drawn character, the edges stretch, and the
 * `fill` keyword paints the paper middle. A CSS rounded box would be the thing
 * the book forbids. The number and its corpus are real text inside it, so the
 * corpus gate reads them like any other prose. */
.bubble-figure {
  display: grid;
  gap: 22px;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  margin: 0;
}

@media (max-width: 560px) {
  .bubble-figure {
    grid-template-columns: 1fr;
  }
}

.bubble-figure > img {
  display: block;
  width: 96px;
  height: auto;
}

.bubble {
  position: relative;
  border: 22px solid transparent;
  border-image: url("illustrations/bubble-frame.svg") 30 fill stretch;
  padding: 4px 10px;
}

/* The tail is a separate file positioned at the bubble's left edge, so
 * stretching the frame never stretches the tail. */
.bubble::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 24px;
  width: 34px;
  height: 34px;
  background: url("illustrations/bubble-tail.svg") center / contain no-repeat;
}

@media (max-width: 560px) {
  .bubble::before {
    display: none;
  }
}

.bubble p:last-child {
  margin-bottom: 0;
}

.figure {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.figure-label {
  display: block;
  margin-bottom: 14px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- the indigo footer ---------- */

.colophon {
  background: var(--indigo);
  color: var(--paper-50);
  padding: 56px 0 64px;
  font-size: 15px;
}

.colophon .shell {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.colophon a {
  color: var(--paper-50);
}

.colophon a:hover {
  color: var(--paper-50);
}

.colophon ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.colophon li {
  margin-bottom: 8px;
}

/* The ink-block chip the mark and the wordmark sit on inside the footer. It is
 * what lifts the wordmark's terracotta half off the indigo, which that tone
 * does not have the contrast to sit on directly. */
.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
}

.footer-lockup .wordmark {
  color: var(--paper-50);
  font-size: 25px;
}

.footer-lockup .wordmark-accent {
  color: var(--rust-500);
}

/* The footer lockup sits on an ink block, so it links mark-dark.svg: the same
 * drawing with the line work in paper and the lit socket unchanged. */
.footer-lockup img {
  height: 36px;
  width: 36px;
  display: block;
}

.colophon .muted {
  color: var(--paper-50);
}

/* ---------- code blocks, the copy button, and the developer panel ---------- */

/* The setup page is the one page that hands a reader something to paste, so it
 * is the one place with a code block and a copy control. The block is ordinary
 * selectable text: the button is a convenience over the top of it, and the page
 * works with the script blocked. */
.code-block {
  position: relative;
  margin: 0 0 22px;
  padding: 18px 20px;
  background: var(--paper-100);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.code-block pre {
  margin: 0;
  /* Room for the button, which floats at the top right of the block. */
  padding-right: 84px;
  overflow-x: auto;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.62;
}

/* What the snippet authenticates with, stated on the snippet rather than in a
 * paragraph a reader scrolls past. */
.code-label {
  display: block;
  margin-bottom: 12px;
  padding-right: 84px;
  color: var(--rust-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-caption {
  margin-bottom: 10px;
  font-size: 15px;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  background: var(--paper-50);
  border: 1px solid var(--rust-500);
  border-radius: var(--radius);
  color: var(--rust-700);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The developer door: a marked drawer holding the material the operator does
 * not need. Closed by default, so the page a non-technical reader follows is
 * the page they see. */
details.panel {
  margin: 0 0 22px;
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

details.panel > summary {
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

details.panel[open] > summary {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

details.panel > :last-child {
  margin-bottom: 0;
}

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: static;
  display: inline-block;
  padding: 10px 18px;
  background: var(--rust-600);
  color: var(--paper-50);
}

:focus-visible {
  outline: 2px solid var(--rust-500);
  outline-offset: 3px;
}

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

  /* Collapsed rather than slowed, which is the brand rule: the band renders its
   * static first frame and the button stops moving at all. */
  .marquee-track {
    animation: none;
  }

  .button,
  .button:active,
  .button-compact:active {
    transition: none;
    transform: none;
  }
}
