/* The Greeley Collision Brief — editorial stylesheet */
:root{
  --paper:#faf9f6;
  --ink:#1a2b4a;
  --mustard:#c9a227;
  --muted:#5a6472;
  --line:#d8d4c8;
  --white:#fff;
  --focus:#b8860b;
  --serif:Georgia,'Times New Roman',serif;
  --sans:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --measure:68ch;
  --maxw:1200px;
  --pad:clamp(1rem,3vw,2.5rem);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  font-size:19px;
  line-height:1.6;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration:underline;text-underline-offset:2px;word-break:break-word}
a:hover{color:var(--mustard)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid var(--focus);outline-offset:2px
}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.2;color:var(--ink);font-weight:700}
h1{font-size:clamp(2rem,5vw,3.5rem);letter-spacing:-.01em}
h2{font-size:clamp(1.5rem,3vw,2.2rem)}
h3{font-size:1.25rem}
p{max-width:var(--measure)}
ul{list-style:none}
button{font:inherit;cursor:pointer}
input,textarea{font:inherit;color:var(--ink)}

/* Shared shell */
.site-header{
  background:var(--white);
  border-bottom:4px solid var(--mustard);
}
.header-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:var(--pad);
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:1rem 2rem;
}
.brand{
  font-family:var(--serif);
  font-size:1.8rem;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--ink);
  text-decoration:none;
  line-height:1.1;
}
.brand:hover{color:var(--mustard)}
.site-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
}
.site-nav a{
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid transparent;
  padding-bottom:2px;
}
.site-nav a:hover{border-bottom-color:var(--mustard)}
.site-footer{
  background:var(--ink);
  color:var(--paper);
  margin-top:4rem;
}
.footer-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:var(--pad);
  display:flex;
  flex-wrap:wrap;
  gap:2rem;
  justify-content:space-between;
  align-items:center;
}
.footer-nav ul{display:flex;flex-wrap:wrap;gap:1.5rem}
.footer-nav a{color:var(--paper);text-decoration:none;border-bottom:1px solid transparent}
.footer-nav a:hover{border-bottom-color:var(--mustard);color:var(--mustard)}
.footer-inner p{color:var(--paper);opacity:.9;font-size:.9rem}

/* Main wrapper */
.outermain{
  max-width:var(--maxw);
  margin:0 auto;
  padding:var(--pad);
}
.page{min-width:0}

/* Home page */
.brief-lead{
  margin-bottom:3rem;
  border-bottom:2px solid var(--mustard);
  padding-bottom:2rem;
}
.brief-lead img{
  width:100%;
  height:auto;
  margin-bottom:1.5rem;
  border:1px solid var(--line);
}
.brief-deck{
  font-size:1.15rem;
  color:var(--muted);
  margin-top:1rem;
}
.section-kicker{
  font-family:var(--sans);
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--mustard);
  font-weight:700;
  margin-bottom:1.5rem;
  border-bottom:1px solid var(--line);
  padding-bottom:.5rem;
}
.brief-columns{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:2rem;
  margin-bottom:3rem;
}
.brief-item{
  border-left:4px solid var(--mustard);
  padding-left:1.25rem;
}
.brief-num{
  font-family:var(--serif);
  font-size:2rem;
  color:var(--mustard);
  line-height:1;
  margin-bottom:.5rem;
}
.brief-item h3{margin-bottom:.5rem}
.brief-item p{color:var(--muted);font-size:.95rem}
.brief-support{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  margin-bottom:3rem;
}
.brief-support img{
  width:100%;
  height:auto;
  border:1px solid var(--line);
  margin-bottom:.5rem;
}
.brief-support figcaption{
  font-size:.85rem;
  color:var(--muted);
  font-style:italic;
}
.brief-support p{
  grid-column:1/-1;
  color:var(--muted);
}
.brief-sources{
  border-top:2px solid var(--mustard);
  padding-top:2rem;
}
.brief-sources p{
  margin-bottom:1rem;
  color:var(--muted);
}
.brief-sources em{color:var(--ink)}

