/*
  styles.css — GOAT Online prototype (v1.0)
  Mobile first. Global classes use kebab-case BEM. All colour, type, space
  and radius values come from tokens.css; nothing is hard-coded here.
  In the Astro build these blocks move into component <style> scopes.
*/

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--colour-bg);
  color: var(--colour-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration) var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--colour-ink);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--colour-accent-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--colour-ink);
}

:focus-visible {
  outline: 3px solid var(--colour-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Every transition reads --duration, so zeroing it honours reduced motion
   without resorting to !important. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0.01ms;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-8);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.section__title {
  font-size: var(--text-2xl);
  margin-top: var(--space-2);
}

.section__lead {
  margin-top: var(--space-4);
  font-size: var(--text-md);
  color: var(--colour-muted);
  max-width: 36rem;
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colour-accent-text);
}

.tag {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: var(--radius-pill);
  background: var(--colour-surface-2);
  color: var(--colour-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.text-link {
  font-weight: 600;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--colour-ink);
  color: var(--colour-inverse-text);
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-ui);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.button--primary {
  background: var(--colour-accent);
  border-color: var(--colour-accent);
  color: var(--colour-on-accent);
}

.button--primary:hover {
  background: var(--colour-accent-hover);
  border-color: var(--colour-accent-hover);
  color: var(--colour-on-accent);
}

.button--secondary {
  background: var(--colour-surface);
  border-color: var(--colour-line);
  color: var(--colour-ink);
}

.button--secondary:hover {
  background: var(--colour-surface-2);
  border-color: var(--colour-ink);
  color: var(--colour-ink);
}

.button--large {
  padding: 0.95rem 1.5rem;
  font-size: var(--text-md);
}

.button--small {
  padding: 0.5rem 0.9rem;
  font-size: var(--text-sm);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--colour-bg);
  border-bottom: var(--border-width) solid var(--colour-line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;   /* 44px tap target */
  color: var(--colour-ink);
  text-decoration: none;
}

.logo__mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: auto;
}

.logo--footer .logo__mark {
  width: 2rem;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-sm);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-nav {
  flex-basis: 100%;
}

.no-js .nav-toggle {
  display: none;
}

/* The nav carries `hidden` in the markup so the browser never paints it open
   and then collapses it. main.js is deferred, so it used to do exactly that:
   a 324px-tall header on first paint, 73px a moment later — 0.29 of layout
   shift on mobile, which is most of a PageSpeed performance score.
   Without JS, and on desktop, CSS overrides `hidden` and the nav shows. */
.no-js .site-nav[hidden] {
  display: block;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-2) var(--space-4);
}

.site-nav__link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--colour-ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--colour-accent-text);
}

.site-nav__cta {
  margin-top: var(--space-2);
}

@media (min-width: 52em) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[hidden] {
    display: block;
    flex-basis: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
    padding-block: 0;
  }

  .site-nav__cta {
    margin-top: 0;
    margin-left: var(--space-2);
  }
}

/* ---------- Hero ---------- *//* ---------------------------------------------------------------
   HERO — one line, one number, one button (2026-09-20)
   Rebuilt for the audience: people in their 50s to 70s running a
   hotel or B&B, most of them on a phone. Everything else that used
   to live above the fold is now below it.
----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden; /* the lilac shape bleeds off the right edge */
  padding-block: var(--space-8) var(--space-7);
  background-color: var(--colour-bg);
}

/* The copy is held to a readable measure but stays left-aligned with
   the rest of the page, not centred inside the container. */
.hero__copy {
  max-width: 44rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  color: var(--colour-ink);
  text-wrap: balance;
  margin-block: var(--space-3) var(--space-5);
}

/* The one number. Big enough to read across a reception desk. */
.hero__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-display-light);
  color: var(--colour-ink);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-6);
}

.hero__price strong {
  font-weight: var(--weight-display);
  white-space: nowrap;
}

