/* Polefitness by Janine — rebuild of the WordPress "pendant" design.
   Everything is served from this domain: no web fonts, no scripts, no third-party
   assets. That keeps the CSP at default-src 'none' and means no consent banner.
   Note: the CSP has no 'unsafe-inline', so there must be no style="" attributes
   and no inline <style> anywhere in the HTML. */

:root {
  --bg: #0d0d0d;
  --surface: #151515;
  --ink: #f2f1ef;
  --muted: #9b9a94;
  --line: #2b2b2b;
  --content: 1240px;
  --gap: clamp(1.25rem, 4vw, 3.75rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* The originals were duotone black/white. This keeps any colour photo on brand. */
  filter: grayscale(100%) contrast(1.05);
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #565650;
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover,
a:focus-visible {
  border-color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.shell {
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: var(--gap);
}

/* Skip link for keyboard and screen reader users */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 2.25rem;
}

.wordmark {
  grid-column: 2;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  border: 0;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.social {
  grid-column: 3;
  justify-self: end;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  color: var(--muted);
}

.social:hover,
.social:focus-visible {
  color: var(--ink);
}

@media (max-width: 52rem) {
  .site-header .shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-block: 1.5rem;
  }

  .wordmark,
  .social {
    grid-column: 1;
    justify-self: center;
  }

  .nav {
    justify-content: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero .shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--gap);
  padding-block: clamp(3rem, 8vw, 6.25rem);
}

.kicker {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .lede {
  margin: 1.75rem 0 0;
  max-width: 34ch;
  color: var(--muted);
}

@media (max-width: 52rem) {
  .hero .shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero figure {
    order: -1;
    margin: 0;
  }
}

/* ---------- Sections ---------- */

section {
  border-bottom: 1px solid var(--line);
}

section .shell {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.1rem;
}

figure {
  margin: 0 0 1.75rem;
}

/* Two editorial columns plus a narrow sidebar, as in the original layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr 0.62fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 62rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 44rem) {
  .split {
    grid-template-columns: 1fr;
  }

  .split > :last-child {
    grid-column: auto;
  }
}

ul.plain {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
}

ul.plain li {
  margin-bottom: 0.4rem;
}

.refs {
  font-size: 0.93rem;
  color: var(--muted);
}

/* Booking call to action */
.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cta:hover,
.cta:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Long-form legal pages ---------- */

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose dt {
  margin-top: 1.5rem;
  font-weight: 500;
}

.prose dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.updated {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Price list */
.prices {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2.5rem;
  max-width: 40rem;
}

.prices caption {
  text-align: left;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.prices th,
.prices td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.prices td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 1.5rem;
}

.prices .sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border: 0;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}
