:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #5c5c5c;
  --ink-3: #8a8a8a;
  --rule: #d9d9d9;
  --edge: #a9a9a9;
  --ground: #f0f0f0;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111111; --ink: #f2f2f2; --ink-2: #a3a3a3; --ink-3: #7a7a7a; --rule: #2c2c2c; --edge: #555555; --ground: #1d1d1d;
  }
}
:root[data-theme="dark"] {
  --paper: #111111; --ink: #f2f2f2; --ink-2: #a3a3a3; --ink-3: #7a7a7a; --rule: #2c2c2c; --edge: #555555; --ground: #1d1d1d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:is(a, button, input):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg { display: block; }

/* ================= the pot: the original drawing ================= */
.pot { position: relative; }
.pot > img { display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pot > img, :root:not([data-theme="light"]) .mark-pot { filter: invert(1); }
}
:root[data-theme="dark"] .pot > img, :root[data-theme="dark"] .mark-pot { filter: invert(1); }

/* ================= screen 1 ================= */
/* Sizes are the original mockup's, measured at its native 1536 × 1024. */
#ask { position: relative; min-height: 100vh; }
.top { position: absolute; top: 27px; left: 37px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 13px/1 var(--sans); letter-spacing: .04em; }
.mark-pot { display: block; width: 30px; height: auto; }
.hero { min-height: 100vh; width: 100%; display: grid; grid-template-columns: minmax(0, 100%); place-content: center; justify-items: center; text-align: center; padding: 0 24px 12vh; }  /* the box sits just above the middle of the screen */
.hero .pot { width: 57px; margin-bottom: 28px; }   /* 65 % of the drawing */
.say { margin: 0 0 36px; font-size: 18px; line-height: 1.4; }
.box { width: min(444px, 100%); margin: 0 0 46px; }
.box input {
  width: 100%; height: 49px; padding: 0 17px;
  color: var(--ink); background: transparent;
  border: 1px solid var(--edge); border-radius: 7px;
  font: 400 17px/1 var(--sans);
}
.box input::placeholder { color: var(--ink-3); }
.box input:read-only { color: var(--ink-2); cursor: default; }
.brew {
  height: 40px; min-width: 80px; padding: 0 18px; margin: 0;
  border: 1.5px solid var(--ink-2); border-radius: 7px; color: var(--ink-2);
  font: 500 17px/1 var(--sans);
  transition: background 300ms, color 300ms;
}
.brew:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }  /* grey at rest and on hover… */
.brew.in { background: var(--ink); border-color: var(--ink); color: var(--paper); cursor: default; min-width: 122px; text-align: left; }  /* room for "Brewing..." so the button does not twitch */
.tag { margin: 0; font-size: 14px; line-height: 1.55; }
/* Error line under the tagline; "Brewing…" itself shows inside the box. */
.note { margin: 18px 0 0; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.note:empty { display: none; }

/* ================= screen 2 ================= */
#results { display: none; font: 400 16px/1.5 var(--body); }
#results.on { display: block; }
.col { width: 50%; margin: 0 auto; padding: 72px 0 96px; }
.asked { margin: 0 0 6px; font: italic 20px/1.3 var(--display); color: var(--ink-2); }
.asked b { font-weight: 400; color: var(--ink); }
.count-top { margin: 0 0 28px; font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.count-top:empty { display: none; }

.card { display: grid; grid-template-columns: 160px 1fr; gap: 36px; padding: 48px 0; border-top: 1px solid var(--rule); align-items: start; }
.card.is-arriving { animation: arrive .5s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card > .figure { position: static; }
.photo { background: var(--ground); width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.photo svg { width: 100%; height: 100%; }
.photo .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.photo .fill { fill: var(--ink); }
.gone { margin: 10px 0 0; font: italic 15px/1.4 var(--display); color: var(--ink-2); }

.info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.info .meet { margin: 0 0 6px; font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.info h2 { margin: 0; font: 400 clamp(34px, 3.2vw, 46px)/1.02 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.links { margin: 10px 0 0; font-size: 17px; line-height: 1.7; color: var(--ink); }
.links:empty { display: none; }
.links a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.links a:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.info .date { display: flex; flex-direction: column; gap: 2px; margin: 16px 0 0; }
.info .date .title { font: italic 17px/1.4 var(--display); color: var(--ink); }
.info .date .when { font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.quotes { display: flex; flex-direction: column; gap: 16px; margin: 6px 0 0; padding: 0; }
/* The quote is the page. 34px at desktop; change the middle value to resize. */
.quotes blockquote { margin: 0; font: italic 34px/1.3 var(--display); letter-spacing: -.005em; }
.info .read { align-self: flex-start; font: 500 16px/1.3 var(--body); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.info .read:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px 0 0; border-top: 1px solid var(--rule); font: 400 15px/1 var(--body); }
.pager[hidden] { display: none; }
.pager button { padding: 6px 0; border-bottom: 1px solid transparent; }
.pager button:hover { border-bottom-color: var(--ink); }
.pager button:disabled { cursor: wait; color: var(--ink-3); }
.pager #next { justify-self: end; }
.pager .count { margin: 0; color: var(--ink-2); }

.empty { margin: 48px 0; font: italic 20px/1.4 var(--display); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card.is-arriving { animation: none; }
}
@media (max-width: 960px) { .col { width: 84%; } }
@media (max-width: 560px) {
  .top { top: 20px; left: 20px; }
  .hero .pot { width: 72px; }
  .say, .tag, .note, .box input, .brew { font-size: 15px; }
  .hero { padding: 0 20px 10vh; }
  .say { margin-bottom: 28px; }
  .box { margin-bottom: 36px; }
  .col { width: 88%; padding-top: 56px; }
  .card { gap: 22px; padding: 36px 0; }
  .info h2 { font-size: 30px; }
  .links { font-size: 16px; }
  .pager { font-size: 14px; }
  .card { grid-template-columns: 1fr; }
  .card > .figure { position: static; width: 50%; }
  .quotes blockquote { font-size: 26px; }
}

/* ================= /log — what people ask ================= */
.log { width: min(1100px, 82%); margin: 0 auto; padding: 64px 0 96px; font: 400 15px/1.5 var(--sans); }
.log h1 { margin: 0 0 6px; font: 400 34px/1.1 var(--display); }
.log .sub { margin: 0 0 40px; color: var(--ink-2); }
.log h2 { margin: 40px 0 12px; font: 400 22px/1.2 var(--display); }
.log .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; margin: 0; }
.log .stats div { border-top: 1px solid var(--rule); padding-top: 10px; }
.log .stats dt { color: var(--ink-2); font-size: 14px; }
.log .stats dd { margin: 2px 0 0; font: 400 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.log table { width: 100%; border-collapse: collapse; font-size: 14px; }
.log th { text-align: left; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding: 0 10px 8px 0; }
.log td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.log td.n, .log th.n { text-align: right; padding-right: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .wrap { overflow-x: auto; }
@media (max-width: 960px) { .log { width: 84%; } }
.log td.n, .log th.n { padding-left: 22px; }

/* ================= /about ================= */
.about { width: 50%; margin: 0 auto; padding: 56px 0 96px; font: 400 16px/1.6 var(--body); color: var(--ink); }
.about h1 { margin: 0 0 10px; font: 400 34px/1.1 var(--display); }
.about .lede { margin: 0 0 48px; font: italic 22px/1.35 var(--display); color: var(--ink); }
.about h2 { margin: 44px 0 12px; font: 400 22px/1.2 var(--display); }
.about p { margin: 0 0 14px; }
.about ol, .about ul { margin: 0 0 14px; padding-left: 22px; }
.about li { margin: 0 0 8px; }
.about li b { font-weight: 500; }
.about .mono { font: 400 14px/1 var(--mono); color: var(--ink); }
.about .brews { list-style: none; padding: 0; }
.about .brews li { padding: 10px 0; border-top: 1px solid var(--rule); }
.about .brews li:last-child { border-bottom: 1px solid var(--rule); }
.about .brews a { font: italic 19px/1.3 var(--display); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.about .brews a:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.about .end { margin: 56px 0 12px; font: 400 17px/1.55 var(--sans); }
.about .try { display: inline-block; font: 500 16px/1.3 var(--body); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.about .try:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
@media (max-width: 960px) { .about { width: 84%; } }
@media (max-width: 560px) { .about { padding-top: 96px; } }

/* /about — comparison table */
.about .wrap { overflow-x: auto; margin: 0 0 14px; }
.about table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.about thead th { text-align: left; font: 400 19px/1.2 var(--display); border-bottom: 1px solid var(--ink); padding: 0 14px 10px 0; }
.about thead th:last-child { font-style: italic; }
.about tbody th { text-align: left; font-weight: 500; color: var(--ink); padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.about td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.about td:last-child, .about tbody th:last-child { padding-right: 0; }
@media (max-width: 560px) { .about table { font-size: 14px; min-width: 560px; } }

/* photos alternate: left, right, left… */
.card.side-right { grid-template-columns: 1fr 160px; }
.card.side-right > .figure { order: 2; }
.card.side-right > .info { order: 1; }
@media (max-width: 560px) {
  .card.side-right { grid-template-columns: 1fr; }
  .card.side-right > .figure { order: 0; }
}

/* ================= /about laid out as a brew ================= */
.brew-page { font: 400 16px/1.5 var(--body); }
.brew-page .col { padding-top: 120px; }
.brew-page .photo.pot-box { display: grid; place-items: center; }
.brew-page .photo .pot-img { width: 44%; height: auto; filter: none; }
.brew-page .read.none { color: var(--ink-3); border-bottom-color: transparent; }
.brew-page .words { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); font: 400 16px/1.6 var(--body); }
.brew-page .words h2 { margin: 44px 0 12px; font: 400 22px/1.2 var(--display); }
.brew-page .words h2:first-child { margin-top: 0; }
.brew-page .words p { margin: 0 0 14px; }
.brew-page .words ol, .brew-page .words ul { margin: 0 0 14px; padding-left: 22px; }
.brew-page .words li { margin: 0 0 8px; }
.brew-page .words .mono { font: 400 14px/1 var(--mono); color: var(--ink-2); }
.brew-page .words .brews { list-style: none; padding: 0; }
.brew-page .words .brews li { padding: 10px 0; border-top: 1px solid var(--rule); }
.brew-page .words .brews li:last-child { border-bottom: 1px solid var(--rule); }
.brew-page .words .brews a { font: italic 19px/1.3 var(--display); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.brew-page .words .brews a:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.brew-page .words .end { margin: 56px 0 12px; font: 400 17px/1.55 var(--sans); }
.brew-page .words .try { display: inline; font: 500 16px/1.3 var(--body); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.brew-page .words .try:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brew-page .pot-img { filter: invert(1); } }
:root[data-theme="dark"] .brew-page .pot-img { filter: invert(1); }
@media (max-width: 560px) { .brew-page .col { padding-top: 96px; } }
.log h3 { margin: 28px 0 10px; font: 500 15px/1.3 var(--sans); color: var(--ink-2); }
.log .hint { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; max-width: 70ch; }
.log .stats + .wrap, .log .stats + .hint { margin-top: 24px; }
.log .alerts { list-style: none; margin: 0 0 8px; padding: 0; }
.log .alerts li { padding: 10px 14px; margin: 0 0 8px; border: 1px solid var(--ink); border-radius: 7px; font-weight: 500; }
.log .alerts li.ok { border-color: var(--rule); color: var(--ink-2); font-weight: 400; }

/* ================= tabs: writers / videos ================= */
.tabs { display: flex; gap: 28px; margin: 4px 0 26px; font: 400 19px/1.3 var(--sans); }
.tabs[hidden] { display: none; }
.tab { color: var(--ink-2); padding: 0 0 4px; border-bottom: 1.5px solid var(--ink-2); }
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--ink); }
#results.videos #cards, #results.videos #countTop, #results.videos #pager { display: none; }
#results:not(.videos) #videos { display: none; }
.card.video .photo img { object-position: center; }  /* video stills sit in the same frame as a writer's photograph */
@media (max-width: 560px) { .card.video > .figure { width: 100%; } }

/* ================= About link, brew pages, the brewing list ================= */
.about-link { position: absolute; top: 34px; right: 37px; font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.about-link:hover { color: var(--ink-2); }
.page-col { padding-top: 120px; }
.page-title { margin: 0 0 28px; font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.pager.page-links { display: flex; gap: 28px; flex-wrap: wrap; }
.pager.page-links a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.pager.page-links a:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.brewing { padding: 24px 0 96px; }
.brewing .col { padding: 0; }
.brewing h2 { margin: 0 0 14px; font: 400 22px/1.2 var(--display); }
.brewing ul { list-style: none; margin: 0; padding: 0; }
.brewing li { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--rule); }
.brewing li:last-child { border-bottom: 1px solid var(--rule); }
.brewing a { font: italic 19px/1.3 var(--display); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.brewing a:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.brewing .who { font: 400 13px/1.5 var(--mono); color: var(--ink-2); align-self: center; }
#results.on + .brewing { padding-top: 0; }
@media (max-width: 560px) { .about-link { top: 27px; right: 20px; } .page-col { padding-top: 96px; } .brewing li { flex-direction: column; gap: 4px; } }
.end { margin: 40px 0 8px; font: italic 20px/1.4 var(--display); color: var(--ink-2); }
.end .again { font: inherit; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.end .again:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.page-note { margin: 28px 0 0; font: 400 13px/1.5 var(--mono); color: var(--ink-3); max-width: 60ch; }

/* Reading pages (About, /brew/…): the header is a white bar that stays at the top while you read. */
body.reading .top { position: sticky; top: 0; left: 0; width: 100%; margin: 0; padding: 27px 37px; background: var(--paper); z-index: 5; box-sizing: border-box; }
body.reading .top .about-link { top: 34px; right: 37px; }
body.reading .page-col { padding-top: 48px; }
@media (max-width: 560px) { body.reading .top { padding: 20px; } body.reading .top .about-link { top: 27px; right: 20px; } body.reading .about, body.reading .page-col { padding-top: 32px; } }
.say .caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: var(--ink); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .say .caret { display: none; } }
.actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 22px; }
.stop { font: 500 14px/1 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.stop:hover { color: var(--ink); }
.stop[hidden] { display: none; }

/* ================= ChatGPT vs Moka Pot ================= */
.compare-col { width: min(1180px, 86%); margin: 0 auto; padding: 48px 0 96px; }
.compare-head h1 { margin: 0 0 10px; font: 400 34px/1.15 var(--display); text-wrap: balance; }
.compare-head .asked { margin: 0 0 6px; }
.compare-head .asked a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.compare-head .intro { margin: 0 0 40px; max-width: 62ch; font: italic 19px/1.45 var(--display); color: var(--ink); }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; align-items: start; }
.compare h2.side { margin: 0 0 14px; font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.gpt { padding: 22px 24px; border: 1px solid var(--rule); border-radius: 7px; background: var(--ground); font: 400 16px/1.6 var(--body); color: var(--ink); }
.gpt p { margin: 0 0 12px; } .gpt ul { margin: 0 0 12px; padding-left: 20px; } .gpt li { margin: 0 0 6px; }
.gpt .meta { margin: 16px 0 0; font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.compare .card { grid-template-columns: 120px 1fr; gap: 22px; padding: 26px 0; }
.compare .card.side-right { grid-template-columns: 1fr 120px; }
.compare .card:first-child { border-top: 0; padding-top: 0; }
.compare .info h2 { font-size: 30px; }
.compare .quotes blockquote { font-size: 24px; }
.compare .pager { margin-top: 8px; }
.compare-list { padding-top: 0; }
@media (max-width: 960px) { .compare { grid-template-columns: 1fr; gap: 40px; } .compare .card, .compare .card.side-right { grid-template-columns: 1fr; } }
.compare-form label { display: block; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.compare-form input, .compare-form textarea, .compare-form select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 7px; background: transparent; color: var(--ink); font: 400 14px/1.5 var(--sans); }
.compare-form button { margin: 4px 0 10px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 7px; font: 500 14px/1 var(--sans); }
.compare-form button:hover { background: var(--ink); color: var(--paper); }
.what { margin: -8px 0 18px; font: italic 15px/1.4 var(--display); color: var(--ink-2); }
.others { margin: 22px 0 0; font: 400 17px/1.4 var(--display); font-style: italic; }
.others a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.others a:hover { color: var(--ink-2); border-bottom-color: var(--ink-2); }
.others[hidden] { display: none; }
@media (max-width: 560px) { .tabs { font-size: 17px; gap: 22px; } }
