/* BulkyWaste.org.uk design system — documentary editorial.
   Palette: olive-ink, warm paper, burnt orange. Type: Fraunces display, system body. */

:root {
  --ink: #15180f;
  --ink-2: #394034;
  --muted: #68705f;
  --paper: #f5f2ea;
  --card: #fdfcf8;
  --line: #e4dfd1;
  --accent: #e8590c;
  --accent-deep: #c04a08;
  --good: #2f6b3a;
  --bad: #9a3412;
  --on-dark: #f5f2ea;
  --on-dark-muted: #b9bcae;
  --radius: 14px;
  --shell: 74rem;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fraunces.woff2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 1.25rem; }
.shell-narrow { max-width: 50rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 46rem; }

/* ---------- header ---------- */
.top {
  background: var(--ink); color: var(--on-dark);
  position: relative; z-index: 5;
}
.top .shell { display: flex; align-items: center; gap: 1.4rem; min-height: 4rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--on-dark); text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.brand svg { width: 1.7rem; height: 1.7rem; }
.brand b { color: var(--accent); font-weight: 600; }
.top nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--on-dark); }
.top nav a.ws { color: var(--accent); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--on-dark); background: var(--ink); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  filter: saturate(.7) contrast(1.06) brightness(.95);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(21, 24, 15, .96) 22%, rgba(21, 24, 15, .72) 55%, rgba(21, 24, 15, .35));
}
.hero > .shell { position: relative; z-index: 2; padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero .lede { color: var(--on-dark-muted); margin-top: 1.1rem; }
.hero-credit, .figure-credit {
  position: absolute; right: .8rem; bottom: .5rem; z-index: 3;
  font-size: .68rem; color: rgba(245, 242, 234, .55);
}
.hero-credit a, .figure-credit a { color: inherit; }
.hero-mini > .shell { padding-top: clamp(2.2rem, 5vw, 3.6rem); padding-bottom: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- postcode search ---------- */
.pc-form { display: flex; gap: .6rem; margin-top: 1.6rem; max-width: 30rem; flex-wrap: wrap; }
.pc-form input {
  flex: 1 1 12rem; font-size: 1.15rem; padding: .85rem 1.1rem; border-radius: 10px;
  border: 2px solid rgba(245, 242, 234, .25); background: rgba(245, 242, 234, .08); color: var(--on-dark);
  text-transform: uppercase; letter-spacing: .04em;
}
.pc-form input::placeholder { color: rgba(245, 242, 234, .5); text-transform: none; letter-spacing: 0; }
.pc-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.light .pc-form input { border-color: var(--line); background: var(--card); color: var(--ink); }
.light .pc-form input::placeholder { color: var(--muted); }
.btn {
  display: inline-block; font-size: 1.05rem; font-weight: 650; padding: .85rem 1.5rem; border-radius: 10px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-dark); border: 2px solid rgba(245, 242, 234, .3); }
.btn-ghost:hover { background: rgba(245, 242, 234, .1); color: var(--on-dark); }
.pc-hint { min-height: 1.4rem; font-size: .95rem; margin-top: .55rem; color: var(--on-dark-muted); }
.light .pc-hint { color: var(--muted); }
.pc-choices { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-choices a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; text-decoration: none; font-size: .95rem; }

/* ---------- stat tiles (hero numbers) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.8rem 0; }
.fact { background: var(--card); padding: 1.15rem 1.25rem; }
.fact .v { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.1; }
.fact .l { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .3rem; }
.fact .s { font-size: .85rem; color: var(--ink-2); margin-top: .25rem; }

/* ---------- sections ---------- */
.section { padding: clamp(2.4rem, 6vw, 4.2rem) 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-deep); font-weight: 700; margin-bottom: .6rem; }
.section-dark .kicker { color: var(--accent); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-deep); }
.card .meta { font-size: .9rem; color: var(--muted); }
.card-img { padding: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-img .ph { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.card-img .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .5s ease; }
.card-img:hover .ph img { transform: scale(1.04); }
.card-img .bd { padding: 1.1rem 1.3rem 1.3rem; }

/* ---------- collects / refuses checklists ---------- */
.check-cols { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.check-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.check-list ul { list-style: none; }
.check-list li { padding: .42rem 0 .42rem 1.9rem; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { position: absolute; left: 0; top: .42rem; font-weight: 700; }
.check-yes li::before { content: '✓'; color: var(--good); }
.check-no li::before { content: '✕'; color: var(--bad); }

/* ---------- limitations ---------- */
.limits { border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.limits ul { list-style: none; }
.limits li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.limits li::before { content: '›'; position: absolute; left: .2rem; color: var(--accent-deep); font-weight: 700; }

/* ---------- WasteSpeed CTA ---------- */
.ws-cta {
  background: linear-gradient(120deg, #c04a08, #e8590c 55%, #f07a33);
  color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem);
  margin: 2rem 0; position: relative; overflow: hidden;
}
.ws-cta::after { content: ''; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ws-cta h2, .ws-cta h3 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: .4rem; }
.ws-cta p { color: rgba(255, 255, 255, .93); max-width: 44rem; }
.ws-cta .ws-line { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; }
.ws-cta .btn { background: var(--ink); position: relative; z-index: 1; }
.ws-cta .btn:hover { background: #000; }
.ws-cta .small { font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; min-width: 40rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; font-weight: 600; }

/* ---------- badges / provenance ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; border-radius: 999px; padding: .28rem .8rem; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.badge-ok { border-color: #cfe0d2; background: #eef5ef; color: var(--good); }
.badge .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--good); }
.provenance { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.1rem; }
.provenance a { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .7rem; }
.faq summary { font-weight: 650; cursor: pointer; font-size: 1.02rem; }
.faq details[open] summary { margin-bottom: .5rem; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--on-dark-muted); margin-bottom: 1rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs span { margin: 0 .35rem; opacity: .6; }
.light .crumbs, .light .crumbs a { color: var(--muted); }

/* ---------- figures ---------- */
figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 1.6rem 0; }
figure img { width: 100%; filter: saturate(.82) contrast(1.05); }
figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.2rem .7rem; font-size: .85rem; color: rgba(245, 242, 234, .92); background: linear-gradient(transparent, rgba(21, 24, 15, .78)); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 650; font-size: .95rem; display: block; margin-bottom: .3rem; }
.form input, .form textarea, .form select {
  width: 100%; font-size: 1.05rem; font-family: inherit; padding: .75rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.form-msg { min-height: 1.5rem; font-weight: 600; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--on-dark-muted); margin-top: 3rem; font-size: .95rem; }
footer .shell { padding: 2.6rem 1.25rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
footer h3 { color: var(--on-dark); font-size: 1.05rem; }
footer ul { list-style: none; }
footer li { margin: .35rem 0; }
footer a { color: var(--on-dark-muted); text-decoration: none; }
footer a:hover { color: var(--on-dark); }
footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(245, 242, 234, .12); padding-top: 1.2rem; font-size: .84rem; }

/* ---------- prose (guides) ---------- */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin: .3rem 0; }
.prose blockquote { border-left: 4px solid var(--accent); padding: .4rem 0 .4rem 1.2rem; color: var(--ink-2); font-style: italic; margin: 1.4rem 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; top: .5rem; }

@media (max-width: 640px) {
  .top nav { gap: .8rem; font-size: .9rem; }
  table { min-width: 34rem; }
}
