:root {
  --paper: #faf7ef;
  --ink: #24372e;
  --green: #234c3c;
  --green-dark: #173629;
  --rust: #94472f;
  --muted: #586052;
  --line: #c7c9b9;
  --tint: #efeee4;
  --white: #ffffff;
  --error: #a12622;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, nav, .brand, .footer-brand { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(44px, 6.5vw, 88px); line-height: 1.05; letter-spacing: -0.055em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.035em; }
h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; }
p + p { margin-top: 16px; }
a { color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
button, input, textarea { font: inherit; }
button, a, input, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
button { cursor: pointer; }
svg { display: block; max-width: 100%; }
.container { width: calc(100% - 80px); max-width: 1200px; margin-inline: auto; }
.flex, .header-inner, .navigation, .hero, .section-heading, .project-grid, .card-top,
.supporting, .footer-grid, .article-meta, .contact-grid, .cookie-banner, .cookie-actions {
  min-width: 0;
}
.header-inner > *, .navigation > *, .hero > *, .section-heading > *, .project-grid > *,
.card-top > *, .supporting > *, .footer-grid > *, .article-meta > *, .contact-grid > *,
.cookie-banner > *, .cookie-actions > *, .brand > * { min-width: 0; }
.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 16px;
  background: var(--green);
  color: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { height: 64px; border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
  width: calc(100% - 80px);
  max-width: 1360px;
  margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; }
.brand svg { width: 32px; height: 32px; flex: 0 0 32px; }
.brand svg rect { fill: var(--green); }
.brand svg path { fill: none; stroke: var(--paper); stroke-width: 4px; }
.navigation { display: flex; flex: 1; align-items: center; justify-content: center; gap: 24px; font-size: 14px; }
.navigation > a { text-decoration: none; }
.navigation > a:first-child { margin-left: auto; }
.navigation > .button { margin-left: auto; }
.navigation a[aria-current="page"]:not(.button) { text-decoration: underline; text-decoration-thickness: 2px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  max-width: 100%;
  padding: 16px 24px;
  border: 1px solid var(--green);
  border-radius: 0;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color 160ms ease, color 160ms ease;
}
.button:hover { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.button.compact { min-height: 40px; padding: 8px 16px; }
.button.secondary { background: var(--paper); color: var(--green); }
.button.secondary:hover { background: #e5e9dc; color: var(--green-dark); }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 64px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; color: var(--rust); }
.hero h1 em { color: var(--rust); font-weight: 400; }
.lead { font-size: 19px; line-height: 1.65; max-width: 660px; color: var(--muted); }
.small-note { font-size: 12px; line-height: 1.65; color: var(--muted); }
.hero-copy .small-note { margin-top: 0; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; }
.hero-art { border-top: 4px solid var(--green); padding-top: 24px; }
.workbench-illustration { width: 100%; height: auto; }
.art-caption { display: flex; justify-content: space-between; gap: 16px; padding: 16px; font-size: 10px; letter-spacing: 0.07em; border-bottom: 1px solid var(--line); }
.art-caption > * { min-width: 0; }
#guides { padding-top: 64px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; margin-bottom: 40px; }
.section-heading .eyebrow, .supporting .eyebrow { margin-bottom: 16px; }
.section-heading > p { max-width: 440px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.project-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-top: 4px solid var(--green);
  background: var(--tint);
  color: var(--ink);
  transition: background-color 160ms ease;
}
.project-card:hover { background: #e6e8db; color: var(--ink); }
.project-card > * { margin: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.project-number { font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1; color: var(--rust); }
.tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }
.project-card h3 a { color: inherit; text-decoration: none; }
.project-card h3 a:hover { text-decoration: underline; }
.project-card > p { font-size: 15px; }
.project-card .card-meta { font-size: 12px; color: var(--muted); }
.project-card > .text-link { margin-top: auto; }
.supporting { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; padding-block: 64px; border-top: 1px solid var(--line); }
.supporting .text-link { margin-top: 24px; }
.site-footer { margin-top: 64px; padding-block: 64px; border-top: 1px solid var(--line); background: var(--green-dark); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 0.8fr; gap: 40px; }
.footer-brand { display: inline-block; font-size: 20px; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; margin-bottom: 16px; }
.site-footer a, .site-footer .link-button { color: var(--paper); }
.site-footer a:hover, .site-footer .link-button:hover { color: #e8c7a4; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: #e8c7a4; }
.site-footer p { font-size: 13px; }
.site-footer .small-note { color: #d0d6c9; font-size: 11px; margin-top: 16px; }
.site-footer h2 { font: 700 12px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer nav h2 { margin-bottom: 16px; }
.site-footer nav a, .site-footer > div > div > a:not(.footer-brand) { font-size: 13px; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--green); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.article-layout { max-width: 1000px; padding-top: 64px; }
.article-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.article-header > * + * { margin-top: 24px; }
.article-header h1 { max-width: 900px; font-size: clamp(42px, 6.5vw, 76px); }
.breadcrumb { display: inline-block; font-size: 13px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 12px; color: var(--muted); }
.prose { max-width: 760px; margin-inline: auto; }
.prose > section, .prose > aside, .prose > nav { margin-top: 64px; }
.prose h2 { font-size: 30px; margin-bottom: 24px; }
.prose p { line-height: 1.8; }
.prose ul { padding-left: 24px; margin-block: 24px; }
.prose li + li { margin-top: 8px; }
.note, .contact-panel, .email-result {
  border-top: 4px solid var(--green);
  padding: 24px;
  background: var(--tint);
  color: var(--ink);
}
.note h2 { font-size: 25px; }
.article-next { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.article-next a { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.4; }
.table-wrap { max-width: 100%; overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
caption { padding: 16px; text-align: left; font-weight: 700; background: var(--tint); color: var(--ink); }
th, td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead { background: var(--green); color: var(--white); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
code { font-size: 12px; overflow-wrap: anywhere; }
.contact-main { padding-top: 64px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 64px; margin-top: 64px; }
.contact-panel > p { margin-block: 24px; }
form { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
form > p { margin: 0; }
form > .button { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; font-weight: 700; }
label span { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #78806e;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; }
input.is-invalid, textarea.is-invalid { border: 2px solid var(--error); background: #fff8f5; color: var(--ink); }
.field-error { color: var(--error); font-size: 13px; }
.field-error:empty, .form-status:empty { display: none; }
.field-help { color: var(--muted); font-size: 12px; }
.form-status { font-size: 14px; font-weight: 700; }
.email-result { background: var(--paper); color: var(--ink); }
.email-result p, .email-result a { margin-top: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 40px; }
.contact-details h2 { margin-top: 16px; }
.contact-details p, .contact-details address { margin-top: 24px; }
address { font-style: normal; }
.map-block { border-top: 4px solid var(--green); padding-top: 24px; }
.bristol-office-location-illustration { width: 100%; height: auto; }
.map-block figcaption { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.map-block figcaption span { font-size: 11px; color: var(--muted); }
.cookie-banner {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 75vh;
  max-height: 75dvh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 40px;
  border-top: 2px solid var(--green);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -8px 32px #17362914;
}
.cookie-banner h2 { font-size: 23px; margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; max-width: 700px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .button { padding: 16px; font-size: 12px; }
.cookie-preferences { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; }
.cookie-preferences h3 { font-size: 24px; }
.cookie-preferences p { margin-block: 16px 24px; }
@media (max-width: 1050px) {
  .hero { gap: 40px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 40px; }
}
@media (max-width: 767px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .site-header { height: 52px; }
  .header-inner { justify-content: space-between; gap: 16px; }
  .brand { font-size: 15px; flex: 1; }
  .brand svg { width: 28px; height: 28px; flex-basis: 28px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 4px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--green);
    font-size: 24px;
  }
  .menu-toggle:hover { background: var(--tint); color: var(--green-dark); }
  .navigation {
    display: none;
    position: fixed;
    z-index: 40;
    inset: 52px 0 0;
    overflow-y: auto;
    padding: 40px 24px;
    background: var(--paper);
    color: var(--ink);
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 24px;
    font-size: 26px;
  }
  .navigation.is-open { display: flex; }
  .navigation > a:first-child, .navigation > .button { margin-left: 0; }
  .navigation > .button { align-self: flex-start; font-size: 16px; padding: 16px 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { font-size: clamp(48px, 10vw, 76px); }
  .hero-art { max-width: 560px; width: 100%; }
  #guides { padding-top: 0; }
  .section-heading, .supporting { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section-heading > p { max-width: none; }
  .project-grid { gap: 24px; }
  .project-card { padding: 24px; }
  .project-card h3 { font-size: 26px; }
  .card-top { flex-wrap: wrap; justify-content: flex-start; }
  .tag { text-align: left; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-layout, .contact-main { padding-top: 40px; }
  .article-meta { flex-direction: column; gap: 8px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .cookie-banner { padding: 24px 16px; gap: 16px; }
  .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-actions .button:last-child { grid-column: 1 / -1; }
  .table-wrap table { min-width: 600px; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .lead { font-size: 17px; }
  .art-caption { flex-direction: column; gap: 8px; }
}
@media (max-width: 399px) {
  .brand { font-size: 13px; }
  .hero h1 { font-size: 46px; }
  .article-header h1 { font-size: 40px; }
  .project-card, .contact-panel, .note, .email-result { padding: 24px 16px; }
  .cookie-actions { grid-template-columns: minmax(0, 1fr); }
  .cookie-banner h2 { font-size: 21px; }
  .button { padding: 16px; }
  .prose h2 { font-size: 27px; }
  .section-heading h2, .supporting h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .site-header, .cookie-banner, .skip-link, .menu-toggle, .link-button { display: none !important; }
  .container { width: 100%; max-width: none; }
  .site-footer { background: #ffffff; color: #000000; padding-block: 24px; }
  .site-footer a, .site-footer .small-note { color: #000000; }
  .prose { max-width: none; }
  .prose > section { margin-top: 24px; }
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .project-card, .note { break-inside: avoid; }
  a { color: #000000; }
}