:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --ink: #252820;
  --muted: #55584d;
  --olive: #414a35;
  --deep: #363d2d;
  --rule: #d7d7ca;
  --soft: #eaece1;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
:focus-visible { outline: 2px solid #986125; outline-offset: 5px; }
section[id] { scroll-margin-top: 24px; }
figure, h1, h2, p, dl, dd { margin: 0; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 8px 12px; transform: translateY(-150%); background: var(--paper); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 81px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 9px; font: 1.47rem/1.15 var(--serif); text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 24px; height: 28px; flex: 0 0 24px; }
.brand-mark::before { content: ''; position: absolute; inset: 4px 5px 3px 5px; transform: rotate(42deg); border: 1.5px solid var(--olive); border-radius: 0 70% 70% 70%; }
.brand-mark::after { content: ''; position: absolute; width: 6px; height: 9px; left: 9px; top: 12px; transform: rotate(39deg); border-radius: 0 65% 65% 65%; background: var(--olive); }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.nav a, .back-top { color: var(--muted); font-size: .91rem; text-decoration: none; }
.nav a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; min-height: 52px; width: fit-content; align-items: center; justify-content: center; padding: 11px 23px; border: 1px solid transparent; border-radius: 5px; font-size: .93rem; font-weight: 650; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button-outline { border-color: #a6aa9a; color: var(--deep); }
.button-outline:hover { background: var(--soft); border-color: var(--olive); }
.header-button { justify-self: end; min-height: 43px; padding: 9px 16px; }
.button-primary { background: var(--olive); color: #fffdf7; }
.button-primary:hover { background: #303926; }
.button-light { background: #fff7df; color: #2c3226; }
.button-light:hover { background: #eee0b9; }

.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 4vw, 64px); padding-block: 43px 40px; }
.hero-copy { padding-block: 22px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--olive); font-size: .84rem; font-weight: 700; line-height: 1.45; letter-spacing: .075em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 23px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; }
h1 { margin-top: 20px; font-size: clamp(3rem, 5.35vw, 5.25rem); line-height: .99; }
h1 em, h2 em { color: var(--olive); font-weight: 400; }
h1 em { display: block; }
h2 { font-size: clamp(2.45rem, 4.5vw, 4rem); line-height: 1.02; }
.hero-description { max-width: 460px; margin-block: 25px 28px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.14rem); line-height: 1.63; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-figure { position: relative; height: clamp(430px, 41vw, 556px); overflow: hidden; border-radius: 7px; background: #69522e; }
.hero-figure img { object-position: center 75%; }
.course-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 24px; border-block: 1px solid var(--rule); }
.course-facts div { padding-left: 28px; border-left: 1px solid var(--rule); }
.course-facts div:first-child { padding-left: 0; border-left: 0; }
.course-facts dt { font: 1.65rem/1.15 var(--serif); }
.course-facts dd { margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(35px, 7vw, 105px); padding-block: 96px; }
.about-media { height: clamp(310px, 31vw, 405px); overflow: hidden; border-radius: 7px; background: #554a36; }
.about-copy h2, .section-intro h2, .start h2 { margin-top: 14px; }
.about-copy > p:not(.eyebrow), .section-intro > p:not(.eyebrow) { margin-top: 19px; color: var(--muted); }
.about-list { display: grid; gap: 9px; padding-left: 20px; margin: 20px 0 0; }
.about-list li::marker { color: var(--olive); }

.section-grid { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: clamp(35px, 7vw, 105px); }
.section-intro { max-width: 380px; }
.program { padding-block: 78px; background: var(--soft); }
.accordion { border-top: 1px solid #c2c7b7; }
details { border-bottom: 1px solid #c2c7b7; }
summary { display: flex; align-items: baseline; gap: 16px; padding: 17px 0; color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.17rem); font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; align-self: center; margin-left: auto; color: var(--olive); font-size: 1.45rem; font-weight: 400; line-height: 1; }
details[open] > summary::after { content: '−'; }
summary:hover { color: #626e4e; }
.module-number { color: var(--olive); font-size: .83rem; font-weight: 650; font-variant-numeric: tabular-nums; }
details p { max-width: 620px; padding: 0 28px 18px 0; color: var(--muted); }
.program details p { padding-left: 36px; }
.faq { padding-block: 92px; }

.start { padding-bottom: 76px; }
.start-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: clamp(28px, 5vw, 62px); border-radius: 7px; background: var(--deep); color: #f8f4e6; }
.start .eyebrow { color: #e0deb8; }
.start p:not(.eyebrow) { max-width: 525px; margin-top: 16px; color: #eeecdd; }
.start .button { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.footer-inner > span { color: var(--muted); font-size: .9rem; }

@media (max-width: 1070px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 32px; }
  h1 { font-size: clamp(2.75rem, 5.65vw, 4.2rem); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 12px; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; max-width: 385px; min-height: 32px; }
  .brand { font-size: 1.28rem; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 25px 27px; }
  .hero-copy { padding: 0; }
  .hero-figure { height: clamp(300px, 79vw, 450px); }
  h1 { font-size: clamp(2.75rem, 9.1vw, 4.65rem); }
  .hero-description { margin-block: 19px 22px; }
  .course-facts { gap: 10px; padding-block: 17px; }
  .course-facts div { padding-left: 10px; }
  .course-facts dt { font-size: clamp(1.13rem, 4vw, 1.55rem); }
  .course-facts dd { font-size: .86rem; }
  .about, .section-grid { grid-template-columns: 1fr; gap: 25px; }
  .about, .faq, .program { padding-block: 54px; }
  .about-copy { grid-row: 1; }
  .about-media { height: clamp(235px, 58vw, 360px); }
  .start { padding-bottom: 50px; }
  .start-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-inner { flex-wrap: wrap; padding-block: 18px; }
  .footer-inner > span { order: 1; width: 100%; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  h1 { font-size: 2.48rem; }
  .header-button { padding-inline: 10px; }
  .start-inner { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
