/* jaswarlaw.com — site stylesheet (Style A: Ink & Paper)
   Typefaces are self-hosted (see /assets/fonts). Colors are tokens; dark mode redefines the tokens only. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-latin-variable.woff2) format("woff2-variations"), url(../fonts/newsreader-latin-variable.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-latin-variable-italic.woff2) format("woff2-variations"), url(../fonts/newsreader-latin-variable-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #FAF9F6; --stone: #E8E5DD; --ink: #14202B; --slate: #3E5262; --accent: #7A2E2E; --rule: #CFCAC0;
  --surface: #FFFFFF; --on-ink: #FAF9F6; --on-ink-muted: #A7B1BA; --ink-rule: #2B3743;
  --band: #14202B; --on-band: #FAF9F6; --on-band-muted: #C9D0D6; --band-rule: #2B3743;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --max: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F161D; --stone: #17212B; --ink: #EAE7E0; --slate: #A7B1BA; --accent: #D68B80; --rule: #2B3743;
    --surface: #141D26; --on-ink: #EAE7E0; --on-ink-muted: #A7B1BA; --ink-rule: #2B3743;
    --band: #E8E5DD; --on-band: #14202B; --on-band-muted: #3E5262; --band-rule: #CFCAC0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: .005em; }
.brand .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-top: 5px; white-space: nowrap; }
@media (max-width: 560px) { .brand .sub { white-space: normal; } }
nav.primary { display: flex; align-items: center; gap: 22px; min-width: 0; }
nav.primary a { text-decoration: none; font-size: 14.5px; color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; }
nav.primary a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .18s ease; }
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { right: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--body); font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 2px; border: 1px solid var(--accent); color: var(--accent); background: transparent; transition: background .18s ease, color .18s ease; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--accent); color: var(--paper); }
.btn.solid { background: var(--accent); color: var(--paper); }
.btn.solid:hover { filter: brightness(1.08); }
.btn.small { padding: 9px 14px; font-size: 14px; }
nav.primary .btn::after { content: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 2px; cursor: pointer; }
@media (max-width: 1040px) {
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; padding: 16px 28px 24px; gap: 14px; }
  nav.primary.open { display: flex; }
  .menu-toggle { display: inline-block; }
}

/* Hero (text-led; small byline portrait) */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; margin: 18px 0 26px; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--slate); max-width: 60ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.hero .tertiary { font-size: 15px; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.byline { display: flex; gap: 16px; align-items: center; justify-self: end; border-top: 1px solid var(--rule); padding-top: 16px; max-width: 320px; }
.byline img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); border-radius: 2px; flex: none; }
.byline .name { font-family: var(--display); font-size: 18px; line-height: 1.2; }
.byline .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-top: 5px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } .byline { justify-self: start; } }

/* Credentials strip */
.creds { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.creds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.creds li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--rule); line-height: 1.4; }
.creds li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* Two doors */
.doors { padding: 88px 0; }
.doors .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.door { padding: 0 48px 0 0; }
.door + .door { border-left: 1px solid var(--rule); padding: 0 0 0 48px; }
.door h2 { font-size: 34px; line-height: 1.1; margin: 12px 0 16px; }
.door .text { color: var(--slate); font-size: 17px; max-width: 52ch; }
.door ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.door li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 16px; }
.door li::before { content: ""; width: 14px; height: 1px; background: var(--accent); margin-top: .75em; }
.arrow { text-decoration: none; font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.arrow:hover { gap: 12px; }
@media (max-width: 920px) { .doors .wrap { grid-template-columns: 1fr; gap: 56px; } .door { padding: 0; } .door + .door { border-left: 0; border-top: 1px solid var(--rule); padding: 56px 0 0; } }

/* Commitments strip */
.commit { padding: 0 0 8px; }
.commit .wrap { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 28px; }
.commit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.commit li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--rule); line-height: 1.4; }
.commit li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* About band */
.aboutband { padding: 88px 0; }
.aboutband .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.aboutband img { width: 100%; max-width: 270px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); border-radius: 2px; }
.aboutband h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin: 12px 0 20px; }
.aboutband p { font-size: 17px; color: var(--slate); max-width: 62ch; margin-bottom: 22px; }
@media (max-width: 920px) { .aboutband .wrap { grid-template-columns: 1fr; gap: 28px; } .aboutband img { max-width: 180px; } }

/* Why parties select me — editorial two-column */
.why { background: var(--stone); padding: 88px 0; }
.why .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.why .lead { position: sticky; top: 98px; }
.why h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; max-width: 16ch; margin: 14px 0 0; }
.why .passage { border-top: 1px solid var(--ink); padding: 24px 0 30px; }
.why .passage h3 { font-size: 23px; line-height: 1.25; margin-bottom: 12px; }
.why .passage p { font-size: 16.5px; color: var(--slate); max-width: 62ch; margin-bottom: 12px; }
.why .passage p:last-child { margin-bottom: 0; }
@media (max-width: 920px) { .why .wrap { grid-template-columns: 1fr; gap: 28px; } .why .lead { position: static; } }

/* Insights rows */
.insights { background: var(--stone); padding: 80px 0; }
.insights h2 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 8px; }
.insights .intro { color: var(--slate); margin-bottom: 34px; }
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 160px 1fr 150px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.row .kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.row .title { font-family: var(--display); font-size: 24px; line-height: 1.25; }
.row .date { font-family: var(--mono); font-size: 12px; color: var(--slate); text-align: right; }
a.row:hover .title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.row.muted .title { color: var(--slate); }
@media (max-width: 920px) { .row { grid-template-columns: 1fr; gap: 6px; } .row .date { text-align: left; } }

