/* simdadllc.com: the practice's own audit report.
   A printed report page with a left margin where the reviewer's marks live, in an editor's red.
   Plan and trace: commit message of "Restyle against the 2026-10-15 design brief". */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #FFFFFF;
  --ink:   #000000;
  --note:  #545454;
  --proof: #B3261E;
  --rule:  #D6D6D6;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", "Segoe UI", Arial, sans-serif;
  --margin: 12rem;
  --text:   40rem;
  --aside:  15rem;
  --gap:    3rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161616;
    --ink:   #EDEDED;
    --note:  #B4B4B4;
    --proof: #FF8A80;
    --rule:  #3A3A3A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
ol, ul { padding: 0; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--proof);
    text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--proof); outline-offset: 3px; }
em, i { font-style: italic; }
strong { font-weight: 650; }

/* ---------- the sheet and its three columns ---------- */
.sheet { max-width: calc(var(--margin) + var(--text) + var(--aside) + 2 * var(--gap) + 4rem);
         margin: 0 auto; padding: 0 2rem; }
.row {
  display: grid;
  grid-template-columns: var(--margin) minmax(0, var(--text)) var(--aside);
  column-gap: var(--gap);
  align-items: start;
}
.row > .m { grid-column: 1; }
.row > .t { grid-column: 2; }
.row > .a { grid-column: 3; }

/* margin notes: the reviewer's hand */
.m, .a, .docinfo, .label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--note);
}
.m .mark, .numeral {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--proof);
  font-variant-numeric: lining-nums tabular-nums;
}
.docinfo span, .stack span { display: block; }
.docinfo span:first-child { color: var(--ink); font-weight: 600; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--paper);
       border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: calc(var(--margin) + var(--text) + var(--aside) + 2 * var(--gap) + 4rem);
             margin: 0 auto; padding: 0.75rem 2rem; display: flex; align-items: center;
             justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; text-decoration: none;
             font-family: var(--sans); font-weight: 700; font-size: 1rem; }
.nav-wordmark { height: 32px; width: auto; display: block; }
.nav-links, .nav-back { font-family: var(--sans); font-size: 0.9375rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav-links a, .nav-back { text-decoration: none; color: var(--ink); padding: 0.25rem 0; }
.nav-links a:hover, .nav-back:hover { text-decoration: underline; text-decoration-color: var(--proof); }
.nav-links a.nav-cta { font-weight: 650; text-decoration: underline;
                       text-decoration-color: var(--proof); text-decoration-thickness: 2px; }

/* ---------- masthead ---------- */
.masthead { padding-top: 5rem; padding-bottom: 3rem; }
.masthead .docinfo { padding-top: 0.9rem; border-top: 2px solid var(--proof); }
h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.4vw, 5rem);
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.byline { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.9375rem;
          line-height: 1.5; color: var(--note); }
.byline span { display: block; }

/* ---------- running text ---------- */
.t > p + p, .t > p + ul, .t > ul + p { margin-top: 1.1rem; }
.lede { font-size: 1.375rem; line-height: 1.5; }
.sub { color: var(--note); }

/* the reviewer's bracket: a red mark in the gutter beside a passage */
.bracketed { position: relative; }
.bracketed::before {
  content: ""; position: absolute; top: 0.3em; bottom: 0.3em; left: -1.25rem; width: 0.5rem;
  border: 2px solid var(--proof); border-right: 0;
}
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.35;
  font-variation-settings: "opsz" 36;
}

/* ---------- sections ---------- */
.section { padding-top: 4.5rem; padding-bottom: 1rem; }
.section-head { margin-bottom: 2rem; }
.section-head .m { padding-top: 0.55rem; border-top: 2px solid var(--proof); }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  line-height: 1.12;
  letter-spacing: -0.008em;
}
h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 650; line-height: 1.25; }

