/* Rooted Fitness WV: public pages.
   Idea: the logo is a barbell standing on its roots. A thin vertical line runs down the left of every page like the bar,
   and it ends in roots in the footer. Chalk, iron, and steel colors; wide heavy type for the headings, a warm serif for reading. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #10151c;
  --iron: #1d3557;
  --signal: #2f6fb5;
  --steel: #7f8ba0;
  --steel-dark: #5b6779;
  --fog: #e7ebf0;
  --chalk: #f6f7f9;
  --on-ink: #e9edf2;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --frame: 1040px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 1.125rem/1.65 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--iron); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid #7fb2ee; outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 125%; margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 7.4vw, 5.5rem); line-height: .98; letter-spacing: -.015em; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; font-stretch: 115%; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.2; font-stretch: 105%; }
p { margin: 0 0 1em; max-width: 62ch; }

.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 20; }
.site-header .frame { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.brand img { width: 30px; height: 34px; object-fit: contain; }
.brand:hover { color: #fff; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { color: var(--on-ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.menu a:not(.btn):hover { background: rgba(255,255,255,.1); color: #fff; }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.menu .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font: 600 .95rem var(--display); padding: 8px 14px; border-radius: 8px; cursor: pointer; }

.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1; padding: 14px 22px; border-radius: 10px; text-decoration: none; background: var(--iron); color: #fff; border: 2px solid var(--iron); cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-ink .btn, .site-header .btn { background: var(--signal); border-color: var(--signal); }
.on-ink .btn:hover, .site-header .btn:hover { background: #4a86c9; border-color: #4a86c9; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.hero { padding-bottom: 0; }
.on-ink .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.on-ink .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.small { padding: 10px 16px; font-size: .92rem; }

/* ---------- The bar down the left side ---------- */
.page { position: relative; }
.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - (var(--frame) / 2)); width: 3px; background: var(--steel); opacity: .55; display: none; }
@media (min-width: 1100px) { .page::before { display: block; } }

/* ---------- Hero ---------- */
.on-ink { background: var(--ink); color: var(--on-ink); }
.hero { padding: clamp(48px, 9vw, 112px) 0 0; }
.hero h1 { color: #fff; max-width: 14ch; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.55; max-width: 36ch; margin: 28px 0 32px; color: #cdd5df; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .photo { margin-top: clamp(40px, 7vw, 80px); aspect-ratio: 21 / 9; border-radius: 0; }

/* ---------- Photos ---------- */
.photo { margin: 0; background: var(--fog); overflow: hidden; border-radius: 6px; position: relative; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.ph { display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #e3e8ee 0 14px, #dce2e9 14px 28px); color: var(--steel-dark); font: 600 .85rem/1.3 var(--display); }
.on-ink .photo.ph { background: repeating-linear-gradient(135deg, #1a222d 0 14px, #161d27 14px 28px); color: #8d99ab; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 8vw, 104px) 0; }
section.block + section.block { padding-top: 0; }
.cols { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .cols.two { grid-template-columns: 1.1fr .9fr; } }
.stack { display: grid; gap: 20px; }
.stack .photo { aspect-ratio: 16 / 10; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 40ch; }
.sectionhead { margin-bottom: 28px; }

/* A ruled list: the rules separate rows, they are not decoration */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; gap: 4px 24px; grid-template-columns: 1fr; padding: 20px 0; border-bottom: 1px solid #c9d1db; }
@media (min-width: 720px) { .rows li { grid-template-columns: 17rem 1fr; align-items: baseline; } }
.rows h3 a { color: var(--ink); text-decoration: none; }
.rows h3 a:hover { color: var(--signal); }
.rows p { margin: 0; color: #36404d; }

.band { background: var(--iron); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.band h2 { color: #fff; margin-bottom: 12px; }
.band p { color: #d6e0ee; }
.band .btn { background: #fff; color: var(--iron); border-color: #fff; }
.band .btn:hover { background: var(--fog); color: var(--ink); border-color: var(--fog); }
.band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.band .btn.ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* ---------- Page titles ---------- */
.pagetitle { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.pagetitle h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 16ch; }
.pagetitle .lead { margin-top: 20px; color: #36404d; }

/* ---------- Classes and coaches ---------- */
.entry { display: grid; gap: 24px clamp(24px, 5vw, 56px); grid-template-columns: 1fr; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid #c9d1db; }
.entry:first-of-type { border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .entry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .entry.coach { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.entry h2 { margin-bottom: 6px; }
.entry .role { font-style: italic; color: var(--steel-dark); margin-bottom: 16px; }
.certs { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.certs li { border: 1.5px solid var(--iron); color: var(--iron); font: 600 .9rem/1.2 var(--display); padding: 8px 12px; border-radius: 999px; }
.entry h3.small { font-size: 1rem; margin: 20px 0 8px; color: var(--steel-dark); }
.empty { color: var(--steel-dark); font-style: italic; }

.values { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 820px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values > div { border-top: 3px solid var(--iron); padding-top: 16px; }
.values p { margin: 8px 0 0; }

/* ---------- Social icons in the footer ---------- */
.follow { list-style: none; display: flex; gap: 14px; padding: 0 0 22px; margin: 0; }
.follow li { margin: 0; }
.follow a { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid rgba(255,255,255,.28); border-radius: 50%; color: #dbe4ef; transition: background .15s, color .15s, border-color .15s; }
.follow a:hover, .follow a:focus-visible { background: var(--signal); border-color: var(--signal); color: #fff; }
.follow svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Footer with the roots ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.site-footer .frame { padding-top: 0; padding-bottom: 0; }
.footgrid { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 8px 0 40px; }
@media (min-width: 760px) { .footgrid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 10px; font-stretch: 110%; }
.site-footer p, .site-footer li { margin: 0 0 6px; color: #b9c3d0; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #dbe4ef; }
.site-footer a:hover { color: #fff; }
.roots { display: block; width: calc(100% + var(--gutter)); margin-left: calc(var(--gutter) * -1); height: auto; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.roots path { fill: none; stroke: var(--steel); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.roots.grown path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.3,.1,.2,1); transition-delay: var(--d, 0s); }
.fine { font-size: .9rem; color: #8d99ab; padding: 0 0 28px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255,255,255,.12); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 4px; }
  .menu a[aria-current="page"] { box-shadow: none; color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--signal); text-underline-offset: 8px; }
  .menu .btn { margin: 10px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roots path { stroke-dashoffset: 0; transition: none; }
}
