/* Structure. The look (tokens, type, rules, the wall as a paper) is the second half of this file. */

:root {
  --gutter: 16px;
  --wall-gap: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

main { padding: 0 var(--gutter) 96px; }

.icon { display: block; flex: none; }

/* Pills and round buttons */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.pill:hover { background: var(--line); }
.pill--dark { background: var(--accent); color: var(--on-accent); }
.pill--dark:hover { background: var(--accent); opacity: 0.82; }
.pill--quiet { background: transparent; color: var(--muted); }
.pill--quiet:hover { background: var(--surface); color: var(--ink); }

.round {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  background: var(--page);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.round:hover { background: var(--surface); }
.round[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round[aria-pressed="true"] .icon__fill { fill: currentColor; }

/* Top bar */

.top {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "home" "nav";
  align-items: center;
  gap: 4px 12px;
  padding: 12px var(--gutter) 0;
}
.top__home { grid-area: home; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 16px; }
.top__nav { grid-area: nav; display: flex; gap: 20px; min-width: 0; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.top__nav::-webkit-scrollbar { display: none; }
.top__link { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color var(--fast) var(--ease); }
.top__link:hover, .top__link.is-active { color: var(--ink); }
.top__count:empty { display: none; }
.top__count { min-width: 20px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--surface-strong); font-size: 12px; text-align: center; color: var(--ink); }
.top__cta { display: none; }

@media (min-width: 900px) {
  .top {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "home nav right";
    gap: 24px;
    padding: 18px var(--gutter);
  }
  .top__nav { margin: 0; padding: 0; gap: 24px; }
  .top__cta { grid-area: right; display: inline-flex; justify-self: end; min-height: 48px; padding: 0 24px; }
}

/* Category tabs */

.tabs { display: flex; gap: 4px; margin: 8px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-active { background: var(--surface-strong); color: var(--ink); }
.tabs__count { margin-left: 6px; color: var(--faint); }

/* Styles grouped by category */

.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.group__title { flex: 1 1 auto; }
.group__count { color: var(--faint); }
.group__line { flex: 1 1 100%; padding-bottom: 16px; color: var(--muted); font-size: 14px; }

.section { padding: 40px 0 20px; font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; line-height: 1.15; }
.intro__lede { display: none; }

/* Board grid */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 36px 32px; }
.card { min-width: 0; }
.card__view { display: block; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.card__view:hover { box-shadow: 0 0 0 1px var(--faint); opacity: 0.94; }
.card__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface); }
.card__foot { display: flex; align-items: center; gap: 8px; padding: 12px 4px 0; }
.card__text { flex: 1; min-width: 0; }
.card__title { font-family: var(--display); font-weight: var(--display-weight); font-size: 16px; line-height: 1.4; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__meta { font-size: 14px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__summary { display: none; }

.empty { padding: 72px 0; text-align: center; color: var(--muted); }

/* The wall: one column per project, its parts running down it as previews of one shape. */

.wall__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: start; gap: 32px var(--wall-gap); padding-top: 8px; }
.column { display: grid; gap: var(--wall-gap); min-width: 0; }
.column__name { overflow: hidden; font: 500 11px/1.2 var(--mono); letter-spacing: 0.03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.column__name a { display: flex; align-items: center; min-height: 44px; }
.column__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile { position: relative; min-width: 0; overflow: hidden; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--line); }
.tile__view { display: block; }
.tile__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--surface); }
.tile__foot { position: absolute; inset: auto 0 0; display: flex; align-items: end; gap: 8px; padding: 36px 8px 8px; background: linear-gradient(transparent, rgb(0 0 0 / 0.74)); color: #ffffff; opacity: 0; pointer-events: none; transition: opacity var(--fast) var(--ease); }
.tile:hover .tile__foot, .tile:focus-within .tile__foot { opacity: 1; }
.tile__label { flex: 1; min-width: 0; overflow: hidden; font: 400 11px/1.35 var(--mono); letter-spacing: 0.03em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.tile__save { pointer-events: auto; border-color: transparent; background: #ffffff; color: #000000; }

@media (hover: none) {
  .tile__foot { padding: 0; background: none; opacity: 1; }
  .tile__label { visibility: hidden; }
  .tile__save { border: 0; background: none; color: #ffffff; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.7)); }
  .tile__save[aria-pressed="true"] { background: none; color: #ffffff; }
}

@media (min-width: 700px) {
  .wall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* A scaled live preview. board.js sets the iframe size and the scale. */

.frame { position: relative; overflow: hidden; background: var(--surface); }
.frame--lined { border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--line); }
.frame iframe { display: block; border: 0; transform-origin: 0 0; }

/* Mix and palettes */

.mix__head { display: grid; gap: 16px; padding: 40px 0 8px; }
.mix__title { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(26px, 4vw, 32px); line-height: 1.15; }
.mix__lead { max-width: 560px; color: var(--muted); }
.mix__now { display: grid; gap: 10px; max-width: 560px; }
.mix__swatches { display: flex; height: 40px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.mix__swatch { flex: 1 1 0; min-width: 6px; }
.mix__meta { font-size: 14px; color: var(--muted); }
.mix__meta a, .mix__from { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.mix__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mix__part-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mix__from { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--muted); }
.mix__own { display: block; margin-top: 4px; font: 400 12px/1.3 var(--mono); letter-spacing: 0; color: var(--muted); }
.mix__part-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 700px) {
  .mix__part-actions { justify-content: flex-end; }
}
.build { display: grid; gap: 12px; max-width: 720px; padding-top: 24px; }
.build .section { padding-bottom: 8px; }
.build__lead, .build__note { color: var(--muted); }
.build__note { font-size: 14px; }
.build__title { margin-top: 20px; font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; }
.build__purpose { width: 100%; min-height: 96px; padding: 12px 14px; border: var(--rule); border-radius: var(--radius-card); background: var(--surface-strong); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.build__link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.build pre { margin: 0; }
.build .pill { justify-self: start; }

.palettes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-top: 32px; }
.swatchcard { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; padding: 14px; box-shadow: 0 0 0 1px var(--line); }
.swatchcard__info { display: grid; align-content: start; gap: 10px; min-width: 0; }
.swatchcard__name { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 17px; line-height: 1.15; }
.swatchcard__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.swatchcard__hexes { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 400 11px/1.4 var(--mono); color: var(--muted); }

.mock {
  --mock-paper: var(--page);
  --mock-ink: var(--ink);
  --mock-accent: var(--accent);
  --mock-second: var(--muted);
  --mock-on-accent: var(--on-accent);
}
.mock { display: grid; grid-template-rows: 8px auto auto auto 1fr; gap: 7px; aspect-ratio: 3 / 4; padding: 12px; background: var(--mock-paper); color: var(--mock-ink); box-shadow: 0 0 0 1px var(--line); }
.mock__bar { height: 8px; width: 40%; background: var(--mock-ink); }
.mock__title { font-weight: 700; font-size: 30px; line-height: 1; }
.mock__line { height: 5px; background: var(--mock-ink); opacity: 0.55; }
.mock__line--short { width: 60%; }
.mock__foot { display: flex; align-items: end; justify-content: space-between; }
.mock__button { padding: 5px 10px; background: var(--mock-accent); color: var(--mock-on-accent); font-weight: 500; font-size: 12px; }
.mock__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mock-second); }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 40px; }
.pager__where { font: 400 12px/1 var(--mono); color: var(--muted); }

/* Components: every part as one big square, and one part on its own */

.squares__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 20px; }
.squares__title { font: 700 clamp(32px, 6vw, 64px)/0.9 var(--display); letter-spacing: -0.05em; }
.squares { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wall-gap); }
.tile__image--square { aspect-ratio: 1 / 1; }
.squares .tile__view { position: relative; overflow: hidden; }
.tile__live { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity var(--fast) var(--ease); }
.tile__live.is-ready { opacity: 1; }
.tile__view:has(.tile__live.is-ready) .tile__image { visibility: hidden; }

@media (min-width: 600px) {
  .squares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .squares { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .squares { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.single__head { display: grid; gap: 16px; padding: 16px 0 8px; }
.single__back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 44px; font: 400 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.single__back:hover { color: var(--ink); }
.single__title { font: 700 clamp(40px, 8vw, 104px)/0.9 var(--display); letter-spacing: -0.05em; overflow-wrap: anywhere; }
.single__swatches { max-width: 560px; }
.single__kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.single__kind { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: var(--rule); font: 400 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.single__kind:hover { background: var(--ink); color: var(--page); }

/* The style a part belongs to: a block that asks to be opened, not a footnote. */
.origin { display: grid; gap: 16px; max-width: 880px; padding: 16px; border: var(--rule); border-top-width: 3px; background: var(--surface); }
.origin__picture { display: grid; gap: 8px; align-content: start; }
.origin__thumb { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px var(--ink); background: var(--page); }
.origin__dots { display: flex; height: 16px; box-shadow: 0 0 0 1px var(--ink); }
.origin__dot { flex: 1 1 0; }
.origin__text { display: grid; align-content: start; gap: 8px; min-width: 0; }
.origin__label { font: 400 12px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.origin__title { font: 700 clamp(28px, 5vw, 48px)/0.95 var(--display); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.origin__note { max-width: 44ch; font-size: 14px; color: var(--muted); }
.origin__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }

@media (min-width: 600px) {
  .origin { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}

/* Kind filters on the components board, and the squares that close a component page. */
.kinds { margin-bottom: 16px; }
.kinds__count { margin-left: 6px; color: var(--faint); }
.tabs__tab.is-active .kinds__count { color: var(--accent); }
.similar { padding-top: 48px; }
.squares--similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 900px) {
  .squares--similar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Exports: a row of pills next to Copy code, two of them small menus that open under the row. */
.exports { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: "+"; font-family: var(--mono); }
.menu[open] > summary { background: var(--accent); color: var(--on-accent); }
.menu[open] > summary::after { content: "\2212"; }
.menu__panel { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; display: grid; gap: 8px; width: min(380px, 100%); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--page); }
.menu__panel .pill { justify-content: flex-start; white-space: normal; text-align: left; }
.menu__note { font-size: 13px; line-height: 1.4; color: var(--muted); }
.menu__note code { font: 400 12px var(--mono); }

/* A part's page: colours, type and exports on one row on a laptop. */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.toolbar .mix__actions { align-items: center; }
.toolbar__swatches { flex: none; width: 160px; height: 44px; }

/* Pack page */

.hero { display: flex; flex-direction: column; align-items: center; padding: 40px 0 8px; text-align: center; }
.hero__title { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(26px, 4vw, 32px); line-height: 1.15; }
.hero__meta { margin-top: 8px; font-size: 14px; color: var(--faint); }
.hero__meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hero__meta a:hover { color: var(--ink); }
.hero__summary { max-width: 560px; margin-top: 16px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }

.dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.dots__dot { width: 28px; height: 28px; border-radius: var(--radius-round); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }

.block { padding-top: 24px; }
.block--narrow { max-width: 720px; margin: 0 auto; }
.block__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 12px; padding: 40px 0 20px; }
.block__bar .section { flex: 1 1 100%; padding: 0; }
.block__label { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

@media (min-width: 700px) {
  .block__bar .section { flex: 1; }
}

.segment { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.segment__option {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-weight: 500;
  font-size: 15px;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.segment__option[aria-pressed="true"], .segment__option[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
a.segment__option { display: inline-flex; align-items: center; }

.part { padding-bottom: 48px; }
.part__head { padding-bottom: 14px; }
.part__title { font-family: var(--display); font-weight: var(--display-weight); font-size: 16px; }
.part__about { max-width: 720px; font-size: 14px; color: var(--muted); }

.code { margin-top: 14px; }
.code summary { list-style: none; cursor: pointer; }
.code summary::-webkit-details-marker { display: none; }
.code[open] summary { background: var(--accent); color: var(--on-accent); }
.code__copy { margin: 8px 0 0 8px; }
.code:not([open]) .code__copy { display: none; }

pre {
  margin: 12px 0;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  font: 400 13px/1.55 var(--mono);
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 480px;
  overflow-y: auto;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips__chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); font: 500 13px/1.2 var(--mono); letter-spacing: 0; }
.chips__dot { flex: none; width: 24px; height: 24px; border-radius: var(--radius-round); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.chips__value { color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 20px; }
.notes__card { padding: 22px 24px 24px; border-radius: var(--radius-card); background: var(--surface); }
.notes__card h3 { padding-bottom: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 16px; }
.notes__card li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.notes__card b { font-weight: 500; color: var(--ink); }

.tools__row { padding: 14px 0; border-top: 1px solid var(--line); }
.tools dt { font: 500 14px/1.4 var(--mono); letter-spacing: 0; }
.tools dd { padding-top: 2px; font-size: 14px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The look: Swiss index. One tight grotesk, hairlines, black and white, one red. */

:root {
  --page: #ffffff;
  --surface: #f4f4f4;
  --surface-strong: #ffffff;
  --ink: #000000;
  --muted: #444444;
  --faint: #8a8a8a;
  --line: #000000;
  --accent: #e30613;
  --on-accent: #ffffff;
  --radius-card: 0px;
  --radius-pill: 0px;
  --radius-round: 0px;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --display-weight: 700;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --tracking: -0.01em;
  --rule: 1px solid var(--ink);
}

.top { padding-bottom: 12px; border-bottom: var(--rule); }
.top__home { font-weight: 700; }
.pill { border: var(--rule); }
.pill--dark { border-color: var(--accent); }
.pill--quiet { border-color: transparent; }

.tabs { gap: 0; margin-top: 0; border-bottom: var(--rule); }
.tabs__tab { justify-content: start; padding: 0 20px 0 0; font: 400 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.tabs__tab.is-active { background: none; text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.tabs__count { margin-left: 4px; }
.group__title { padding-bottom: 6px; }

.section { padding: 12px 0 20px; border-top: var(--rule); font: 400 12px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.intro { display: grid; gap: 12px 32px; padding: 28px 0 24px; }
.intro__title { padding: 0; border: 0; font: 700 clamp(46px, 9.4vw, 136px)/0.86 var(--display); letter-spacing: -0.055em; text-transform: none; }
.intro__lede { display: block; align-self: end; max-width: 34ch; font-size: 15px; color: var(--muted); }

.grid { display: block; counter-reset: row; border-bottom: var(--rule); }
.card { counter-increment: row; display: grid; grid-template-columns: 28px 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-top: var(--rule); transition: background-color var(--fast) var(--ease); }
.card:hover { background: var(--surface); }
.card::before { content: counter(row, decimal-leading-zero); align-self: start; padding-top: 2px; font: 400 12px/1 var(--mono); }
.card__view, .card__view:hover { box-shadow: none; opacity: 1; }
.card__foot { flex-wrap: wrap; padding: 0; }
.card__text { flex: 1 1 100%; }
.card__title { font-size: 22px; line-height: 1.05; letter-spacing: -0.03em; }
.card__meta { padding-top: 4px; font: 400 11px/1.3 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; }

@media (min-width: 900px) {
  .intro { grid-template-columns: 2fr 1fr; }
  .card { grid-template-columns: 56px 240px minmax(0, 1fr); gap: 28px; padding: 18px 0; }
  .card__foot { flex-wrap: nowrap; gap: 12px; }
  .card__text { flex: 1; }
  .card__title { font-size: 44px; letter-spacing: -0.045em; }
  .card__summary { display: -webkit-box; max-width: 62ch; padding-top: 10px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; color: var(--muted); }
}

/* The wall as a paper: a ruled head over every column, each preview in a hairline frame. */
.column__name { border-top: 2px solid var(--ink); }
.tile { box-shadow: 0 0 0 1px var(--ink); }
.tile__save { border-radius: 0; }

.hero { align-items: start; text-align: left; }
.hero__title { font-size: clamp(46px, 9.4vw, 136px); line-height: 0.86; letter-spacing: -0.055em; }
.hero__meta { margin-top: 16px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; }
.hero__actions, .dots { justify-content: start; }
.block__bar { border-top: var(--rule); padding-top: 12px; }
.block__bar .section { border: 0; }
.part__title { font-size: 28px; letter-spacing: -0.035em; }
.frame--lined { box-shadow: 0 0 0 1px var(--ink); }
.notes__card { padding-left: 0; padding-right: 0; border-top: 3px solid var(--ink); background: none; }
.foot { border-top: var(--rule); font: 400 12px/1.4 var(--mono); }


