/* mad.co — one stylesheet for the whole site.
   Colours and type follow brand/README.md: Ink, White, Paper, Grey; Inter throughout. */

@font-face {
  font-family: 'Inter Variable';
  src: url('assets/fonts/inter-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* The three main colours, then the four secondary ones (brand/README.md). */
  --ink: #0b0b0c; --white: #ffffff; --paper: #f4f3ee;
  --grey: #6f6d68; --light-grey: #9a9892; --dark-grey: #2c2c30; --line: #e7e5df;
  --sans: 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;                /* the one corner: photos, covers, figures, panels, code blocks */
  --radius-small: 3px;          /* half of it, only for chips set inside a line of text */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* A list starts at the top however short it is, so the Index heading and its
   filters stay put when switching between categories. */
main:has(> .page-head) { justify-content: flex-start; }
.narrow { max-width: 680px; }

/* ---- header ---- */
header.site { display: flex; justify-content: space-between; align-items: center; height: 78px;
  position: sticky; top: 0; z-index: 10; }
/* No hard edge: the page fades out as it scrolls under the header. The fade starts
   near the top of the window and eases out over 150px, ending 90px below the
   header; behind the logo and nav it is still about 95% white, so they stay readable. */
header.site::before { content: ''; position: absolute; inset: 0 0 -90px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--white) 0 18px, rgb(255 255 255 / .94) 40px,
    rgb(255 255 255 / .82) 62px, rgb(255 255 255 / .66) 84px, rgb(255 255 255 / .47) 106px,
    rgb(255 255 255 / .28) 128px, rgb(255 255 255 / .12) 150px, rgb(255 255 255 / 0) 168px); }
header.site .mark svg { display: block; height: 17px; width: auto; }
header.site nav { display: flex; gap: 26px; }
header.site nav a { font-size: 15px; font-weight: 500; text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---- home ---- */
.hero { padding: 48px 0; }
/* line-height 1.24 is the least that keeps a descender (the g of "creating") clear of the
   black box on the next line: the box covers the font's full height, not just the letters. */
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.24; font-weight: 600; letter-spacing: -0.035em; max-width: 900px; }
/* "a machine that teaches itself." on ink, square-cornered */
.hero h1 mark { background: var(--ink); color: var(--white); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 0.005em 0.13em 0.03em; margin-left: -0.03em; line-height: 1; }
/* the three lines are set by <br>; only wrap freely on small screens */
/* where the black text wraps, its lines overlap by a hair so they read as one block */
@media (max-width: 760px) { .hero h1 br { display: none; } .hero h1 mark { padding: 0.005em 0.1em 0.03em; } }

/* ---- research cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.cards.two { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.card { text-decoration: none; display: block; }
.card img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.card .meta { font-size: 14px; color: var(--grey); margin-top: 16px;
  display: flex; justify-content: space-between; gap: 16px; }  /* date left, category right */
.card h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.cards.two .card h3 { font-size: 26px; letter-spacing: -0.025em; }
.card p { font-size: 16px; line-height: 1.45; color: var(--grey); margin-top: 6px; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.nothing-yet { font-size: 18px; color: var(--grey); }

/* ---- page heading (the Index) ---- */
.page-head { padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.07; font-weight: 600; letter-spacing: -0.035em; }
/* The category filters under the Index heading */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.filters a { font-size: 15px; font-weight: 500; color: var(--grey); text-decoration: none; }
.filters a:hover, .filters a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---- article: a title screen, then the text with a contents list beside it ---- */
.title-screen { min-height: calc(100vh - 78px); min-height: calc(100svh - 78px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 0 78px; }                     /* the bottom padding matches the header, so the title sits mid-screen */
.title-screen .meta { font-size: 15px; color: var(--grey); }
.title-screen .meta a { text-decoration: none; margin-left: 14px; }
.title-screen .meta a:hover { color: var(--ink); }
.title-screen .meta time { color: var(--ink); }
.title-screen h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; font-weight: 600; letter-spacing: -0.038em;
  margin-top: 26px; max-width: 920px; text-wrap: balance; }
.title-screen .lead { font-size: 21px; line-height: 1.45; color: var(--grey); margin-top: 22px; max-width: 600px; text-wrap: balance; }
.title-screen .byline { font-size: 16px; margin-top: 28px; }
.title-screen .updated { font-size: 14px; color: var(--grey); margin-top: 10px; }

.reading { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; column-gap: 48px; padding-top: 24px; }
.reading > .prose { grid-column: 2; }
/* The contents list sits against the left edge of the window, not beside the text,
   which leaves both margins of the text free for notes. `left` undoes the page's
   own centring: the page is at most 1240px wide, and half of whatever the window
   has beyond that lies to its left. The list is as wide as the gap allows, up to
   220px, and always stops 40px short of the text. */
.reading > .contents { position: absolute; top: 24px; bottom: 0;
  left: calc((min(1240px, 100vw) - 100vw) / 2);
  width: min(220px, calc((100vw - 680px) / 2 - 68px)); }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px;
  z-index: 11; }  /* above the header's fade, which reaches down past where the list sits */