/* Closing call to action + footer */
.ctaband { background: var(--band); color: var(--on-band); padding: 80px 0; }
.ctaband .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.ctaband h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.ctaband p { color: var(--on-band-muted); font-size: 17px; max-width: 52ch; }
.ctaband .actions { display: grid; gap: 14px; justify-items: start; }
.ctaband .btn { border-color: var(--on-band); color: var(--on-band); }
.ctaband .btn:hover { background: var(--on-band); color: var(--band); }
.ctaband .alt { font-family: var(--mono); font-size: 12.5px; color: var(--on-band-muted); }
.ctaband .alt a { color: var(--on-band); }
@media (max-width: 920px) { .ctaband .wrap { grid-template-columns: 1fr; } }
footer.site { background: var(--band); color: var(--on-band-muted); border-top: 1px solid var(--band-rule); padding: 40px 0 48px; font-size: 14px; line-height: 1.6; }
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 28px; }
footer.site .name { font-family: var(--display); font-size: 20px; color: var(--on-band); margin-bottom: 8px; }
footer.site h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-band-muted); margin: 0 0 10px; font-weight: 400; }
footer.site a { color: var(--on-band); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.site .fine { border-top: 1px solid var(--band-rule); padding-top: 20px; font-size: 13px; max-width: 90ch; }
footer.site .fine + .fine { border-top: 0; padding-top: 10px; }
@media (max-width: 920px) { footer.site .grid { grid-template-columns: 1fr; } }

/* Inner pages */
.pagehead { padding: 72px 0 40px; border-bottom: 1px solid var(--rule); }
.pagehead h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; margin: 14px 0 22px; max-width: 22ch; }
.pagehead .lede { font-size: 19px; color: var(--slate); max-width: 64ch; line-height: 1.5; }
.pagebody { padding: 56px 0 88px; }
.pagebody .wrap { display: grid; grid-template-columns: minmax(0, 68ch) 1fr; gap: 64px; }
.prose h2 { font-size: 28px; line-height: 1.2; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.prose ul li::before { content: ""; width: 14px; height: 1px; background: var(--accent); margin-top: .8em; }
.steps { list-style: none; margin: 8px 0 16px; padding: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 5px; }
.steps h3 { font-size: 19px; font-family: var(--body); font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--slate); font-size: 16px; margin: 0; }
.prose dl.fees { margin: 8px 0 16px; padding: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--stone); border-left: 2px solid var(--accent); }
.prose dl.fees > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--rule); }
.prose dl.fees > div:first-child { border-top: 0; }
.prose dl.fees dt { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; padding-top: 2px; }
.prose dl.fees dd { margin: 0; }
@media (max-width: 640px) { .prose dl.fees > div { grid-template-columns: 1fr; gap: 4px; } }
.aside { position: sticky; top: 98px; align-self: start; display: grid; gap: 22px; }
.aside .card { border-top: 1px solid var(--ink); padding-top: 16px; font-size: 15px; color: var(--slate); }
.aside .card.portrait { border-top: 0; padding-top: 0; }
.aside .card.portrait img { width: 180px; filter: grayscale(1); border-radius: 2px; display: block; }
.aside .card strong, .aside .card h2 { color: var(--ink); display: block; margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 19px; }
.aside .card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.pagecta { margin-top: 56px; border-top: 1px solid var(--ink); padding-top: 28px; display: grid; gap: 14px; justify-items: start; }
.pagecta h2 { margin: 0; font-size: 26px; }
.pagecta p { color: var(--slate); }
.pagebody.wide .wrap { grid-template-columns: minmax(0, 1fr) 300px; }
.prose .row { grid-template-columns: 130px 1fr 120px; }
@media (max-width: 920px) { .pagebody .wrap, .pagebody.wide .wrap { grid-template-columns: 1fr; } .aside { position: static; } .prose .row { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 18px; margin: 8px 0 24px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: 13px; margin-top: 2px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--rule); border-radius: 2px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; padding: 10px 12px; min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-size: 14px; color: var(--slate); }

/* Article */
.article .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.article h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 14px 0 18px; max-width: 24ch; }
.article .stand { font-size: 20px; color: var(--slate); max-width: 58ch; line-height: 1.45; }
.article .body { margin-top: 28px; }
.article .body p { font-size: 17.5px; line-height: 1.65; margin-bottom: 18px; }
.article .body h2 { font-size: 24px; margin: 36px 0 12px; }
.article .body p.sig { font-size: 15px; color: var(--slate); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 28px; }
.authorities { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 18px; }
.authorities h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; font-weight: 400; }
.authorities ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--slate); }
.authorities ul li { display: block; }
.authorities ul li::before { content: none; }
.backlink { margin-top: 32px; }

/* Simple text pages */
.plain { padding: 56px 0 88px; }
.plain .wrap { max-width: 72ch; }
.plain h2 { font-size: 24px; margin: 36px 0 10px; }
.plain p, .plain li { margin-bottom: 12px; color: var(--ink); }

/* Print */
@media print {
  header.site, footer.site .grid, .ctaband, .menu-toggle, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .aside { position: static; }
  a { text-decoration: none; color: #000; }
}
