@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Paper, ink and the seal */
  --paper: #F1F2EF;
  --ink: #1F3354;
  --ink-soft: #56657A;
  --cinnabar: #C1272D;
  --seal-white: #FBFBF9;

  /* Type scale: 15 / 18 / 21 / 24 */
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --hero: clamp(2.6rem, 1rem + 6.6vw, 6.25rem);

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --label-col: 11.5rem;
  --col-gap: clamp(1.5rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--cinnabar);
  color: var(--seal-white);
}

/* Links carry a cinnabar underline; nothing else on the page is red except the seal. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cinnabar);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

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

.page {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip:focus {
  left: var(--gutter);
}

/* Masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-name {
  font-size: var(--step-1);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 500;
}

.nav a {
  padding-block: 0.45rem;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--cinnabar);
  text-decoration-thickness: 0.12em;
}

/* The seal: stamped once on load, then still. */

.seal {
  display: block;
  height: auto;
}

.seal-mark {
  width: 44px;
  transform: rotate(-3deg);
}

@media (prefers-reduced-motion: no-preference) {
  .seal-mark {
    animation: stamp 420ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 150ms both;
  }

  html {
    scroll-behavior: smooth;
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(1.4) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-3deg);
  }
}

/* Hero: the statement, set condensed and heavy. */

.hero {
  padding-block: clamp(3rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem);
}

.hero h1 {
  margin: 0;
  font-size: var(--hero);
  font-stretch: 72%;
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero-follow {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.lede {
  margin: 0;
  max-width: 50ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-contact {
  margin: 1.5rem 0 0;
  font-size: var(--step-2);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Sections: a margin column of names, set expanded; content beside it. */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-name {
  margin: 0 0 1.5rem;
  font-size: var(--step-1);
  font-stretch: 118%;
  font-weight: 700;
  line-height: 1.2;
}

.entry + .entry {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.entry h3 {
  margin: 0;
  font-size: var(--step-2);
  font-stretch: 86%;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.entry-meta {
  margin: 0.35rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.entry p:not(.entry-meta) {
  margin: 1rem 0 0;
  max-width: var(--measure);
}

.section-intro {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  max-width: 50ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose p {
  margin: 0;
  max-width: var(--measure);
}

.prose p + p {
  margin-top: 1rem;
}

/* What the agents do: a schedule, one line per job. */

.ops {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.1rem 1.5rem;
  margin: 0;
  max-width: calc(var(--measure) + 10rem);
}

.ops dt {
  font-stretch: 112%;
  font-weight: 700;
}

.ops dd {
  margin: 0;
}

/* Contact: the page is signed at the bottom. */

.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
}

.signature-text p {
  margin: 0;
}

.signature-text p + p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.contact-line {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem);
  font-stretch: 90%;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.seal-stamp {
  width: clamp(88px, 10vw, 120px);
  transform: rotate(-4deg);
}

.colophon {
  padding-block: clamp(4rem, 9vw, 7rem) 2.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.colophon p {
  margin: 0;
}

/* Wide screens: the document grid. */

@media (min-width: 56rem) {
  .hero-follow,
  .section {
    display: grid;
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    column-gap: var(--col-gap);
  }

  .hero-follow > * {
    grid-column: 2;
  }

  .section-name {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    margin-bottom: 0;
  }
}

@media (max-width: 30rem) {
  .ops {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .ops dd + dt {
    margin-top: 1rem;
  }
}
