/* Shared styles for the sample pages and the privacy page.
   Same tokens, fonts and header as index.html. */
:root {
  --paper: #F2F3F0;
  --ink: #1D2B33;
  --ink-2: #3A484E;
  --muted: #5A676C;
  --rule: #D3D8D6;
  --accent: #1F5A66;
  --on-accent: #F2F3F0;
  --band: #E7EAE6;
  --sheet: #FAFBF9;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --measure: 36rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14191C;
    --ink: #E6E9E5;
    --ink-2: #C3CAC8;
    --muted: #9AA5A8;
    --rule: #2E383C;
    --accent: #7FBAC4;
    --on-accent: #14191C;
    --band: #1B2226;
    --sheet: #182024;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); line-height: 1.25; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--ink); }
h1 em, h2 em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--accent); color: var(--on-accent); padding: 0.5rem 0.9rem; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

.label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }

/* Header (matches index.html) */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.brand { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.credential { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav .dot { color: var(--muted); }
@media (max-width: 480px) { .site-header .wrap { flex-direction: column; align-items: flex-start; } }

main { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.back { display: inline-block; font-size: 0.95rem; margin-bottom: 1.5rem; }
.intro { color: var(--ink-2); max-width: var(--measure); margin-top: 1rem; }

/* "This is fictional" / "draft" notice */
.notice { background: var(--band); border-left: 2px solid var(--accent); padding: 1rem 1.25rem; margin: 1.75rem 0 2.5rem; color: var(--ink); max-width: 46rem; }
.notice p { margin: 0; }

/* Sample: weekly tracker */
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.tracker { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.tracker th { text-align: left; font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 1rem 0.75rem 0; border-bottom: 1px solid var(--ink); }
.tracker td { vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.tracker td:first-child { color: var(--ink); font-weight: 600; width: 30%; }
.tracker td:nth-child(2) { width: 14%; }
.tracker td:nth-child(3) { width: 16%; }
.status { display: inline-block; font-size: 0.875rem; line-height: 1.4; padding: 0.15rem 0.5rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-2); white-space: nowrap; }
.status.done { border-color: var(--accent); color: var(--accent); }
.status.waiting, .status.due { border-color: var(--muted); }
@media (max-width: 720px) {
  .tracker thead { position: absolute; left: -9999px; }
  .tracker, .tracker tbody, .tracker tr, .tracker td { display: block; width: 100% !important; }
  .tracker tr { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
  .tracker td { border: 0; padding: 0.2rem 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
  .tracker td::before { content: attr(data-label); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding-top: 0.2rem; }
  .status { white-space: normal; justify-self: start; }
}
.after-table { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 3rem; }
.after-table ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.after-table li { margin-bottom: 0.4rem; }
@media (max-width: 720px) { .after-table { grid-template-columns: 1fr; } }

/* Sample: vendor brief, laid out as two "pages" */
.sheet { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); margin-bottom: 1.5rem; position: relative; }
.sheet h2 { margin: 2rem 0 0.75rem; }
.sheet h2:first-child { margin-top: 0; }
.sheet p, .sheet li { color: var(--ink-2); }
.sheet ul { padding-left: 1.1rem; margin: 0 0 1em; }
.page-no { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.5rem 0 1rem; }
.compare caption { text-align: left; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.75rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.compare thead th { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare .pick { color: var(--accent); }
@media (max-width: 640px) {
  .compare caption { display: block; }
  .compare thead { position: absolute; left: -9999px; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: 0.15rem 0; }
  .compare tbody th { margin-bottom: 0.25rem; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
.recommend { border-left: 2px solid var(--accent); padding-left: 1.25rem; margin-top: 1rem; }
.recommend p { color: var(--ink); }

/* Privacy page */
.prose { max-width: var(--measure); }
.prose h2 { margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.1rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }
.updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* Footer (matches index.html) */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.site-footer p { margin: 0; }

@media print {
  .site-header, .site-footer, .skip, .back { display: none; }
  body { background: #fff; }
  .sheet { border: 0; padding: 0; break-after: page; }
}