/* The one button. 60px tall, well past the 44px minimum tap target,
   and full width on a phone so it cannot be missed or mis-tapped. */
.call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 3.75rem;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  background-color: var(--colour-accent);
  color: var(--colour-on-accent);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-ui);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: background-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.call:hover,
.call:focus-visible {
  background-color: var(--colour-accent-hover);
  transform: translateY(-1px);
}

.call:active { transform: translateY(0); }

.call__icon { flex: none; }

.call__text strong { white-space: nowrap; }

.hero__alt {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--colour-text);
}

@media (min-width: 40em) {
  .hero { padding-block: var(--space-8) var(--space-7); }
  .call { width: auto; display: inline-flex; font-size: var(--text-lg); }
}

/* ---------------------------------------------------------------
   HERO VISUAL — GOAT Hotel on a laptop and a phone, on a lilac
   shape, with the specs goat peeking over the laptop (2026-09-23).
   Below the button on a phone; beside the copy from 68em, where the
   copy column is still wide enough for the headline in three lines.
   Every box has a fixed size or aspect ratio, so nothing shifts.
   --------------------------------------------------------------- */
.hero__visual {
  position: relative;
  margin-top: var(--space-7);
}

/* The lilac shape. Decorative, so it is a pseudo-element, not markup. */
.hero__visual::before {
  content: "";
  position: absolute;
  /* Hugs the laptop when the visual sits under the copy, rather than
     stretching across a tablet-wide container. */
  inset: var(--space-5) max(calc(-1 * var(--gutter)), calc(50% - 16rem))
    calc(-1 * var(--space-7)) max(4%, calc(50% - 16rem));
  border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background-color: var(--colour-surface-2);
}

.showcase {
  position: relative;
  width: min(100%, 28rem);
  margin-inline: auto;
  padding-top: 4.5rem; /* room for the goat's head above the laptop */
}

/* The goat stands behind the laptop, so only its head and specs show. */
.showcase__goat {
  position: absolute;
  top: 0;
  right: 16%;
  width: 6.5rem;
  height: auto;
  transform: rotate(6deg);
}

.showcase__laptop {
  position: relative;
  margin-left: 12%;
  padding: 0.5rem 0.5rem 0.625rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background-color: var(--colour-footer-bg);
  box-shadow: var(--shadow-raised);
}

/* The laptop's base. */
.showcase__laptop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -5%;
  right: -5%;
  height: 0.625rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background-color: var(--colour-line);
  box-shadow: var(--shadow-card);
}

/* The goat's two front hooves, over the top edge of the laptop. */
.showcase__laptop::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: calc(100% - 0.5rem);
  right: calc(16% + 1.1rem);
  width: 1.1rem;
  height: 0.8rem;
  border: 3px solid var(--colour-footer-bg);
  border-radius: 0.45rem 0.45rem 0.25rem 0.25rem;
  background-color: var(--colour-surface);
  box-shadow: 2.4rem 0 0 -3px var(--colour-surface), 2.4rem 0 0 0 var(--colour-footer-bg);
}

.showcase__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.showcase__phone {
  position: absolute;
  left: 0;
  bottom: calc(-1 * var(--space-4));
  width: 28%;
  padding: 0.3rem;
  border-radius: 1.1rem;
  background-color: var(--colour-footer-bg);
  box-shadow: var(--shadow-raised);
}

.showcase__screen--phone { border-radius: 0.85rem; }

@media (min-width: 68em) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    align-items: center;
    gap: var(--space-7);
  }

  .hero { padding-top: var(--space-7); }

  .hero__visual { margin-top: 0; }

  .hero__visual::before {
    inset: calc(-1 * var(--space-6)) -30% calc(-1 * var(--space-7)) -12%;
  }

  /* Let the laptop use some of the right-hand margin. */
  .showcase {
    width: calc(100% + 4rem);
    margin-inline: 0;
  }
}

