@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  /* color: Japandi */
  --oat: #ebe5d9;
  --stone: #ddd5c5;
  --ink: #2a2926;
  --ink-soft: #5c574f;
  --sage: #9aa68a;
  --clay: #a4543a;

  /* type */
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-edge: 0.75rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.375rem;
  --text-title: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  --text-headline: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  --text-display: clamp(3rem, 1rem + 9.5vw, 6rem);
  --leading-tight: 1;
  --leading-snug: 1.3;
  --leading-body: 1.55;
  --track-edge: 0.14em;

  /* space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 7rem;

  --max: 76rem;
  --radius: 0;
  --rule: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink-soft) var(--oat);
}

body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "kern" 1;
}

::selection { background: var(--sage); color: var(--ink); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: var(--space-1); }

a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--space-4); }

.edge {
  font-size: var(--text-edge);
  font-weight: 600;
  letter-spacing: var(--track-edge);
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* masthead */
.masthead { background: var(--ink); color: var(--oat); }
.masthead .wrap { padding-block: var(--space-4) var(--space-3); }
.masthead h1 {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.back { display: inline-block; color: var(--oat); padding-bottom: var(--space-2); font-size: var(--text-sm); }
.masthead .edge { color: var(--stone); }
.masthead .lead { max-width: 56ch; font-size: var(--text-lg); line-height: var(--leading-snug); margin: var(--space-3) auto 0; text-align: center; color: var(--oat); }

/* cover */
.cover {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-5) var(--space-6);
  grid-template-areas: "shot" "apps" "agents";
}
.shot { grid-area: shot; border: var(--space-2) solid var(--ink); background: var(--ink); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.lines--apps { grid-area: apps; }
.lines--agents { grid-area: agents; }

.badge {
  display: inline-block;
  background: var(--sage);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: var(--track-edge);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-3);
}

.list { display: grid; }
.line {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-3);
  border-top: var(--rule) solid var(--ink);
}
.list li:last-child .line { border-bottom: var(--rule) solid var(--ink); }
.logo { display: block; width: 4rem; height: 4rem; object-fit: cover; }
.logo--pixel { image-rendering: pixelated; }
.t {
  display: block;
  color: inherit;
  font-size: var(--text-title);
  font-weight: 800;
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}
.sub { display: flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--ink-soft); }
.sub a { text-underline-offset: 0.2em; }
.sub a:hover { color: var(--clay); }
.logo-link { display: block; }
.t:hover, .t:focus-visible, .agent:hover .t, .agent:focus-visible .t { text-decoration-color: var(--clay); }

.agent { display: grid; gap: var(--space-3); padding-block: var(--space-3); border-block: var(--rule) solid var(--ink); text-decoration: none; }
.agent .t { font-size: var(--text-headline); line-height: var(--leading-tight); letter-spacing: -0.03em; }
.flow { width: 100%; height: auto; display: block; }

/* agent page */
.steps { display: grid; gap: var(--space-3); padding-block: var(--space-5); }
.step { background: var(--stone); padding: var(--space-4); display: grid; gap: var(--space-3); align-content: start; }
.step .n { font-size: var(--text-edge); font-weight: 700; letter-spacing: var(--track-edge); color: var(--ink-soft); }
.step h2 { font-size: var(--text-headline); font-weight: 800; line-height: var(--leading-snug); letter-spacing: -0.03em; }
.step p { font-size: var(--text-sm); max-width: 40ch; }
.step .tag { font-size: var(--text-edge); font-weight: 700; letter-spacing: var(--track-edge); text-transform: uppercase; }
.step--out { box-shadow: inset 0 0 0 3px var(--clay); }

.note { display: grid; gap: var(--space-3); padding-block: var(--space-5) var(--space-6); border-top: var(--rule) solid var(--ink); }
.note h2 { font-size: var(--text-lg); font-weight: 700; }
.note ul { display: grid; gap: var(--space-2); max-width: 62ch; }
.note li { padding-left: var(--space-4); position: relative; }
.note li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: var(--space-3); height: var(--rule); background: var(--clay); }

@media (min-width: 52rem) {
  .wrap { padding-inline: var(--space-5); }
  .cover { grid-template-columns: 1fr minmax(16rem, 26rem) 1fr; grid-template-areas: "apps shot agents"; align-items: start; }
  .shot img { aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .note { grid-template-columns: 4fr 8fr; }
}
