/* Karen Tyne Studio, v3
   One grid everywhere: a left rail (labels, photos) and a main column (text).
   Serif for reading, a quiet sans for the interface. */
:root {
  --paper: #f5f0e6;
  --ink: #2b2925;
  --muted: #6f685d;
  --forest: #2e4434;
  --forest-dark: #22342a;
  --line: #ddd3c4;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 32px;
  --gap: 72px;
  --measure: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.25rem; line-height: 1.62; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--forest-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 4vw, 3.3rem); margin-bottom: 0.45em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); margin-bottom: 0.6em; }
h3 { font-size: 1.45rem; margin-bottom: 0.4em; color: var(--forest); }

/* layout */
.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); align-items: start; }
.main > * { max-width: var(--measure); }
.section { padding: 104px 0; }
.section + .section { padding-top: 0; }
.label { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.01em; color: var(--muted); margin: 0; padding-top: 0.7em; }
.lead { font-size: 1.45rem; line-height: 1.45; color: var(--muted); }

/* buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none; padding: 14px 26px; border-radius: 2px; border: 1px solid var(--forest); background: var(--forest); color: var(--paper); transition: background 0.15s, color 0.15s; cursor: pointer; }
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: var(--paper); }
.btn-line { background: transparent; color: var(--forest); }
.btn-line:hover { background: var(--forest); color: var(--paper); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--forest); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--forest-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.aside { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }

/* header */
.site-header { padding: 22px 0; }
.site-header .page { display: flex; align-items: center; gap: 32px; }
.brand { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-family: var(--sans); font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.site-header .btn { padding: 10px 18px; font-size: 0.9rem; }

/* home: header sits on the video */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.home .brand, .home .nav a { color: #f5f0e6; }
.home .nav a:hover, .home .nav a[aria-current="page"] { color: #fff; }
.home .site-header .btn { background: transparent; border-color: rgba(245,240,230,0.7); color: #f5f0e6; }
.home .site-header .btn:hover { background: #f5f0e6; color: var(--forest); }

.video-hero { position: relative; height: 90vh; min-height: 540px; overflow: hidden; display: flex; align-items: center; background: #2a2014 url(images/wapack-loop-poster.jpg) center / cover; }
.video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,16,10,0.5) 0%, rgba(20,16,10,0.28) 30%, rgba(20,16,10,0.36) 65%, rgba(20,16,10,0.6) 100%); }
.video-copy { position: relative; z-index: 2; width: 100%; text-align: center; padding-top: 48px; }
.video-copy h1 { color: #f5f0e6; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.16; max-width: 27ch; margin: 0 auto; text-wrap: balance; text-shadow: 0 1px 18px rgba(0,0,0,0.3); }
.video-copy .actions { justify-content: center; margin-top: 36px; }
.video-copy .aside { color: rgba(245,240,230,0.85); }
.video-copy .aside a { color: #f5f0e6; }
@media (prefers-reduced-motion: reduce) { .video-bg { display: none; } }

/* the centered quote */
.quote { padding: 128px 0; text-align: center; }
.quote p { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.18; max-width: 19ch; margin: 0 auto; text-wrap: balance; }

/* home */
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.sig { width: 250px; margin: 6px 0 0 -6px; }
.index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: block; padding: 14px 0; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.index a:hover { color: var(--forest); padding-left: 6px; transition: padding 0.2s; }
.plain-list { padding-left: 1.1em; margin: 0; }
.plain-list li { margin-bottom: 6px; }

/* full-width photos keep a fixed shape, never a fixed height, and set a focal point */
.strip { width: 100%; height: auto; aspect-ratio: 21 / 9; max-height: 76vh; object-fit: cover; object-position: var(--focus, 50% 50%); }

/* inner page opening */
.opening { padding: 96px 0 88px; }

/* services */
.side-photo { position: sticky; top: 28px; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: var(--focus, 50% 50%); }
.svc { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.svc:last-of-type { border-bottom: 0; }
.svc h2 { font-size: 1.6rem; color: var(--forest); margin-bottom: 0.5em; }
.note { font-size: 1.05rem; color: var(--muted); font-style: italic; }
.credits dl { margin: 0; columns: 2; column-gap: 40px; font-size: 1.05rem; line-height: 1.45; }
.credits dt { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); break-after: avoid; }
.credits dd { margin: 2px 0 18px; break-inside: avoid; }
.credits a { color: var(--ink); }

/* about */
.bio h2 { font-size: 1.6rem; color: var(--forest); margin: 1.8em 0 0.6em; }
.bio h2:first-child { margin-top: 0; }
.bio figure { margin: 48px 0; }

/* contact */
.contact-list { font-size: 1.35rem; line-height: 1.7; margin: 0; }
.map-big { width: 100%; height: clamp(380px, 60vh, 620px); border: 0; display: block; }
.caption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
form { font-family: var(--sans); font-size: 1rem; }
label { display: block; margin-bottom: 20px; }
label span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: rgba(255,255,255,0.45); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* book band */
.book { padding: 96px 0; }
.book h2 { margin-bottom: 0.35em; }

/* textures, used lightly with faded edges */
.textured { position: relative; isolation: isolate; }
.textured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(images/texture-light.jpg) center / 900px repeat; opacity: 0.38; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.textured.green::before { background-image: url(images/texture-spring-green.jpg); opacity: 0.28; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
.site-footer .page { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer address { font-style: normal; }

/* legal */
.legal { padding: 72px 0 96px; }
.legal h2 { font-size: 1.4rem; margin: 1.6em 0 0.4em; }

.rail-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* about: one row per chapter, photos beside the text they belong to */
.bio-row + .bio-row { margin-top: 64px; }
.bio-row .bio h2 { margin-top: 0; }

@media (max-width: 900px) {
  :root { --gutter: 18px; --gap: 28px; }
  body { font-size: 1.15rem; }
  .row { grid-template-columns: 1fr; }
  .label { padding-top: 0; }
  .section { padding: 64px 0; }
  .quote { padding: 80px 0; }
  .opening { padding: 56px 0 48px; }
  .book { padding: 64px 0; }
  .site-header .page { flex-wrap: wrap; gap: 12px 20px; }
  .nav { order: 3; width: 100%; gap: 20px; }
  .brand { font-size: 1.25rem; }
  .site-header .btn { padding: 8px 12px; font-size: 0.82rem; }
  .portrait { max-width: 320px; }
  .bio-rail:empty { display: none; }
  .bio-rail .rail-photo { max-width: 300px; }
  .bio-row + .bio-row { margin-top: 48px; }
  .strip { aspect-ratio: 4 / 3; }
  .side-photo { position: static; aspect-ratio: 16 / 10; object-position: var(--focus-m, var(--focus, 50% 50%)); }
  .credits dl { columns: 1; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .video-hero { height: 80vh; min-height: 480px; }
}

.crumb { color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.more { font-family: var(--sans); font-size: 0.95rem; margin-top: -0.2em; }
h1, h2 { text-wrap: balance; }
.status { font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; color: var(--ink); background: rgba(46,68,52,0.07); border-left: 3px solid var(--forest); padding: 12px 16px; margin: 8px 0 16px; }

/* CranioSacral highlighted as Karen's main focus */
.svc.featured { background: rgba(46,68,52,0.06); border-left: 3px solid var(--forest); border-bottom: 0; padding: 28px 32px 18px; margin-bottom: 48px; }
.svc.featured h2 { font-weight: 500; }
.focus-tag { font-family: var(--sans); font-size: 0.85rem; color: var(--forest); margin: 0 0 8px; }
.index li.featured a { font-weight: 500; color: var(--forest); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.focus-inline { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.site-footer .credit { flex-basis: 100%; font-size: 0.82rem; }

/* phones: compact header, and the home headline always sits below it */
@media (max-width: 900px) {
  .site-header { padding: 14px 0 10px; }
  .site-header .page { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .brand { font-size: 1.2rem; }
  .site-header .btn { padding: 7px 12px; font-size: 0.8rem; margin-left: auto; }
  .nav { order: 3; width: 100%; gap: 18px; font-size: 0.9rem; }
  .video-hero { height: auto; min-height: 88svh; align-items: flex-end; }
  .video-copy { padding-top: 150px; padding-bottom: 56px; }
  .video-copy h1 { font-size: clamp(1.75rem, 7.4vw, 2.3rem); }
}
@media (max-width: 900px) { .row > .rail-photo { max-width: 320px; } }
