:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --light: #fffdf8;
  --ink: #252822;
  --muted: #5b6055;
  --line: #dbdbd0;
  --accent: #a73e27;
  --accent-hover: #8c2e1a;
  --dark: #262c24;
  --display: "Instrument Serif", Georgia, serif;
  --body: Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c45d3b; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - 5rem, 1280px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; top: .5rem; left: .5rem; z-index: 10; padding: .5rem 1rem; background: white; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.75rem;
  min-height: 84px;
}
.header-inner > .button { justify-self: end; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .67rem;
  width: fit-content;
  text-decoration: none;
}
.brand-logo {
  width: clamp(100px, 10vw, 128px);
  height: auto;
}
.brand-sub { color: var(--muted); font-size: .63rem; font-weight: 800; line-height: 1.32; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.3vw, 3.4rem); }
.main-nav a, .footer-inner > a:not(.brand) { text-decoration: none; font-size: .83rem; font-weight: 600; }
.main-nav a:hover, .footer-inner > a:not(.brand):hover { color: var(--accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .82rem 1.12rem;
  min-height: 49px;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
}
.button span { font-size: 1.1em; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: #a7a99b; }
.button-outline:hover { border-color: var(--ink); background: #e9e9de; }
.button-compact { min-height: 38px; padding: .52rem .83rem; font-size: .79rem; }
.button:disabled { cursor: wait; opacity: .66; }
.text-link { display: inline-flex; align-items: center; gap: .48rem; font-size: .83rem; font-weight: 700; text-underline-offset: 4px; }
.text-link:hover, .lesson-link:hover { color: var(--accent); }
.kicker { display: flex; align-items: center; gap: .52rem; font-size: .68rem; font-weight: 800; letter-spacing: .15em; line-height: 1.4; }
.accent-line { display: inline-block; width: 22px; height: 2px; background: #bc4f33; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(3.5rem, 7vw, 6.2rem);
}
.hero h1, h2 { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.hero h1 { margin: 1rem 0 1.35rem; font-size: clamp(4.1rem, 7.1vw, 7rem); }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-lead { max-width: 35ch; font-size: clamp(.99rem, 1.35vw, 1.14rem); line-height: 1.72; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 1.7rem; }
.hero-image { position: relative; aspect-ratio: 1.37; background: #ac9b86; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; padding-top: .67rem; color: var(--muted); font-size: .73rem; }
.hero-figure figcaption strong { color: var(--ink); font-weight: 700; }
.preview-button {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .57rem;
  min-height: 43px;
  padding: .54rem .9rem;
  border: 0;
  background: var(--light);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.preview-button:hover { background: white; color: var(--accent); }
.play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid var(--accent); }

.library-section { background: #eeeee5; padding-block: clamp(3.2rem, 5.5vw, 5rem); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 1.85rem; }
.section-top h2 { margin-top: .5rem; }
h2 { font-size: clamp(2.75rem, 5.1vw, 5.3rem); }
.section-top > p { max-width: 40ch; color: var(--muted); font-size: .92rem; }
.workshop-intro { max-width: 67ch; margin: -.5rem 0 1.4rem; color: var(--muted); font-size: .92rem; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.lesson { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--light); }
.lesson-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #d8d4c7; }
.lesson-photo img { width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; bottom: .55rem; right: .55rem; padding: .14rem .4rem; background: #252822ec; color: white; font-size: .71rem; font-variant-numeric: tabular-nums; }
.lesson-body { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 1rem 1.05rem 1.15rem; }
.lesson-category { color: var(--accent); font-size: .68rem; letter-spacing: .085em; text-transform: uppercase; font-weight: 800; }
.lesson h3 { margin: .23rem 0 .36rem; font-weight: 700; font-size: 1.03rem; line-height: 1.33; }
.lesson-body > p:not(.lesson-category) { color: var(--muted); font-size: .85rem; }
.lesson-link { display: inline-block; border: 0; background: transparent; color: var(--ink); margin-top: .68rem; padding: 0; font-size: .77rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.catalog-main { padding-block: clamp(2.75rem, 6vw, 5rem); }
.catalog-intro { max-width: 70ch; }
.catalog-intro h1 { margin: .6rem 0 1rem; font: 400 clamp(3.2rem, 7vw, 6rem)/.98 var(--display); letter-spacing: -.025em; }
.catalog-intro > p:last-child { color: var(--muted); }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: .7rem 1rem; align-items: end; margin-top: 2rem; }
.catalog-controls label { display: grid; gap: .25rem; font-size: .81rem; font-weight: 700; }
.catalog-controls input, .catalog-controls select { min-width: 0; min-height: 44px; width: 100%; padding: .5rem .7rem; border: 1px solid #a7a99b; background: var(--light); color: var(--ink); font: inherit; }
.catalog-count { margin: 1rem 0; color: var(--muted); font-size: .85rem; }
.catalog-more { margin-top: 1.25rem; }
.catalog-join { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.catalog-join h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
details summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; list-style: none; font-weight: 700; }
details summary::-webkit-details-marker { display: none; }
details summary span { color: var(--accent); font-size: 1.28rem; font-weight: 500; line-height: 1; }
details[open] summary span { transform: rotate(45deg); }

.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; padding-block: clamp(3.6rem, 7vw, 6.3rem); }
.about h2, .membership-section h2 { margin-top: .75rem; }
.about-copy { display: grid; gap: .8rem; max-width: 60ch; }
.profile-role { max-width: 32ch; margin-top: .8rem; font-size: .9rem; }
.profile-photo { width: min(100%, 232px); height: auto; margin-top: 1.25rem; }
.about-copy p, .profile-role, .membership-copy { color: var(--muted); }
.project-title { margin-top: .45rem; font-size: .91rem; }
.project-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.project-list a {
  display: grid;
  grid-template-columns: minmax(6.8rem, .7fr) minmax(0, 1.5fr) auto;
  align-items: baseline;
  gap: .6rem;
  padding-block: .53rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: .82rem;
}
.project-list a span { color: var(--muted); }
.project-list a:hover strong, .project-list a .project-arrow { color: var(--accent); }
.about-copy .text-link { width: fit-content; margin-top: .3rem; }
.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5.7rem);
}
.profile-biography h1 {
  margin: .65rem 0 .85rem;
  font: 400 clamp(3.6rem, 7vw, 6.7rem)/.96 var(--display);
  letter-spacing: -.025em;
}
.profile-biography > p:not(.kicker) { max-width: 51ch; color: var(--muted); margin-top: .75rem; }
.profile-biography > .text-link { margin-top: 1.2rem; }
.profile-portrait { justify-self: end; width: min(100%, 356px); }
.profile-portrait img { width: 100%; height: auto; }
.profile-projects { border-top: 1px solid var(--line); padding-block: clamp(2.7rem, 5.5vw, 4.7rem); }
.profile-projects > h2 { margin-bottom: 1.25rem; }
.profile-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-project { padding: clamp(1rem, 2.5vw, 1.65rem); border: 1px solid var(--line); background: var(--light); scroll-margin-top: 1.5rem; }
.profile-project:target { border-color: var(--accent); }
.profile-project h3 { margin-bottom: .38rem; font-size: 1.08rem; }
.profile-project p { color: var(--muted); max-width: 52ch; font-size: .9rem; }
.profile-project .project-meta { color: var(--accent); margin-bottom: .4rem; font-size: .75rem; font-weight: 700; }
.membership-section { background: var(--dark); color: var(--light); padding-block: clamp(3rem, 6vw, 5.4rem); }
.membership-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.membership-copy { color: #e1e3d7; margin-top: 1rem; max-width: 40ch; }
.price-card { background: var(--light); color: var(--ink); padding: clamp(1.35rem, 3vw, 2.5rem); }
.price-card h3 { font-weight: 700; font-size: 1.05rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; padding: .35rem 0 .75rem; border-bottom: 1px solid var(--line); }
.price strong { font: 400 4.2rem/1 var(--display); }
.price span { font-size: .85rem; color: var(--muted); }
.benefits { margin: .95rem 0 1.1rem; padding-left: 1.12rem; font-size: .85rem; }
.benefits li { margin: .38rem 0; }
.benefits li::marker { color: var(--accent); }
.price-card .button { width: 100%; }
.member-sign-in-link { margin-top: .9rem; font-size: .85rem; text-align: center; color: var(--muted); }
.member-sign-in-link a { color: var(--ink); font-weight: 700; text-underline-offset: .2em; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 4rem; padding-block: clamp(3rem, 6.5vw, 5.8rem); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: .85rem 0; font-size: .9rem; }
.faq-list details p { padding: 0 .9rem .9rem 0; color: var(--muted); font-size: .89rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1rem; }
.footer-inner .brand { margin-right: auto; }
.footer-inner .brand-logo { width: 96px; }

.player-dialog { width: min(760px, 100% - 2rem); border: 1px solid var(--line); padding: 1rem; background: var(--light); color: var(--ink); }
.player-dialog::backdrop { background: #171b14c7; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dialog-heading h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
.player-dialog video, .player-dialog iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #161811; border: 0; }
.player-dialog > p { font-size: .78rem; color: var(--muted); padding-top: .6rem; }

.member-main { min-height: calc(100svh - 184px); padding-block: clamp(3.2rem, 7vw, 6.2rem); }
.member-title { font: 400 clamp(3.3rem, 6vw, 5.5rem)/.98 var(--display); margin: .75rem 0 1rem; }
.member-lead { max-width: 55ch; color: var(--muted); margin-bottom: 1.45rem; }
.member-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 395px); gap: 1.3rem; align-items: start; max-width: 1020px; }
.member-panel { border: 1px solid var(--line); background: var(--light); padding: clamp(1.2rem, 3vw, 2rem); }
.member-panel h2 { font-size: 2.5rem; margin-bottom: .65rem; }
.member-panel p { margin-bottom: .8rem; }
.member-panel .price { margin-bottom: .85rem; }
.member-panel .price strong { font-size: 3.8rem; }
.member-plan-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .75rem; }
.policy-main { max-width: 800px; min-height: calc(100svh - 184px); padding-block: clamp(2.75rem, 6vw, 5rem); }
.policy-main h2 { margin-top: 1.65rem; font-size: 2rem; }
.policy-main p { margin-top: .65rem; overflow-wrap: anywhere; }
.member-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.email-form { display: grid; gap: .65rem; }
.email-form label { font-size: .84rem; font-weight: 700; }
.email-form input { width: 100%; min-height: 48px; border: 1px solid #a7a99b; border-radius: 0; color: var(--ink); background: white; padding: .65rem; }
.email-form .button { justify-self: start; margin-top: .25rem; }
.notice { border-left: 3px solid var(--accent); background: #ece8da; padding: .75rem .95rem; max-width: 70ch; margin-bottom: 1rem; font-size: .9rem; }
#member-library { margin-top: 2rem; }
#member-library h2 { font-size: 2.7rem; margin-bottom: 1rem; }
#show-more { margin-top: 1rem; }
#checkout { margin-right: .7rem; }
.member-video-title { overflow-wrap: anywhere; }
.member-video-thumb { display: grid; place-items: center; color: var(--muted); background: #e7e4d9; }
.member-video-thumb img { position: absolute; inset: 0; }
.member-video-status { min-height: 1.6rem; color: var(--muted); font-size: .86rem; }

@media (max-width: 1050px) {
  .wrap { width: min(100% - 3.5rem, 1280px); }
  .hero { gap: 2.5rem; }
  .hero-actions { gap: .7rem 1rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .8rem; min-height: 72px; padding-block: .62rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: .4rem 1.2rem; flex-wrap: wrap; padding-top: .58rem; }
  .main-nav a { font-size: .74rem; }
  .hero { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.85rem; }
  .hero h1 { font-size: clamp(3.85rem, 11vw, 5.75rem); }
  .hero-lead { max-width: 45ch; }
  .hero-image { aspect-ratio: 1.55; }
  .section-top { display: grid; align-items: start; margin-bottom: 1.15rem; }
  .section-top > .button { justify-self: start; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .lesson-body { padding: .8rem; }
  .about, .membership-layout, .faq, .member-panels { grid-template-columns: 1fr; gap: 1.3rem; }
  .profile-intro, .profile-project-grid { grid-template-columns: 1fr; }
  .profile-portrait { justify-self: start; width: min(100%, 260px); }
  .price-card { max-width: 490px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 2rem); }
  .lesson-grid { grid-template-columns: 1fr; }
  .catalog-controls { grid-template-columns: 1fr; }
  .catalog-controls > .button { justify-self: start; }
  .hero-actions { gap: .65rem; }
  .hero-actions .text-link { font-size: .78rem; }
  .footer-inner { gap: .7rem 1rem; }
  .footer-inner .brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
