/* Off Duty Fitness — site styles. Every value here follows DESIGN.md. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2"); }

:root {
  --white: #FFFFFF;
  --beige: #E8E2DA;
  --blue-grey: #D3DADC;
  --sand: #D6C9B4;
  --slate: #455763;
  --slate-mid: #5E768B;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --text-display: clamp(2.75rem, 8vw, 6rem);
  --text-heading-lg: clamp(2.25rem, 5.4vw, 4rem);
  --text-heading: clamp(1.875rem, 4vw, 3rem);
  --text-heading-sm: clamp(1.5rem, 2.6vw, 2rem);
  --text-payoff: clamp(1.875rem, 4.6vw, 3.5rem);
  --text-lead: clamp(1.1875rem, 1.6vw, 1.375rem);
  --text-body: clamp(1.0625rem, 1.2vw, 1.125rem);
  --text-small: 0.9375rem;

  --page-max: 1200px;
  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 48px);
  --section-gap: clamp(64px, 10vw, 128px);
  --room-pad: clamp(48px, 7vw, 96px);
  --room-inset: 16px;

  --radius-pill: 999px;
  --radius-input: 12px;
  --radius-card: 24px;
  --radius-room: clamp(24px, 4vw, 48px);
  --radius-phone: 28px;

  --hairline: 1px solid var(--blue-grey);
  --hairline-dashed: 1px dashed var(--blue-grey);
  --edge: 1.5px solid var(--slate);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--slate); font-family: var(--sans); font-size: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 112px; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--slate-mid); }
:focus-visible { outline: 3px solid var(--slate-mid); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-heading-lg); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: var(--text-heading); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: var(--text-heading-sm); line-height: 1.15; letter-spacing: -0.01em; }
.display { font-size: var(--text-display); line-height: 0.95; letter-spacing: -0.02em; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
.lead { font-size: var(--text-lead); line-height: 1.5; }
.small { font-size: var(--text-small); line-height: 1.5; }

.wrap { max-width: calc(var(--page-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 46rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--slate); color: var(--white); padding: 12px 18px; z-index: 100; border-radius: var(--radius-pill); }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Navigation pill ---------- */

.site-header { position: sticky; top: 16px; z-index: 50; margin: 16px var(--room-inset) 0; }
.nav-pill { max-width: var(--page-max); margin: 0 auto; background: var(--white); border: var(--edge); border-radius: 36px; padding: 8px 8px 8px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { font-family: var(--serif); font-size: 1.6rem; line-height: 1; text-decoration: none; white-space: nowrap; padding: 6px 0; }
.brand:hover { color: var(--slate); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a { text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.35em; color: var(--slate); }
.nav .btn { padding: 12px 26px; }
.nav-toggle { display: none; background: var(--white); border: var(--edge); border-radius: var(--radius-pill); padding: 11px 22px; font: 600 1rem/1.2 var(--sans); color: var(--slate); cursor: pointer; }

@media (max-width: 900px) {
  .nav-pill { padding-left: 22px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 8px); background: var(--white); border: var(--edge); border-radius: var(--radius-card); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: var(--hairline); font-size: 1.125rem; }
  .nav .btn { margin-top: 20px; text-align: center; padding: 16px 28px; }
}

/* ---------- Buttons ---------- */

.btn { display: inline-block; background: var(--slate); color: var(--white); border: var(--edge); border-radius: var(--radius-pill); padding: 16px 28px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--slate-mid); border-color: var(--slate-mid); color: var(--white); }
.btn.secondary { background: transparent; color: var(--slate); }
.btn.secondary:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.after { margin-top: 28px; }

/* ---------- Sections and rooms ---------- */