/* ---------------------------------------------------------------
   RECENT WORK — the plum strip straight under the hero, so brand
   colour and real proof are both on the first screen. Each chip
   jumps to that case study in #work.
   --------------------------------------------------------------- */
.recent {
  padding-block: var(--space-5);
  background-color: var(--colour-inverse-bg);
  color: var(--colour-inverse-text);
}

.recent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.recent__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colour-inverse-muted);
}

.recent__list {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: 0.375rem var(--space-4) 0.375rem 0.375rem;
  border: 1px solid var(--colour-ink-light);
  border-radius: var(--radius-md);
  background-color: var(--colour-ink-light);
  color: var(--colour-inverse-text);
  font-weight: var(--weight-ui);
  line-height: var(--leading-snug);
  text-decoration: none;
  transition: border-color var(--duration) var(--ease);
}

.recent__link:hover,
.recent__link:focus-visible {
  border-color: var(--colour-inverse-muted);
  color: var(--colour-inverse-text); /* beats the global a:hover plum */
}

.recent__all:hover,
.recent__all:focus-visible {
  color: var(--colour-inverse-text);
}

.recent__thumb {
  flex: none;
  width: 4rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.recent__what {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--colour-inverse-muted);
}

/* The "see all" link sits in the list, straight after the last site, so it
   stays on the first screen instead of on a row of its own. */
.recent__more {
  display: flex;
  align-items: center;
  padding-inline: var(--space-2);
}

.recent__all {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--colour-inverse-text);
  font-weight: var(--weight-ui);
  text-underline-offset: 0.2em;
}

@media (min-width: 52em) {
  .recent__list {
    display: flex;
    flex-wrap: wrap;
    width: auto;
  }

  .recent__all { margin-left: auto; }
}

/* ---------------------------------------------------------------
   OUR WORK — one section for the before/after pairs and the sites,
   with a filter over the top. Without JavaScript the filter is hidden
   and everything shows, which is the state we want anyway.
   --------------------------------------------------------------- */
.section--work { background-color: var(--colour-surface); }

.work-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.no-js .work-filter {
  display: none;
}

.work-filter__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-ui);
  color: var(--colour-muted);
}

.work-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.work-filter__button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  color: var(--colour-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-ui);
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.work-filter__button:hover {
  border-color: var(--colour-ink);
}

.work-filter__button.is-chosen {
  background: var(--colour-ink);
  border-color: var(--colour-ink);
  color: var(--colour-inverse-text);
}

.work-list {
  display: grid;
  gap: var(--space-7);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}

/* The two filters that actually change something. "Everything" is the
   absence of both. */
.work-list--beforeafter .work-item:not([data-work-kind="beforeafter"]) {
  display: none;
}

.work-list--sites [data-work-half="before"] {
  display: none;
}

.work-case__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 48rem;
}

.work-case__title {
  font-size: var(--text-lg);
}

.work-case__text {
  color: var(--colour-muted);
}

.work-case__shots {
  display: grid;
  gap: var(--space-5);
  max-width: 56rem;
  margin-top: var(--space-4);
}

@media (min-width: 52em) {
  .work-case__shots {
    grid-template-columns: 1fr 1fr;
  }
}

/* One shot on its own should not stretch to the width of two. */
.work-list--sites .work-case__shots,
.work-item[data-work-kind="site"] .work-case__shots {
  grid-template-columns: 1fr;
  max-width: 27rem;
}

.work-case__shot {
  margin: 0;
}

.work-case__link {
  display: block;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.work-case__link:hover,
.work-case__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
}

/* Fixed ratio so the page does not shift as the screenshots load. The
   shots are the top of each page, not just its hero — the point is the
   layout, not the photograph. */
.work-case__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  background-color: var(--colour-surface-2);
}

.work-case__caption {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--colour-text);
}

