/* MisterLogo — a late-90s desktop. Layout concept: the site is a desktop; every
   section is a grey "platinum" window with a pinstriped title bar, and logos sit
   inside like icons in a folder. Deliberately one look (no dark mode). */
:root {
  color-scheme: light;
  --desk-1: #3A6FC4;        /* wallpaper blues */
  --desk-2: #8DB8EC;
  --desk-3: #1F4E9C;
  --plat: #DDDDDD;          /* window chrome */
  --plat-hi: #FFFFFF;
  --plat-lo: #888888;
  --plat-edge: #444444;
  --paper: #FFFFFF;         /* window contents */
  --ink: #000000;
  --muted: #555555;
  --select: #3159C6;        /* selection highlight */
  --select-ink: #FFFFFF;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;   /* headlines */
  --chrome: "Instrument Sans", "Segoe UI", system-ui, sans-serif;   /* menus, buttons, window titles */
  --label: "Instrument Sans", "Segoe UI", system-ui, sans-serif;    /* body text */
  --mono: "Instrument Sans", "Segoe UI", system-ui, sans-serif;     /* colour codes (tabular figures) */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--desk-3); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 13px/1.45 var(--label); font-variant-numeric: tabular-nums;
  background:
    radial-gradient(120% 70% at 85% 10%, rgb(255 255 255 / .35), transparent 55%),
    radial-gradient(90% 60% at 10% 90%, rgb(255 255 255 / .22), transparent 60%),
    conic-gradient(from 210deg at 70% 40%, var(--desk-1), var(--desk-2), var(--desk-1), var(--desk-3), var(--desk-1));
  background-attachment: fixed;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 1px; }
button { font: inherit; color: inherit; }

/* ── Menu bar ── */
.menubar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: 40px;
  display: flex; align-items: center; gap: 4px;
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: linear-gradient(var(--plat-hi), var(--plat)); border-bottom: 1px solid var(--plat-edge);
  box-shadow: 0 1px 0 rgb(0 0 0 / .12);
  font: 600 14px/1 var(--chrome); white-space: nowrap;
}
.menubar a { text-decoration: none; padding: 7px 11px; border-radius: 3px; }
.menubar a:hover, .menubar a:focus-visible { background: var(--select); color: var(--select-ink); outline: none; }
.menubar .brandmenu { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; font: 400 21px/1 var(--serif); }
.menubar .brandmenu svg { width: 26px; height: 26px; }
.menubar .clock { margin-left: auto; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }
.menubar .items { display: flex; overflow: hidden; }