.section { padding: calc(var(--section-gap) / 2) 0; }
.room { margin: calc(var(--section-gap) / 2) var(--room-inset); padding: var(--room-pad) 0; border-radius: var(--radius-room); background: var(--beige); }
/* Rooms never touch: two in a row keep a full section gap of white between them */
.room + .room, .room + .site-footer, main:has(> .room:last-child) + .site-footer { margin-top: var(--section-gap); }
.room.shots { background: var(--blue-grey); }
.room.slate { background: var(--slate); color: var(--white); }
.room.slate a:hover { color: var(--sand); }
.room.slate .btn { background: var(--white); color: var(--slate); border-color: var(--white); }
.room.slate .btn:hover { background: var(--sand); border-color: var(--sand); color: var(--slate); }
.room.slate .btn.secondary { background: transparent; color: var(--white); border-color: var(--white); }
.room.slate .btn.secondary:hover { background: var(--white); color: var(--slate); }
.room.slate h2 { max-width: 14ch; }
.room.slate h2.long { max-width: 18ch; }

.section h2, .room h2 { margin-bottom: 32px; max-width: 20ch; }
h2.wide { max-width: 26ch; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split.even { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

.photo { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--beige); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .photo { max-width: 480px; } }

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

.hero { padding: clamp(48px, 7vw, 96px) 0 calc(var(--section-gap) / 2); }
.hero h1 { margin-bottom: 32px; }
.hero.solo h1 { max-width: 17ch; }
.tagline { font-family: var(--serif); font-style: italic; font-size: var(--text-heading-sm); line-height: 1.15; margin-bottom: 20px; color: var(--slate-mid); }

/* Hand-drawn underline: one per page, on the main heading */
.ul { white-space: nowrap; padding-bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 34 3 62 14 96 8 S 158 3 188 9 S 226 11 237 6' fill='none' stroke='%23D6C9B4' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 94% / 100% 0.2em; }

/* ---------- Payoff line (lowercase on purpose) ---------- */

.payoff { font-family: var(--serif); font-style: italic; font-size: var(--text-payoff); line-height: 1.1; letter-spacing: -0.01em; max-width: 20ch; text-wrap: balance; margin: 0; }
.payoff-block { padding: calc(var(--section-gap) * 0.75) 0; }
.room.slate .payoff { color: var(--sand); }
.payoff.inset { margin-top: 48px; }

/* ---------- Roster strip ---------- */

.roster { margin-top: 56px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.roster-day { display: flex; flex-direction: column; }
.roster-bar { height: 112px; display: flex; align-items: flex-end; margin-bottom: 8px; }
.roster-bar span { display: block; width: 100%; background: var(--slate); border-radius: 12px 12px 4px 4px; }
.roster-bar .full { height: 100%; }
.roster-bar .light { height: 24%; background: var(--slate-mid); }
.roster-bar .rest { height: 4px; background: var(--sand); border-radius: 2px; }
.roster-cell { border-radius: 16px; padding: 14px 14px 16px; background: var(--white); min-height: 92px; }
.roster-cell b { display: block; font-weight: 600; }
.roster-cell span { display: block; font-size: var(--text-small); line-height: 1.3; margin-top: 2px; }
.roster-cell.night { background: var(--slate); color: var(--white); }
.roster-cell.crash { background: var(--sand); }
.roster-cell.day { background: var(--blue-grey); }
.roster-train { font-size: var(--text-small); margin-top: 10px; padding-left: 4px; }
@media (max-width: 780px) {
  .roster { grid-template-columns: 1fr; gap: 6px; }
  .roster-day { flex-direction: row; align-items: center; gap: 12px; }
  .roster-bar { display: none; }
  .roster-cell { min-height: 0; flex: 1; display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; }
  .roster-cell b { min-width: 2.6em; }
  .roster-train { margin: 0; width: 6.5em; text-align: right; padding: 0; }
}

/* ---------- Lists ---------- */

.rows > li { padding: 28px 0; border-top: 1px solid var(--slate); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: baseline; }
.rows > li:last-child { border-bottom: 1px solid var(--slate); }
.rows .q { font-family: var(--serif); font-size: var(--text-heading-sm); line-height: 1.15; letter-spacing: -0.01em; }
.rows .struck { text-decoration: line-through; text-decoration-color: var(--sand); text-decoration-thickness: 3px; }
@media (max-width: 720px) { .rows > li { grid-template-columns: 1fr; padding: 24px 0; } }

.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.items.one { grid-template-columns: 1fr; }
.items > li { padding: 24px 0; border-top: var(--hairline); }
.room .items > li { border-top-color: var(--white); }
.room.shots .items > li { border-top-color: var(--white); }
.items strong { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.items.inline strong { display: inline; font-size: inherit; margin: 0; }
@media (max-width: 720px) { .items { grid-template-columns: 1fr; } }

.plain { display: grid; gap: 12px; }
.plain > li { padding-left: 28px; position: relative; max-width: 58ch; }
.plain > li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 1.5px; background: currentColor; }

.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; padding: 24px 0; border-top: var(--hairline-dashed); }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.steps > li::before { content: counter(step); font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--slate-mid); }
.room .steps > li { border-top-color: var(--slate-mid); }
.room.shots .steps > li::before { color: var(--slate); }
.steps > li > div { max-width: 56ch; }

/* ---------- Cards ---------- */

.card { background: var(--white); border-radius: var(--radius-card); padding: clamp(24px, 3.4vw, 40px); }
.card.lined { border: var(--hairline); }
.card h3 { margin-bottom: 16px; }
.cards { display: grid; gap: clamp(16px, 2vw, 24px); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.three, .cards.two { grid-template-columns: 1fr; } }
.door { display: flex; flex-direction: column; }
.door p { flex: 1; }
.door .foot { margin-top: 28px; flex: none; }

/* ---------- Price ---------- */

.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px !important; max-width: none !important; }
.price .fig { font-family: var(--serif); font-size: clamp(5rem, 15vw, 10rem); line-height: 0.85; letter-spacing: -0.03em; }
.price .per { font-family: var(--sans); font-size: var(--text-lead); letter-spacing: 0; }
.price .rest { flex-basis: 100%; margin-top: 16px; }

