/* ==========================================================================

     _  __        _    _   _        _          _ _        _
    | |/ /___ _ _| |_ | | | |___   | |__  ___ | | |___   | |    /\
    |   </ -_) '_|  _|| |_| / -_)  | '_ \/ -_)| | (_-<   | |   /  \
    |_|\_\___|_|  \__| \___/\___|  |_.__/\___||_|_/__/   |_|  /_/\_\

              Hand coded with love by We Unf*ck
                      https://www.weunf.com

   ==========================================================================
   Kettlebells Los Angeles — site.css
   Hand-written. No framework, no build step.
   Palette carried over from the original logo (black / red) and the legacy
   WordPress theme's warm neutrals (#faf9f7, #e8e2d9, #6d6d6e, #4a4848).
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  --ink:      #16161a;
  --ink-soft: #3a3a40;
  --muted:    #6c6c72;
  --red:      #d0201a;
  --red-dark: #a81813;
  --paper:    #ffffff;
  --paper-2:  #faf9f7;
  --paper-3:  #f3f0eb;
  --line:     #e8e2d9;
  --line-2:   #f0ece5;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --wrap: 1120px;
  --wrap-narrow: 760px;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

  --shadow: 0 1px 2px rgba(22,22,26,.04), 0 8px 24px rgba(22,22,26,.06);

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.65vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1.15em; }
p { max-width: var(--measure); text-wrap: pretty; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
small { font-size: .875rem; }

/* --- 3. Layout ---------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.tint { background: var(--paper-2); }
.stack > * + * { margin-top: 1.15em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

/* --- 4. Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 41px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: .95rem; letter-spacing: .01em; }
.brand-sub { font-size: .7rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .55rem .8rem; cursor: pointer;
  font: inherit; font-size: .9rem; color: var(--ink); align-items: center; gap: .5rem;
}
.nav-toggle:hover { border-color: var(--ink); }

/* Reset applies to both levels; the flex row applies ONLY to the top-level
   list. Using `.nav ul` for display here would out-specify `.sub`'s
   `display:none` and leave every dropdown permanently open. */
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: block; padding: .5rem .78rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 500;
}
.nav a:hover { background: var(--paper-3); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--red); }

/* Submenus.
   The parent link stays a real link. A separate caret button opens the
   submenu, so dropdowns work by click and by tap — not hover alone, which
   is unreachable on iPad and any other touch device. */
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: .35rem; }

.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 34px; margin-left: -2px; padding: 0;
  background: none; border: 0; border-radius: var(--r-sm);
  color: var(--ink-soft); cursor: pointer; font: inherit;
}
.sub-toggle::before {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.sub-toggle:hover { background: var(--paper-3); color: var(--ink); }
.has-sub[data-open="true"] > .sub-toggle { color: var(--red); }
.has-sub[data-open="true"] > .sub-toggle::before { transform: translateY(1px) rotate(-135deg); }

.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: .4rem;
  display: none; flex-direction: column; gap: 1px;
  z-index: 10;
}
/* Invisible bridge across the 8px gap. Without it the pointer leaves the
   parent <li> on the way down, :hover drops, and the menu closes before
   you can reach a link. */
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.has-sub[data-open="true"] > .sub { display: flex; }

/* Hover-to-open ONLY where a precise pointer actually exists. On touch this
   query never matches, so the caret button is the sole opener. */
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover > .sub { display: flex; }
  .has-sub:hover > .sub-toggle::before { transform: translateY(1px) rotate(-135deg); }
}

/* Bigger caret hit area on any touch device, including iPad in landscape
   where the desktop layout is still in use. */
@media (hover: none) {
  .sub-toggle { width: 44px; height: 44px; }
}

.sub a { font-size: .9rem; padding: .5rem .7rem; }
.sub a:hover { background: var(--paper-3); color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.4rem; display: none;
    max-height: 78vh; overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line-2); }
  .nav a { padding: .8rem .2rem; font-size: 1rem; }

  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1 1 auto; padding-right: .2rem; }
  .sub-toggle { width: 48px; height: 48px; flex: 0 0 auto; }
  .sub {
    position: static; width: 100%; order: 3;
    border: 0; border-left: 2px solid var(--line); border-radius: 0;
    box-shadow: none; padding: 0 0 .6rem .9rem; min-width: 0;
  }
  .sub::before { display: none; }
  .sub a { padding: .6rem .2rem; color: var(--muted); }
}