.work-label {
  display: inline-block;
  margin-right: var(--space-2);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-label--before {
  background-color: var(--colour-surface-2);
  color: var(--colour-ink);
}

.work-label--after {
  background-color: var(--colour-accent);
  color: var(--colour-on-accent);
}

.work-label--soon {
  align-self: flex-start;
  background-color: var(--colour-surface-2);
  color: var(--colour-muted);
}

.work-case--cta {
  padding: var(--space-5);
  border: var(--border-width) dashed var(--colour-line);
  border-radius: var(--radius-md);
  max-width: 34rem;
}

/* ---------------------------------------------------------------
   CONTACT — the call comes first, the form second
----------------------------------------------------------------- */
.call--contact { margin-block: var(--space-5) var(--space-4); }

.contact__or {
  font-size: var(--text-base);
  color: var(--colour-text);
  margin-bottom: var(--space-5);
}

/* ---------- Audience strip ---------- */
.audience {
  padding-block: var(--space-6);
  background: var(--colour-inverse-bg);
  color: var(--colour-inverse-text);
}

.audience__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-display-light);
  color: var(--colour-inverse-text);
  max-width: 30ch;
}

.audience__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.audience__item {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--colour-inverse-muted);
  border-radius: var(--radius-pill);
  color: var(--colour-inverse-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  gap: var(--space-5);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
  box-shadow: var(--shadow-card);
}

.plan--featured {
  background: var(--colour-inverse-bg);
  border-color: var(--colour-inverse-bg);
  color: var(--colour-inverse-text);
}

.plan--featured .plan__name,
.plan--featured .plan__monthly strong {
  color: var(--colour-inverse-text);
}

.plan--featured .plan__tagline,
.plan--featured .plan__build,
.plan--featured .plan__features {
  color: var(--colour-inverse-muted);
}

.plan--featured .plan__features li::before {
  background: var(--colour-highlight);
}

.plan--featured .plan__features li::before,
.plan--featured .plan__monthly strong {
  color: var(--colour-inverse-text);
}

.plan--featured .button--primary {
  background: var(--colour-highlight);
  border-color: var(--colour-highlight);
  color: var(--colour-on-highlight);
}

.plan--featured .button--primary:hover {
  background: var(--colour-surface);
  border-color: var(--colour-surface);
  color: var(--colour-ink);
}

.plan--soon {
  background: transparent;
  box-shadow: none;
}

.plan__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: var(--space-6);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--colour-highlight);
  color: var(--colour-on-highlight);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__name {
  font-size: var(--text-xl);
}

.plan__tagline {
  margin-top: var(--space-2);
  color: var(--colour-muted);
}

.plan__price {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--colour-line);
}

.plan--featured .plan__price {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.plan__build {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--colour-muted);
}

.plan__monthly {
  font-size: var(--text-md);
  color: var(--colour-muted);
}

/* The featured plan sits on plum. Muted body grey is 1.7:1 there, so the
   inverse token has to take over for every piece of secondary text on it. */
.plan--featured .plan__monthly,
.plan--featured .plan__note,
.plan--featured .plan__desc {
  color: var(--colour-inverse-muted);
}

.plan__monthly strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  color: var(--colour-ink);
  font-variant-numeric: tabular-nums;
}

.plan__features {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
  color: var(--colour-text);
}

.plan__features li {
  position: relative;
  padding-left: 1.4rem;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--colour-accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan__features {
  margin-bottom: var(--space-6);
}

.plan__cta {
  margin-top: auto;
}

@media (min-width: 52em) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.included {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--colour-accent-soft);
}

.included__title {
  font-size: var(--text-md);
  font-weight: var(--weight-display-light);
}

.included__list {
  display: grid;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-3);
  font-weight: 500;
}

@media (min-width: 40em) {
  .included__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .included__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offer {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: var(--space-6);
  border: var(--border-width) solid var(--colour-ink);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
}

.offer {
  border-color: var(--colour-line);
  border-left: 5px solid var(--colour-highlight);
}

.offer__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--colour-highlight);
  color: var(--colour-on-highlight);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer__title {
  margin-top: var(--space-3);
  font-size: var(--text-xl);
}