/* ---------- FAQ accordion ---------- */

.faq { border-top: 1px solid var(--slate); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--slate); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; font-family: var(--serif); font-size: var(--text-heading-sm); line-height: 1.15; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-54%); font-size: 2.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 28px; }

/* ---------- App screenshots ---------- */

.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: clamp(16px, 3vw, 32px); align-items: start; justify-content: center; }
.phones img { width: 100%; border-radius: var(--radius-phone); border: 1px solid var(--white); }
.phones img:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) { .phones { margin-top: 16px; } .phones img:nth-child(2) { margin-top: 24px; } }

/* ---------- Forms ---------- */

.form { display: grid; gap: 24px; max-width: 640px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field .hint { display: block; font-weight: 400; font-size: var(--text-small); margin-top: 2px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; font: inherit; color: var(--slate); background: var(--white); border: 1.5px solid var(--slate-mid); border-radius: var(--radius-input); padding: 14px 16px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--slate); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; background: var(--white); border: 1.5px solid var(--slate-mid); border-radius: var(--radius-pill); padding: 11px 22px; cursor: pointer; }
.choices input, .check input { accent-color: var(--slate); width: 20px; height: 20px; margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 40px; }
.inline-form .field { flex: 1 1 260px; }
.form-well { background: var(--beige); border-radius: var(--radius-card); padding: clamp(24px, 3.4vw, 40px); margin-top: 40px; }
.form-well .inline-form { margin-top: 0; }

/* ---------- Guide covers ---------- */

.cover { background: var(--white); border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 1 / 1.32; display: flex; flex-direction: column; max-width: 440px; width: 100%; justify-self: end; }
.cover.mat { border: 14px solid var(--beige); }
.cover-bar { background: var(--slate); color: var(--white); font-size: var(--text-small); padding: 14px 28px; display: flex; justify-content: space-between; }
.cover-body { padding: 12% 10% 9%; flex: 1; display: flex; flex-direction: column; }
.cover-for { font-size: var(--text-small); color: var(--slate-mid); margin-bottom: 16px; }
.cover-title { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95; letter-spacing: -0.02em; text-transform: lowercase; }
.cover-rule { width: 56px; height: 3px; background: var(--sand); margin: 24px 0; }
.cover-sub { font-size: 1rem; line-height: 1.45; max-width: 30ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.tags li { font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-pill); padding: 6px 14px; background: var(--sand); }
.tags .t1 { background: var(--slate); color: var(--white); }
.tags .t2 { background: var(--blue-grey); }
.tags .t4 { background: var(--white); border: var(--hairline); }
@media (max-width: 860px) { .cover { justify-self: start; } }

