/* City Bin Guide — field-guide utility CSS. Mobile-first. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-500.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/newsreader-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/newsreader-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-700.woff2") format("woff2");
}

:root {
  --bg: #f3eee4;
  --bg-elev: #fffcf7;
  --ink: #1b1714;
  --muted: #5d574e;
  --faint: #8a8378;
  --rule: #d8cfc0;
  --rule-strong: #c4b8a4;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #f6e4d6;
  --teal: #143f3c;
  --teal-soft: #e4eeea;
  --warn: #8a5a10;
  --warn-soft: #f7edd6;
  --official: #1f4d3a;
  --official-soft: #e6f0ea;
  --shadow: 0 1px 2px rgba(27, 23, 20, 0.06), 0 8px 24px rgba(27, 23, 20, 0.06);
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 42rem;
  --page: 72rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip-link:focus { top: 0.6rem; color: #fff; }

.wrap {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
}
.prose-wrap { width: min(100% - 2rem, 48rem); margin-inline: auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 88%, white);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: inherit; }
.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Hero */
.hero {
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.7rem;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2rem; }
h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.dek {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}
.meta-line {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cards and grids */
.section { padding: 2.2rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.section-head a {
  font-size: 0.9rem;
  font-weight: 550;
}
.section-head h2 { margin: 0; }
.grid-2, .grid-3 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  border-color: var(--rule-strong);
  color: inherit;
  transform: translateY(-1px);
}
.card .kicker { margin-bottom: 0.15rem; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .more {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Callouts */
.callout, .price-band, .permit-box, .tip-box, .cta-box, .sources {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}
.price-band {
  background: var(--warn-soft);
  border-color: #e4d2a8;
}
.permit-box {
  background: var(--official-soft);
  border-color: #c5d9ce;
}
.tip-box { background: #eef3f6; border-color: #c9d6de; }
.cta-box {
  background: var(--accent-soft);
  border-color: #ecc9b0;
}
.callout-label, .box-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.price-band .box-label { color: var(--warn); }
.permit-box .box-label { color: var(--official); }
.cta-box .box-label { color: var(--accent-dark); }
.price-amount {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.35rem;
}
.price-band p, .permit-box p, .tip-box p, .cta-box p { margin: 0.35rem 0; }
.price-band p:last-child, .permit-box p:last-child, .cta-box p:last-child { margin-bottom: 0; }

/* Article typography */
.article, .legal, .hub {
  padding: 1.6rem 0 3rem;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.article h1 { margin-bottom: 0.5rem; }
.article .prose p, .legal p, .hub p { margin: 0.9rem 0; }
.article .prose ul, .article .prose ol,
.legal ul, .hub ul { padding-left: 1.2rem; }
.article .prose li, .legal li { margin: 0.3rem 0; }
.article .prose strong { font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.1rem 0 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #efe8db;
}
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 1.1rem 0 1.4rem; }
.table-scroll table { margin: 0; min-width: 32rem; }

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.55rem 0 0.2rem; color: var(--ink); }

.related { margin-top: 2.2rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0.4rem 0; }

.sources h2, .sources .box-label { margin-top: 0; }
.sources ol { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.sources li { margin: 0.25rem 0; font-size: 0.92rem; overflow-wrap: anywhere; }

.disclosure-line {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Home extras */
.how-list {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 700px) { .how-list { grid-template-columns: 1fr 1fr; } }
.how-item {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.how-item h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.how-item p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: #ece6da;
}
.footer-grid {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.28rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin-top: 1.6rem; font-size: 0.82rem; color: var(--faint); }

.placeholder-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  border: 1px dashed var(--accent);
  color: var(--accent-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  pointer-events: none;
  opacity: 0.85;
}
.hub-list { list-style: none; padding: 0; }
.hub-list li {
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0;
}
.hub-list li:last-child { border-bottom: 1px solid var(--rule); }
.hub-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.hub-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.hub-list p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 700px) {
  .grid-2 .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.45rem;
  }
  .nav {
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 0.35rem 1rem;
    padding-top: 0.1rem;
  }
  .brand-tag { display: none; }
  th, td { padding: 0.5rem 0.55rem; }
  .article .prose, .hub .prose, .legal .prose { overflow-x: auto; }
}