.offer__text {
  margin-top: var(--space-3);
  max-width: 48rem;
}

.offer__counter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--colour-bg);
}

.offer__count {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-display);
  line-height: 1;
  color: var(--colour-ink);
  font-variant-numeric: tabular-nums;
}

.offer__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--colour-muted);
}

@media (min-width: 52em) {
  .offer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .offer__counter {
    min-width: 12rem;
  }
}

.addons {
  margin-top: var(--space-7);
}

.addons__title {
  font-size: var(--text-md);
  font-weight: var(--weight-display-light);
}

.addons__list {
  display: grid;
  gap: 0;
  margin: var(--space-3) 0 0;
  border-top: 1px solid var(--colour-line);
}

.addons__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--colour-line);
}

.addons__item dt {
  font-weight: 500;
}

.addons__item dd {
  margin: 0;
  font-weight: 600;
  color: var(--colour-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Plain-English line under each add-on, full width below name and price. */
.addons__item .addons__desc {
  flex-basis: 100%;
  font-weight: 400;
  color: var(--colour-muted);
  font-size: var(--text-sm);
  white-space: normal;
}

@media (min-width: 52em) {
  .addons__list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-7);
  }
}

/* ---------- Process ---------- */
.section--process {
  background: var(--colour-surface);
  border-top: var(--border-width) solid var(--colour-line);
  border-bottom: var(--border-width) solid var(--colour-line);
}

.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-2);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--colour-accent);
  color: var(--colour-on-accent);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-md);
}

.step__title {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
}

.step__text {
  margin-top: var(--space-2);
  color: var(--colour-muted);
}

@media (min-width: 52em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
  }
}

/* ---------- Work ---------- */
/* ---------- About ---------- */
/* Straight after the recent-work strip (James, 2026-10-04: real people near
   the top). It sits on the page's stone colour so the white work section
   below it reads as a new section. */
.section--about {
  background: var(--colour-bg);
}

.about__inner {
  display: grid;
  gap: var(--space-7);
}

.about__copy p + p {
  margin-top: var(--space-4);
}

.about__copy .section__title {
  margin-bottom: var(--space-4);
}

/* Two people, always side by side, each a photo with the name under it. */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.person {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
}

.person__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.person__name {
  font-size: var(--text-lg);
}

.person__role {
  color: var(--colour-muted);
}

.about__subtitle {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.about__list {
  display: grid;
  gap: var(--space-2);
  padding-left: var(--space-5);
  list-style: disc;
}

.about__list li::marker {
  color: var(--colour-accent);
}

.about__contact {
  margin-top: var(--space-5);
}

.values {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.value {
  padding-left: var(--space-5);
  border-left: 3px solid var(--colour-accent);
}

.value__title {
  font-size: var(--text-md);
}

.value__text {
  margin-top: var(--space-2);
  color: var(--colour-muted);
}

@media (min-width: 52em) {
  .about__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
  }
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  gap: var(--space-7);
}

.contact__details {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-style: normal;
}

.contact__label {
  display: inline-block;
  min-width: 5rem;
  font-weight: 600;
  color: var(--colour-ink);
}

.form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
  box-shadow: var(--shadow-card);
}

.form__row {
  display: grid;
  gap: var(--space-2);
}

.form__label {
  font-weight: 600;
  color: var(--colour-ink);
}

.form__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-sm);
  background: var(--colour-bg);
  color: var(--colour-text);
  font: inherit;
}

.form__input {
  border-color: var(--colour-muted);
}

.form__input:focus {
  border-color: var(--colour-accent);
  outline: 3px solid var(--colour-focus);
  outline-offset: 1px;
}

textarea.form__input {
  resize: vertical;
  min-height: 6rem;
}

.form__consent {
  font-size: var(--text-sm);
  color: var(--colour-muted);
}

