@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Product Notes archive — a refined take on the original Discourse theme */

:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --ink: #000000;
  --ink-2: #333333;
  --muted: #666666;
  --line: #eaeaea;
  --line-strong: #d4d4d4;
  --link: #0070f3;
  --link-hover: #0054b6;
  --link-tint: #e4f1ff;
  --select: #fff3a3;
  --yellow: #ffd333;
  --pink: #fe4276;
  --button: #000000;
  --button-ink: #ffffff;
  --button-hover: #333333;

  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1c1c1c;
    --ink: #ededed;
    --ink-2: #c7c7c7;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --line-strong: #3f3f3f;
    --link: #3291ff;
    --link-hover: #62a9ff;
    --link-tint: #12263f;
    --select: rgb(255 211 51 / 0.32);
    --button: #ededed;
    --button-ink: #111111;
    --button-hover: #ffffff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
}

::selection { background: var(--select); }

body {
  margin: 0;
  border-top: 6px solid #000;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 { text-wrap: balance; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.likes .icon { width: 0.875em; height: 0.875em; }

.wrap {
  width: 100%;
  max-width: calc(70rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
}
.skip:focus { left: 0.5rem; }
.skip:hover { color: var(--bg); }

/* ---------- header & footer ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.logo { width: 2.6rem; height: 1.25rem; flex: none; }

.site-nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.site-nav a { padding-block: 0.6rem; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 500; box-shadow: inset 0 -2px var(--ink); }

.site-subhead {
  max-width: 46rem;
  margin: 1.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer p { margin: 0.75rem 0 0; max-width: 40rem; }

/* ---------- shared pieces ---------- */

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-head .more { display: inline-flex; align-items: center; gap: 0.3rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.badge-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
}
.badge-cat i, .categories i, .listing-head h1 i {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 2px;
  background: var(--c);
  flex: none;
}
.badge-cat:hover { color: var(--ink); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}
.tag:hover { color: var(--ink); text-decoration: none; }
.tag-expired { background: #fbe2e1; color: #c8322d; }
@media (prefers-color-scheme: dark) { .tag-expired { background: #3a1716; color: #ff8a85; } }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1rem;
  flex: none;
}

/* ---------- topic table (the Discourse list, refined) ---------- */

.topics { width: 100%; border-collapse: collapse; }
.topics th {
  padding: 0 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.topics td {
  padding: 0.9rem 0.75rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.topics .title {
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}
.topics .title:hover { color: var(--link); text-decoration: none; }
.topics .meta { margin-top: 0.35rem; }
.topics .num, .topics .date {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.topics td.num, .topics td.date { padding-top: 0.95rem; }
.topics .date { padding-right: 0; padding-left: 0.75rem; }

/* ---------- home ---------- */

.home-section { margin-bottom: 4rem; }
#all .section-head { border-bottom: 0; margin-bottom: 0.5rem; padding-bottom: 0; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 2rem 1.75rem;
}
.card { display: block; color: var(--ink); }
.card:hover { color: var(--ink); text-decoration: none; }
.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 0.85rem;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.card:hover .card-media img { transform: scale(1.025); }
.card-title {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.card:hover .card-title { color: var(--link); }
.card-meta { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.875rem; }

.home-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 0 4rem;
}
.home-split .section-title {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ink);
}

.most-read {
  list-style: none;
  counter-reset: rank;
  margin: 0;
  padding: 0;
}
.most-read li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.most-read li::before {
  content: counter(rank);
  grid-row: span 2;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--pink);
}
.most-read a { color: var(--ink); font-weight: 500; line-height: 1.4; }
.most-read a:hover { color: var(--link); text-decoration: none; }
.most-read span { color: var(--muted); font-size: 0.8125rem; margin-top: 0.15rem; }

.categories { list-style: none; margin: 0; padding: 0; }
.categories li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.categories a { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.categories a:hover { text-decoration: none; }
.categories a:hover b { color: var(--link); }
.categories b { font-weight: 600; }
.categories span { margin-left: auto; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.categories p { margin: 0.2rem 0 0 1.3rem; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* ---------- listings ---------- */

.listing-head { max-width: var(--measure); margin-bottom: 2rem; }
.listing-head h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.listing-head h1 i { width: 0.45em; height: 0.45em; }
.listing-head p { margin: 0 0 0.5rem; color: var(--muted); font-size: 1.0625rem; }
.listing-head .count { font-size: 0.875rem; }
.missing { min-height: 40vh; }

/* ---------- topic page ---------- */

.topic-layout { display: grid; grid-template-columns: minmax(0, var(--measure)); }
.topic-layout.has-toc { gap: 4.5rem; }
@media (min-width: 1080px) {
  .topic-layout.has-toc { grid-template-columns: minmax(0, var(--measure)) 15rem; }
}

.topic-head h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.byline b { display: block; font-weight: 600; line-height: 1.3; }
.byline span { display: block; color: var(--muted); font-size: 0.875rem; }

.rail { display: none; }
@media (min-width: 1080px) {
  .rail { display: block; }
  .toc {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }

.replies { margin-top: 3.5rem; }
.replies .section-title { padding-bottom: 0.85rem; border-bottom: 1px solid var(--ink); }

.post {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.post:target { background: linear-gradient(90deg, var(--link-tint), transparent 85%); }
.post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  min-height: 2.5rem;
  margin-bottom: 0.15rem;
  font-size: 0.9375rem;
}
.post-head b { font-weight: 600; }
.op-flag {
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  background: var(--link-tint);
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 500;
}
.in-reply { color: var(--muted); font-size: 0.8125rem; }
.spacer { flex: 1; }
.likes { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--pink); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.permalink { color: var(--muted); font-size: 0.8125rem; }

.related { margin-top: 4rem; }
.related .section-title { margin-bottom: 0.25rem; }

/* ---------- post body (Discourse "cooked" HTML) ---------- */

.cooked {
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  color: var(--ink-2);
}
.cooked > :first-child { margin-top: 0; }
.cooked > :last-child { margin-bottom: 0; }
.cooked p, .cooked ul, .cooked ol, .cooked pre, .cooked details { margin: 0 0 1.15em; }
.cooked ul, .cooked ol { padding-left: 1.4em; }
.cooked li { margin-bottom: 0.35em; }
.cooked strong, .cooked b { color: var(--ink); font-weight: 600; }
.cooked h1, .cooked h2, .cooked h3, .cooked h4 {
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 2em 0 0.6em;
  scroll-margin-top: 1.5rem;
}
.cooked h1 { font-size: 1.6rem; font-weight: 700; }
.cooked h2 { font-size: 1.6rem; font-weight: 700; }
.cooked h3 { font-size: 1.25rem; font-weight: 600; }
.cooked h4 { font-size: 1.05rem; font-weight: 600; }
.cooked big, .cooked [data-theme-lede] {
  font-size: 1.3em;
  line-height: 1.5;
  color: var(--ink);
}
.cooked small { font-size: 0.85em; color: var(--muted); }
.cooked hr {
  width: 60px;
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--line-strong);
}
.cooked img { max-width: 100%; height: auto; border-radius: 4px; }
.cooked img.emoji { width: 1.15em; height: 1.15em; vertical-align: -0.2em; border-radius: 0; }
.cooked a:has(> img:only-child):hover { text-decoration: none; }
.cooked code, .cooked pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.875em; }
.cooked pre { background: var(--surface); padding: 0.85rem 1rem; border-radius: 6px; overflow-x: auto; }
.cooked summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.cooked [data-theme-toc] { display: none; }

.cooked blockquote {
  margin: 0 0 1.15em;
  padding: 0.1em 0 0.1em 1.1rem;
  border-left: 1px solid var(--muted);
  color: var(--muted);
}
.cooked blockquote > :last-child { margin-bottom: 0; }

.cooked .md-table { overflow-x: auto; margin: 0 0 1.25em; }
.cooked table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.cooked th, .cooked td { text-align: left; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cooked th { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

.cooked .lightbox-wrapper { display: block; margin: 0 0 1.25em; }
.cooked .lightbox { display: inline-block; }

.mention { color: var(--ink); font-weight: 500; }
.cooked .hashtag, .cooked .badge-category__wrapper { font-weight: 500; }
.cooked .badge-category::before { content: "#"; }

/* quotes from earlier posts */
.cooked aside.quote { margin: 0 0 1.15em; }
.cooked aside.quote .title {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* the product box: the signature component, carried over from the original theme */
.cooked [data-theme-product-box] {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.cooked [data-theme-product-box] > p { margin: 0; }
.cooked [data-theme-product-box] > p a { display: block; }
.cooked [data-theme-product-box] > p img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.cooked [data-theme-product-box-details] h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.cooked [data-theme-product-box-details] h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.cooked [data-theme-product-box-links] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.cooked [data-theme-product-box-links] a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 150ms ease;
}
.cooked [data-theme-product-box-links] a:hover {
  background: var(--button-hover);
  color: var(--button-ink);
  text-decoration: none;
}
@media (max-width: 600px) {
  .cooked [data-theme-product-box] {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .cooked [data-theme-product-box] > p { max-width: 9rem; }
}

/* link previews */
.cooked aside.onebox {
  margin: 0 0 1.25em;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow: hidden;
}
.cooked aside.onebox header.source {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.cooked aside.onebox header.source a { color: var(--muted); }
.cooked aside.onebox .site-icon { width: 16px; height: 16px; border-radius: 3px; }
.cooked aside.onebox h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.cooked aside.onebox p { margin: 0 0 0.5rem; color: var(--muted); }
.cooked aside.onebox .aspect-image {
  float: right;
  width: 8.5rem;
  margin: 0 0 0.5rem 1.25rem;
}
.cooked aside.onebox img.thumbnail { display: block; width: 100%; height: auto; max-height: 8.5rem; object-fit: cover; }
.cooked aside.onebox img.onebox-avatar { float: right; width: 5rem; height: 5rem; margin: 0 0 0.5rem 1rem; }
.cooked aside.onebox .onebox-metadata:empty, .cooked aside.onebox [style="clear: both"] { display: none; }
.cooked .onebox-body > :last-child { margin-bottom: 0; }
.cooked .onebox-body::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .cooked aside.onebox .aspect-image { float: none; width: 100%; margin: 0 0 0.75rem; }
  .cooked aside.onebox img.thumbnail { max-height: 12rem; }
}

/* videos: keep the poster, link out to YouTube */
.cooked .youtube-onebox { margin: 0 0 1.25em; }
.cooked .video-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.cooked .video-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.cooked .video-thumbnail::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.5rem;
  height: 3.5rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.75);
}
.cooked .video-thumbnail::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  translate: -35% -50%;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #fff;
}

/* in-page image viewer for archived photos */
.cooked .lightbox { cursor: zoom-in; }
dialog.viewer {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.9);
  display: none;
  place-items: center;
}
dialog.viewer[open] { display: grid; }
dialog.viewer::backdrop { background: transparent; }
dialog.viewer img {
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-out;
}
.viewer-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.viewer-close:hover { background: rgb(255 255 255 / 0.22); }
@media (prefers-reduced-motion: no-preference) {
  dialog.viewer[open] img { animation: viewer-in 220ms cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes viewer-in { from { opacity: 0; scale: 0.97; } }

/* the one poll */
.cooked .poll ul { list-style: none; padding: 0; }
.cooked .poll li { padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.45rem; }
.cooked .poll-info { display: none; }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .site-nav a:not(:last-child) { display: none; }
  .site-subhead { margin-bottom: 2rem; }
  .topics thead { display: none; }
  .topics td.num { display: none; }
  .topics tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
  .topics td { border-bottom: 0; }
  .topics td.date { padding-left: 0.75rem; }
}

@media print {
  body { border-top: 0; }
  .site-header nav, .site-subhead, .rail, .related, .site-footer { display: none; }
  .topic-layout { display: block; }
}