.toc a { font-size: 14px; line-height: 1.35; color: var(--grey); text-decoration: none; }
.toc a.sub { padding-left: 14px; }            /* a subsection, under its section */
.toc a:hover, .toc a[aria-current] { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose [id^="ref-"], .prose [id^="cite-"] { scroll-margin-top: 170px; }   /* lands below the sticky header and its fade */
html { scroll-behavior: smooth; }
/* Moving between pages crossfades instead of flashing, where the browser supports it
   (Chrome, Edge, Safari). The header and the Index heading with its filters are
   named, so they hold still while the rest of the page changes. */
@view-transition { navigation: auto; }
header.site { view-transition-name: site-header; }
.page-head { view-transition-name: index-head; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
@media (max-width: 1100px) {
  .reading { grid-template-columns: minmax(0, 680px); justify-content: center; }
  .reading > .prose { grid-column: 1; }
  .reading > .contents { display: none; }
}
.prose { max-width: 680px; }
/* Margin notes, {% marginnote %}: from 1200px the article's right-hand column is at
   least 184px wide, so a note floats out into it beside the paragraph that follows.
   Its margin box sits wholly outside the text column, so the text never wraps round
   it. Narrower than that, it stays in the text as a small aside. */
.margin-note { display: block; margin-top: 24px; max-width: 340px; padding-left: 16px;
  border-left: 2px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--grey); }
.margin-note img { display: block; width: 100%; height: auto; margin-bottom: 10px; border-radius: var(--radius); }
@media (min-width: 1200px) {
  .margin-note { float: right; clear: right; width: 180px; max-width: none;
    margin: 26px -228px 0 0; padding-left: 0; border-left: 0; }   /* 228 = 180 + the 48px gap */
}
/* A note asked for on the left goes there only from 1680px, where the left margin
   has room for it beside the contents list. Narrower, it joins the notes on the right. */
@media (min-width: 1680px) {
  .margin-note.left { float: left; clear: left; margin: 26px 0 0 -228px; }
}
.prose p { margin-top: 20px; font-size: 18px; line-height: 1.65; }
/* Text runs to both edges of the column, as in a printed paper, with words broken
   where that keeps the spacing even. On a phone the column is too narrow for it. */
@media (min-width: 761px) {
  .prose p, .prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto;
    hyphenate-limit-chars: 7 3 3; text-wrap: pretty; }
}
.prose h2 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.028em; margin-top: 72px; }
.prose h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin-top: 44px; }
/* The "#" beside a heading: hidden until the heading is pointed at or reached by
   keyboard, always faintly there on a touch screen. Clicking copies the link. */
.prose .anchor { margin-left: 0.25em; font-weight: 400; color: var(--grey); text-decoration: none;
  opacity: 0; transition: opacity 0.12s; }
.prose :is(h2, h3):hover .anchor, .prose .anchor:focus-visible, .prose .anchor[data-copied] { opacity: 1; }
.prose .anchor:hover { color: var(--ink); }
.prose .anchor[data-copied]::after { content: 'Link copied'; margin-left: 10px; font-size: 13px; letter-spacing: 0; vertical-align: middle; }
@media (hover: none) { .prose .anchor { opacity: 0.45; } }
.prose b, .prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { list-style: none; margin-top: 20px; }
.prose li { position: relative; padding-left: 26px; margin-top: 10px; font-size: 18px; line-height: 1.6; }
/* An ordinary round bullet, centred on the first line of its item. */
.prose ul > li::before { content: ''; position: absolute; left: 7px; top: calc(0.5lh - 2.5px); width: 5px; height: 5px;
  background: var(--ink); border-radius: 50%; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 16px; }
