/* The Chiltern Techie — site styles
   Themes: standard (default), .theme-hc (black on white), .theme-dark, .theme-yb (yellow on black)
   Text size: .size-l (125%), .size-xl (150%) · Easier reading: .spacing */

:root {
  --bg: #FAF7F0; --surface: #FFFFFF; --alt: #E3EDE4; --line: #D9D2C3; --border-strong: #4F5B54;
  --text: #1C2620; --muted: #4F5B54; --brand: #2D5A3D; --accent: #B04A1A; --accent-hover: #963E15;
  --on-accent: #FFFFFF; --link: #2D5A3D; --focus: #B04A1A; --hill: #8DB596; --hill-dark: #2D5A3D;
  --header-bg: #FFFFFF; --footer-bg: #2D5A3D; --footer-text: #FFFFFF;
  --radius: 12px; --radius-sm: 6px; --wrap: 1100px;
  --font: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
}
html.theme-hc {
  --bg: #FFFFFF; --surface: #FFFFFF; --alt: #FFFFFF; --line: #000000; --border-strong: #000000;
  --text: #000000; --muted: #000000; --brand: #000000; --accent: #000000; --accent-hover: #333333;
  --on-accent: #FFFFFF; --link: #0000CC; --focus: #0000CC; --hill: transparent; --hill-dark: transparent;
  --header-bg: #FFFFFF; --footer-bg: #000000; --footer-text: #FFFFFF;
}
html.theme-dark {
  --bg: #121A15; --surface: #1B261F; --alt: #18221B; --line: #3A4A3F; --border-strong: #9AA89E;
  --text: #F2F1EA; --muted: #C9CFC6; --brand: #A9D5B4; --accent: #F2A06B; --accent-hover: #F7B98F;
  --on-accent: #121A15; --link: #A9D5B4; --focus: #F2A06B; --hill: #24392B; --hill-dark: #2E4A37;
  --header-bg: #18221B; --footer-bg: #0C120E; --footer-text: #F2F1EA;
}
html.theme-yb {
  --bg: #000000; --surface: #000000; --alt: #000000; --line: #FFFF00; --border-strong: #FFFF00;
  --text: #FFFF00; --muted: #FFFF00; --brand: #FFFF00; --accent: #FFFF00; --accent-hover: #FFFFFF;
  --on-accent: #000000; --link: #FFFF00; --focus: #FFFFFF; --hill: transparent; --hill-dark: transparent;
  --header-bg: #000000; --footer-bg: #000000; --footer-text: #FFFF00;
}
html { font-size: 100%; }
html.size-l { font-size: 125%; }
html.size-xl { font-size: 150%; }
@media (prefers-reduced-motion: no-preference) { html:not(.no-motion) { scroll-behavior: smooth; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.1875rem; line-height: 1.6; }
html.spacing body { line-height: 1.9; letter-spacing: 0.06em; word-spacing: 0.16em; }
html.spacing p, html.spacing li { margin-bottom: 1.4em; max-width: 60ch; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; color: var(--brand); }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); color: var(--text); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.35rem; color: var(--text); }
p { margin: 0 0 1rem; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
html.theme-hc :focus-visible, html.theme-yb :focus-visible { outline-width: 5px; box-shadow: 0 0 0 9px var(--bg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* skip link */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 50; background: var(--surface); color: var(--text); padding: 0.75rem 1rem; border: 3px solid var(--focus); border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 0.75rem; }

/* top bar */
.topbar { background: var(--brand); color: var(--bg); font-size: 1rem; }
html.theme-hc .topbar { background: #000; color: #fff; }
html.theme-yb .topbar { background: #000; color: #FFFF00; border-bottom: 2px solid #FFFF00; }
html.theme-dark .topbar { background: #24392B; color: #F2F1EA; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.topbar a { color: inherit; font-weight: 700; }
.a11y-toggle { font: inherit; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 1rem; border-radius: 9999px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.a11y-toggle svg { width: 22px; height: 22px; }

/* accessibility panel */
.a11y-panel { background: var(--surface); border-bottom: 3px solid var(--brand); }
.a11y-panel[hidden] { display: none; }
.a11y-panel .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.a11y-panel h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.a11y-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.5rem; }
.a11y-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.a11y-group legend, .a11y-group .label { font-weight: 700; margin-bottom: 0.5rem; padding: 0; display: block; }
.opt-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt { font: inherit; font-size: 1rem; min-height: 48px; padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--brand); color: var(--bg); border-color: var(--brand); font-weight: 700; }
html.theme-hc .opt[aria-pressed="true"] { background: #000; color: #fff; }
html.theme-yb .opt[aria-pressed="true"] { background: #FFFF00; color: #000; }
.opt[aria-pressed="true"]::before { content: "✓ "; }
.a11y-panel .note { font-size: 1rem; color: var(--muted); margin: 1rem 0 0; }

/* header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.logo { display: block; width: min(250px, 58vw); }
.logo img { width: 100%; }
.logo .l-mono, .logo .l-rev { display: none; }
html.theme-hc .logo .l-std, html.theme-dark .logo .l-std, html.theme-yb .logo .l-std { display: none; }
html.theme-hc .logo .l-mono { display: block; }
html.theme-dark .logo .l-rev, html.theme-yb .logo .l-rev { display: block; }
html.theme-yb .logo img { filter: brightness(0) saturate(100%) invert(91%) sepia(97%) saturate(1500%) hue-rotate(2deg); }
.menu-btn { display: none; font: inherit; font-weight: 700; min-height: 48px; padding: 0.5rem 1.1rem; border-radius: var(--radius-sm); border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 700; }
.site-nav a:hover { background: var(--alt); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav a.nav-book { background: var(--accent); color: var(--on-accent); }
.site-nav a.nav-book:hover { background: var(--accent-hover); }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav { flex-basis: 100%; }
  .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; padding-bottom: 0.5rem; }
  .site-nav a { width: 100%; border: 2px solid var(--line); }
}
html.size-l .menu-btn, html.size-xl .menu-btn { display: inline-flex; }
html.size-l .site-nav, html.size-xl .site-nav { flex-basis: 100%; }
html.size-l .site-nav[data-open="false"], html.size-xl .site-nav[data-open="false"] { display: none; }
html.size-l .site-nav ul, html.size-xl .site-nav ul { flex-direction: column; }
html.size-l .site-nav a, html.size-xl .site-nav a { width: 100%; border: 2px solid var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0.7rem 1.6rem; border-radius: 9999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* sections */
main { display: block; }
section { padding: 3.5rem 0; }
.band { background: var(--alt); }
html.theme-hc .band, html.theme-yb .band { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.page-head { padding: 2.75rem 0 1.5rem; }
.page-head p.lead { font-size: 1.3rem; color: var(--muted); max-width: 46rem; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 42rem; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 6.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-photo { justify-self: center; width: min(320px, 70vw); }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--surface); box-shadow: 0 0 0 5px var(--hill); }
html.theme-hc .hero-photo img, html.theme-yb .hero-photo img { box-shadow: 0 0 0 4px var(--line); }
.hero .phone-big { display: inline-block; font-size: 2rem; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: 0.02em; margin-top: 0.5rem; }
.hero .phone-big:hover { text-decoration: underline; }
.trust { font-size: 1rem; color: var(--muted); margin-top: 1.25rem; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80px; }
.hills .h1 { fill: var(--hill); } .hills .h2 { fill: var(--alt); } .hills .h3 { fill: var(--hill-dark); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; width: min(220px, 60vw); } }
html.size-xl .hero-grid { grid-template-columns: 1fr; }
html.size-xl .hero-photo { order: -1; width: 220px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
html.theme-hc .card, html.theme-yb .card { border-width: 2px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 44px; height: 44px; margin-bottom: 0.75rem; color: var(--brand); }
a.card-link { display: block; text-decoration: none; color: inherit; }
a.card-link:hover .card { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
a.card-link .more { display: inline-block; margin-top: 0.85rem; color: var(--link); font-weight: 700; text-decoration: underline; }

/* price list */
.prices { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.prices .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.prices .row:last-child { border-bottom: 0; }
.prices strong { font-size: 1.25rem; }
.prices .p { font-weight: 700; color: var(--brand); font-size: 1.25rem; }
.prices small { display: block; color: var(--muted); font-size: 1rem; }
.note { font-size: 1.05rem; color: var(--muted); margin-top: 1rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 5rem; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 1.5rem; top: 1.4rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* promise */
.promise { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--surface); border: 3px solid var(--brand); border-radius: var(--radius); padding: 1.75rem; }
.promise svg { flex-shrink: 0; width: 56px; height: 56px; color: var(--brand); }
.promise ul { margin: 0; padding-left: 1.25rem; }
.promise li { margin-bottom: 0.5rem; }
@media (max-width: 600px) { .promise { flex-direction: column; } }

/* two-column info */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

/* about */
.about { display: grid; grid-template-columns: 16rem 1fr; gap: 2.5rem; align-items: start; }
.about img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--hill); }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about img { max-width: 14rem; } }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.75rem; }
summary { cursor: pointer; font-weight: 700; font-size: 1.2rem; padding: 1.1rem 3rem 1.1rem 1.5rem; list-style: none; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.5rem; top: 0.85rem; font-size: 1.6rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 1.5rem 1rem; color: var(--muted); }

/* contact methods */
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.cards.two-up { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.method .big.email { font-size: 1.15rem; overflow-wrap: anywhere; }
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.method h3 { display: flex; align-items: center; gap: 0.6rem; }
.method h3 svg { width: 30px; height: 30px; color: var(--brand); flex-shrink: 0; }
.method .big { font-size: 1.45rem; font-weight: 700; word-break: break-word; }

/* forms */
form.book { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; max-width: 52rem; }
form.book fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
form.book legend { font-size: 1.35rem; font-weight: 700; color: var(--brand); margin-bottom: 0.4rem; padding: 0; }
form.book .hint { color: var(--muted); font-size: 1rem; margin: 0 0 0.9rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .opt-hint { font-weight: 400; color: var(--muted); }
form.book input[type=text], form.book input[type=tel], form.book input[type=email], form.book select, form.book textarea {
  font: inherit; font-size: 1.1875rem; width: 100%; min-height: 54px; padding: 0.7rem 0.9rem; border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
form.book textarea { min-height: 8rem; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); column-gap: 1.25rem; }
.field .choice { display: flex; font-weight: 400; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.5rem 1.1rem 0.5rem 0.9rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--alt); cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { width: 26px; height: 26px; accent-color: var(--brand); flex-shrink: 0; margin: 0; }
.choices.stack { flex-direction: column; }
.choices.stack .choice { width: 100%; }
.error-summary { border: 3px solid #A12A1A; background: var(--surface); padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
html.theme-dark .error-summary { border-color: #FF8C7A; }
html.theme-yb .error-summary, html.theme-hc .error-summary { border-color: currentColor; }
.error-summary h2 { font-size: 1.25rem; color: inherit; }
.field-error { color: #A12A1A; font-weight: 700; margin: 0.35rem 0 0; }
html.theme-dark .field-error { color: #FF8C7A; } html.theme-yb .field-error, html.theme-hc .field-error { color: inherit; text-decoration: underline; }
[aria-invalid="true"] { border-color: #A12A1A !important; border-width: 3px !important; }
.form-msg { font-weight: 700; font-size: 1.2rem; margin-top: 1rem; }
.form-done { background: var(--alt); border: 3px solid var(--brand); border-radius: var(--radius); padding: 1.75rem; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.75rem 0 2rem; margin-top: 0; }
html.theme-hc .site-footer, html.theme-yb .site-footer { border-top: 3px solid var(--line); }
.site-footer a { color: inherit; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2.5rem; }
.site-footer h2 { color: inherit; font-size: 1.2rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.foot-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.35); font-size: 1rem; }

/* read aloud */
.reading { outline: 3px dashed var(--accent); outline-offset: 4px; }
