/* theme_08 — Minimalist Magazine Calculator */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --ink: #0f172a;
  --accent: #6d28d9;
  --muted: #475569;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, .kicker, .standfirst, .receipt { font-family: Charter, "Bitstream Charter", Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 0 0 .8em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
p { margin: 0 0 1em; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--surface);
}
.masthead-inner { max-width: 880px; margin: 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-family: inherit; }
.standfirst { font-size: 1.15rem; color: var(--muted); max-width: 46em; margin: 0; }
.disclosure-strip {
  max-width: 880px; margin: 1.5rem auto 0;
  font-size: .82rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 6px;
  padding: .6em .9em; background: var(--bg);
}
.disclosure-strip a { color: var(--accent); }

main { max-width: 880px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-bottom: 1rem; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .9rem; }
input, select {
  display: block; width: 100%; margin-top: .3em;
  font: inherit; font-size: .95rem; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: .55em .7em;
}
input:focus, select:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.note { font-size: .85rem; color: var(--muted); }

svg#spectrum { display: block; width: 100%; height: auto; margin: 1rem 0; }

table.data { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: .5em .6em; border-bottom: 1px solid var(--line); }
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.data td:first-child { color: var(--muted); }
table.data tr:last-child td { border-bottom: none; }
table.matrix td:nth-child(3) { font-family: ui-monospace, monospace; }
table.matrix .ok { color: #047857; font-weight: 600; }
table.matrix .warn { color: #b45309; font-weight: 600; }
table.matrix .fail { color: #b91c1c; font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
button {
  font: inherit; font-size: .9rem; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px; padding: .6em 1.1em; cursor: pointer;
}
button:hover { background: #5b21b6; }
button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
button.secondary:hover { background: var(--surface); }

pre.receipt {
  background: #0f172a; color: #e2e8f0;
  border-radius: 8px; padding: 1rem;
  font-size: .78rem; overflow-x: auto; max-height: 320px;
  white-space: pre-wrap; word-break: break-all;
}

#catalogue-list { columns: 2; column-gap: 2rem; }
#catalogue-list li { break-inside: avoid; margin-bottom: .5em; }
#catalogue-list strong { display: block; }
#catalogue-list span { color: var(--muted); font-size: .9rem; }

.faq details { border-bottom: 1px solid var(--line); padding: .7em 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { color: var(--muted); margin: .6em 0 .2em; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 3rem;
  text-align: center; color: var(--muted); font-size: .85rem;
}
.colophon nav { margin-bottom: 1em; }
.colophon nav a { margin: 0 .8em; }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  #catalogue-list { columns: 1; }
  .masthead { padding: 2.5rem 1rem 2rem; }
  main { padding: 1.5rem 1rem 3rem; }
}
