/* A Question a Day. Palette follows blog.puretome.com; system fonts only. */
:root {
  --bg: #0A0A0B;
  --bg-soft: #131316;
  --fg: #F5F4F0;
  --body: #E9E8E2;
  --accent: #D4FF4F;
  --muted: #9A9AA2;
  --border: #26262C;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
main, .top, footer { max-width: 42rem; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 20px; }
.brand { font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; color: var(--fg); margin: 0; }
h1, h2, h3 { font-family: var(--sans); color: var(--fg); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 1.2rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.3rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lede { font-size: 1.3rem; color: var(--fg); }
section { margin: 0 0 2.5rem; }
.what { border-left: 3px solid var(--accent); padding-left: 1rem; }
.feed {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem 1.2rem 1rem;
}
.note { color: var(--fg); font-style: italic; }
.when { font-family: var(--sans); font-size: 1rem; color: var(--fg); }
.small { font-size: 0.95rem; color: var(--muted); }
.credit { font-size: 0.85rem; overflow-wrap: anywhere; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0 0.4rem; }
.buttons[hidden] { display: none; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0A0A0B;
  text-decoration: none;
  cursor: pointer;
}
.btn-quiet { background: transparent; color: var(--accent); }
.copied { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); min-height: 1em; overflow-wrap: anywhere; margin: 0.2rem 0 0.6rem; }
.download { font-family: var(--sans); font-size: 0.95rem; margin: 0.4rem 0 0.8rem; }
.download label { display: block; color: var(--muted); margin-bottom: 0.3rem; }
.download .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.download input {
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  max-width: 100%;
}
.how h3:first-of-type { margin-top: 0.6rem; }
.ask { border-top: 1px solid var(--border); padding-top: 1.5rem; color: var(--muted); }
footer { color: var(--muted); font-family: var(--sans); font-size: 0.85rem; padding-bottom: 2.5rem; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .buttons, .download, .copied, .top, footer { display: none !important; }
  .feed { border: 1px solid #999; background: #fff; break-inside: avoid; }
  h1, h2, h3, .when, .note, .lede { color: #000; }
  a { color: #000; }
}