.kicker { font-family: var(--serif); font-style: italic; font-size: var(--text-heading-sm); line-height: 1.2; margin-bottom: 28px; }
.guide h2 { margin-bottom: 12px; }
.sub { font-weight: 600; margin: 32px 0 16px; }
h2.sub { font-family: var(--sans); font-size: var(--text-body); line-height: 1.6; letter-spacing: 0; max-width: none; }

/* ---------- Notes, lists of facts ---------- */

.note { border-left: 3px solid var(--sand); padding: 4px 0 4px 24px; font-style: italic; }
.room .note { border-left-color: var(--slate-mid); }
.facts { max-width: 820px; }
.facts li { padding: 20px 0; border-top: var(--hairline); font-size: var(--text-lead); }
.facts li:last-child { border-bottom: var(--hairline); }

.confirm { padding: clamp(56px, 9vw, 120px) 0 calc(var(--section-gap) / 2); }
.confirm h1 { margin-bottom: 32px; max-width: 16ch; }
.confirm .sub { margin-top: 48px; }

.legal { padding: clamp(56px, 9vw, 120px) 0 calc(var(--section-gap) / 2); }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: var(--text-heading-sm); margin: 56px 0 16px; max-width: none; }
.legal ul { display: grid; gap: 10px; margin-bottom: 1em; }
.legal ul li { padding-left: 28px; position: relative; max-width: var(--measure); }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 1.5px; background: currentColor; }

/* ---------- Links page (Instagram bio) ---------- */

.links-wrap { max-width: 560px; margin: 0 auto; padding: clamp(28px, 7vw, 80px) var(--gutter) 64px; }
.links-avatar { width: 88px; height: 88px; border-radius: var(--radius-pill); object-fit: cover; margin-bottom: 20px; }
.links-wrap h1 { margin-bottom: 8px; }
.links-tag { font-family: var(--serif); font-style: italic; font-size: var(--text-heading-sm); line-height: 1.15; color: var(--slate-mid); margin-bottom: 14px; }
.links-list { display: grid; gap: 12px; margin-top: 28px; }
.link-row { display: block; border: var(--edge); border-radius: var(--radius-card); padding: 18px 24px 20px; text-decoration: none; background: var(--white); transition: background-color .15s ease, color .15s ease; }
.link-row strong { display: block; font-size: 1.125rem; line-height: 1.3; }
.link-row span { display: block; font-size: var(--text-small); line-height: 1.4; margin-top: 2px; }
.link-row:hover { background: var(--beige); color: var(--slate); }
.link-row.main { background: var(--slate); color: var(--white); }
.link-row.main:hover { background: var(--slate-mid); border-color: var(--slate-mid); color: var(--white); }
.links-foot { margin-top: 48px; padding-top: 24px; border-top: var(--hairline); line-height: 1.8; }

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

.site-footer { margin: calc(var(--section-gap) / 2) var(--room-inset) var(--room-inset); padding: clamp(48px, 6vw, 80px) 0 40px; border-radius: var(--radius-room); background: var(--beige); }
.footer-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.footer-brand { font-family: var(--serif); font-size: var(--text-heading-lg); line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: var(--text-heading-sm); line-height: 1.15; margin-bottom: 24px; }
.footer-links { display: grid; gap: 10px; justify-items: start; }
.footer-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--white); font-size: var(--text-small); line-height: 1.5; display: grid; gap: 12px; }
.footer-legal p { max-width: 86ch; margin: 0; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
