/* Heat Fitness. Layout: warm paper pages, one ember-gradient band per page, handwritten notes from Helen in the margins. */
:root {
  --paper: #FBF4EC;
  --card: #FFFFFF;
  --ink: #1A1414;
  --muted: #5E524E;
  --line: #E6D8CD;
  --accent: #A8200F;
  --accent-ink: #FFFFFF;
  --tape: rgba(246, 138, 29, .55);
  --tbc-bg: #FFF4D6;
  --tbc-ink: #7A4B00;
  --ember: linear-gradient(125deg, #F68A1D 0%, #DD681B 30%, #C64B12 58%, #B33111 80%, #970D0B 100%);
  --cool: #E3D6CC;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --radius: 10px;
  --wrap: 1560px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17110F; --card: #221917; --ink: #F4EAE2; --muted: #C2B2A9; --line: #3A2C27;
    --accent: #FF8A5C; --accent-ink: #1A1414; --tape: rgba(246, 138, 29, .45);
    --tbc-bg: #3A2A10; --tbc-ink: #FFD48A; --cool: #4A3B35; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17110F; --card: #221917; --ink: #F4EAE2; --muted: #C2B2A9; --line: #3A2C27;
  --accent: #FF8A5C; --accent-ink: #1A1414; --tape: rgba(246, 138, 29, .45);
  --tbc-bg: #3A2A10; --tbc-ink: #FFD48A; --cool: #4A3B35; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #F68A1D; outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 4vw); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { padding-top: 0; }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: -.01em; line-height: .95; font-weight: 400; }
.hand { font-family: var(--hand); font-weight: 700; line-height: 1; color: var(--accent); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.measure { max-width: 65ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

/* to-confirm markers: search the code for "tbc" before launch */
.tbc { display: inline-block; background: var(--tbc-bg); color: var(--tbc-ink); border: 1.5px dashed currentColor; border-radius: 6px; padding: 0 .4em; font-size: .9em; font-weight: 700; line-height: 1.5; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 60px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  padding: .8em 1.3em; border-radius: 999px; background: var(--ember); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.nav .btn { color: #fff; padding: .6em 1.1em; margin-left: 6px; }
.menu { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
  .menu-panel a { padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 8px; }
  .menu-panel a[aria-current="page"] { color: var(--accent); }
  .menu-panel .btn { color: #fff; margin-top: 6px; }
}

/* hero */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 6.4rem); }
.hero h1 .hand { display: block; font-size: 1.05em; text-transform: none; letter-spacing: 0; margin-top: .08em; }
.underline { display: block; width: min(320px, 70%); height: 12px; margin-top: 6px; }
.hero .lead { margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.6rem; }
.cta-note { font-family: var(--hand); font-size: 1.5rem; color: var(--muted); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

/* polaroid */
.polaroid { position: relative; background: #fff; padding: 14px 14px 58px; box-shadow: 0 6px 22px rgba(60, 30, 10, .22); transform: rotate(2.5deg); max-width: 640px; width: 100%; justify-self: center; }
.polaroid.left { transform: rotate(-2.5deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid.tall img { aspect-ratio: 9 / 10; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: #1A1414; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 38%; width: 90px; height: 26px; background: var(--tape); transform: rotate(-4deg); }

/* ember band */
.band { background: var(--ember); color: #fff; border-radius: 14px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -40px; top: -30px; width: 260px; height: 300px; background: url("../img/mark_white.png") no-repeat center / contain; opacity: .14; pointer-events: none; }
.band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: clamp(24px, 4vw, 44px); align-items: center; }
.band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.band .kicker { color: #FFE3CF; }
.band p { max-width: 52ch; }
.band .btn { background: #fff; color: #1A1414; }
.price-tag { background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.55); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; }
.price-tag .big { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; }
.price-tag ul { margin: 0; padding-left: 1.1em; }
.band .tbc { background: rgba(255,255,255,.9); color: #7A4B00; }
@media (max-width: 760px) { .band-inner { grid-template-columns: 1fr; } }

/* section headings */
.sec-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.8rem; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* class cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.card h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.25rem; line-height: 1.05; }
.card .for { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card .meta { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.card .meta b { color: var(--ink); }

/* temperature pill and scale: the studio's own vocabulary */
.temp { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.temp i { width: .8em; height: .8em; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.scale { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); }
.scale-bar { position: relative; height: 14px; border-radius: 7px; margin: 22px 0 12px;
  background: linear-gradient(90deg, var(--cool) 0%, #F6B26B 38%, #F68A1D 60%, #C64B12 85%, #970D0B 100%); }
.scale-stops { position: relative; height: 4.6em; }
.scale-stop { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: .9rem; line-height: 1.3; width: 9em; }
.scale-stop:first-child { transform: none; text-align: left; }
.scale-stop:last-child { transform: translateX(-100%); text-align: right; }
.scale-stop b { display: block; }
.scale-dot { position: absolute; top: -4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
@media (max-width: 600px) {
  .scale-stops { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .scale-stop, .scale-stop:first-child, .scale-stop:last-child { position: static; transform: none; text-align: left; width: auto; }
}

/* two-up and helpers */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.note { font-family: var(--hand); font-size: 1.7rem; color: var(--accent); line-height: 1.05; transform: rotate(-2deg); }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2.6rem; line-height: 1; background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.8em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1em; height: .65em; border-left: 3px solid #F68A1D; border-bottom: 3px solid #F68A1D; transform: rotate(-45deg); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details > p { padding-bottom: 16px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
td.num { text-align: right; white-space: nowrap; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.price-grid h3 { font-size: 1.2rem; margin-bottom: .6rem; }

/* timetable */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.day h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1rem; }
.slot { border-left: 4px solid #F68A1D; padding: 4px 0 4px 10px; display: grid; gap: 2px; font-size: .95rem; }
.slot .t { font-weight: 700; }
.slot.cool { border-left-color: var(--cool); }
.empty { color: var(--muted); font-size: .9rem; }

/* forms */
form { display: grid; gap: 14px; }
label { font-weight: 700; display: grid; gap: 6px; }
input, textarea, select { font: inherit; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.form-msg { font-weight: 700; color: var(--accent); }

/* contact strip, video */
.info-list { display: grid; gap: 14px; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-list dd { margin: 0; font-weight: 700; }
.video-slot { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 20px; background: var(--card); }

/* footer */
.site-foot { margin-top: clamp(40px, 6vw, 72px); background: #1A1414; color: #F4EAE2; padding-block: 48px 32px; }
.site-foot a { color: #FFB38A; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.foot-grid h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #C2B2A9; margin-bottom: 10px; font-family: var(--body); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid #3A2C27; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: #C2B2A9; }
.site-foot .tbc { background: #3A2A10; color: #FFD48A; }

@media (prefers-reduced-motion: no-preference) {
  .polaroid { transition: transform .3s ease; }
  .polaroid:hover { transform: rotate(0deg) scale(1.01); }
}

/* news */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); min-width: 0; }
.news-card:hover { border-color: #F68A1D; }
.news-card img, .news-mark { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.news-mark { background: var(--ember) ; position: relative; }
.news-mark::after { content: ""; position: absolute; inset: 22%; background: url("../img/mark_white.png") no-repeat center / contain; opacity: .9; }
.news-body { padding: 14px 16px 18px; display: grid; gap: 6px; }
.news-date { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* one-to-one */
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cards.two .card { padding: clamp(20px, 3vw, 32px); gap: .9rem; }
.cards.two h3 { font-size: 1.7rem; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.mini { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #F68A1D; border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; }
.mini span { color: var(--muted); font-size: .95rem; }

/* home page doorways */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.door { display: flex; flex-direction: column; gap: .6rem; padding: 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.door h2 { font-size: 1.6rem; }
.door .go { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--accent); }
.door .go::after { content: " \2192"; }
.door:hover { border-color: #F68A1D; }
.door.hot { background: var(--ember); color: #fff; border: 0; }
.door.hot .kicker, .door.hot .go { color: #FFE3CF; }


/* photos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 220px; gap: 12px; }
.gallery figure, .strip figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--line); }
.gallery img, .strip img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption, .strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: .88rem; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); }
@media (min-width: 700px) { .gallery .g-wide { grid-column: span 2; } .gallery .g-tall { grid-row: span 2; } }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.strip figure { aspect-ratio: 4 / 3; }
.banner { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
.card-img { width: calc(100% + 40px); max-width: none; margin: -20px -20px 4px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.cards.two .card-img { width: calc(100% + 2 * clamp(20px, 3vw, 32px)); margin: calc(-1 * clamp(20px, 3vw, 32px)) calc(-1 * clamp(20px, 3vw, 32px)) 4px; }

@media (min-width: 1500px) { body { font-size: 1.125rem; } .gallery { grid-auto-rows: 260px; } }

/* five groups: one row of five on wide screens, three then two (centred) on medium, stacked on phones */
.cards.groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cards.groups > .card { flex: 0 1 100%; }
@media (min-width: 640px) { .cards.groups > .card { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 900px) { .cards.groups > .card { flex-basis: calc((100% - 32px) / 3); } }
@media (min-width: 1300px) { .cards.groups > .card { flex-basis: calc((100% - 64px) / 5); } }