/* Burger menu (phones) */
.burger { display: none; position: relative; margin-left: auto; }
.burger summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
  padding: 4px 12px; border: 1px solid var(--plat-edge); border-radius: 5px; font: 600 14px var(--chrome);
  background: linear-gradient(var(--plat-hi), #CFCFCF); box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 #AAAAAA; }
.burger summary::-webkit-details-marker { display: none; }
.burger[open] summary { background: linear-gradient(#9A9A9A, #BBBBBB); box-shadow: inset 1px 1px 0 #777; }
.burger-lines { display: grid; gap: 3px; width: 16px; }
.burger-lines span { display: block; height: 2px; background: var(--ink); }
.burger-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; display: grid; padding: 4px 0;
  background: var(--paper); border: 1px solid var(--plat-edge); box-shadow: 3px 3px 0 rgb(0 0 0 / .28); }
.burger-menu a { padding: 11px 16px; border-radius: 0; font: 500 15px var(--chrome); }
.burger-menu hr { border: 0; border-top: 1px solid #CCCCCC; margin: 4px 0; }

/* ── Desktop ── */
.desktop {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 20px; align-items: start;
  max-width: 1360px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 22px 40px;
}
.stack { display: grid; gap: 18px; min-width: 0; }
.desk-icons { display: grid; gap: 20px; justify-items: center; position: sticky; top: 62px; }
.desk-icon { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: #fff;
  font: 11px/1.2 var(--label); text-align: center; text-shadow: 0 1px 2px rgb(0 0 0 / .6); width: 90px; }
.desk-icon svg { width: 40px; height: 40px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }
.desk-icon:hover span { background: var(--select); text-shadow: none; padding: 0 3px; }

/* ── Windows ── */
.window { background: var(--plat); border: 1px solid var(--plat-edge);
  box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 var(--plat-lo), 2px 2px 0 rgb(0 0 0 / .28);
  padding: 0 5px 5px; min-width: 0; }
.titlebar { height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 2px; position: relative;
  background: repeating-linear-gradient(to bottom, var(--plat-hi) 0 1px, #A9A9A9 1px 2px) 0 5px / 100% 11px no-repeat; }
.titlebar h1, .titlebar h2 { margin: 0 auto; padding: 0 10px; background: var(--plat); font: 700 12px/22px var(--chrome);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; display: flex; align-items: center; gap: 6px; }
.titlebar h1 svg, .titlebar h2 svg { width: 16px; height: 16px; flex: none; }
.box { width: 13px; height: 13px; flex: none; background: linear-gradient(135deg, var(--plat-lo), var(--plat-hi));
  border: 1px solid var(--plat-edge); box-shadow: inset 1px 1px 0 var(--plat-hi); display: block; padding: 0; }
a.box, button.box { cursor: pointer; }
.box.zoom { background: linear-gradient(135deg, var(--plat-lo), var(--plat-hi)); position: relative; }
.box.zoom::after { content: ""; position: absolute; inset: 2px 4px 4px 2px; border: 1px solid var(--plat-edge); }
.box.shade::after { content: ""; display: block; margin: 5px 1px 0; border-top: 1px solid var(--plat-edge); border-bottom: 1px solid var(--plat-edge); height: 2px; }
.boxes-right { display: flex; gap: 3px; }

.infobar { display: flex; justify-content: space-between; gap: 12px; padding: 3px 6px; font: 11px var(--label); color: var(--ink);
  border: 1px solid var(--plat-lo); border-bottom: 0; background: var(--plat); flex-wrap: wrap; }
.pane { background: var(--paper); border: 1px solid var(--plat-edge); box-shadow: inset 1px 1px 0 var(--plat-lo); min-width: 0; }
.pad { padding: 14px; }

/* Toolbar inside the main window */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 2px 8px; }
.field { font: 13px var(--label); color: var(--ink); background: var(--paper); border: 1px solid var(--plat-edge);
  box-shadow: inset 1px 1px 0 var(--plat-lo); padding: 5px 8px; border-radius: 0; min-width: 0; }
.field.search { flex: 1 1 240px; max-width: 420px; }
.btn { font: 12px/1 var(--chrome); color: var(--ink); text-decoration: none; cursor: pointer;
  background: linear-gradient(var(--plat-hi), #CFCFCF); border: 1px solid var(--plat-edge); border-radius: 4px;
  box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 #AAAAAA; padding: 5px 12px; display: inline-flex; align-items: center; gap: 6px; }
.btn:active, .btn[aria-pressed="true"] { background: linear-gradient(#9A9A9A, #BBBBBB); box-shadow: inset 1px 1px 0 #777; }
.btn.default { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 5px; }
.btn .dot { width: 10px; height: 10px; border: 1px solid var(--plat-edge); flex: none; }
.btn .n { color: var(--muted); font: 10px var(--mono); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }

/* Icon view */
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 6px; padding: 16px 10px 20px; }
.icon { display: grid; justify-items: center; align-content: start; gap: 5px; text-decoration: none; padding: 4px 2px; min-width: 0; }
.icon .glyph { width: 52px; height: 52px; display: grid; place-items: center; }
.icon .glyph svg, .icon .glyph img { width: 44px; height: 44px; object-fit: contain; }
.icon .name { font: 11px/1.25 var(--label); text-align: center; padding: 0 3px; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.icon .hex { font: 500 10px var(--mono); letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.icon:hover .name, .icon:focus-visible .name { background: var(--select); color: var(--select-ink); }
.icon .glyph { transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.icon:hover .glyph, .icon:focus-visible .glyph { transform: translateY(-4px) scale(1.08); }
.icon:focus-visible { outline: none; }
.full-tag { font: 9px var(--mono); color: var(--select); }

/* How a mark is coloured */
.mark { fill: var(--ink); }
.colour .mark { fill: color-mix(in srgb, var(--ink) var(--mix, 0%), var(--c)); }
.high { --mix: 100%; }
.mono-img { filter: brightness(0); }
.colour .mono-img { filter: none; }

/* Ads */
.ad { min-height: 90px; display: grid; place-items: center; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em;
  text-transform: uppercase; background: repeating-linear-gradient(45deg, #F4F4F4 0 6px, #ECECEC 6px 12px); }
.ad.live { background: var(--paper); }
.ad-feed { grid-column: 1 / -1; min-height: 110px; border: 1px dashed var(--plat-lo); }
.ad-side { min-height: 250px; }

.more { display: flex; justify-content: center; padding: 0 0 18px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 10px; color: var(--muted); font-size: 13px; }

/* ── Get Info (brand page) ── */
.info-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.info-head { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--plat-lo); box-shadow: 0 1px 0 var(--plat-hi); }
.info-head .glyph { width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.info-head .glyph svg, .info-head .glyph img { width: 56px; height: 56px; object-fit: contain; }
.info-head h1 { font: 400 34px/1.05 var(--serif); margin: 0; letter-spacing: -0.01em; }
.info-head p { margin: 2px 0 0; color: var(--muted); }
.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 12px; padding: 12px 0; align-items: baseline; }
.fields dt { font-weight: 700; text-align: right; }
.fields dd { margin: 0; min-width: 0; word-break: break-word; }
.fields button.copy { font: 500 13px var(--mono); background: none; border: 0; padding: 0; cursor: copy; text-align: left; }
.fields button.copy:hover { background: var(--select); color: var(--select-ink); }
.fields a { color: var(--select); }
.swatch { display: inline-block; width: 14px; height: 14px; background: var(--c); border: 1px solid var(--plat-edge); vertical-align: -2px; margin-right: 6px; }
.etched { border: 0; border-top: 1px solid var(--plat-lo); box-shadow: 0 1px 0 var(--plat-hi); margin: 4px 0 12px; }
.group-label { font: 700 12px var(--chrome); margin: 0 0 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.specimen { aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; padding: 12%; background: var(--paper); }
.specimen svg, .specimen img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; }
.specimen.on-brand { background: var(--c); }
.specimen.on-brand .mark { fill: #FFFFFF; }
.specimen.on-dark { background: #111111; }
.specimen.on-dark .mark { fill: color-mix(in srgb, #FFFFFF var(--lift, 0%), var(--c)); }
.specimen.on-dark.low { --lift: 100%; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 2px 2px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.radios input { accent-color: var(--select); margin: 0; }
.notice { margin: 10px 0 0; color: var(--muted); font-size: 11px; }

/* Plain pages */
.prose { max-width: 64ch; font-size: 13px; line-height: 1.6; }
.prose h1 { font: 400 40px/1.05 var(--serif); margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.prose h2 { font: 400 26px/1.15 var(--serif); margin: 24px 0 6px; text-wrap: balance; }
.prose p { margin: 0 0 10px; }

/* Legal strip */
.legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 11px; }
.legal nav { display: flex; gap: 14px; flex-wrap: wrap; }
.legal p { margin: 0; max-width: 70ch; color: var(--muted); }

/* Detail dialog in the preview */
dialog.detail { border: 0; padding: 0; background: transparent; width: min(980px, calc(100vw - 24px)); max-width: none; }
dialog.detail::backdrop { background: rgb(10 30 70 / .45); }
dialog.detail .window { max-height: 90vh; overflow: auto; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: #FFFFCC; color: var(--ink); border: 1px solid var(--ink); box-shadow: 2px 2px 0 rgb(0 0 0 / .3);
  font: 12px var(--label); padding: 7px 12px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.toast.show { opacity: 1; }

@media (max-width: 820px) {
  .desktop { grid-template-columns: minmax(0, 1fr); }
  .desk-icons { display: none; }
  .info-layout { grid-template-columns: minmax(0, 1fr); }
  .menubar .items, .menubar .clock { display: none; }
  .burger { display: block; }
  .icons { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.window .radios { padding: 10px 12px 2px; }
.window .radios:last-child { padding-bottom: 12px; }
.prose h3 { font: 400 20px/1.2 var(--serif); margin: 18px 0 4px; }
.browse-links { line-height: 2; }
.infobar a { color: var(--select); }
.menubar .brandmenu svg { image-rendering: pixelated; }
.fella-big { width: 96px; height: 96px; margin-bottom: 12px; }
.fella-big svg { width: 100%; height: 100%; }

/* Blog */
.post-item { padding: 14px 0; border-bottom: 1px solid #DDDDDD; }
.post-item:last-child { border-bottom: 0; }
.post-item h2 { margin: 0 0 4px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { text-decoration: underline; }
.post-date { color: var(--muted); font-size: 12px; margin: 0 0 6px; }
.post-links { padding-left: 18px; margin: 0 0 8px; }
.post-links li { margin: 4px 0; }
.post { font-size: 15px; line-height: 1.65; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 12px; }
.post li { margin: 4px 0; }
.post code { font: 13px ui-monospace, Menlo, Consolas, monospace; background: #F2F2F2; padding: 1px 4px; }
.post a { color: var(--select); }
.post-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid #DDDDDD; }
.post-nav .btn { white-space: normal; text-align: left; line-height: 1.3; max-width: 100%; }

/* Ad spaces stay hidden until an AdSense ID is set in config.js */
.ads-off .ad-window, .ads-off .ad { display: none !important; }
.picker { position: relative; gap: 8px; }
.picker input[type="color"] { width: 22px; height: 18px; padding: 0; border: 1px solid var(--plat-edge); background: none; cursor: pointer; }
.letter-btn { min-width: 34px; justify-content: center; padding: 5px 8px; }
.letter-btn:disabled { opacity: .4; cursor: default; }

.picker { gap: 8px; cursor: pointer; }
.picker input[type="color"] { width: 22px; height: 18px; padding: 0; border: 1px solid var(--plat-edge); background: none; cursor: pointer; }
.letter-btn { min-width: 34px; justify-content: center; padding: 5px 8px; }
.letter-btn:disabled { opacity: .4; cursor: default; }

/* Breadcrumb trail: a path bar under the menu */
.crumbbar { background: var(--plat); border: 1px solid var(--plat-edge); box-shadow: inset 1px 1px 0 var(--plat-hi), 2px 2px 0 rgb(0 0 0 / .2); padding: 6px 10px; font: 500 13px var(--chrome); }
.crumbbar ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbbar li { display: inline-flex; align-items: center; min-width: 0; }
.crumbbar li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.crumbbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 2px 5px; border-radius: 3px; }
.crumbbar a:hover, .crumbbar a:focus-visible { background: var(--select); color: var(--select-ink); outline: none; }
.crumbbar svg { width: 16px; height: 16px; }
.crumbbar [aria-current] { font-weight: 700; padding: 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* Standfirst: the opening paragraph on a page, four sizes up from body text */
.standfirst, .prose h1 + p { font-size: 18px; line-height: 1.45; max-width: 62ch; color: var(--ink); }
.post .standfirst { margin-bottom: 18px; }

/* Popular logos: two tidy rows of six on desktop */
.popular-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 820px) { .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Popular logos: 15% larger previews; category rows */
.popular-grid .glyph { width: 60px; height: 60px; }
.popular-grid .glyph svg, .popular-grid .glyph img { width: 51px; height: 51px; }
.popular-grid .name { font-size: 12.5px; }
.popular-more { margin: 0; padding: 0 16px 14px; text-align: right; font-size: 13px; }
.cat-row { padding: 10px 0 4px; border-bottom: 1px solid #DDDDDD; }
.cat-row:last-child { border-bottom: 0; }
.cat-row h2 { margin: 0; }
.cat-row h2 a { text-decoration: none; }
.cat-row h2 a:hover { text-decoration: underline; }
.cat-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 10px 0; }
@media (max-width: 820px) { .cat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Homepage search */
.home-search { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.home-search .field { flex: 1; min-width: 0; font-size: 15px; padding: 9px 12px; max-width: none; }

/* Big browse buttons */
.big-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.big-btn { display: flex; align-items: center; gap: 20px; padding: 20px 22px; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--plat-hi), var(--plat)); border: 1px solid var(--plat-edge); border-radius: 8px;
  box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 var(--plat-lo), 3px 3px 0 rgb(0 0 0 / .28); min-width: 0; }
.big-btn:hover { background: linear-gradient(#FFFFFF, #E9E9E9); }
.big-btn:active { background: linear-gradient(#9A9A9A, #BBBBBB); box-shadow: inset 1px 1px 0 #777; }
.big-art { flex: none; display: grid; gap: 4px; padding: 8px; background: var(--paper); border: 1px solid var(--plat-edge); box-shadow: inset 1px 1px 0 var(--plat-lo); }
.swatch-art { grid-template-columns: repeat(3, 24px); grid-auto-rows: 24px; }
.swatch-art span { border: 1px solid rgb(0 0 0 / .35); }
.letter-art { grid-template-columns: repeat(4, 22px); grid-auto-rows: 22px; }
.letter-art span { display: grid; place-items: center; font: 400 17px/1 var(--serif); }
.big-text { display: grid; gap: 6px; min-width: 0; }
.big-title { font: 400 30px/1.05 var(--serif); }
.big-sub { font-size: 14px; color: var(--muted); }

/* Category cards */
.cat-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.cat-card { display: grid; gap: 4px; padding: 14px 12px 12px; text-decoration: none; border: 1px solid #D4D4D4; border-radius: 6px; background: var(--paper); min-width: 0; }
.cat-card:hover, .cat-card:focus-visible { border-color: var(--ink); background: #F6F6F6; outline: none; }
.cat-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.cat-icon { display: grid; place-items: center; aspect-ratio: 1; }
.cat-icon svg, .cat-icon img { width: 30px; height: 30px; object-fit: contain; }
.cat-name { font: 400 20px/1.1 var(--serif); }
.cat-count { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .big-buttons { grid-template-columns: minmax(0, 1fr); }
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 10px; }
  .big-title { font-size: 26px; }
}

.spotlight-intro { padding: 14px 16px 0; max-width: none; }
.spotlight-intro p { margin: 0; max-width: 70ch; color: var(--muted); }

/* Browse the library: a structured index */
.ix { padding: 22px 22px 18px; }
.ix-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ix-col { min-width: 0; }
.ix-eyebrow { margin: 0 0 2px; font: 600 10.5px var(--chrome); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ix-title { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font: 400 28px/1.05 var(--serif); }
.ix-list { list-style: none; margin: 0; padding: 0; }
.ix-list a { display: flex; align-items: baseline; gap: 8px; padding: 5px 2px; text-decoration: none; font-size: 14px; border-bottom: 1px solid #E6E6E6; }
.ix-list a:hover .ix-label { text-decoration: underline; }
.ix-list a:hover { background: #F4F6FB; }
.ix-dots { flex: 1; border-bottom: 1px dotted #B8B8B8; transform: translateY(-3px); min-width: 12px; }
.ix-n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.ix-swatch { width: 11px; height: 11px; flex: none; border: 1px solid rgb(0 0 0 / .3); align-self: center; display: inline-block; }
.ix-letters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ix-letters a { display: grid; place-items: center; aspect-ratio: 1; text-decoration: none; font: 400 21px/1 var(--serif);
  background: linear-gradient(var(--plat-hi), var(--plat)); border: 1px solid var(--plat-edge); border-radius: 3px; box-shadow: inset 1px 1px 0 var(--plat-hi); }
.ix-letters a:hover { background: var(--select); color: var(--select-ink); border-color: var(--select); }
.ix-posts { list-style: none; margin: 0; padding: 0; counter-reset: post; }
.ix-posts li { counter-increment: post; border-bottom: 1px solid #E6E6E6; }
.ix-posts a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 8px; padding: 9px 0; text-decoration: none; }
.ix-posts a::before { content: counter(post, decimal-leading-zero); grid-row: span 2; font: 400 22px/1 var(--serif); color: var(--muted); }
.ix-post-title { font: 400 19px/1.15 var(--serif); }
.ix-posts a:hover .ix-post-title { text-decoration: underline; }
.ix-post-date { font-size: 12px; color: var(--muted); }
.ix-more { margin: 10px 0 0; font-size: 13px; }
.ix-popular { margin-top: 24px; padding-top: 14px; border-top: 1px solid #D4D4D4; }
.ix-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ix-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13px; text-decoration: none; border: 1px solid #CFCFCF; border-radius: 999px; background: var(--paper); }
.ix-chips a:hover { border-color: var(--ink); background: #F4F6FB; }
@media (max-width: 1100px) { .ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ix-grid { grid-template-columns: minmax(0, 1fr); } .ix { padding: 16px; } }

/* Featured-on badges in the footer */
.legal-badges { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; border-top: 1px solid #DDDDDD; }
.legal-badges img { display: block; max-width: 100%; height: auto; }

/* ── Motion and interaction ── */
/* Folder Fella in the menu bar: blinks now and then; hops and lifts his tab on hover */
.fella { overflow: visible; }
.fella .fella-eyes { transform-box: fill-box; transform-origin: 50% 60%; animation: fella-blink 6s infinite; }
.fella .fella-tab { transition: transform .12s steps(2); }
.brandmenu:hover .fella, .brandmenu:focus-visible .fella { animation: fella-hop .55s steps(6) 1; }
.brandmenu:hover .fella-tab, .brandmenu:focus-visible .fella-tab { transform: translateY(-1px); }
.brandmenu:hover .fella-eyes { animation: fella-blink-now .55s 1; }
@keyframes fella-blink { 0%, 92%, 100% { transform: scaleY(1); } 94%, 96% { transform: scaleY(.1); } }
@keyframes fella-blink-now { 0%, 100% { transform: scaleY(1); } 40%, 60% { transform: scaleY(.1); } }
@keyframes fella-hop { 0% { transform: translateY(0); } 35% { transform: translateY(-5px); } 60% { transform: translateY(0); } 80% { transform: translateY(-2px); } 100% { transform: translateY(0); } }
/* First visit of each page: he pops up once */
.fella { animation: fella-arrive .6s steps(5) .3s 1 both; }
@keyframes fella-arrive { 0% { transform: translateY(8px); opacity: 0; } 60% { transform: translateY(-3px); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }

/* Buttons: a real press */
.btn { transition: transform .06s, box-shadow .06s, background .12s; }
.btn:hover { background: linear-gradient(#FFFFFF, #E2E2E2); }
.btn:active { transform: translateY(1px); }
.btn[aria-pressed="true"]:hover { background: linear-gradient(#9A9A9A, #BBBBBB); }
.menubar .items a { transition: background .1s, color .1s; }

/* Big browse buttons: swatches ripple, letters light up in turn */
.big-btn { transition: transform .15s, box-shadow .15s; }
.big-btn:hover { transform: translate(-1px, -2px); box-shadow: inset 1px 1px 0 var(--plat-hi), inset -1px -1px 0 var(--plat-lo), 5px 6px 0 rgb(0 0 0 / .28); }
.big-btn:active { transform: translate(1px, 1px); box-shadow: inset 1px 1px 0 #777, 1px 1px 0 rgb(0 0 0 / .28); }
.swatch-art span, .letter-art span { transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .15s, color .15s; }
.big-btn:hover .swatch-art span { transform: scale(1.18) rotate(-6deg); }
.big-btn:hover .letter-art span { background: var(--select); color: var(--select-ink); }
.big-btn:hover .swatch-art span:nth-child(1), .big-btn:hover .letter-art span:nth-child(1) { transition-delay: 0ms; }
.big-btn:hover .swatch-art span:nth-child(2), .big-btn:hover .letter-art span:nth-child(2) { transition-delay: 35ms; }
.big-btn:hover .swatch-art span:nth-child(3), .big-btn:hover .letter-art span:nth-child(3) { transition-delay: 70ms; }
.big-btn:hover .swatch-art span:nth-child(4), .big-btn:hover .letter-art span:nth-child(4) { transition-delay: 105ms; }
.big-btn:hover .swatch-art span:nth-child(5), .big-btn:hover .letter-art span:nth-child(5) { transition-delay: 140ms; }
.big-btn:hover .swatch-art span:nth-child(6), .big-btn:hover .letter-art span:nth-child(6) { transition-delay: 175ms; }
.big-btn:hover .swatch-art span:nth-child(7), .big-btn:hover .letter-art span:nth-child(7) { transition-delay: 210ms; }
.big-btn:hover .swatch-art span:nth-child(8), .big-btn:hover .letter-art span:nth-child(8) { transition-delay: 245ms; }
.big-btn:hover .swatch-art span:nth-child(9), .big-btn:hover .letter-art span:nth-child(9) { transition-delay: 280ms; }
.big-btn:hover .swatch-art span:nth-child(10), .big-btn:hover .letter-art span:nth-child(10) { transition-delay: 315ms; }
.big-btn:hover .swatch-art span:nth-child(11), .big-btn:hover .letter-art span:nth-child(11) { transition-delay: 350ms; }
.big-btn:hover .swatch-art span:nth-child(12), .big-btn:hover .letter-art span:nth-child(12) { transition-delay: 385ms; }

/* Category cards: logos pop up one after another */
.cat-card { transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 4px 0 rgb(0 0 0 / .12); }
.cat-icon { transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.cat-card:hover .cat-icon { transform: translateY(-4px); }
.cat-card:hover .cat-icon:nth-child(2) { transition-delay: 50ms; }
.cat-card:hover .cat-icon:nth-child(3) { transition-delay: 100ms; }
.cat-card:hover .cat-icon:nth-child(4) { transition-delay: 150ms; }

/* Index letters and tags */
.ix-letters a { transition: transform .12s, background .12s, color .12s; }
.ix-letters a:hover { transform: translateY(-2px); }
.ix-chips a { transition: transform .12s, border-color .12s, background .12s; }
.ix-chips a:hover { transform: translateY(-2px); }

/* Images fade in as they load */
img.fade { opacity: 0; transition: opacity .35s ease; }
img.fade.in { opacity: 1; }

/* Windows below the fold open like a classic Mac window as you reach them */
.to-open { opacity: 0; transform: scale(.97) translateY(10px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.1); }
.to-open.opened { opacity: 1; transform: none; }

/* Loading placeholder: the old striped progress bar */
.loading { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 60px 0; color: var(--muted); font-size: 13px; }
.loading-bar { width: 220px; height: 14px; border: 1px solid var(--plat-edge); box-shadow: inset 1px 1px 0 var(--plat-lo);
  background: repeating-linear-gradient(-45deg, #9C9CE8 0 8px, #DCDCF7 8px 16px); background-size: 22.6px 100%; animation: barber 1s linear infinite; }
@keyframes barber { to { background-position: 22.6px 0; } }

@media (prefers-reduced-motion: reduce) {
  .fella, .fella .fella-eyes, .loading-bar { animation: none !important; }
  .to-open { opacity: 1 !important; transform: none !important; }
  .big-btn:hover, .cat-card:hover, .cat-card:hover .cat-icon, .big-btn:hover .swatch-art span, .icon:hover .glyph { transform: none !important; }
}
