/* AEOM's landing: sun yellow, ink, and eyes that look around and blink.
   Pages link this file and include head, header and footer.
   Classes: .btn (.btn--hot), .eye (.eye--small, --sky, --hot, --pink), .kicker, .walk (the hero's), .feature (--judge, --redesign, --keep) with .gaze, .tidy, .line, .soon, .more, .try; on the commands page, .page-top, .cmds, .cmd, .when, .does, .term (a terminal), .cli, .chips, .film (copy block). */

:root {
  --sun: #ffd84d;
  --ink: #16130f;
  --hot: #ff5a3c;
  --sky: #9ed8ff;
  --pink: #ffbfd8;
  --paper: #fffaf0;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sun); color: var(--ink); font: 500 18px/1.45 var(--display); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
a:hover { color: var(--hot); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-weight: 800; letter-spacing: -0.04em; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: var(--sun); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* The eye: a white ball with an ink rim, its pupil moved by kit.js toward the pointer. */
.eye { display: inline-block; position: relative; width: 0.78em; height: 0.78em; border-radius: 50%; background: #fff; border: 0.07em solid var(--ink); vertical-align: -0.06em; margin-right: 0.02em; }
.eye i { position: absolute; width: 44%; height: 44%; left: 28%; top: 28%; border-radius: 50%; background: var(--ink); transform: translate(var(--px, 18%), var(--py, 4%)); transition: transform 0.12s ease-out; }
.eye i::after { content: ""; position: absolute; width: 28%; height: 28%; left: 18%; top: 18%; border-radius: 50%; background: #fff; }
.eye--small { width: 1.1em; height: 1.1em; border-width: 2px; margin-right: 8px; vertical-align: -0.2em; }
.eye--giant { width: min(36vw, 420px); height: min(36vw, 420px); border-width: clamp(10px, 1.6vw, 22px); box-shadow: 0 30px 60px rgba(22, 19, 15, 0.18); }
.eye i { transition: transform 0.45s cubic-bezier(.3, 1.4, .5, 1); }
.eye.is-following i { transition-duration: 0.12s; }
/* A blink: the eye closes from top and bottom, fast, then opens. */
.eye.is-blinking { animation: blink 0.18s ease-in-out; }
@keyframes blink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.08); } }

/* Header and footer */
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-decoration: none; display: inline-flex; align-items: center; }
.masthead__nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-weight: 700; }
.masthead__nav a { text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .masthead { gap: 16px; } .masthead__try { display: none; } }
.masthead__nav a:hover { text-decoration: underline; }
.colophon { display: flex; align-items: center; gap: 12px; padding: 28px var(--gutter); background: var(--ink); color: var(--paper); font-size: 15px; }
.colophon p { margin: 0; }
.colophon a:hover { color: var(--sun); }