.entries { list-style: none; }
.entries > li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.entries > li:last-child { border-bottom: 1px solid var(--rule); }
.entries h3 { margin-bottom: 0.5rem; }
.entry-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 650; color: var(--ink);
              line-height: 1.25; margin: 0.15rem 0 0.4rem; }
.entry-link { display: inline-block; margin-top: 0.75rem; font-family: var(--sans);
              font-size: 0.9375rem; font-weight: 600; }

/* asides */
.notes h3, .label, .notes .label {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; color: var(--ink);
  line-height: 1.4; margin-bottom: 0.35rem;
}
.notes > div + div { margin-top: 1.25rem; }
.notes p, .notes a, .notes span { display: block; font-family: var(--sans); font-size: 0.875rem;
  line-height: 1.55; color: var(--note); }
.notes a { color: var(--ink); width: fit-content; }

/* figures in the credentials paragraph */
.figures strong { font-weight: 700; font-variant-numeric: lining-nums; }
.foot { margin-top: 1.5rem; font-style: italic; }

/* sign-off */
.signoff { display: flex; gap: 1rem; align-items: center; padding: 3rem 0 1rem; }
.signoff img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* people */
.person + .person { margin-top: 3rem; }
.headshot { width: 120px; height: 120px; object-fit: cover; display: block; margin-bottom: 0.75rem;
            }
.role { font-family: var(--sans); font-size: 0.8125rem; color: var(--note); }
.person-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 650; color: var(--ink);
               line-height: 1.25; }
.partners { margin-top: 2rem; }
.partners > div + div { margin-top: 1rem; }
.partners .partner-name { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; }
.refs { list-style: none; }
.refs li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.75rem; padding: 0.65rem 0;
           border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.refs li:last-child { border-bottom: 1px solid var(--rule); }
.pub-year { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--note);
            font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.pub-venue { font-style: italic; }
.pubs-more { margin-top: 1rem; font-size: 1rem; }

/* contact */
.contact { padding-top: 5rem; padding-bottom: 4rem; }
.contact .m { padding-top: 0.55rem; border-top: 2px solid var(--proof); }
.contact .lines p { margin-top: 0.6rem; font-family: var(--sans); font-size: 1rem; }
.contact .lines strong { display: inline-block; min-width: 10rem; font-weight: 700; }

/* buttons (media kit, legal pages) */
.btn { display: inline-block; font-family: var(--sans); font-weight: 650; font-size: 0.9375rem;
       padding: 0.6rem 1.1rem; border: 1.5px solid var(--ink); color: var(--ink);
       text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- footer ---------- */
.footer { margin-top: 4rem; border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem;
          font-family: var(--sans); font-size: 0.875rem; color: var(--note); }
.footer .row { row-gap: 1rem; }
.footer-brand { color: var(--ink); font-weight: 700; }
.footer-sub { margin-top: 0.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--proof); }
.footer-copy { margin-top: 1rem; }

/* ---------- media kit ---------- */
.swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
            gap: 1.5rem 1.5rem; margin-top: 2rem; }
.swatch-color { height: 4.5rem; border: 1px solid var(--rule); margin-bottom: 0.6rem; }
.swatch-name { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; }
.swatch-hex { font-family: var(--sans); font-size: 0.875rem; color: var(--note);
              font-variant-numeric: tabular-nums; }