.form__status {
  font-weight: 600;
  color: var(--colour-accent-text);
}

.form__status:empty {
  display: none;
}

.form__optional {
  font-weight: 400;
  color: var(--colour-muted);
}

/* The contact column: two cards that open the long forms, then the short
   enquiry form. */
.contact__forms {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.form-start {
  display: grid;
  gap: var(--space-3);
}

.form-start__title,
.form__title {
  font-size: var(--text-lg);
}

.form-start__option {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  padding-right: calc(var(--space-5) + 1.5rem);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
  box-shadow: var(--shadow-card);
  color: var(--colour-text);
  text-decoration: none;
  position: relative;
}

.form-start__option::after {
  content: "→";
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-lg);
  color: var(--colour-accent-text);
}

.form-start__option:hover,
.form-start__option:focus-visible {
  border-color: var(--colour-ink);
}

.form-start__name {
  font-weight: 700;
  color: var(--colour-ink);
}

.form-start__text {
  color: var(--colour-muted);
}

/* The pop-out window. Wide on a laptop so the questions are not a narrow
   column; the whole screen on a phone. The page behind does not scroll. */
html:has(.form-dialog[open]) {
  overflow: hidden;
}

.form-dialog {
  width: min(58rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--colour-bg);
  color: var(--colour-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: auto;
  overscroll-behavior: contain;
}

.form-dialog::backdrop {
  background: rgba(30, 16, 48, 0.6);
}

.form-dialog__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  background: var(--colour-ink);
  color: var(--colour-inverse-text);
}

.form-dialog__title {
  flex: 1;
  font-size: var(--text-lg);
  color: inherit;
}

.form-dialog__print {
  color: inherit;
}

.form-dialog__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.form-dialog__close:hover,
.form-dialog__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.form-dialog__body {
  padding: var(--space-5);
}

.form-dialog__lead {
  margin-bottom: var(--space-5);
  color: var(--colour-muted);
}

/* Inside the window, short questions sit two to a row. */
@media (min-width: 52em) {
  .form-dialog__body .questions__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .form-dialog__body .question--wide,
  .form-dialog__body .questions__send {
    grid-column: 1 / -1;
  }

  .form-dialog__body {
    padding: var(--space-6);
  }
}

@media (max-width: 40em) {
  .form-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
}

/* The spam trap. Off-screen, not display: none, which some bots skip. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-done {
  padding: var(--space-6);
  border: 3px solid var(--colour-accent);
  border-radius: var(--radius-md);
  background: var(--colour-surface-2);
}

/* A tick in front of the heading, so "that's sent" is the first thing seen. */
.form-done__title::before {
  content: "\2713\00a0";
  color: var(--colour-accent-text, var(--colour-accent));
}

.form-done__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

/* Long-form text: privacy policy, thank-you and 404 pages. */
.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.prose p + p {
  margin-top: var(--space-3);
}

/* ---------- What we do: the two services, straight under the hero ---------- */
.services {
  padding-block: var(--space-6) var(--space-7);
  background-color: var(--colour-bg);
}

.services__title {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.services__list {
  display: grid;
  gap: var(--space-4);
}

.service {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding: var(--space-5);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
  box-shadow: var(--shadow-card);
}

.service--featured {
  border-top: 4px solid var(--colour-accent);
}

.service__name {
  font-size: var(--text-lg);
}

.service__text {
  color: var(--colour-muted);
}

.service__link,
.service__button {
  justify-self: start;
  margin-top: var(--space-2);
}

@media (min-width: 52em) {
  .services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Policies page: one row per downloadable PDF ---------- */
.doc-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.doc {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: var(--border-width) solid var(--colour-line);
  border-left: 4px solid var(--colour-accent);
  border-radius: var(--radius-md);
  background: var(--colour-surface);
}

/* .doc beats .prose h2's top margin, which would open a gap inside the card. */
.doc .doc__title {
  margin: 0;
  font-size: var(--text-lg);
}

.doc__text {
  color: var(--colour-muted);
}

.doc__link {
  justify-self: start;
  margin-top: var(--space-2);
}

/* ---------- Consultancy page ---------- */
.consult__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.bio {
  margin-top: var(--space-6);
}

.bio + .bio {
  margin-top: var(--space-7);
}

.bio__head {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}

.bio__photo {
  width: 6rem;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.bio__name {
  font-size: var(--text-xl);
}

.bio__role {
  color: var(--colour-muted);
}

.bio p + p {
  margin-top: var(--space-3);
}

@media (min-width: 52em) {
  .consult__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-8);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 52em) {
  .contact__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-7) calc(var(--space-9) + env(safe-area-inset-bottom, 0px));
  background: var(--colour-footer-bg);
  color: var(--colour-inverse-text);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-6);
}

