:root {
  color-scheme: light;
  --paper: #fcfaf5;
  --ink: #203d30;
  --muted: #4e6255;
  --line: #cdd4c4;
  --accent: #a84829;
  --green: #204635;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: 'Avenir Next', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, input:focus-visible { outline: 3px solid #bc5626; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 4; left: 8px; top: -90px; padding: 10px; background: white; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1112px, calc(100% - 88px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header { min-height: 77px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-name { display: block; font: 600 24px/.97 var(--serif); letter-spacing: -.05em; }
.brand-type { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .23em; }
.brand-sign { position: relative; width: 35px; height: 36px; color: var(--accent); flex: none; }
.brand-sign::after { content: '♥'; position: absolute; font: 30px/1 Georgia, serif; left: 6px; bottom: -3px; transform: rotate(-8deg); }
.toe { position: absolute; display: block; background: currentColor; border-radius: 55%; }
.t1 { width: 7px; height: 10px; left: 0; top: 11px; transform: rotate(-37deg); }
.t2 { width: 7px; height: 11px; left: 7px; top: 3px; transform: rotate(-18deg); }
.t3 { width: 7px; height: 11px; left: 17px; top: 1px; transform: rotate(8deg); }
.t4 { width: 7px; height: 9px; left: 26px; top: 7px; transform: rotate(27deg); }
nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 600; }
nav a { padding-block: .7rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline 2px var(--accent); text-underline-offset: 7px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.05em; }
.hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.75rem); }
.kicker { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .8rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.kicker::before { content: ''; width: 1.65rem; border-top: 2px solid currentColor; }
h1 { margin-top: 1rem; font-size: clamp(3.2rem, 5.2vw, 5.1rem); line-height: 1.02; text-wrap: balance; }
h1 em { color: var(--accent); font-weight: inherit; }
.intro > p:not(.kicker) { margin-top: 1.2rem; max-width: 39ch; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.intro strong { color: var(--ink); font-weight: 650; }
.button { display: inline-flex; min-height: 46px; gap: .5rem; justify-content: center; align-items: center; padding: .7rem 1.2rem; border-radius: 6px; background: var(--green); color: white; text-decoration: none; font-weight: 650; }
.intro .button { margin-top: 1.5rem; }
.button:hover { background: #315a46; }
.collection {
  padding: clamp(1.35rem, 3.2vw, 2.75rem);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #f5ebdf;
}
.collection h2 { font-size: clamp(1.95rem, 3.2vw, 2.8rem); line-height: 1.1; }
.collection p { margin-top: .9rem; line-height: 1.6; color: var(--muted); }
.collection .terms { color: var(--ink); margin-top: .6rem; }
.town-section { background: #f0f2e8; border-block: 1px solid var(--line); }
.town-content { padding-block: clamp(2.5rem,5vw,4rem); }
.directory-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2.1rem, 3.5vw, 3.35rem); line-height: 1.08; }
.directory-head p, .contact p { color: var(--muted); margin-top: .55rem; }
.search { width: min(16rem, 100%); flex-shrink: 0; }
.search label { display: block; font-size: .88rem; font-weight: 650; margin-bottom: .3rem; }
.search input { font: inherit; min-height: 45px; width: 100%; border: 1px solid #91a18e; border-radius: 6px; background: #fffefa; color: var(--ink); padding: .5rem .75rem; }
.directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.county { border-top: 1px solid #95a78e; padding-top: .95rem; }
.county h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: .65rem; }
.county ul { padding: 0; margin: 0; list-style: none; }
.county li { line-height: 1.85; }
#no-match { color: var(--muted); }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.25rem); background: var(--green); color: var(--paper); margin-block: clamp(2rem, 4.5vw, 3.5rem); border-radius: 12px; }
.contact h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.contact p { color: #e7efdf; max-width: 49ch; }
.light { flex: none; background: #f4dfc2; color: var(--ink); }
.light:hover { background: #ffebd0; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer { min-height: 65px; padding-block: 1rem; font-size: .88rem; flex-wrap: wrap; }
.footer small { font-size: inherit; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 46px); }
  .hero { gap: 1.6rem; }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 65px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 19px; }
  .brand-type { font-size: 9px; }
  .brand-sign { transform: scale(.85); margin-inline: -3px; }
  nav { gap: .8rem; font-size: .87rem; }
  .hero { grid-template-columns: 1fr; gap: 1.6rem; }
  h1 { font-size: clamp(2.9rem,10vw,3.8rem); }
  .intro > p:not(.kicker) { font-size: 1rem; margin-top: .8rem; }
  .intro .button { margin-top: 1rem; }
  .directory-head, .contact { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .search { width: 100%; }
  .directory { gap: 1.3rem .9rem; }
}
@media (max-width: 365px) {
  .header { flex-wrap: wrap; gap: .4rem; padding-block: .55rem; }
  .directory { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.postcode-check { margin-top: 1.25rem; }
.postcode-check label { display: block; margin-bottom: .35rem; font-weight: 650; }
.postcode-fields { display: flex; flex-wrap: wrap; gap: .5rem; }
.postcode-fields input { min-width: 0; width: 10rem; max-width: 100%; padding: .6rem .75rem; border: 1px solid #91a18e; border-radius: 6px; background: #fffefa; color: var(--ink); font: inherit; }
.postcode-fields .button { border: 0; margin: 0; font: 650 1rem/1.35 var(--sans); cursor: pointer; }
.postcode-fields .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#postcode-result:not(:empty) { margin-top: .75rem; font-weight: 600; }
#postcode-help, .browse { display: inline-block; font-size: .96rem; }
.browse { margin-top: .9rem; }
.directory-head p { max-width: 60ch; }
.county li { padding-block: .4rem; line-height: 1.4; }
.codes { display: block; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.all-districts { margin-top: 1.8rem; border-block: 1px solid var(--line); }
.all-districts summary { cursor: pointer; padding: 1rem 0; font-weight: 650; }
.all-districts summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.all-districts p { max-width: 75ch; padding-bottom: .8rem; }
.all-districts dl { display: grid; grid-template-columns: min-content 1fr; column-gap: 1rem; row-gap: .4rem; margin: .25rem 0 1rem; }
.all-districts dt { font-weight: 650; }
.all-districts dd { margin: 0; }
.postcode-credit { font-size: .8rem; color: var(--muted); }

:root {
  color-scheme: light;
  --deep: #102f27;
  --pine: #13392f;
  --gold: #ffcf65;
  --paper: #fffcf5;
  --ink: var(--pine);
  --green: var(--pine);
  --muted: #455e51;
  --line: #c8d0be;
  --accent: #855223;
  --sans: 'DM Sans', 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--pine); background: var(--paper); font: 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
main h1, main h2, main h3 { font-family: var(--sans); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }
main h1 { font-size: clamp(2.6rem, 5.5vw, 5.25rem); }
main h2 { font-size: clamp(2.05rem, 3.9vw, 3.6rem); }
main h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
main p, main li { overflow-wrap: break-word; }
a { text-underline-offset: .22em; }
main .button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.25rem; border-radius: 999px; background: var(--pine); color: #fff;
  text-decoration: none; font: 700 1rem/1.25 var(--sans);
}
main .button:hover { background: #245844; }
main .button.light { background: var(--gold); color: var(--deep); }
main .button.light:hover { background: #ffe192; }
main :focus-visible { outline: 3px solid #a85824; outline-offset: 4px; }
@media (max-width: 759px) { .wrap { width: calc(100% - 40px); } }
@media (max-width: 360px) { .wrap { width: calc(100% - 32px); } }
