/* Light only, on purpose: the site is meant to read like a plain, quiet page. */
:root {
  --text: #2b3138;
  --heading: #111418;
  --muted: #6b7480;
  --link: #1f5fbf;
  --bg: #fff;
  --surface: #f6f7f8;
  --border: #e6e8eb;
  --bubble: #e9e9ee;
  --bubble-text: #2b3138;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 17px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { color: var(--heading); font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.topbar nav { display: flex; gap: 22px; font-size: 15px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--heading); }

/* Home */
/* Text on the left, a contour map (art/contours.html, or the bands in art/contour-bands.html) on the right; the map goes on narrow screens. */
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 24px; padding: clamp(40px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); }
.kicker { margin: 0 0 18px; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--link); }
.hero h1 { margin: 0 0 20px; max-width: 13em; font-size: clamp(34px, 5.4vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; color: var(--heading); }
.lede { margin: 0 0 28px; max-width: 34em; font-size: 18px; color: var(--text); }
.lede p { margin: 0 0 12px; }
.lede p:last-child { margin: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; font-size: 15px; }

.hero-art { align-self: stretch; display: flex; align-items: center; }
.contours { width: 100%; height: auto; mask-image: radial-gradient(closest-side, #000 75%, transparent); }
.contours:not(.bands) path { stroke: #cfd4da; stroke-width: 1; }
.contours:not(.bands) path.index { stroke: #a9b0b8; stroke-width: 1.4; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid var(--heading);
  border-radius: 6px;
  color: var(--heading);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.button:hover { background: var(--heading); color: #fff; }

h2 { margin: 0 0 24px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--heading); }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { text-decoration: underline; }

main > section { padding: 48px 0; border-top: 1px solid var(--border); }
main > section.hero { border-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card p { margin: 0 0 12px; font-size: 16px; }
.card .kind { margin: 2px 0 12px; color: var(--muted); font-size: 15px; }
/* The list that ends a card's text: its links, in a row at the foot of the card. */
.card .body > ul:last-child { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 500; }

.art { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.art .logo { width: min(72%, 260px); height: auto; display: block; }
.art .photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .drawing { width: 100%; height: 100%; font-family: var(--font); }

/* A heading on the left and text on the right, stacked on narrow screens. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 40px; }
.split p { margin: 0 0 14px; max-width: 38em; }
.split h2 { margin-top: 4px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.footer { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer p { margin: 0 0 6px; }
.footer a { color: inherit; }

/* Text pages */
.prose { max-width: 720px; }
.prose h1 { margin: 40px 0 12px; font-size: clamp(30px, 5vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--heading); }
.prose h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--heading); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose pre { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; font-size: 14px; }
.prose code { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--muted); }

/* Map page */
#map { height: min(70vh, 560px); margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.layer-picker { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; padding: 0; border: 0; font-size: 15px; }
.layer-picker legend { float: left; margin-right: 8px; font-weight: 600; }
main > section.prose { border-top: 1px solid var(--border); }
main > section.prose h2:first-child { margin-top: 0; }

.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 32px 24px; }
.sample { margin: 0; }
.sample .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 10px; overflow: hidden; }
.sample img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--surface); }
.sample figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.sample figcaption button { grid-column: 1 / -1; justify-self: start; }
button.link { padding: 0; border: 0; background: none; font: inherit; color: var(--link); cursor: pointer; }
button.link:hover { text-decoration: underline; }