.site-footer .logo {
  color: var(--colour-inverse-text);
}

.site-footer__tagline {
  margin-top: var(--space-3);
  color: var(--colour-inverse-muted);
  max-width: 28rem;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer a {
  color: var(--colour-inverse-text);
}

.site-footer a:hover {
  color: var(--colour-highlight);
}

.site-footer__legal {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--colour-inverse-muted);
}

.site-footer__legal .tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--colour-inverse-text);
}

/* ---------- "Website by GOAT Online" credit (BRAND_GUIDELINES.md §8) ----------
   Goes on every page of every site we build, as a condition of the free
   build. It is a credit, not an advert: quiet, under the copyright line,
   never in the footer columns and never competing with the client's brand.

   The coloured badge reads on any background, so it needs no filter, and the
   words are live text: legible at any size, and no opacity on text. The link
   is a 44px tap target. justify-self keeps it from stretching across a grid
   footer, which would make the whole row a link.

   A client may ask for it to be removed. That is a paid option, not an
   argument. Do not delete these rules to win a discussion. */
a.credit {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-3);
  min-height: 2.75rem;
  margin-top: var(--space-4);
  color: var(--colour-inverse-muted);
  text-decoration: none;
}

a.credit:hover,
a.credit:focus-visible {
  color: var(--colour-inverse-text);
}

.credit__mark {
  width: 26px;
  height: 26px;
  display: block;
}

.credit__text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 52em) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ---------------------------------------------------------------
   PRICE TABLE (pricing.html)
   A plain table, on purpose. No Bronze/Silver/Gold, no "most
   popular" badge, no card that hides the number until you hover.
   The people buying this want to read three prices and stop.
----------------------------------------------------------------- */
.pricetable__scroll:focus-visible {
  outline: 3px solid var(--colour-focus);
  outline-offset: 4px;
}

.pricetable__scroll {
  margin-top: var(--space-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricetable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  background-color: var(--colour-surface);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pricetable caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--colour-muted);
}

.pricetable th,
.pricetable td {
  padding: var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: var(--border-width) solid var(--colour-line);
  line-height: var(--leading-body);
}

.pricetable thead th {
  background-color: var(--colour-inverse-bg);
  color: var(--colour-inverse-text);
  font-family: var(--font-body);
  font-weight: var(--weight-ui);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricetable tbody th {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-display);
  color: var(--colour-ink);
  white-space: nowrap;
}

.pricetable tbody tr:last-child th,
.pricetable tbody tr:last-child td { border-bottom: 0; }

/* Tabular figures so the prices line up in a column. */
.pricetable__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  font-variant-numeric: tabular-nums;
  color: var(--colour-ink);
  white-space: nowrap;
}

.pricenotes {
  margin-top: var(--space-5);
  padding-left: var(--space-5);
  font-size: var(--text-base);
  color: var(--colour-text);
}

.pricenotes li { margin-bottom: var(--space-2); }

.prices__cta {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background-color: var(--colour-surface-2);
  text-align: center;
}

.prices__cta-lead {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-display-light);
  color: var(--colour-ink);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