.prose th { text-align: left; font-weight: 500; color: var(--grey); font-size: 14px; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose { counter-reset: figure; }
.prose figure { margin-top: 36px; background: var(--paper); border-radius: var(--radius); padding: 36px 28px 28px; }
.prose figure svg { margin: 0 auto; }
.prose figcaption { font-size: 14px; color: var(--grey); margin-top: 22px; text-align: center; }
/* Drawings and charts are numbered in order, so the text can say "Figure 2". */
.prose figure:not(.photo):has(figcaption) { counter-increment: figure; }
.prose figure:not(.photo) figcaption::before { content: 'Figure ' counter(figure) '. '; font-weight: 500; }
.prose text { font-family: var(--sans); }
/* A drawing on its own ground, edge to edge: {% figure "name", "Caption.", "ink" %} */
.prose figure.ink, .prose figure.white { padding: 0; overflow: hidden; }
.prose figure.ink { background: var(--ink); }
.prose figure.white { background: var(--white); border-radius: 0; }
.prose figure.ink svg, .prose figure.white svg { display: block; width: 100%; height: auto; }
.prose figure.ink figcaption { color: var(--light-grey); margin: 0; padding: 0 28px 22px; } /* on Ink only */
.prose figure.white figcaption { margin-top: 6px; }
/* A photograph, {% photo %}: no panel behind it, the standard corner, and a film
   grain laid over the picture. The grain is drawn by the browser from noise, so
   every photo gets the same one whatever camera it came from. */
.prose figure.photo { background: none; padding: 0; }
.prose figure.photo figcaption { margin-top: 12px; }
.grain { position: relative; overflow: hidden; border-radius: var(--radius); }
.grain img { display: block; width: 100%; height: auto; }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.65; mix-blend-mode: soft-light;   /* opacity is how strong the grain is */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Markdown output that the hand-written pages never produced */
.prose ol { margin-top: 20px; padding-left: 26px; }
.prose ol li { padding-left: 4px; }
.prose li > p:first-child { margin-top: 0; }
.prose blockquote { margin-top: 24px; padding-left: 20px; border-left: 2px solid var(--line); color: var(--grey); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em;
  background: var(--paper); padding: 0.12em 0.34em; border-radius: var(--radius-small); }
.prose pre { margin-top: 24px; background: var(--paper); border-radius: var(--radius); padding: 20px 22px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 14px; line-height: 1.55; }
.prose hr { margin-top: 44px; border: 0; border-top: 1px solid var(--line); }
.prose sup { font-size: 0.7em; }
.prose .katex-display { margin: 26px 0; }
/* A citation in the text, [1] or (Chollet, 2019): plain until pointed at, then
   underlined. It links down to its source under References. */
.prose a.cite { text-decoration: none; }
.prose a.cite:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Arriving by a link, down to a source or back up to a citation, marks where you landed. */
.prose a.cite:target, .prose .references li:target { background: var(--paper); box-shadow: 0 0 0 4px var(--paper);
  border-radius: var(--radius-small); }
/* References: one source per line. Numbered, each has its [1] in a column of its
   own; author-year, the second line onwards is indented, as in a paper. */
.prose .references ol { list-style: none; padding-left: 0; margin-top: 22px; counter-reset: reference; }
.prose .references li { font-size: 15px; line-height: 1.5; color: var(--grey); margin-top: 12px; padding-left: 0;
  text-align: left; hyphens: manual; overflow-wrap: anywhere; }
.prose .references li p { font-size: inherit; line-height: inherit; margin-top: 0; text-align: left; hyphens: manual; }
.prose .references li:target { color: var(--ink); }
.prose .references.numbered li { counter-increment: reference; padding-left: 40px; }
.prose .references.numbered li::before { content: '[' counter(reference) ']'; position: absolute; left: 0; top: 0; color: var(--ink); }
.prose .references.author-year li { padding-left: 22px; text-indent: -22px; }
/* The way back up to the text: an arrow, or a letter for each place a source is cited. */
.prose .references .back, .prose .references .backs { color: var(--ink); margin-left: 3px; }
.prose .references .backs { white-space: nowrap; }
.prose .references .back { text-decoration: none; font-weight: 500; }
.prose .references .back:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Cite this article: a line to paste into prose, then BibTeX with a Copy button. */
.prose .cite-this > p { font-size: 16px; line-height: 1.55; text-align: left; hyphens: manual; overflow-wrap: anywhere; }
.prose .bibtex { position: relative; }
.prose .bibtex pre { margin-top: 16px; padding-right: 84px; }
.prose .bibtex .copy { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small);
  padding: 4px 10px; cursor: pointer; }
.prose .bibtex .copy:hover { border-color: var(--ink); }

/* ---- a plain page: About, Contact ---- */
.prose.page { padding-bottom: 24px; }
/* The field of dots on the Contact page. It takes all the height the window has
   left between the text and the footer, and dots.js fills it with as many rows as
   fit. On a short window it keeps a least height and the page scrolls. */
.dot-field { position: relative; flex: 1 1 auto; min-height: 320px; margin-top: 12px; }
.dot-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
main:has(> .dot-field) + footer.site { margin-top: 16px; }
/* The A from the logo, wandering the margin of the About page. wander.js moves it
   and shows it only where there is room; it can never be clicked or selected. */
main:has(> .wanderer) { position: relative; }
.wanderer { position: absolute; top: 0; left: 0; width: 20px; height: 21.4px; pointer-events: none;
  opacity: 0; transition: opacity 0.9s; will-change: transform; }
.wanderer.awake { opacity: 1; }
.wanderer svg { display: block; width: 100%; height: 100%; fill: var(--ink); }

