/* Shared by the /compare pages (compare-tomo.html, compare-ai-you-can-text.html).
   Palette, type and cards follow about.html and faq.html, so the footer set
   reads as one site. Dark mode uses plain ink for the accent: no orange in
   dark (James 2026-09-22). */
:root {
    --bg: #fcf9f4; --bg-2: #f6efe5; --surface: #ffffff;
    --ink: #1a1410; --ink-soft: #4a3f37; --ink-muted: #7a6e63;
    --rust: #c1724e; --rust-deep: #924a28;
    --border: rgba(146, 74, 40, 0.18); --rule: rgba(146, 74, 40, 0.11);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: 'Epilogue', system-ui, sans-serif; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--rust-deep); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 72px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; display: block; }
.brand-dark { display: none; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.back { font-size: 14px; font-weight: 600; color: var(--ink-muted); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600; font-size: clamp(30px, 8vw, 40px); line-height: 1.12;
    letter-spacing: -0.015em; margin: 26px 0 0; text-wrap: balance;
}
h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600; font-size: 1.4rem; line-height: 1.25; margin: 38px 0 12px; text-wrap: balance;
}
.lead { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; margin: 14px 0 0; max-width: 60ch; }
.checked { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
p a, li a { font-weight: 600; }

.table-wrap { overflow-x: auto; margin-top: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); }
tbody th { font-weight: 600; color: var(--ink); min-width: 120px; width: 22%; }
td { color: var(--ink-soft); min-width: 190px; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.card h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.12rem; margin: 0 0 8px; }
.card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

.note { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; }
.sources { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.sources a { color: var(--ink-muted); text-decoration: underline; font-weight: 500; }

.cta { display: flex; align-items: center; justify-content: center; margin-top: 30px; padding: 15px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; }
.foot { margin-top: 30px; font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.foot a { color: var(--ink-muted); text-decoration: underline; font-weight: 400; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #14110e; --bg-2: #1b1713; --surface: #1e1a16;
        --ink: #f4efe8; --ink-soft: #c8bdb1; --ink-muted: #948779;
        --rust: #f4f4f5; --rust-deep: #f4f4f5;
        --border: rgba(244, 239, 232, 0.14); --rule: rgba(244, 239, 232, 0.09);
    }
    :root:not([data-theme="light"]) .brand-light { display: none; }
    :root:not([data-theme="light"]) .brand-dark { display: block; }
    :root:not([data-theme="light"]) p a, :root:not([data-theme="light"]) li a { text-decoration: underline; }
}
:root[data-theme="dark"] {
    --bg: #14110e; --bg-2: #1b1713; --surface: #1e1a16;
    --ink: #f4efe8; --ink-soft: #c8bdb1; --ink-muted: #948779;
    --rust: #f4f4f5; --rust-deep: #f4f4f5;
    --border: rgba(244, 239, 232, 0.14); --rule: rgba(244, 239, 232, 0.09);
}
/* The dark logo vanishes on a dark page; swap in the white one. */
:root[data-theme="dark"] .brand-light { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; }
:root[data-theme="dark"] p a, :root[data-theme="dark"] li a { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* compare-ai-you-can-text.html: one card per product, each ending in its source. */
.stack { display: flex; flex-direction: column; gap: 12px; }
.card .ours { margin-left: 8px; font-family: 'Epilogue', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); }
.card .src-line { margin-top: 10px; font-size: 12.5px; color: var(--ink-muted); }
.card .src-line a { color: var(--ink-muted); text-decoration: underline; font-weight: 500; }
