/* ==========================================================================
   Will Water London, willwaterlondon.com

   Newsreader sets headings and quotations, Karla sets body text, IBM Plex
   Mono sets figures, captions and specification rows. Colour tokens are in
   :root and nowhere else; photographs supply the colour, so the interface
   uses paper, ink and one accent.

   Brief constraint: no urgency devices anywhere in the design. That rules out
   status bars, countdowns, hazard fills and penalty figures. See CLAUDE.md.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..500;1,6..72,200..400&family=Karla:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Ground */
  --paper:     #F3F0E8;
  --paper-2:   #EAE5D9;
  --ink:       #1B2019;
  --ink-soft:  #5C6157;
  --rule:      #D6D0C2;

  /* Accent for links, restriction marks and the water path in the drawing. */
  --water:     #3E6B70;
  --water-lo:  #7FA1A3;

  /* hosepipe-ban.html only. 5.4:1 on --paper, which the 10.5px marks need. */
  --clay:      #8E5233;

  --gutter: clamp(20px, 6vw, 88px);
  --maxw:   1280px;
  --rhythm: clamp(72px, 10vw, 150px);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Karla', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 900px) { body { font-size: 18px; } }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

::selection { background: var(--water); color: var(--paper); }

:focus-visible {
  outline: 1.5px solid var(--water);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px;
  font-family: var(--mono); font-size: 13px;
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(42px, 6vw, 88px); line-height: 1.0; }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.012em; }
h4 { font-size: 19px; }

h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

.prose { max-width: 66ch; }
.prose h3 { margin: 1.9em 0 .5em; }
.prose h3:first-child { margin-top: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 25px);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--ink);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.src {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Body-copy links carry the one accent. */
.prose a, .contact a, .footer-links a, .cta-note a, .hero-note a {
  color: var(--water);
  border-bottom: 1px solid var(--water-lo);
  transition: border-color .25s, color .25s;
}
.prose a:hover, .contact a:hover, .footer-links a:hover,
.cta-note a:hover, .hero-note a:hover { border-color: var(--water); color: var(--ink); }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
  padding: 10px 18px;
  font-size: 14px;
}
.btn--quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  transition: border-color .3s, color .3s;
}
.link:hover { border-color: var(--water); color: var(--water); }
.link .arrow, .btn .arrow { transition: transform .35s var(--ease); }
.link:hover .arrow, .btn:hover .arrow { transform: translateX(5px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 240, 232, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.wordmark .loc {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  margin-left: auto;
  font-size: 15.5px;
}
.site-nav a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current] { color: var(--ink-soft); border-bottom-color: var(--rule); }

.header-cta { flex: none; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; row-gap: 14px; }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    font-size: 14.5px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .header-cta { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(44px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 78px);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: clamp(26px, 3vw, 40px); }
.hero .actions { margin-top: clamp(30px, 3.4vw, 46px); }

.hero-note {
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* Hero plate. site.js replaces the poster img with a video above 900px. */
.hero-media { position: relative; }
.hero-media video, .hero-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.94) contrast(1.02);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { display: none; }
}

/* ---------- sections ---------- */

.section { padding-block: var(--rhythm); }
.section + .section { border-top: 1px solid var(--rule); }
.section--rebate { background: var(--paper-2); border-top: 1px solid var(--rule); }

.shead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: baseline;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.shead--single { grid-template-columns: 1fr; }
.shead h2 { max-width: 18ch; }

@media (max-width: 860px) {
  .shead { grid-template-columns: 1fr; gap: 22px; }
  .shead h2 { max-width: none; }
}

/* ---------- plates ---------- */

figure.plate { margin: 0; }
.plate img {
  width: 100%;
  height: auto;
  filter: saturate(.94) contrast(1.02);
}
.plate--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.plate--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.plate--band img { aspect-ratio: 21 / 9; object-fit: cover; }

.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.plate figcaption .ref { flex: none; }

/* Bands are placed outside .wrap in the markup, so full width needs no
   100vw rule and cannot produce horizontal overflow from the scrollbar. */
.band { padding-block: clamp(8px, 2vw, 24px); }
.band .plate figcaption {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 700px) {
  .plate--band img { aspect-ratio: 4 / 3; }
}

/* ---------- specification lists ---------- */

.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.spec li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
}
.spec li:first-child { border-top: 1px solid var(--ink); }
.spec li span:first-child { color: var(--ink-soft); }
.spec li span:last-child { text-align: right; }

/* ---------- quoted regulation ---------- */