/* ---- /brand/: the guidelines, as a sheet of labelled rows ---- */
.brand-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--ink); color: var(--white);
  text-decoration: none; font-size: 16px; font-weight: 550; line-height: 1.3; padding: 13px 20px 14px; border-radius: var(--radius); }
.button:hover { background: var(--dark-grey); }
.button:focus-visible, .swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The one loud thing on the page: the logo, large, on Ink. */
.brand-hero { background: var(--ink); border-radius: var(--radius); display: grid; place-items: center; padding: clamp(56px, 11vw, 132px) 24px; }
.brand-hero img { width: min(340px, 62%); height: auto; }

/* A row: its name on the left, staying in view while the row scrolls; its content on the right. */
.brand-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 56px; padding: 56px 0 64px;
  border-top: 1px solid var(--line); margin-top: 72px; }
.brand-hero + .brand-row { border-top: 0; margin-top: 8px; }
.brand-row > h2 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
  position: sticky; top: 104px; align-self: start; scroll-margin-top: 104px; }
.brand-row > div { max-width: 860px; }
.brand-row > div > :first-child { margin-top: 0; }
.brand-row p { font-size: 18px; line-height: 1.6; margin-top: 18px; max-width: 680px; }
.brand-row p.note { font-size: 15px; line-height: 1.5; color: var(--grey); margin-top: 6px; }
.brand-row .tiles + p.note, .brand-row .swatches + p.note, .brand-row table + p.note { margin-top: 18px; }
.brand-row h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; margin-top: 48px; }
.brand-row a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.brand-row ul { list-style: none; margin-top: 22px; max-width: 680px; }
.brand-row li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 17px; line-height: 1.55; }
.brand-row li::before { content: ''; position: absolute; left: 4px; top: calc(0.5lh - 2.5px); width: 5px; height: 5px;
  background: var(--ink); border-radius: 50%; }
.brand-row table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 16px; }
.brand-row th { text-align: left; font-weight: 500; color: var(--grey); font-size: 14px; padding: 0 20px 10px 0; border-bottom: 1px solid var(--ink); }
.brand-row td { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.brand-row td:first-child { white-space: nowrap; font-weight: 500; }

/* Logo and drawing tiles: the artwork on the ground it is meant for, then what it is. */
.tiles { display: grid; gap: 20px; margin-top: 18px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile .art { height: 196px; display: grid; place-items: center; border-radius: var(--radius); }
.tile.on-paper .art { background: var(--paper); }
.tile.on-ink .art { background: var(--ink); }
.tile.on-white .art { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.tile .art img { width: auto; height: 38px; }
.tile .art.tall img { height: 78px; }
.tile .art img.icon { height: 84px; }
.tile .art img.symbol { height: 58px; }
.tile figcaption { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; color: var(--grey); }
.tile figcaption span { margin-right: auto; }
.tile figcaption a { color: var(--ink); font-weight: 500; }
.tile figcaption.says { display: block; line-height: 1.45; }
.tile figcaption.says b { color: var(--ink); font-weight: 600; }

/* Colours: each is a button that copies its code. */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 18px; }
.swatches.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swatch { font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; row-gap: 3px; align-items: baseline; align-content: start;   /* a taller neighbour must not spread this one's lines apart */
  border-radius: var(--radius); }
.swatch .chip { grid-column: 1 / -1; height: 104px; border-radius: var(--radius); margin-bottom: 9px; }
.swatch .chip.edged { box-shadow: inset 0 0 0 1px var(--line); }
.swatch b { font-size: 16px; font-weight: 600; }
.swatch code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--grey); }
.swatch:hover code { color: var(--ink); }
.swatch > span:last-child { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--grey); }

/* Type: the three roles, set as they are used. */
.specimen { background: var(--paper); border-radius: var(--radius); padding: 40px 36px 36px; margin-top: 22px; }
.specimen .display { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; margin-top: 0; max-width: none; }
.specimen .body { margin-top: 20px; max-width: 560px; }
.specimen .caption { font-size: 14px; font-weight: 475; color: var(--grey); margin-top: 16px; }

@media (max-width: 900px) {
  .brand-row { grid-template-columns: 1fr; row-gap: 22px; padding: 44px 0 48px; margin-top: 48px; }
  .brand-row > h2 { position: static; }
  .tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tiles.two, .tiles.three, .swatches, .swatches.two { grid-template-columns: 1fr; }
  .brand-row td:first-child { white-space: normal; }
}

/* ---- footer ---- */
/* The copyright line on the left, just under the rule; the Brand link on the right. */
footer.site { margin-top: 120px; border-top: 1px solid var(--line); padding: 12px 0 48px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 14px; color: var(--grey); }
footer.site a { text-decoration: none; }
footer.site a:hover, footer.site a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0; }
  .cards, .cards.two { grid-template-columns: 1fr; }
}