/* Tool page */
.tool-shell{
  max-width:var(--measure);
  margin:0 auto;
}
.tool-intro{
  color:var(--muted);
  margin:1rem 0 2rem;
}
.ledger-form{
  background:var(--white);
  border:1px solid var(--line);
  padding:2rem;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.ledger-form fieldset{
  border:none;
  margin:0;
  padding:0;
}
.ledger-form legend{
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:700;
  margin-bottom:1rem;
}
.ledger-section{
  border-bottom:1px solid var(--line);
  padding-bottom:1.5rem;
  margin-bottom:1.5rem;
}
.ledger-section h2{
  font-size:1.1rem;
  font-family:var(--sans);
  font-weight:700;
  margin-bottom:.5rem;
}
.section-help{
  font-size:.9rem;
  color:var(--muted);
  margin-bottom:1rem;
}
.check-group{
  display:grid;
  gap:.75rem;
}
.check-group label{
  display:flex;
  align-items:center;
  gap:.75rem;
  font-size:1rem;
  cursor:pointer;
}
.check-group input[type="checkbox"]{
  width:1.2rem;
  height:1.2rem;
  accent-color:var(--mustard);
}
.field-group{
  display:grid;
  gap:.5rem;
}
.field-group label{font-weight:600}
.field-group textarea{
  width:100%;
  min-height:120px;
  padding:.75rem;
  border:1px solid var(--line);
  border-radius:0;
  resize:vertical;
  background:var(--paper);
}
.tool-actions{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin-top:1.5rem;
}
.action-button{
  background:var(--ink);
  color:var(--white);
  border:none;
  padding:.75rem 1.5rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:.9rem;
  transition:background .2s;
}
.action-button:hover:not(:disabled){background:var(--mustard)}
.action-button:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.status{
  margin-top:1rem;
  font-size:.9rem;
  color:var(--muted);
}
.results{
  margin-top:1.5rem;
  padding:1rem;
  border:1px solid var(--line);
  background:var(--paper);
  white-space:pre-wrap;
}
.noscript-note{
  margin-top:1rem;
  padding:.75rem;
  background:var(--paper);
  border:1px solid var(--line);
  font-size:.9rem;
  color:var(--muted);
}

/* Article pages */
.article-header{
  margin-bottom:2rem;
  border-bottom:2px solid var(--mustard);
  padding-bottom:1.5rem;
}
.article-header h1{max-width:var(--measure)}
.article-body{
  max-width:var(--measure);
  line-height:1.6;
}
.article-body p{margin-bottom:1.25rem}
.article-body h2{
  margin-top:2rem;
  margin-bottom:1rem;
  font-size:1.5rem;
}
.article-body ul{
  list-style:disc;
  padding-left:1.5rem;
  margin-bottom:1.25rem;
}
.article-body li{margin-bottom:.5rem}
.article-figure{
  margin:2rem 0;
}
.article-figure img{
  width:100%;
  height:auto;
  border:1px solid var(--line);
}
.media-caption{
  font-size:.85rem;
  color:var(--muted);
  font-style:italic;
  margin-top:.5rem;
}
.professional-review{
  margin-top:3rem;
  padding:1.5rem;
  border-left:4px solid var(--mustard);
  background:var(--white);
  font-size:.9rem;
  color:var(--muted);
}
.professional-review h2{
  font-family:var(--sans);
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--ink);
  margin-bottom:.5rem;
}

/* Directory (if used) */
.program-list{
  display:grid;
  gap:1.5rem;
  margin-top:2rem;
}
.program-row{
  border-bottom:1px solid var(--line);
  padding-bottom:1.5rem;
}
.program-title{
  font-family:var(--serif);
  font-size:1.3rem;
  margin-bottom:.25rem;
}
.program-meta{
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:.5rem;
}
.program-summary{
  color:var(--muted);
  font-size:.95rem;
}

/* Tables */
.table-wrap{
  overflow-x:auto;
  margin:1.5rem 0;
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
}
th,td{
  padding:.75rem;
  border:1px solid var(--line);
  text-align:left;
}
th{background:var(--paper);font-weight:700}

/* Utilities */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Responsive */
@media (max-width:768px){
  .brief-support{grid-template-columns:1fr}
  .header-inner{flex-direction:column;align-items:flex-start}
  .site-nav ul{flex-direction:column;gap:.75rem}
  .tool-actions{flex-direction:column}
  .action-button{width:100%}
}
@media (min-width:1440px){
  .outermain{max-width:1400px}
  .brief-columns{grid-template-columns:repeat(4,1fr)}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* Focused legibility correction from actual browser contrast findings. */
.section-kicker,.brief-num{color:#785b0a}
.site-footer a{color:#faf9f6}
.site-footer a:hover{color:#f1cf69}

/* Keep interactive text legible in the light page shell. */
a:hover,.brand:hover{color:#785b0a}
.site-footer a:hover{color:#f1cf69}
