:root {
  --paper: #f8f6f1;
  --white: #fffefa;
  --ink: #233332;
  --muted: #59625c;
  --orange: #a34212;
  --orange-soft: #ffeadc;
  --teal: #14665d;
  --teal-soft: #e2efea;
  --line: #dadfd5;
  --danger: #a1252d;
  --radius: 24px;
  --shadow: 0 4px 24px rgba(35, 51, 50, .045);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, nav, a, button, label, address, strong, span, td, th, code {
  overflow-wrap: anywhere;
}
p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.45rem; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { color: var(--orange); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.grid > *, .workspace-grid > *, .form-grid > *, .footer-grid > *,
.header-inner > *, .hero > *, .actions > *, .card-stats > *,
.guide-grid > *, .summary-grid > *, .supporting-section > *,
.section-heading > *, .workspace-toolbar > *, .timeline-row > *,
.cookie-banner > *, .checkbox-label > *, .task-meta > *,
.preview-bottom > *, .cost-line > *, .navigation > * { min-width: 0; }
.section { margin-top: 64px; }
.small { font-size: .84rem; line-height: 1.6; }
.muted { color: var(--muted); }
.eyebrow {
  color: var(--teal);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.6;
}
.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.75; }
.orange-text { color: var(--orange); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--orange);
  color: #fffefa;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition: background .18s ease, box-shadow .18s ease;
}
.button:hover { background: #81320d; color: #fffefa; box-shadow: 0 4px 16px rgba(129, 50, 13, .12); }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--teal-soft); color: var(--ink); }
.button-small { padding: 8px 16px; font-size: .82rem; min-height: 40px; }
.text-link { font-weight: 700; text-decoration-thickness: 1px; }
.skip-link {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: 8px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  padding: 16px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  z-index: 10;
}
.header-inner { display: flex; height: 100%; align-items: center; gap: 24px; width: min(1200px, calc(100% - 48px)); margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 800; text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.navigation { display: flex; justify-content: center; align-items: center; gap: 40px; flex: 1; }
.navigation a { color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--orange); text-decoration: underline; }
.menu-button { display: none; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 1.2rem; line-height: 1; width: 40px; height: 40px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding-top: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-stats { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stat-label { color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .055em; line-height: 1.4; }
.stat strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px; background: var(--teal-soft); color: #17584f; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.hero-preview { background: linear-gradient(145deg, #fffefa, #f0f2e9); color: var(--ink); }
.project-roadmap-illustration, .bristol-location-map-illustration { display: block; width: 100%; height: auto; }
.preview-bottom { display: flex; flex-direction: column; gap: 24px; font-weight: 650; font-size: .9rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading > div { flex: 1.5; }
.section-heading > p { flex: 1; color: var(--muted); }
.section-heading .eyebrow { margin-bottom: 16px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.workspace-stage { margin-top: 64px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.summary-grid .stat strong { font-size: 1.65rem; }
form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
input:not([type="checkbox"]):not([type="hidden"]), select, textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #9ca99f;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: #697269; opacity: 1; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--teal); margin: 4px 0 0; }
.field-help { font-size: .8rem; color: var(--muted); }
.checkbox-label { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; font-size: .9rem; }
.progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .84rem; font-weight: 650; margin-bottom: 12px; }
progress { display: block; width: 100%; height: 12px; border: 0; border-radius: 8px; background: #e1e6dc; color: var(--teal); accent-color: var(--teal); }
progress::-webkit-progress-bar { background: #e1e6dc; color: var(--ink); border-radius: 8px; }
progress::-webkit-progress-value { background: var(--teal); color: var(--white); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--teal); color: var(--white); border-radius: 8px; }
.status { color: var(--teal); font-size: .88rem; min-height: 0; }
.status:not(:empty) { padding: 16px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--teal-soft); color: #17584f; }
.task-list, .timeline-list { display: flex; flex-direction: column; gap: 24px; }
.task-card { border-radius: 16px; padding: 24px; box-shadow: none; }
.task-card .card-stats { align-items: start; }
.task-card .stat strong { font-size: 1rem; }
.task-card .stat-label { font-size: .68rem; }
.task-card.is-dragging { opacity: .5; }
.task-card.is-drop-target { outline: 3px dashed var(--teal); outline-offset: 4px; }
.task-card.is-complete { background: #f0f7f2; color: var(--ink); }
.task-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: .84rem; color: var(--muted); }
.task-meta span { display: block; }
.task-actions { gap: 8px; }
.task-actions .button { font-size: .74rem; padding: 8px; }
.empty-state { border: 1px dashed #a8b5aa; border-radius: 12px; padding: 24px; color: var(--muted); font-size: .9rem; }
details { border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
summary { cursor: pointer; padding: 16px; font-size: .9rem; }
summary strong { display: inline-block; margin-left: 8px; color: var(--teal); }
.breakdown-content { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 24px; font-size: .84rem; }
.cost-line { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.cost-line .button { align-self: start; }
.cost-line strong { display: block; }
.timeline-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.timeline-label { display: flex; flex-direction: column; gap: 12px; }
.timeline-label strong { font-size: .95rem; }
.timeline-label span { color: var(--muted); font-size: .8rem; }
.project-task-timeline-bar { display: block; width: 100%; height: 40px; }
.is-negative { color: var(--danger); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.guide-card { transition: box-shadow .2s ease; }
.guide-card:hover { box-shadow: 0 8px 24px rgba(35, 51, 50, .10); }
.guide-card p { color: var(--muted); }
.guide-card .text-link { margin-top: auto; }
.guide-card .stat strong { font-size: 1.35rem; }
.supporting-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0 0; border-top: 1px solid var(--line); }
.supporting-section > div { display: flex; flex-direction: column; gap: 24px; }
.supporting-section p:not(.eyebrow) { color: var(--muted); }
.article { max-width: 860px; padding-top: 64px; }
.article-header { display: flex; flex-direction: column; gap: 24px; }
.article-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.article-summary { margin-top: 40px; }
.article section { margin-top: 64px; }
.article section h2 { margin-bottom: 24px; font-size: clamp(1.5rem, 3vw, 2rem); }
.article section p { margin-bottom: 24px; }
.article section p:last-child { margin-bottom: 0; }
.article ul { padding-left: 24px; margin: 0 0 24px; }
.article li { margin-bottom: 8px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
caption { padding: 16px; text-align: left; font-size: .8rem; font-weight: 650; background: var(--teal-soft); color: var(--ink); }
th { background: #eeefe7; color: var(--ink); font-weight: 700; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
code { font-size: .8rem; }
.contact-page { padding-top: 64px; }
.contact-page > .workspace-grid { margin-top: 40px; }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
address { font-style: normal; }
.site-footer { margin-top: 64px; padding: 64px 0; border-top: 1px solid var(--line); background: #eeefe7; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .9fr 1.25fr; gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: start; gap: 16px; font-size: .85rem; }
.footer-brand { font-size: 1rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.footer-heading { font-size: .9rem; letter-spacing: 0; line-height: 1.5; }
.footer-grid a { color: var(--ink); }
.footer-grid a:hover { color: var(--orange); }
.footer-link { border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; background: transparent; color: var(--ink); text-align: left; font-size: inherit; }
.footer-link:hover { color: var(--orange); }
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 24px;
  right: 24px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #aab4a7;
  border-radius: 16px;
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 8px 40px rgba(35, 51, 50, .18);
}
.cookie-banner > div:first-child { flex: 1 1 260px; }
.cookie-banner p { font-size: .82rem; margin-top: 8px; }
.cookie-banner .actions { gap: 8px; }
.preferences-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.preferences-dialog::backdrop { background: rgba(22, 39, 36, .55); color: #fff; }
.preferences-dialog h2 { font-size: 1.8rem; margin-bottom: 24px; }
.preferences-dialog > p { margin-bottom: 24px; }
.preferences-dialog .checkbox-label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; }
.field-error { color: var(--danger); font-size: .82rem; }
input.is-invalid, textarea.is-invalid { border-color: var(--danger) !important; background: #fff2f0 !important; color: var(--ink) !important; }
input[type="checkbox"].is-invalid { outline: 2px solid var(--danger); outline-offset: 3px; }
@media (max-width: 1000px) {
  .hero { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-stats { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .site-header { height: 52px; }
  .header-inner { gap: 8px; }
  .brand { flex: 1; font-size: .8rem; }
  .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .header-cta { padding: 8px; min-height: 36px; font-size: .76rem; }
  .menu-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 40px; }
  .navigation { display: none; }
  .navigation.is-visible { display: flex; position: absolute; left: 0; right: 0; top: 52px; flex-direction: column; align-items: stretch; padding: 24px; gap: 24px; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .navigation a { padding: 8px 0; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 620px; }
  .section-heading { flex-direction: column; align-items: stretch; gap: 24px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .supporting-section { grid-template-columns: 1fr; gap: 24px; }
  .timeline-row { grid-template-columns: 1fr; }
  .footer-grid { gap: 40px 24px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 8px; padding: 16px; gap: 16px; }
  .cookie-banner .actions { width: 100%; }
  .cookie-banner .button { flex: 1 1 140px; }
  .preferences-dialog .actions .button { flex: 1 1 140px; }
}
@media (max-width: 539px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-preview .card-stats { align-items: start; }
  .contact-page .checkbox-label { display: block; }
  .contact-page .checkbox-label input { margin-right: 8px; vertical-align: middle; }
}
@media (max-width: 399px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .brand { font-size: .74rem; gap: 4px; }
  .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
  .card { padding: 16px; border-radius: 16px; }
  .card-stats { gap: 24px; }
  .summary-grid { gap: 24px 16px; }
  .summary-grid .stat strong { font-size: 1.35rem; }
  .hero h1 { font-size: 2.5rem; }
  .task-meta { grid-template-columns: 1fr; }
  .task-card, .timeline-row { padding: 16px; }
  .article-header h1 { font-size: 2.3rem; }
  .preferences-dialog { padding: 16px; }
  .workspace-toolbar .actions { width: 100%; }
  .workspace-toolbar .button { flex: 1 1 120px; }
  th, td { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}