.swatch-use { font-size: 0.9375rem; line-height: 1.45; margin-top: 0.35rem; }
.specimens { margin-top: 2rem; }
.specimen { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.specimen:last-child { border-bottom: 1px solid var(--rule); }
.specimen .type-spec { font-family: var(--sans); font-size: 0.8125rem; color: var(--note);
                       margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.downloads { list-style: none; margin-top: 2rem; }
.downloads > li { padding: 1.5rem 0; border-top: 1px solid var(--rule); display: grid;
                  grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: center; }
.downloads > li:last-child { border-bottom: 1px solid var(--rule); }
.dl-preview { padding: 1rem; border: 1px solid var(--rule); display: flex; align-items: center;
              justify-content: center; min-height: 5rem; background: #FFFFFF; }
.dl-preview.dark-bg { background: #1E3A4A; }
.dl-preview img { max-height: 3rem; width: auto; }
.dl-files a { display: inline-block; margin: 0.25rem 1.25rem 0.25rem 0; font-family: var(--sans);
              font-size: 0.9375rem; }
.rules { list-style: none; margin-top: 2rem; }
.rules li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 0.9rem 0;
            border-top: 1px solid var(--rule); }
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rule-do, .rule-dont { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; }
.rule-dont { color: var(--proof); }
.meta-lines { margin-top: 0.75rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.55;
              color: var(--note); }
.meta-lines strong { color: var(--ink); }
.boiler p + p { margin-top: 1.1rem; }

/* ---------- legal pages ---------- */
.legal-body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; font-variation-settings: "opsz" 32; }
.legal-body p + p { margin-top: 1rem; }
.legal-body ul { margin: 0.75rem 0 1rem 1.25rem; }
.legal-body li { margin: 0.4rem 0; }
.legal-body .small { font-size: 1rem; color: var(--note); }
.legal-body .fine p { font-size: 1.0625rem; }

/* ---------- widths ---------- */
@media (max-width: 1240px) {
  .row { grid-template-columns: var(--margin) minmax(0, 1fr); }
  .row > .a { grid-column: 2; margin-top: 2rem; }
}
@media (max-width: 820px) {
  body { font-size: 1.125rem; }
  .sheet, .nav-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > .m, .row > .t, .row > .a { grid-column: 1; }
  .row > .m { margin-bottom: 0.75rem; }
  .row > .a { margin-top: 1.5rem; }
  .nav { position: static; }
  .masthead { padding-top: 2.5rem; }
  .bracketed::before { left: -0.85rem; width: 0.4rem; }
  .bracketed { margin-left: 0.85rem; }
  .downloads > li { grid-template-columns: 1fr; }
  .section-head .m { display: flex; gap: 0.75rem; align-items: baseline; }
  .entries .m .mark { display: inline; margin-right: 0.5rem; }
  .entries .m .entry-name { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media print {
  .nav, .footer-links, #cookie-banner { display: none !important; }
}

/* Headline emphasis is neutralized: the accented-word device is on the brief's AVOID line.
   The <em> elements stay so the copy and its markup boundaries are unchanged. */
h1 em, h2 em { font-style: normal; font-weight: inherit; color: inherit; }

/* media kit type specimens */
.specimen-xl { font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; margin-top: 0.35rem; }
.specimen-lg { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; margin-top: 0.35rem; }
.specimen-body { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6; margin-top: 0.35rem; max-width: 60ch; }
.specimen-sm { font-family: var(--sans); font-weight: 400; font-size: 0.9375rem; line-height: 1.5; margin-top: 0.35rem; }

/* ---------- analytics consent banner (index.html) ----------
   The sheet's own tokens: paper ground, a proof-red top rule, the Accept action in proof red.
   Display stays inline (display:none) because the consent script toggles it to flex. */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  gap: 1rem; padding: 1rem 1.5rem; align-items: center; justify-content: space-between;
  background: var(--paper); color: var(--ink); border-top: 2px solid var(--proof);
  font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5;
}
#cookie-banner a { color: var(--ink); text-decoration: underline; }
#cookie-banner button {
  padding: 0.5rem 1rem; border-radius: 2px; cursor: pointer;
  font-family: var(--sans); font-size: 0.9375rem;
}
#cookie-decline { border: 1px solid var(--note); background: transparent; color: var(--ink); }
#cookie-accept { border: 1px solid var(--proof); background: var(--proof); color: var(--paper); }
#cookie-banner a:focus-visible, #cookie-banner button:focus-visible { outline: 2px solid var(--proof); outline-offset: 2px; }
@media (max-width: 40rem) { #cookie-banner { flex-direction: column; align-items: flex-start; } }
