/* The Clerk Times (clerktimes.com): one stylesheet for every page.
   Newsprint palette: warm paper, near-black ink, Town Web red for accents.
   Contrast: ink #1b1b1b on paper #faf7f0 is about 16:1; muted #55524b is about 7:1;
   red #b3121d on paper is about 6:1, and white on #b3121d is about 6.5:1. */
:root {
  --paper: #faf7f0;
  --paper-deep: #f1ece0;
  --ink: #1b1b1b;
  --muted: #55524b;
  --rule: #1b1b1b;
  --hairline: #d6cfbf;
  --red: #b3121d;
  --red-dark: #8f0e17;
  --white: #ffffff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::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: 19px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:is(a, button, input, textarea):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* No orphans: balance headings, pretty-wrap body text (plus &nbsp; before the last word in the HTML). */
h1, h2, h3, .ct-deck, .ct-tagline { text-wrap: balance; }
p, li, label { text-wrap: pretty; }

.ct-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ct-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 10; font-family: var(--sans); font-size: 16px; }
.ct-skip:focus { left: 16px; top: 16px; }

/* ---------- Masthead ---------- */
.ct-topbar { border-bottom: 1px solid var(--hairline); font-family: var(--sans); font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ct-topbar .ct-wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.ct-topbar a { color: var(--muted); text-decoration: none; }
.ct-topbar a:hover { color: var(--ink); text-decoration: underline; }
.ct-masthead { text-align: center; padding: 34px 0 0; }
.ct-masthead .ct-name { display: block; margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(46px, 9vw, 104px); line-height: 1; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.ct-tagline { margin: 14px auto 0; max-width: 680px; font-style: italic; font-size: 20px; color: var(--muted); }
/* The classic newspaper rule: a thick line over a thin one. */
.ct-rules { margin-top: 26px; border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule); height: 7px; }
.ct-dateline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ct-dateline a { color: var(--ink); text-decoration: none; }
.ct-dateline a:hover { color: var(--red); }

/* ---------- Front page ---------- */
.ct-section { padding: 56px 0; }
.ct-section + .ct-section { border-top: 1px solid var(--hairline); }
.ct-kicker { display: inline-block; margin: 0 0 12px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; line-height: 1.08; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
.ct-deck { font-size: 23px; line-height: 1.45; color: var(--muted); margin: 0 0 22px; }
.ct-lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; }
.ct-lead-main { padding-right: 40px; }
.ct-dropcap::first-letter { float: left; font-family: var(--display); font-weight: 800; font-size: 74px; line-height: .82; padding: 8px 10px 0 0; color: var(--red); }
.ct-lead-side { border-left: 1px solid var(--rule); padding-left: 32px; }
.ct-lead-side h2 { font-size: 26px; padding-bottom: 10px; border-bottom: 3px solid var(--rule); }
.ct-inside { list-style: none; margin: 0; padding: 0; }
.ct-inside li { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.ct-inside li:last-child { border-bottom: 0; }
.ct-inside strong { display: block; font-family: var(--display); font-size: 21px; line-height: 1.3; }
.ct-inside span { display: block; margin-top: 4px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.ct-button { display: inline-block; margin-top: 8px; padding: 14px 26px; background: var(--red); color: var(--white); font-family: var(--sans); font-size: 17px; font-weight: 700; text-decoration: none; border: 2px solid var(--red); border-radius: 4px; }
.ct-button:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.ct-publisher { background: var(--paper-deep); }
.ct-publisher .ct-wrap { max-width: 820px; text-align: center; }
.ct-publisher p { margin: 0 auto; }
.ct-publisher p + p { margin-top: 14px; }

/* ---------- Story form (bottom of the page) ---------- */
.ct-story { background: var(--ink); color: var(--white); }
.ct-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ct-story .ct-kicker { color: #ff8a8f; }
.ct-story h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.ct-story p { color: #e9e6df; }
.ct-story a { color: var(--white); }
.ct-story :is(a, button, input, textarea):focus-visible { outline-color: var(--white); }
.ct-card { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 32px; }
.ct-card :is(a, button, input, textarea):focus-visible { outline-color: var(--ink); }
.ct-card a { color: var(--red); }
.ct-card > h3 { font-size: 26px; margin: 0 0 20px; }
/* The dark section's light paragraph color must not reach inside the paper-colored card. */
.ct-card p { color: var(--ink); }
.ct-card .ct-privacy { color: var(--muted); }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.ct-field { margin: 0 0 20px; }
.ct-field label { display: block; margin-bottom: 6px; font-family: var(--sans); font-size: 16.5px; font-weight: 700; color: var(--ink); }
.ct-field input, .ct-field textarea { display: block; width: 100%; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--white); border: 1px solid #8f8a7e; border-radius: 4px; padding: 12px 14px; min-height: 50px; }
.ct-field textarea { min-height: 120px; resize: vertical; }
.ct-field :is(input, textarea)[aria-invalid="true"] { border: 3px solid var(--red); }
.ct-count { display: block; margin-top: 6px; text-align: right; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.ct-error { display: none; margin: 8px 0 0; font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--red); }
.ct-error.show { display: block; }
.ct-check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 14px 16px; background: var(--white); border: 1px solid var(--hairline); border-radius: 4px; }
.ct-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--red); cursor: pointer; }
.ct-check label { font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.ct-check .ct-hint { display: block; font-weight: 400; color: var(--muted); }
.ct-submit { display: block; width: 100%; padding: 15px 24px; min-height: 56px; font-family: var(--sans); font-size: 19px; font-weight: 700; color: var(--white); background: var(--red); border: 2px solid var(--red); border-radius: 4px; cursor: pointer; }
.ct-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.ct-submit[aria-disabled="true"] { opacity: .7; cursor: progress; }
.ct-privacy { margin: 16px 0 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-summary, .ct-notice { display: none; margin: 0 0 20px; padding: 16px 18px; border: 3px solid; border-radius: 4px; font-family: var(--sans); }
.ct-summary.show, .ct-notice.show { display: block; }
.ct-summary { border-color: var(--red); background: #fff5f5; }
.ct-summary h3, .ct-notice h3 { font-family: var(--sans); font-size: 17px; margin: 0 0 6px; }
.ct-summary h3 { color: var(--red); }
.ct-summary ul { margin: 0; padding-left: 20px; font-size: 16px; }
.ct-notice { border-color: #8a5a00; background: #fff8e8; }
.ct-notice p { margin: 0 0 8px; font-size: 15.5px; color: var(--ink); }
.ct-notice pre { margin: 8px 0 0; padding: 10px 12px; background: var(--white); border: 1px solid var(--hairline); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-notice pre[hidden] { display: none; }
:is(.ct-summary, .ct-notice, .ct-field input, .ct-field textarea) { scroll-margin-top: 24px; }

/* ---------- Footer ---------- */
.ct-footer { padding: 32px 0 40px; border-top: 4px solid var(--rule); font-family: var(--sans); font-size: 15px; color: var(--muted); text-align: center; }
.ct-footer p { margin: 4px 0; }
.ct-footer a { color: var(--muted); }
.ct-footer a:hover { color: var(--ink); }

/* ---------- Simple pages (thank-you, 404) ---------- */
.ct-simple { padding: 64px 0 80px; }
.ct-simple .ct-wrap { max-width: 760px; }
.ct-box { margin: 0 0 26px; padding: 18px 20px; background: var(--white); border: 2px solid var(--rule); border-radius: 4px; }
.ct-box p { margin: 0; }

@media (max-width: 900px) {
  .ct-lead, .ct-story-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ct-lead-main { padding-right: 0; }
  .ct-lead-side { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .ct-wrap { padding: 0 16px; }
  .ct-section { padding: 40px 0; }
  .ct-deck { font-size: 20px; }
  .ct-tagline { font-size: 18px; }
  .ct-topbar .ct-wrap, .ct-dateline { justify-content: center; text-align: center; }
  .ct-card { padding: 22px 18px; }
  .ct-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