@media (min-width: 40em) {
  .prices__cta .call { width: auto; }
}

/* ---------- Cymru Quest band (our own app) ---------- */
.cq-band {
  background-color: var(--colour-inverse-bg);
  color: var(--colour-inverse-text);
  padding-block: var(--space-7);
}

.cq-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.cq-band__eyebrow {
  color: var(--colour-inverse-muted);
}

.cq-band__title {
  font-size: var(--text-2xl);
  color: var(--colour-inverse-text);
  margin-top: var(--space-2);
}

.cq-band__text {
  margin-top: var(--space-4);
  font-size: var(--text-md);
  color: var(--colour-inverse-muted);
  max-width: 34rem;
}

.cq-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.cq-band__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 16px);
}

/* The poster is portrait: cap its width so it doesn't run the band tall. */
.cq-band__img--poster {
  max-width: 26rem;
  justify-self: center;
  box-shadow: var(--shadow-raised);
}

@media (min-width: 52em) {
  .cq-band__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Cymru Quest features page ---------- */
.cq-page__top {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.cq-features {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: grid;
  gap: var(--space-4);
}

.cq-feature {
  background: var(--colour-surface);
  border: var(--border-width) solid var(--colour-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.cq-feature__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.cq-page__more {
  margin-top: var(--space-7);
  max-width: 40rem;
}

.cq-page__more p + p {
  margin-top: var(--space-3);
}

@media (min-width: 52em) {
  .cq-page__top {
    grid-template-columns: 1fr 1fr;
  }

  .cq-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68em) {
  .cq-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero and Recent work fill the first screen between them on a laptop or
   desktop: the hero takes up any spare height, so the plum strip ends at the
   bottom of the screen and nothing of the next section peeks in below it.
   Not on very tall screens, where it would leave a big gap in the hero. */
@media (min-width: 52em) and (max-height: 75em) {
  .first-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height) - var(--border-width));
    min-height: calc(100svh - var(--header-height) - var(--border-width));
  }

  .first-screen > .hero {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
  }

  .first-screen > .hero > .hero__inner {
    width: 100%;
  }
}

/* On a short laptop screen (768px tall) the hero is tightened a little so
   the Recent work strip and its "See all our work" link still fit on the
   first screen. */
@media (min-width: 52em) and (max-height: 50em) {
  .hero {
    padding-block: var(--space-5) var(--space-4);
  }

  .hero .hero__title {
    font-size: var(--text-2xl);
  }

  .recent {
    padding-block: var(--space-4);
  }
}

/* ------------------------------------------------------------------ Language link
   "Cymraeg" on English pages, "English" on the Welsh pages under cy/. It sits
   at the right of the logo, before the menu, on every screen size. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;   /* 44px tap target */
  margin-left: auto;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--colour-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--colour-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.lang-switch:hover {
  text-decoration-color: var(--colour-ink);
}

/* Phones narrower than 33em: logo, language link and menu button only fit
   on one line if the button shows its icon alone. The word (Menu /
   Dewislen) stays for screen readers. Same fix as GOAT Parties. */
@media (max-width: 32.99em) {
  .site-header__inner {
    column-gap: var(--space-2);
  }

  .lang-switch {
    padding-inline: var(--space-1);
  }

  .nav-toggle {
    justify-content: center;
    min-width: 2.75rem;    /* 44px tap target with the word hidden */
    min-height: 2.75rem;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 23em) {
  .logo__word {
    font-size: 1.125rem;
  }
}

/* The Welsh menu words are longer; closer spacing keeps the desktop bar on
   one line. */
@media (min-width: 52em) {
  .site-header__inner:lang(cy) {
    column-gap: var(--space-4);
  }

  .site-nav__list:lang(cy) {
    gap: var(--space-4);
  }

  html[lang="cy"] .lang-switch {
    padding-inline: var(--space-1);
  }

  .site-nav__cta:lang(cy) {
    margin-left: 0;
  }
}