.note {
  margin: 0;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--water);
  max-width: 40ch;
}
.note--wide { max-width: 26ch; }
.note p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(21px, 2.8vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.note .hl { font-style: normal; }
.note cite {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.note cite a { color: var(--water); border-bottom: 1px solid var(--water-lo); }

/* ---------- entries (services, chapters) ---------- */

.entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(38px, 5vw, 70px);
  border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-no {
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.entry-aside > * + * { margin-top: clamp(22px, 3vw, 34px); }
.entry-body > * + * { margin-top: clamp(22px, 3vw, 32px); }
.entry--flip .entry-aside { order: 2; }

@media (max-width: 860px) {
  .entry { grid-template-columns: 1fr; }
  .entry--flip .entry-aside { order: 0; }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 46px);
}
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.step h3 { margin-bottom: 12px; }
.step p { font-size: 16px; color: var(--ink-soft); }
.step-when {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--water);
}

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- quiet figures ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
}
.stat { border-top: 1px solid var(--rule); padding-top: 20px; }
.stat-fig {
  display: block;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-cap {
  display: block;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- two-column prose ---------- */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols > * + * { margin-top: 0; }
@media (max-width: 860px) { .cols, .cols--even { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- reference table (restrictions) ---------- */

.reg { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.reg th {
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.reg td {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.reg td:first-child { padding-right: 20px; }
.reg td:nth-child(2) { width: 132px; }
.reg .cond { color: var(--ink-soft); font-size: 15.5px; }

.mark {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark--yes   { color: var(--water); }
.mark--no    { color: var(--clay); }
.mark--check { color: var(--ink-soft); }

.reg-scroll { overflow-x: auto; }
@media (max-width: 700px) {
  .reg, .reg tbody, .reg tr, .reg td { display: block; width: 100%; }
  .reg thead { display: none; }
  .reg tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .reg td { padding: 0; border: 0; }
  .reg td + td { margin-top: 8px; }
  .reg td:nth-child(2) { width: auto; }
}

/* ---------- questions ---------- */

.qa { border-top: 1px solid var(--rule); padding-top: 26px; }
.qa + .qa { margin-top: 26px; }
.qa h3 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 10px; }
.qa p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- schematic ---------- */
/* Stroke and fill live here rather than on the SVG elements, so the drawing
   follows the palette tokens. Widths are in user units of a 672 unit viewBox,
   so 1 renders at roughly 1px at the drawing's usual displayed size. */

.schematic { width: 100%; height: auto; }
.sch-line   { fill: none; stroke: var(--ink); stroke-width: 1; }
.sch-thin   { fill: none; stroke: var(--ink-soft); stroke-width: .75; }
.sch-water  { fill: none; stroke: var(--water); stroke-width: 1.25; }
.sch-fill   { fill: var(--water); }
.sch-box    { fill: none; stroke: var(--ink); stroke-width: 1; }
.sch-bulb   { fill: var(--water); opacity: .09; stroke: var(--water-lo); stroke-width: .75; stroke-dasharray: 2 3; }
.sch-dim    { stroke: var(--ink-soft); stroke-width: .75; }
.sch-txt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  fill: var(--ink-soft);
  text-transform: uppercase;
}
.sch-txt--ink { fill: var(--ink); }
.sch-txt--water { fill: var(--water); }
.sch-hatch line { stroke: var(--rule); stroke-width: .75; }

.drop { fill: var(--water); }
@media (prefers-reduced-motion: no-preference) {
  .drop {
    animation: fall 3.4s var(--ease) infinite;
    animation-delay: calc(var(--i) * .42s);
    opacity: 0;
  }
}
@keyframes fall {
  0%   { transform: translateY(0);    opacity: 0; }
  12%  { opacity: .9; }
  55%  { transform: translateY(34px); opacity: .9; }
  70%  { transform: translateY(38px); opacity: 0; }
  100% { transform: translateY(38px); opacity: 0; }
}

/* ---------- closing block ---------- */

.close { border-top: 1px solid var(--ink); padding-top: clamp(34px, 4vw, 54px); }
.close-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.close h2 { margin-bottom: 22px; }
.cta-note { margin-top: 22px; font-size: 15.5px; color: var(--ink-soft); }

.contact { margin: 0; }
.contact dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact dd {
  margin: 6px 0 22px;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 300;
}
.contact dd:last-child { margin-bottom: 0; }

@media (max-width: 860px) { .close-inner { grid-template-columns: 1fr; } }

/* ---------- contact routes ---------- */

.routes { border-top: 1px solid var(--ink); }
.route {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .35s var(--ease), border-color .35s;
}
.route:hover { padding-left: 10px; border-bottom-color: var(--water); }
.route-k {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.route-v {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 300;
  letter-spacing: -0.015em;
}
.route .arrow { font-size: 19px; color: var(--ink-soft); transition: transform .35s var(--ease); }
.route:hover .arrow { transform: translateX(5px); color: var(--water); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(44px, 6vw, 80px) 34px;
  font-size: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 60px);
}
.footer-blurb { margin-top: 18px; color: var(--ink-soft); max-width: 40ch; font-size: 16px; }
.site-footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: clamp(40px, 5vw, 68px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Page-load stagger. Hero elements set --d; steps are 60ms apart. */
.rise {
  opacity: 0;
  animation: rise .8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.hero-media video, .hero-media img { animation: settle 1.4s var(--ease) both; }
@keyframes settle {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise, .hero-media video, .hero-media img {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .drop { animation: none; opacity: .9; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .hero-media, .band, .btn, .link { display: none; }
  body { background: #fff; font-size: 11pt; }
}