/* --- 5. Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .35em; }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34ch; }
.hero-figure img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.1rem;
}

/* --- 6. Buttons --------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  font-weight: 650; font-size: .96rem; text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

/* --- 7. Cards / grids --------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem 1.55rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card > * + * { margin-top: .75rem; }

.person {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.person:hover { border-color: #d6cec1; transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; background: var(--paper-3); }
.person-body { padding: 1.15rem 1.25rem 1.35rem; }
.person-name { font-weight: 700; color: var(--ink); font-size: 1.06rem; line-height: 1.25; margin-bottom: .2rem; }
.person-role { font-size: .85rem; color: var(--muted); margin: 0; }
.person-area { font-size: .8rem; color: var(--red-dark); font-weight: 600; margin: .5rem 0 0; }

/* --- 8. Page header ----------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line-2); }
.page-head p { font-size: var(--step-1); color: var(--muted); max-width: 60ch; margin-bottom: 0; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumb li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.crumb a { color: var(--muted); text-decoration: none; display: inline-block; padding: .2rem 0; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

/* --- 9. Prose ----------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.6em; }
.prose h3 { margin-top: 2em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose blockquote {
  margin: 2rem 0; padding: .3rem 0 .3rem 1.5rem;
  border-left: 3px solid var(--red); color: var(--ink);
  font-size: var(--step-1); font-style: normal;
}
.prose figure { margin: 2.25rem 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { font-size: .84rem; color: var(--muted); margin-top: .7rem; }

.lede { font-size: var(--step-1); color: var(--ink-soft); }

/* --- 10. Layout with sidebar ------------------------------------------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } }
.aside-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.4rem 1.5rem;
  position: sticky; top: 96px;
}
.aside-card h2, .aside-card h3 { font-size: 1rem; letter-spacing: .01em; margin-bottom: .8rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.aside-card li + li { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.aside-card p { font-size: .9rem; }
@media (max-width: 900px) { .aside-card { position: static; } }

/* --- 11. Definition rows (class listings) ------------------------------ */
.detail-list { margin: 0 0 1.5rem; }
.detail-list div { display: grid; grid-template-columns: 108px 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.detail-list dt { font-weight: 650; color: var(--ink); font-size: .88rem; letter-spacing: .01em; }
.detail-list dd { margin: 0; }
@media (max-width: 520px) { .detail-list div { grid-template-columns: 1fr; gap: .15rem; } }

/* --- 12. Callouts ------------------------------------------------------- */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  background: var(--paper-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.15rem 1.35rem; margin: 2rem 0; font-size: .94rem;
}
.note p { margin-bottom: 0; max-width: none; }
.note p + p { margin-top: .7rem; }
.note strong { color: var(--ink); }
.note-title { font-weight: 700; color: var(--ink); display: block; margin-bottom: .35rem; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase; }

/* --- 13. FAQ ------------------------------------------------------------ */
.faq { max-width: var(--measure); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[open] { background: linear-gradient(var(--paper-2), var(--paper-2)) padding-box; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem .2rem;
  font-weight: 650; color: var(--ink); font-size: 1.03rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .6rem; top: 1.5rem;
  width: 10px; height: 10px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq summary:hover { color: var(--red-dark); }
.faq .faq-a { padding: 0 1rem 1.35rem .2rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* --- 14. Link list (resources) ----------------------------------------- */
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.linklist a { font-weight: 650; text-decoration: none; color: var(--ink); }
.linklist a:hover { color: var(--red-dark); text-decoration: underline; }
.linklist p { font-size: .92rem; color: var(--muted); margin: .3rem 0 0; }

/* --- 15. Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; margin-top: clamp(3rem, 7vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.site-footer li + li { margin-top: .35rem; }
/* inline-block + padding so these clear the 24px minimum tap target */
.site-footer li a { display: inline-block; padding: .3rem 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--red-dark); text-decoration: underline; }
.footer-brand img { width: 62px; height: 61px; margin-bottom: .9rem; }
.footer-brand p { font-size: .9rem; color: var(--muted); max-width: 34ch; }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .84rem; color: var(--muted);
}
.footer-bottom p { margin: 0; max-width: none; }
.credit { font-weight: 650; color: var(--ink-soft); text-decoration: none; display: inline-block; padding: .25rem 0; }
.credit:hover { color: var(--red-dark); text-decoration: underline; }

/* --- 16. Utilities ------------------------------------------------------ */
.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;
}
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
