/*
Theme Name: Colorado Bill Blaster Capitol
Description: A custom theme for Colorado legislative reporting and research.
Version: 0.1.5
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: cbb-capitol
*/
:root {
  --ink: #13283a;
  --muted: #465a69;
  --paper: #fffefb;
  --line: #d8e0e4;
  --navy: #102c3e;
  --navy-deep: #0a202f;
  --accent: #9d263d;
  --warm: #f4f0e7;
  --gold: #ffcf83;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
h1, h2, h3 { color: inherit; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.35rem, 5.3vw, 4.45rem); margin: 0 0 1rem; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); margin: 0 0 1.3rem; letter-spacing: -.02em; }
h3 { font-size: 1.18rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: #14527a; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #267da1; outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.site-shell { width: min(100% - 3rem, 80rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100000; inset: .75rem auto auto .75rem; transform: translateY(-180%); padding: .6rem 1rem; background: white; }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: .75rem; }
.site-brand a, .footer-brand { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.035em; font-size: 1.3rem; }
.custom-logo { width: auto; max-width: 15rem; max-height: 3.5rem; }
.capitol-brand-logo { display: block; width: 14rem; height: auto; }
.site-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.site-menu a { color: inherit; font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-menu a:hover, .site-menu a[aria-current] { text-decoration: underline; }
.site-menu .sub-menu { margin-block: .2rem; padding-inline-start: 1rem; }
.home-hero { background: var(--navy); color: white; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 29rem; align-items: stretch; }
.hero-copy { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem) 0; align-self: center; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy p { color: #e0e9ee; max-width: 37ch; font-size: 1.13rem; margin-bottom: 1.65rem; }
.capitol-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; }
.hero-primary, .hero-secondary { font-weight: 700; padding: .65rem .95rem; color: white; }
.hero-primary { background: var(--gold); color: var(--navy-deep); text-decoration: none; }
.hero-primary:hover { background: #ffe0ac; color: var(--navy-deep); }
.hero-secondary:hover { color: var(--gold); }
.home-section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.tool-grid, .story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tool-card, .story-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.tool-card { border-top: 3px solid var(--accent); padding: 1.15rem; }
.tool-card h3 a, .story-card h3 a { color: var(--ink); }
.tool-card h3 a:hover, .story-card h3 a:hover { color: var(--accent); }
.tool-card p, .story-copy p { color: var(--muted); margin-bottom: 0; }
.latest-band { background: var(--warm); }
.story-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8e8e1; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 1.15rem; }
.story-copy time, .entry-meta { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.page-content, .article-content { padding-block: clamp(2rem, 5vw, 4.2rem); }
.entry-header { margin-bottom: 1.6rem; }
.entry-content { min-width: 0; overflow-wrap: anywhere; }
.entry-content h2 { margin-top: 1.7em; }
.article-content { max-width: 54rem; }
.article-image { display: block; width: 100%; margin-bottom: 1.4rem; }
.entry-comments { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.entry-content form, .search-form { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem .9rem; margin-block: .75rem; }
.entry-content form label, .search-form label { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; max-width: 100%; }
input, select, textarea, button { font: inherit; max-width: 100%; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 2.7rem; padding: .35rem .55rem; border: 1px solid #798b96; color: var(--ink); background: white; }
button, input[type=submit] { background: var(--accent); color: white; border: 1px solid transparent; padding: .55rem .9rem; font-weight: 700; cursor: pointer; }
button:hover, input[type=submit]:hover { background: #76192d; }
.entry-content table { max-width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .cbb-finance-results { max-width: 100%; }
.site-footer { color: white; background: var(--navy-deep); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 2rem; }
.site-footer a { color: white; }
.site-footer p { color: #d4e0e7; margin: .25rem 0 0; }
.footer-credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding-block: .65rem 1.15rem; border-top: 1px solid #3d5360; font-size: .875rem; }
.pagination { margin-top: 1.5rem; }
@media (max-width: 56rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .tool-grid, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-layout { min-height: 23rem; }
}
@media (max-width: 38rem) {
  .site-shell { width: calc(100% - 2rem); }
  .hero-layout, .tool-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.4rem 0 1.6rem; }
  .capitol-photo { aspect-ratio: 16 / 9; margin-bottom: 1rem; }
  .entry-content form label { flex-basis: 100%; justify-content: space-between; }
  .entry-content form select, .entry-content form input[type=search] { width: 100%; }
  .site-menu { gap: .4rem 1rem; }
}