/* Buttons: one style, chunky and friendly. */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: 800 17px/1 var(--display); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn--hot { background: var(--hot); }
.btn__count:not([hidden])::before { content: "★ "; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Hero: the title and its eye, and a fan of looks. */
.hero { display: grid; gap: 32px; padding: 24px var(--gutter) 72px; align-items: center; overflow: hidden; }
.kicker { display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--sun); font-size: 15px; font-weight: 700; }
.hero h1 { font-size: clamp(68px, 13.5vw, 184px); line-height: 0.86; letter-spacing: -0.05em; }
.hero__line { display: block; white-space: nowrap; }
.hero__lede { font-size: clamp(20px, 2vw, 24px); max-width: 26ch; margin: 24px 0 0; }
/* The hero's walk: the eye goes through the product, stops at each knot, and the knot comes undone. */
.walk--hero { max-width: 600px; }
.walk__v { opacity: 0; }
.walk--hero .walk__knot circle { animation: knot-fill 8s linear infinite; }
.walk--hero .walk__knot--2 circle { animation-name: knot-fill-2; }
.walk--hero .walk__knot--1 .walk__x { animation: knot-x 8s linear infinite; }
.walk--hero .walk__knot--2 .walk__x { animation: knot-x-2 8s linear infinite; }
.walk--hero .walk__knot--1 .walk__v { animation: knot-v 8s linear infinite; }
.walk--hero .walk__knot--2 .walk__v { animation: knot-v-2 8s linear infinite; }
.walk__v { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes knot-fill { 0%, 38% { fill: var(--hot); } 42%, 96% { fill: #1f8a4c; } 100% { fill: var(--hot); } }
@keyframes knot-fill-2 { 0%, 70% { fill: var(--hot); } 74%, 96% { fill: #1f8a4c; } 100% { fill: var(--hot); } }
@keyframes knot-x { 0%, 38% { opacity: 1; } 42%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes knot-x-2 { 0%, 70% { opacity: 1; } 74%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes knot-v { 0%, 38% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes knot-v-2 { 0%, 70% { opacity: 0; } 74%, 96% { opacity: 1; } 100% { opacity: 0; } }
/* Each screen is plain and grey until the eye has been through it, then drawn and coloured. */
.screen__frame { fill: #fffaf0; stroke: var(--ink); stroke-width: 3; }
.screen__plain rect { fill: #d9d3c4; }
.screen__done { opacity: 0; }
.screen--1 .screen__done { animation: drawn-1 8s ease-in-out infinite; } .screen--1 .screen__plain { animation: plain-1 8s ease-in-out infinite; }
.screen--2 .screen__done { animation: drawn-2 8s ease-in-out infinite; } .screen--2 .screen__plain { animation: plain-2 8s ease-in-out infinite; }
.screen--3 .screen__done { animation: drawn-3 8s ease-in-out infinite; } .screen--3 .screen__plain { animation: plain-3 8s ease-in-out infinite; }
@keyframes drawn-1 { 0%, 12% { opacity: 0; } 18%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes plain-1 { 0%, 12% { opacity: 1; } 18%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes drawn-2 { 0%, 40% { opacity: 0; } 46%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes plain-2 { 0%, 40% { opacity: 1; } 46%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes drawn-3 { 0%, 72% { opacity: 0; } 78%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes plain-3 { 0%, 72% { opacity: 1; } 78%, 95% { opacity: 0; } 100% { opacity: 1; } }
/* Without motion, the walk is shown done: every screen drawn, every knot undone. */
@media (prefers-reduced-motion: reduce) {
  .walk--hero .walk__knot circle, .walk--hero .walk__x, .walk--hero .walk__v, .screen__plain, .screen__done { animation: none; }
  .screen__plain, .walk--hero .walk__x { opacity: 0; }
  .screen__done, .walk--hero .walk__v { opacity: 1; }
  .walk--hero .walk__knot circle { fill: #1f8a4c; }
}

@media (min-width: 980px) {
  .hero { grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - 80px); padding-top: 8px; }
}

/* The three things AEOM does, each a block with its drawing. */
.feature { display: grid; gap: 40px; align-items: center; padding: 104px var(--gutter); overflow-x: clip; }
.feature h2 { font-size: clamp(44px, 6.2vw, 96px); line-height: 0.92; }
.feature__text p:not(.feature__num, .more, .cmd, .when) { font-size: clamp(20px, 1.9vw, 24px); max-width: 30ch; margin: 20px 0 0; }
.feature__num { margin: 0 0 12px; font: 800 18px/1 var(--display); display: flex; align-items: center; gap: 10px; }
.soon { padding: 5px 10px; border-radius: 999px; background: var(--hot); color: var(--ink); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.feature--judge { background: var(--sun); }
.feature--redesign { background: var(--ink); color: var(--paper); }
.feature--redesign h2, .feature--redesign .feature__num { color: var(--sun); }
/* The command that does it, leading to the commands page. */
.more { margin: 28px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); text-decoration: none; }
.more code { font: 600 17px/1 var(--mono); background: var(--ink); color: var(--sun); padding: 8px 12px; border-radius: 10px; }
.feature--redesign .more code { background: var(--sun); color: var(--ink); }
.more a:hover { color: inherit; } .more a:hover code { background: var(--hot); color: var(--ink); }
.feature--keep { background: var(--sky); }
@media (min-width: 980px) {
  .feature { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .feature--redesign .feature__text { order: 2; }
}

/* 01: a walk through empty frames, an eye on it, knots where it catches. */
.walk { max-width: 600px; width: 100%; justify-self: center; }
.walk__map { display: block; width: 100%; height: auto; overflow: visible; }
.gaze .walk__map > rect { fill: rgba(255, 255, 255, 0.55); stroke: var(--ink); stroke-width: 3; }
.walk__path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.walk__knot circle { fill: var(--hot); stroke: var(--ink); stroke-width: 3; }
.walk__knot path { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.walk__ball { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.walk__pupil { fill: var(--ink); }

/* 01: the eye's gaze on a phone and a desktop, knots where it catches. */
.gaze { max-width: 600px; width: 100%; justify-self: center; }
.gaze__bar { fill: var(--ink) !important; stroke: none !important; opacity: 0.85; }
.walk__knot--ok circle { fill: #1f8a4c; }
.walk__knot--ok path { stroke: #fff; fill: none; stroke-linejoin: round; }

/* 02: shapes that do not go together, then put in order when seen. */
.tidy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 420px; width: 100%; justify-self: center; }
.tidy span { aspect-ratio: 1; background: var(--c); border: 3px solid var(--paper); border-radius: var(--br); transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 0.9s cubic-bezier(.3, 1.3, .5, 1), border-radius 0.9s ease, background-color 0.9s ease, border-color 0.9s ease; transition-delay: calc(var(--i) * 70ms); }
.tidy.is-tidy span { transform: none; border-radius: 22px; border-color: var(--ink); }
.tidy.is-tidy span:nth-child(3n + 1) { background: var(--sun); } .tidy.is-tidy span:nth-child(3n + 2) { background: var(--paper); } .tidy.is-tidy span:nth-child(3n) { background: var(--hot); }

/* 03: alike on one line, and the odd one kept out. */
.line { position: relative; max-width: 560px; width: 100%; justify-self: center; padding-top: 40px; }
.line__row { display: flex; gap: 14px; align-items: flex-end; }
.line__row span { flex: 1; aspect-ratio: 3 / 4; border-radius: 18px; background: var(--paper); border: 3px solid var(--ink); }
.line__odd { position: relative; background: var(--hot) !important; border-radius: 50% !important; aspect-ratio: 1 !important; transform: translate(10px, -70px) rotate(18deg); }
.line__odd b { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--sun); font-size: 15px; }
.line__rule { display: block; height: 6px; margin-top: 0; background: var(--ink); border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) { .line__odd { animation: bounce 2.4s cubic-bezier(.3, 1.4, .5, 1) infinite; } }
@keyframes bounce { 0%, 100% { transform: translate(10px, -70px) rotate(18deg); } 50% { transform: translate(10px, -46px) rotate(4deg); } }

/* Try it */
.try { background: var(--paper); padding: 96px var(--gutter) 104px; }
.try h2 { font-size: clamp(44px, 7vw, 104px); line-height: 0.92; margin-bottom: 32px; }
.film { background: var(--ink); color: var(--paper); border-radius: var(--radius); max-width: 860px; overflow: hidden; }
.film__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 0 20px; font-weight: 700; font-size: 14px; color: var(--sun); }
.film pre { margin: 0; padding: 16px 20px 22px; overflow-x: auto; font: 500 15px/1.7 var(--mono); }
.ln { display: block; white-space: pre; }
.ln::before { content: "$ "; color: var(--hot); }
.copy { padding: 8px 14px; border: 2px solid var(--sun); border-radius: 10px; background: var(--sun); color: var(--ink); font: 800 14px/1 var(--display); cursor: pointer; }
.copy:hover { background: transparent; color: var(--sun); }
.try p { font-size: 20px; margin: 24px 0 0; }
.try code, .hero code { font: 500 0.9em var(--mono); background: var(--ink); color: var(--sun); padding: 2px 7px; border-radius: 6px; }

/* The commands page: the three at a glance, then each with what it prints. */
.page-top { padding: 40px var(--gutter) 104px; }
.page-top h1 { font-size: clamp(56px, 10vw, 150px); line-height: 0.88; letter-spacing: -0.05em; }
.page-top__lede { font-size: clamp(20px, 2.2vw, 28px); max-width: 32ch; margin: 24px 0 0; }
.cmds { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 16px; }
.cmds__card { display: grid; gap: 14px; height: 100%; padding: 22px 24px 26px; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cmds__card:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.cmds__card--judge { background: var(--paper); }
.cmds__card--redo { background: var(--ink); color: var(--paper); }
.cmds__card--redo:hover { color: var(--paper); }
.cmds__card--check { background: var(--sky); }
.cmds__n { font: 800 18px/1 var(--display); }
.cmds__card code { font: 600 clamp(20px, 2.2vw, 28px)/1.2 var(--mono); }
.cmds__card--redo code { color: var(--sun); }
.cmds__verb { display: flex; align-items: center; gap: 10px; font: 800 clamp(32px, 3.6vw, 48px)/1 var(--display); letter-spacing: -0.03em; }
@media (min-width: 760px) { .cmds { grid-template-columns: repeat(3, 1fr); } }

.commands .feature--judge { background: var(--paper); }
.commands .feature { align-items: start; }
@media (min-width: 980px) { .commands .feature { grid-template-columns: 0.85fr 1.25fr; gap: 56px; } }
.cmd { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cmd code { font: 600 clamp(18px, 1.8vw, 22px)/1 var(--mono); background: var(--ink); color: var(--sun); padding: 8px 12px; border-radius: 10px; }
.feature--redesign .cmd code { background: var(--sun); color: var(--ink); }
.feature__text .when { font-size: clamp(20px, 1.9vw, 24px); margin: 20px 0 0; max-width: 34ch; }
.when b { display: inline-block; margin-right: 8px; padding: 3px 9px; border: 2px solid currentColor; border-radius: 999px; font-size: 0.62em; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.2em; }
.does { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; font-size: 19px; }
.does li { position: relative; padding-left: 30px; }
.does li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.feature--redesign .does li::before { background: var(--sun); }
.does code { font: 500 0.88em var(--mono); }

/* A terminal: what a command prints, on an example project. */
.term { min-width: 0; width: 100%; background: var(--ink); color: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.feature--redesign .term { border-color: var(--paper); box-shadow: 8px 8px 0 var(--hot); }
.term__head { display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 16px; border-bottom: 1px solid rgba(255, 250, 240, 0.16); font: 700 13px/1 var(--display); color: var(--sun); }
.term__head span { width: 11px; height: 11px; border-radius: 50%; background: var(--hot); }
.term__head span:nth-child(2) { background: var(--sun); } .term__head span:nth-child(3) { background: var(--sky); margin-right: 8px; }
.term pre { margin: 0; padding: 16px 18px 20px; font: 500 12.5px/1.6 var(--mono); }
@media (max-width: 600px) { .term pre { font-size: 11.5px; padding: 14px 14px 18px; } }
/* Each line wraps as a terminal wraps it, its rest indented under it. */
.term .l { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 2ch; text-indent: -2ch; }
.term__in { color: var(--sun); font-weight: 700; }
.term__in::before { content: "❯ "; color: var(--hot); }
.term__x { color: var(--hot); }
.term__v { color: #7fd49a; }

/* The CLI underneath, grouped by what each command is for. */
.cli { background: var(--sun); padding: 104px var(--gutter); }
.cli h2 { font-size: clamp(44px, 6.2vw, 96px); line-height: 0.92; }
.cli__lede { font-size: clamp(20px, 1.9vw, 24px); max-width: 40ch; margin: 20px 0 0; }
.cli code, .try code { font: 500 0.9em var(--mono); }
.cli__lede code { background: var(--ink); color: var(--sun); padding: 2px 7px; border-radius: 6px; }
.chips { display: grid; gap: 20px; margin: 48px 0 0; max-width: 960px; }
.chips div { display: grid; gap: 10px; }
.chips dt { font: 800 15px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.chips dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips code { padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 15px; cursor: help; }
@media (min-width: 760px) { .chips div { grid-template-columns: 160px 1fr; align-items: baseline; } }
