/* Vogove — stone-courses */
:root {
  --bg: #191919;
  --bg-alt: #212121;
  --bg-deep: #141414;
  --bg-light: #f0eeec;
  --text: #e8e6e4;
  --muted: #918e8c;
  --ink: #191919;
  --ink-muted: #5b5856;
  --accent: #c96f76;
  --accent-dark: #a2474f;
  --slate: #8ca0a8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pad-y: 88px;
  --pad-y-sm: 52px;
  --gutter: 24px;
  --edge: clamp(16px, 4vw, 48px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--ink); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-transform: none; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.16; margin-bottom: 26px; }
h3 { font-style: italic; font-size: 1.32rem; line-height: 1.3; margin: 34px 0 10px; }
p { margin: 0 0 1.1em; }

.label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

/* ---------- grid shell ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ---------- hero: three stacked courses ---------- */
.course-nav { background: var(--bg-alt); }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px; padding-top: 16px; padding-bottom: 16px;
}
.brand {
  font-family: var(--serif); font-size: 1.3rem; color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--accent); }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.nav ul a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }

.course-title { background: var(--bg); }
.course-title .grid { min-height: clamp(340px, 52vh, 520px); align-items: end; padding-bottom: 56px; padding-top: 64px; }
.course-title .title-block { grid-column: 1 / span 9; }
.course-title .label { margin-bottom: 22px; }

.course-intro { background: var(--bg-deep); }
.course-intro .grid { padding-top: 52px; padding-bottom: 52px; row-gap: 32px; }
.course-intro .lede { grid-column: 1 / span 6; font-size: 1.08rem; color: var(--text); }
.course-intro .lede p:last-child { margin-bottom: 0; }
.topics { grid-column: 8 / span 5; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.topics li {
  counter-increment: t; display: flex; gap: 14px; font-size: 15px; color: var(--muted); padding: 3px 0;
}
.topics li::before {
  content: counter(t, decimal-leading-zero); font-size: 12px; letter-spacing: 0.12em; color: var(--slate); padding-top: 3px; min-width: 22px;
}
.topics a { color: var(--text); text-decoration: none; }
.topics a:hover { color: var(--accent); }

/* ---------- main image ---------- */
.figure-main { background: var(--bg-alt); }
.figure-main .grid { padding-top: 88px; padding-bottom: 52px; }
.figure-main figure { grid-column: 4 / span 9; margin: 0; }
.figure-main figcaption, .detail figcaption {
  font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 12px; max-width: 46ch;
}

/* ---------- stepped courses ---------- */
.course { padding: var(--pad-y) 0; }
.course.tone-a { background: var(--bg); }
.course.tone-b { background: var(--bg-alt); }
.course .text { grid-column-end: span 6; }
.step-0 .text { grid-column-start: 1; }
.step-1 .text { grid-column-start: 2; }
.step-2 .text { grid-column-start: 3; }
.step-3 .text { grid-column-start: 4; }
.course.short { padding: var(--pad-y-sm) 0; }

.text ul, .text ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.text li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.text ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.78em; width: 12px; height: 2px; background: var(--accent);
}
.text ol { counter-reset: n; }
.text ol li { counter-increment: n; }
.text ol li::before {
  content: counter(n); position: absolute; left: 0; top: 0.2em;
  font-size: 12px; letter-spacing: 0.1em; color: var(--slate);
}
.checklist li::before {
  width: 10px !important; height: 10px !important; top: 0.55em !important; left: 1px !important;
  background: transparent !important; border: 1.5px solid var(--accent);
}
.note { color: var(--muted); font-size: 15px; }
dl.terms-list { margin: 0 0 1.2em; }
dl.terms-list dt { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin-top: 14px; }
dl.terms-list dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- contrast section with detail image ---------- */
.detail { background: var(--bg-light); color: var(--ink); padding: var(--pad-y) 0; }
.detail .grid { row-gap: 40px; align-items: start; }
.detail figure { grid-column: 1 / span 5; margin: 0; }
.detail figcaption { color: var(--ink-muted); }
.detail .text { grid-column: 7 / span 6; }
.detail .label { color: #4f6770; }
.detail a { color: var(--accent-dark); }
.detail a:focus-visible { outline-color: var(--accent-dark); }
.detail .text ul li::before { background: var(--accent-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-light); color: var(--ink); padding: 64px 0 36px; }
.site-footer .footer-name {
  font-family: var(--serif); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em;
  font-size: clamp(4rem, 17vw, 14rem); margin: 0 0 48px; color: var(--ink);
}
.footer-cols { row-gap: 36px; }
.footer-cols > div { grid-column: span 4; font-size: 15px; line-height: 1.6; }
.footer-cols > div::before {
  content: ""; display: block; width: 40px; height: 2px; background: var(--ink); margin-bottom: 16px;
}
.footer-cols .label { color: #4f6770; margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 4px; }
.site-footer a { color: var(--ink); text-decoration-color: var(--accent-dark); }
.site-footer a:hover { color: var(--accent-dark); }
.site-footer a:focus-visible { outline-color: var(--accent-dark); }
.footer-cols p { margin: 0 0 8px; color: var(--ink-muted); }
.footer-base { margin-top: 48px; font-size: 13px; color: var(--ink-muted); }

/* ---------- inner pages ---------- */
.page-title .grid { min-height: clamp(240px, 36vh, 360px); }
.page-title .title-block { grid-column: 1 / span 9; }
.course-intro.page .lede { grid-column: 2 / span 6; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .course .text, .detail .text { grid-column-end: span 7; }
  .course-intro .lede { grid-column: 1 / span 7; }
  .topics { grid-column: 9 / span 4; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 18px; }
  .course-title .title-block, .page-title .title-block { grid-column: 1 / -1; }
  .course-intro .lede, .course-intro.page .lede, .topics { grid-column: 1 / -1; }
  .figure-main figure { grid-column: 2 / -1; }
  .course .text { grid-column-end: span 5; }
  .step-0 .text { grid-column-start: 1; }
  .step-1 .text { grid-column-start: 1; padding-left: 5%; }
  .step-2 .text { grid-column-start: 2; }
  .step-3 .text { grid-column-start: 2; padding-left: 5%; }
  .step-3 .text, .step-2 .text { grid-column-end: span 5; }
  .detail figure { grid-column: 1 / span 4; }
  .detail .text { grid-column: 1 / -1; }
  .footer-cols > div { grid-column: span 3; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .grid > * { grid-column: 1 / -1 !important; }
  .course, .detail { padding: var(--pad-y-sm) 0; }
  .course-title .grid { min-height: 300px; padding-top: 40px; padding-bottom: 40px; }
  .figure-main .grid { padding-top: 52px; padding-bottom: 40px; }
  .figure-main figure { padding-left: 14%; }
  .step-0 .text { padding-left: 0; }
  .step-1 .text { padding-left: 12px; }
  .step-2 .text { padding-left: 24px; }
  .step-3 .text { padding-left: 36px; }
  .detail figure { max-width: 82%; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav ul { gap: 4px 16px; }
  .site-footer .footer-name { margin-bottom: 36px; }
}
