:root {
  --paper: #f7f2e7;
  --paper-solid: #fffdf8;
  --ink: #22211f;
  --muted: #645f57;
  --navy: #173b5f;
  --navy-dark: #102a43;
  --red: #8f3030;
  --rule: #cfc5b4;
  --focus: #075ea8;
  --shadow: 0 10px 34px rgba(45, 39, 29, .08);
  --content: 72rem;
  --reading: 46rem;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 18rem;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(247, 242, 231, .04), rgba(247, 242, 231, .04)),
    url('/images/us-constitution.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: .08em; text-underline-offset: .17em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .2rem; }
.skip-link { position: absolute; left: .75rem; top: -5rem; z-index: 999; background: var(--paper-solid); color: var(--ink); padding: .7rem 1rem; border: 2px solid var(--navy); }
.skip-link:focus { top: .75rem; }
.site-header { border-bottom: 1px solid rgba(150,135,112,.62); background: rgba(255,253,248,.70); }
.header-inner { width: min(100% - 1.5rem, var(--content)); margin-inline: auto; padding: .9rem 0 .65rem; }
.brand { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--ink); width: fit-content; }
.brand img { width: 3.4rem; height: auto; flex: none; }
.brand-copy { display: grid; gap: .04rem; }
.brand-name { font-family: Georgia, Cambria, "Times New Roman", Times, serif; font-size: clamp(1.45rem, 5vw, 2.15rem); line-height: 1.05; letter-spacing: .015em; font-weight: 700; }
.brand-tagline { color: var(--muted); font-size: .9rem; }
.site-nav { margin-top: .65rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem .45rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: .45rem .62rem; font-weight: 650; text-decoration: none; border-radius: .35rem; }
.site-nav a[aria-current="page"] { color: var(--navy-dark); background: rgba(237,230,216,.62); }
main { width: min(100% - 1.5rem, var(--content)); margin-inline: auto; padding: 1.4rem 0 3rem; }
.panel { background: rgba(255,253,248,.68); border: 1px solid rgba(160,145,122,.66); border-radius: .55rem; box-shadow: var(--shadow); padding: clamp(1rem, 4vw, 2.2rem); }
.hero { margin-bottom: 1.25rem; }
.eyebrow { margin: 0 0 .35rem; color: var(--red); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, Cambria, "Times New Roman", Times, serif; color: var(--navy-dark); line-height: 1.18; text-wrap: balance; }
h1 { margin: 0 0 .65rem; font-size: clamp(2rem, 8vw, 3.35rem); }
h2 { margin: 1.75rem 0 .7rem; font-size: clamp(1.55rem, 6vw, 2.25rem); }
h3 { margin: 1.35rem 0 .55rem; font-size: 1.25rem; }
.lead, .article-body { font-family: Georgia, Cambria, "Times New Roman", Times, serif; }
.lead { font-size: clamp(1.08rem, 3.9vw, 1.24rem); line-height: 1.72; }
.has-drop-cap::first-letter { float: left; font-family: Georgia, Cambria, serif; font-size: 3.25em; line-height: .82; padding: .08em .12em 0 0; color: var(--navy); }
.section-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; border-bottom: 1px solid var(--rule); padding-bottom: .45rem; }
.section-heading h2 { margin: 0; }
.post-list { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; }
.post-item { padding: 1rem 0; border-bottom: 1px solid #ded5c7; }
.post-item:last-child { border-bottom: 0; }
.post-title { margin: 0; font-family: Georgia, Cambria, "Times New Roman", Times, serif; font-size: 1.28rem; line-height: 1.3; }
.post-meta { margin: .28rem 0 0; color: var(--muted); font-size: .9rem; }
.post-excerpt { margin-top: .55rem; font-family: Georgia, Cambria, "Times New Roman", Times, serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-excerpt p { margin: 0; }
.history-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid rgba(160,145,122,.70); background: rgba(251,246,236,.62); border-radius: .45rem; }
.date-badge { width: 4.7rem; min-height: 4.7rem; display: grid; place-content: center; text-align: center; border: 1px solid #ad9d85; background: rgba(255,253,248,.72); }
.date-badge .month { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--red); }
.date-badge .day { font-family: Georgia, Cambria, serif; font-size: 1.9rem; line-height: 1; color: var(--navy-dark); }
.archive-year { margin-top: 2rem; }
.archive-year > h2 { border-bottom: 1px solid var(--rule); padding-bottom: .35rem; }
.article-shell { max-width: var(--reading); margin-inline: auto; }
.article-header { margin-bottom: 1.3rem; }
.article-header h1 { font-size: clamp(2rem, 8vw, 3rem); overflow-wrap: anywhere; }
.article-byline { color: var(--muted); margin: .25rem 0 0; }
.article-body { font-size: clamp(1.06rem, 3.7vw, 1.18rem); line-height: 1.78; overflow-wrap: break-word; }
.article-body p { margin: 0 0 1.15em; }
.article-body a { overflow-wrap: anywhere; }
.article-body em { font-style: italic; }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.45rem; }
.article-body li + li { margin-top: .45rem; }
.article-body blockquote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1rem; border-left: 4px solid var(--rule); color: #3d3933; }
.article-body .has-text-align-center { text-align: center; }
.article-body .has-text-align-right { text-align: right; }
.article-body .has-text-align-left { text-align: left; }
.article-body figure { margin: 1.4rem 0; }
.article-body figcaption { margin-top: .35rem; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .88rem; }
.article-body img { border-radius: .25rem; }
.continuation-panel { margin-top: 1.25rem; }
.article-body h1 { font-size: clamp(1.75rem, 6vw, 2.35rem); }
.article-nav { display: grid; gap: .75rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .95rem; }
.article-nav a { display: block; min-height: 44px; padding: .55rem 0; }
.site-footer { width: min(100% - 1.5rem, var(--content)); margin: 0 auto; padding: 1.1rem 0 2.2rem; border-top: 1px solid var(--rule); color: #4e4942; text-align: center; }
.site-footer p { margin: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.notice { padding: .85rem 1rem; border-left: 4px solid var(--navy); background: rgba(244,238,226,.66); }

@media (max-width: 41.999rem) {
  body { background-attachment: scroll; background-size: auto 100vh; background-repeat: repeat-y; }
  .site-header { background: rgba(255,253,248,.74); }
  .panel { background: rgba(255,253,248,.74); }
}

@media (min-width: 42rem) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding-block: .85rem; }
  .site-nav { margin-top: 0; }
  .section-grid { grid-template-columns: minmax(0, 1.6fr) minmax(17rem, .8fr); }
  .article-nav { grid-template-columns: 1fr 1fr; }
  .article-nav .next { text-align: right; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  body { background: #fff !important; }
  .site-header, .article-nav, .history-card, .skip-link { display: none !important; }
  main { width: 100%; padding: 0; }
  .panel { border: 0; box-shadow: none; padding: 0; }
  .article-body { font-size: 11pt; line-height: 1.55; }
  a { color: #000; text-decoration: none; }
  .site-footer { border-top: 1px solid #999; }
}
