/* Paramount Works — single stylesheet. No external resources, no web fonts. */

:root {
  --paper:      #faf7f1;
  --panel:      #fffdf8;
  --tint:       #f1ece1;
  --ink:        #1d1a16;
  --muted:      #554d42;
  --line:       #d8cfbe;
  --line-firm:  #b9ae99;
  --accent:     #0d5750;
  --accent-ink: #0a423d;
  --flag:       #8f4318;
  --radius:     2px;
  --measure:    68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  margin: 2.2rem 0 0.7rem;
}

h1 { font-size: 2.05rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.17rem; }
h4 { font-size: 1.02rem; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1rem; }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--flag); }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--flag);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 50;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line-firm);
}

.hdr { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }

.brand {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.16rem; font-weight: 600; color: var(--ink);
  text-decoration: none; line-height: 1.2; margin-right: auto;
  display: flex; align-items: baseline; gap: 9px;
}
.brand span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

.menu-btn {
  display: none;
  font: inherit; font-size: 0.9rem;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-firm); border-radius: var(--radius);
  padding: 7px 13px; cursor: pointer;
}

.nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.nav li { max-width: none; }
.nav a {
  display: inline-block; padding: 4px 0;
  font-size: 0.925rem; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--flag); border-bottom-color: var(--flag); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- layout ---------- */

main { display: block; padding: 34px 0 10px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }

@media (min-width: 62rem) {
  .layout { grid-template-columns: minmax(0, 1fr) 274px; gap: 46px; align-items: start; }
  .side { position: sticky; top: 74px; }
}

.content > *:first-child { margin-top: 0; }

.side > * { margin-bottom: 20px; }
.side h2, .side h3 {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  border: 0; padding: 0; margin: 0 0 9px; color: var(--muted);
}
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin-bottom: 7px; font-size: 0.92rem; line-height: 1.45; }
.side .box { background: var(--panel); border: 1px solid var(--line); padding: 16px 17px; border-radius: var(--radius); }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--flag); font-weight: 700; margin-bottom: 10px;
}

.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ---------- hero: contents-first ---------- */

.hero { padding: 40px 0 6px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; }

.toc-card {
  margin-top: 26px; background: var(--panel);
  border: 1px solid var(--line-firm); border-left: 4px solid var(--accent);
  padding: 20px 22px; border-radius: var(--radius);
}
.toc-card h2 {
  border: 0; padding: 0; margin: 0 0 12px; font-size: 0.74rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.toc-card ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 34px; }
.toc-card li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 40rem) { .toc-card ol { columns: 1; } }

/* ---------- disclosure ---------- */

.disclosure {
  background: #f6efe2;
  border: 1px solid var(--line-firm);
  border-left: 4px solid var(--flag);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 28px 0;
}
.disclosure h2 {
  border: 0; padding: 0; margin: 0 0 8px; font-size: 1.02rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.disclosure p { margin-bottom: 0.6rem; }
.disclosure p:last-child { margin-bottom: 0; }

.ad-note {
  font-size: 0.95rem; color: var(--muted);
  border-left: 3px solid var(--line-firm);
  padding-left: 13px; margin: 10px 0 0; max-width: 62ch;
}

/* ---------- affiliate link ---------- */

.visit {
  display: inline-block;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent-ink); border-radius: var(--radius);
  padding: 12px 22px; text-decoration: underline; font-weight: 600;
}
.visit:hover { background: var(--accent-ink); color: #fff; }

/* ---------- panels ---------- */

.callout, .method, .watch, .example, .quick {
  border: 1px solid var(--line); background: var(--panel);
  padding: 18px 21px; margin: 24px 0; border-radius: var(--radius);
}
.callout { border-left: 4px solid var(--accent); }
.watch   { border-left: 4px solid var(--flag); background: #f7f1e6; }
.example { background: var(--tint); border-left: 4px solid var(--line-firm); }
.method  { border-style: dashed; }
.quick   { border-top: 3px solid var(--ink); }

.callout h3, .watch h3, .example h3, .method h3, .quick h3 { margin-top: 0; font-size: 1.04rem; }
.box-h { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight: 600; font-size: 1.04rem; margin: 0 0 0.7rem; }
.callout > *:last-child, .watch > *:last-child, .example > *:last-child,
.method > *:last-child, .quick > *:last-child { margin-bottom: 0; }

.example .label, .method .label {
  display: block; font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 7px;
}

/* ---------- definition lists (glossary) ---------- */

.terms { margin: 22px 0; }
.terms dt {
  font-weight: 700; font-size: 1.04rem; margin-top: 20px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  max-width: var(--measure);
}
.terms dd { margin: 9px 0 0; max-width: var(--measure); }
.terms dd + dd { margin-top: 7px; }

.strip {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin: 24px 0; border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 46rem) { .strip { grid-template-columns: 1fr 1fr; } }
.strip div { background: var(--panel); padding: 15px 17px; }
.strip dt, .strip h3 { font-weight: 700; margin: 0 0 5px; font-size: 1rem; }
.strip p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line-firm); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--panel); }
caption {
  text-align: left; padding: 13px 15px; font-size: 0.9rem; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--tint);
}
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
thead th { background: var(--tint); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- lists ---------- */

.checklist { list-style: none; padding-left: 0; margin: 20px 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 11px;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 13px; height: 13px; border: 2px solid var(--accent); border-radius: var(--radius);
}

.steps { padding-left: 1.3em; margin: 20px 0; }
.steps li { margin-bottom: 12px; }

.plain { padding-left: 1.25em; }
.plain li { margin-bottom: 8px; }

.cards { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 46rem) { .cards { grid-template-columns: 1fr 1fr; } }
.cards article {
  border: 1px solid var(--line); background: var(--panel);
  padding: 17px 19px; border-radius: var(--radius);
}
.cards h3 { margin: 0 0 7px; font-size: 1.05rem; }
.cards p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- accordion ---------- */

.faq { margin: 24px 0; border-top: 1px solid var(--line-firm); }
.faq-item { border-bottom: 1px solid var(--line-firm); }
.faq-q {
  display: block; width: 100%; text-align: left;
  font: inherit; font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.06rem; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  padding: 15px 34px 15px 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent); font-family: inherit;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 0 16px; }
.faq-a > *:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------- misc ---------- */

.meta { font-size: 0.9rem; color: var(--muted); }
.jump { font-size: 0.92rem; margin: 18px 0 26px; }
.jump a { margin-right: 14px; display: inline-block; }

.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 30px; padding: 0; list-style: none; }
.az li { margin: 0; }
.az a {
  display: inline-block; min-width: 2.1em; text-align: center;
  border: 1px solid var(--line-firm); background: var(--panel);
  padding: 5px 8px; text-decoration: none; font-size: 0.9rem; border-radius: var(--radius);
}
.az a:hover { background: var(--tint); }

figure.svg-fig { margin: 26px 0; }
figure.svg-fig svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 9px; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 54px; border-top: 3px solid var(--ink);
  background: var(--tint); padding: 34px 0 40px; font-size: 0.93rem;
}
.site-footer p { margin: 0 0 4px; max-width: 70ch; }
.pub-name { font-family: Georgia, "Iowan Old Style", serif; font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 5px; }
.foot-h {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 9px;
}
.tm { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-firm); color: var(--muted); font-size: 0.89rem; }
.reviewed { color: var(--muted); font-size: 0.89rem; }

/* ---------- mobile ---------- */

@media (max-width: 52rem) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.32rem; }
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; padding-bottom: 10px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 11px 2px; }
  .hero { padding-top: 26px; }
}
