@font-face {
  font-family: Instrument Serif;
  src: url("instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Instrument Serif;
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #f6f1e7;
  --paper: #fffcf6;
  --ink: #1e352a;
  --green: #214735;
  --muted: #4a574d;
  --line: #ded8cb;
  --ochre: #ad6d34;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #ae5426; outline-offset: 4px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
picture { display: block; height: 100%; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.03; margin: 0; }
h2 { font: 650 clamp(1.6rem, 2.4vw, 2.15rem)/1.18 var(--sans); letter-spacing: -.025em; margin-bottom: 24px; }
h2::after { content: ""; display: block; width: 38px; height: 1px; background: var(--ochre); margin-top: 15px; }
h3 { font-size: 1rem; line-height: 1.35; margin: 0 0 8px; }
p { margin: 0 0 1rem; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(1220px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 3; background: var(--paper); padding: 8px 14px; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; min-height: 76px; }
.brand { display: inline-flex; gap: 12px; align-items: center; justify-self: start; font: 1.75rem/1 var(--serif); white-space: nowrap; text-decoration: none; }
.brand b { font-weight: 400; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--green); color: var(--paper); }
.brand-mark::before { content: ""; width: 15px; height: 12px; border: 1px solid currentColor; border-top: 0; transform: translateY(2px); }
.brand-mark::after { content: ""; position: absolute; width: 20px; height: 4px; border: 1px solid currentColor; border-radius: 1px; transform: translateY(-6px); }
.topbar nav { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 650; }
.topbar nav > a { text-decoration: none; }
.topbar nav > a:hover { text-decoration: underline; }
.topbar nav > a[aria-current="page"] { text-decoration: underline; }
.menu { position: relative; }
.menu summary { display: flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; min-height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.menu > div { position: absolute; width: 235px; z-index: 2; top: 100%; right: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 28px #1e352a18; border-radius: 12px; padding: 6px; }
.menu a { display: flex; justify-content: space-between; gap: 6px; padding: 9px 10px; text-decoration: none; border-radius: 6px; }
.menu a:hover { background: var(--cream); }
.menu a span { color: var(--muted); font-weight: 400; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 49px; padding: 10px 20px; border-radius: 7px; background: var(--green); color: var(--paper); border: 1px solid transparent; font: 650 .92rem/1.3 var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: #315a46; }
.header-cta { justify-self: end; min-height: 44px; }
.header-cta .desktop-label { display: contents; }
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(34px, 6vw, 76px); padding-block: 36px; }
.hero h1 { font-size: clamp(3.05rem, 5vw, 4.65rem); letter-spacing: -.022em; }
.hero h1 em { font-weight: 400; }
.hero h1 .postcode { font: 500 .27em/1 var(--sans); letter-spacing: 0; white-space: nowrap; }
.hero-layout > div:first-child > p { color: var(--muted); max-width: 48ch; font-size: 1.055rem; margin-block: 23px 26px; }
.hero-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .92rem; font-weight: 650; }
.hero-links > a:last-child { padding-block: 8px; }
.hero-image { overflow: hidden; border-radius: 8px; height: clamp(275px, 30vw, 390px); background: #ddd1bc; }
.hero-image img { object-position: center 61%; }
.city-hero { background: var(--green); color: var(--paper); }
.city-hero .hero-layout { grid-template-columns: 1.1fr 1fr; }
.city-hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.15rem); }
.city-hero .crumb, .city-hero .hero-layout > div:first-child > p { color: #e6ece2; }
.city-hero .hero-links .button { background: #f0dfc7; color: var(--ink); }
.city-hero .hero-links .button:hover { background: #f8ebd9; }
.crumb { font-size: .82rem; margin-bottom: 13px; color: var(--muted); }
.section { padding-block: clamp(36px, 5vw, 62px); }
.editorial p, .editorial li, .local-facts p { color: var(--muted); }
.editorial p + h3 { margin-top: 21px; }
.editorial .wrap > :last-child, .local-facts .wrap > :last-child { margin-bottom: 0; }
.editorial .wrap > p + ul { margin-top: -6px; }
.editorial ul { padding-inline-start: 1.25rem; }
.editorial li + li { margin-top: 6px; }
.prices { background: #f4f4eb; }
.price-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 23px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 20px; vertical-align: middle; }
thead { background: #ece9dc; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody td:first-of-type, .fineprint { color: var(--muted); }
th:last-child, td:last-child { text-align: right; }
td:last-child { font-weight: 700; white-space: nowrap; }
.fineprint { margin-top: 12px; font-size: .86rem; }
.succession { background: #e9ede2; }
.split { display: grid; grid-template-columns: 1.23fr 1fr; gap: clamp(26px, 5vw, 66px); align-items: start; }
.secondary-image { aspect-ratio: 1.48; border-radius: 9px; overflow: hidden; background: #d3c7b1; }
.local-facts { background: #e9ede2; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 35px; margin: 19px 0 14px; }
.facts > div { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 11px 0; border-top: 1px solid #cbd4c8; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; text-align: right; }
.housing-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; margin-block: 26px; }
.housing-card { margin: 0; padding: clamp(14px, 2.4vw, 23px); background: var(--paper); border: 1px solid #d5dacd; border-radius: 9px; }
.housing-card figcaption, .housing-card h3 { font-weight: 700; font-size: 1.06rem; }
.housing-chart { display: grid; gap: 15px; list-style: none; padding: 0; margin: 16px 0 0; }
.housing-chart li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; font-size: .9rem; }
.housing-chart strong { text-align: right; }
.bar { grid-column: 1 / -1; height: 7px; background: #e8eee6; border-radius: 8px; margin-top: 5px; }
.bar span { display: block; height: 100%; min-width: 2px; background: #498063; border-radius: inherit; }
.housing-table { margin-top: 12px; }
.housing-table th, .housing-table td { padding: 6px 8px; font-size: .86rem; }
.housing-table td, .housing-table th:not(:first-child) { text-align: right; }
.housing-card > p { font-size: .82rem; margin: 9px 0 0; }
.districts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0 16px; }
.editorial .districts { padding: 0; margin: 17px 0 0; }
.editorial .districts li { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 650; color: var(--ink); }
.organisation { background: var(--cream); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid > div { background: var(--paper); padding: 19px; border: 1px solid var(--line); border-top: 2px solid #ad6d34; border-radius: 5px; }
.guide-grid p { margin: 0; }
.contact-page { background: #e9ede2; min-height: calc(100vh - 215px); display: grid; align-items: center; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 4vw, 48px); align-items: start; }
.contact-intro { overflow: hidden; color: var(--paper); background: var(--green); border-radius: 11px; }
.contact-intro > div:first-child { padding: clamp(22px, 4vw, 42px); }
.contact-intro h1 { font-size: clamp(2.8rem, 5vw, 4.3rem); }
.contact-intro p { margin: 12px 0 0; max-width: 31ch; }
.contact-image { height: clamp(168px, 20vw, 255px); }
.contact-form { border: 1px solid var(--line); }
.contact-form > label + label { margin-top: 14px; }
.legal h1 { font-size: clamp(2.7rem, 5vw, 4.25rem); }
.legal h2 { margin-top: 26px; }
.footer nav.footer-contact { display: grid; }
.quote-section { background: var(--green); color: var(--paper); }
.quote-layout { display: grid; grid-template-columns: .75fr 1.25fr; column-gap: clamp(30px, 7vw, 90px); align-items: start; }
.footer h2::after { background: #d2a06f; }
.quote-copy p { max-width: 34ch; margin-top: 28px; color: #e6ece2; font-size: 1.13rem; }
.quote { padding: clamp(18px, 3vw, 32px); color: var(--ink); background: var(--paper); border-radius: 11px; }
.quote h2 { font-size: clamp(1.3rem, 2vw, 1.66rem); margin-bottom: 16px; }
.quote h2::after { margin-top: 9px; }
.quote h2 span { white-space: nowrap; font-size: .79em; }
.hero-form .quote { padding: clamp(18px, 2vw, 25px); }
.hero-form .grid-fields { gap: 9px 13px; margin-bottom: 9px; }
.hero-form .quote input, .hero-form .quote select { padding-block: 7px; min-height: 41px; }
.hero-form .quote textarea { min-height: 66px; }
.hero-form .form-actions { margin-top: 12px; }
.grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 15px; margin-bottom: 14px; }
.quote label { display: block; font-size: .87rem; font-weight: 700; }
.quote input, .quote select, .quote textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid #babdb0; background: #fffefa; color: var(--ink); border-radius: 5px; font: 400 1rem/1.35 var(--sans); min-height: 44px; padding: 10px 11px; }
.quote input[type="date"] { min-width: 0; }
.quote textarea { min-height: 86px; resize: vertical; }
.quote-options { margin-top: 12px; }
.quote-options summary { cursor: pointer; color: var(--green); font-size: .88rem; font-weight: 650; }
.quote-options .grid-fields { margin-top: 12px; }
.trap { display: none; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 15px; margin-top: 18px; color: var(--muted); font-size: .84rem; }
#form-status { margin: 16px 0 0; padding: 10px 12px; background: #e5eee3; border-left: 3px solid var(--green); }
#form-status[role="alert"] { background: #f8e9df; border-color: #9c4119; }
.local-nav { background: var(--cream); }
.city-links { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.city-links a { background: var(--paper); padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; font-size: .94rem; }
.city-links a:hover { background: #f0eee3; }
.city-links a + a { border-left: 1px solid var(--line); }
.city-links a:nth-child(n+3) { border-top: 1px solid var(--line); }
.city-links a:nth-child(odd) { border-left: 0; }
.distance { font-size: .8rem; font-weight: 650; white-space: nowrap; border-radius: 4px; padding: 3px 7px; background: #e7ecdf; }
.distance span { margin-left: 4px; }
.footer { background: #172f25; color: var(--paper); padding-block: 38px; }
.footer-layout { display: grid; grid-template-columns: 1.1fr 1.6fr auto; align-items: start; gap: 20px 36px; }
.footer .brand-mark { background: #37614a; }
.footer h2 { font-size: 1rem; font-family: var(--sans); font-weight: 650; margin-bottom: 11px; }
.footer h2::after { margin-top: 8px; width: 26px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 3px 16px; }
.footer nav a, .footer-layout > a:last-child { font-size: .88rem; }
.footer nav a span { color: #c5d3c8; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .topbar { gap: 13px; }
  .topbar nav { gap: 15px; }
  .hero-layout { gap: 30px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { display: flex; justify-content: space-between; min-height: 64px; gap: 8px; }
  .brand { gap: 6px; font-size: 1.34rem; }
  .brand-mark { width: 30px; height: 30px; }
  .topbar nav { font-size: .79rem; }
  .topbar nav .desktop-link, .header-cta .desktop-label { display: none; }
  .header-cta { font-size: .82rem; min-height: 42px; padding-inline: 9px; gap: 4px; }
  .hero-layout, .city-hero .hero-layout, .split, .quote-layout, .facts, .housing-layout, .contact-layout, .guide-grid { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 30px 24px; gap: 25px; }
  .hero h1, .city-hero h1 { font-size: clamp(2.6rem, 9.6vw, 3.65rem); }
  .hero-layout > div:first-child > p { margin-block: 14px 19px; }
  .hero-image { height: clamp(195px, 58vw, 310px); }
  .hero-image img { object-position: center 68%; }
  .hero-links { gap: 13px; }
  .quote-layout { row-gap: 12px; }
  .quote-copy p { margin-top: 0; }
  .facts > div { gap: 8px; }
  .city-links { grid-template-columns: 1fr; }
  .city-links a + a { border-left: 0; border-top: 1px solid var(--line); }
  .footer-layout { grid-template-columns: 1fr; }
  th, td { padding: 10px; font-size: .82rem; }
  .split { gap: 22px; }
}

@media (max-width: 440px) {
  .grid-fields { grid-template-columns: 1fr; }
  .hero-form .grid-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-form .town-field { grid-column: 1 / -1; }
  .hero-form .quote input, .hero-form .quote select { min-width: 0; padding-inline: 6px; }
  .topbar .brand { white-space: normal; }
  .topbar .brand b { display: block; }
  .topbar nav { white-space: nowrap; }
  .topbar nav { gap: 7px; }
  .topbar .menu summary { gap: 5px; }
  .topbar .contact-link { font-size: .78rem; }
  .hero-links .button { padding-inline: 11px; }
  th, td { padding-inline: 7px; }
}

@media (max-width: 360px) {
  .topbar .brand { font-size: 1.18rem; }
  .topbar .brand-mark { display: none; }
  .topbar { gap: 5px; }
  .topbar nav { font-size: .71rem; gap: 6px; }
  .topbar .contact-link { font-size: .71rem; }
  .header-cta { padding-inline: 5px; }
  .header-cta > span[aria-hidden] { display: none; }
  .price-table table { table-layout: fixed; }
  .price-table th:first-child { width: 31%; }
  .price-table thead th:last-child { width: 31%; }
  .price-table td:last-child { white-space: normal; }
  .price-table th, .price-table td { overflow-wrap: anywhere; }
  .housing-table th, .housing-table td { padding-inline: 5px; font-size: .79rem; }
}
