/* Plarvega — stone-courses */

:root {
  --paper: #f7f3ea;
  --paper-alt: #ece6d8;
  --dark: #1c2a22;
  --ink: #221f19;
  --ink-soft: #786f60;
  --green: #2f5c44;
  --ochre: #a8722c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.3;
  margin: 0;
}

h1 { font-size: 46px; letter-spacing: -0.005em; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }

p { margin: 0 0 28px; }
p:last-child { margin-bottom: 0; }

/* ---------- grid ---------- */

.band { width: 100%; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
}

.col6 { grid-column: var(--start, 1) / span 6; }

/* stepped rhythm */
.step-0 { --start: 1; }
.step-1 { --start: 2; }
.step-2 { --start: 3; }
.step-3 { --start: 4; }

.tone-a { background: var(--paper); }
.tone-b { background: var(--paper-alt); }
.tone-dark { background: var(--dark); color: var(--paper); }

.tone-dark h2,
.tone-dark h3 { color: var(--paper); }
.tone-dark a { color: #cfe0d4; }
.tone-dark a:focus-visible,
.tone-dark :focus-visible { outline-color: var(--paper); }

.pad { padding-top: 88px; padding-bottom: 88px; }
.pad-s { padding-top: 52px; padding-bottom: 52px; }

/* ---------- hero: three courses ---------- */

.course-nav { background: var(--paper-alt); }
.course-nav .wrap { padding-top: 22px; padding-bottom: 22px; }

.masthead {
  grid-column: 1 / span 12;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 34px;
}

.mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.mark:hover { text-decoration: underline; text-underline-offset: 5px; }

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-underline-offset: 5px;
}

.course-title { background: var(--paper); }
.course-title .wrap {
  padding-top: 140px;
  padding-bottom: 44px;
}
.course-title h1 {
  grid-column: 1 / span 9;
  align-self: end;
}
.kicker {
  grid-column: 1 / span 9;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ochre);
  margin: 0 0 20px;
}

.course-base { background: var(--paper-alt); }
.course-base .wrap { padding-top: 60px; padding-bottom: 60px; }
.course-base .lead { grid-column: 1 / span 6; }
.course-base .lead p { font-size: 19px; }

.topics {
  grid-column: 8 / span 5;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.7;
}
.topics li {
  padding: 12px 0 12px 26px;
  position: relative;
  border-top: 1px solid rgba(168, 114, 44, 0.35);
}
.topics li:last-child { border-bottom: 1px solid rgba(168, 114, 44, 0.35); }
.topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 2px;
  background: var(--green);
}

/* ---------- figures ---------- */

.figure-main { background: var(--paper-alt); }
.figure-main .wrap { padding-top: 0; padding-bottom: 72px; }
.figure-main figure {
  grid-column: 4 / span 9;
  margin: 0;
}
figcaption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 56ch;
}

.detail-grid { align-items: start; }
.detail-grid figure {
  grid-column: 1 / span 4;
  margin: 0;
}
.detail-grid .detail-text {
  grid-column: 6 / span 6;
}
.tone-dark figcaption { color: #b6ab97; }

/* ---------- section internals ---------- */

.snum {
  display: block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ochre);
  margin-bottom: 14px;
}
.tone-dark .snum { color: #c99a5c; }

.body-block > h2 { margin-bottom: 26px; }
.body-block > h3 { margin: 40px 0 16px; }

.checks {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.8;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 2px;
  background: var(--green);
}
.tone-dark .checks li::before { background: #c99a5c; }

ol.steps {
  margin: 0 0 28px;
  padding-left: 0;
  list-style: none;
  counter-reset: st;
}
ol.steps li {
  counter-increment: st;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  line-height: 1.8;
}
ol.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  color: var(--ochre);
}

.note {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.contact-line {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--paper);
  margin-top: 0;
}
.site-footer .wrap { padding-top: 64px; padding-bottom: 56px; }
.site-footer a { color: var(--paper); }
.site-footer a:focus-visible { outline-color: var(--paper); }

.footer-name {
  grid-column: 1 / span 12;
  font-family: var(--serif);
  font-size: clamp(44px, 11vw, 132px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  color: var(--paper);
}

.fcol { grid-column: span 4; }
.fcol h2 {
  position: relative;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #c99a5c;
  margin: 0 0 14px;
  padding-top: 16px;
  line-height: 1.6;
}
.fcol h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: #c99a5c;
}
.fcol ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 2; }
.fcol p { font-size: 16px; line-height: 1.8; margin: 0; }
.fcol a { text-decoration: none; }
.fcol a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fcol .mailto { text-decoration: underline; text-underline-offset: 4px; }

.footer-end {
  grid-column: 1 / span 12;
  margin-top: 48px;
  font-size: 14px;
  color: #b6ab97;
  line-height: 1.7;
}

/* ---------- inner pages ---------- */

.page-head { background: var(--paper); }
.page-head .wrap { padding-top: 96px; padding-bottom: 56px; }
.page-head h1 { grid-column: 1 / span 8; font-size: 40px; }
.page-head .kicker { grid-column: 1 / span 8; }

.legal-block h3 { margin: 36px 0 14px; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  h1 { font-size: 38px; }
  .page-head h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .course-title .wrap { padding-top: 92px; }
  .col6,
  .course-base .lead,
  .page-head h1,
  .page-head .kicker,
  .kicker,
  .course-title h1 { grid-column: 1 / span 12; }
  .topics { grid-column: 1 / span 12; margin-top: 44px; }
  .figure-main figure { grid-column: 2 / span 11; }
  .detail-grid figure { grid-column: 1 / span 7; }
  .detail-grid .detail-text { grid-column: 1 / span 12; margin-top: 36px; }
  .fcol { grid-column: span 12; margin-bottom: 34px; }
  .fcol:last-of-type { margin-bottom: 0; }
}

@media (max-width: 620px) {
  body { font-size: 17px; line-height: 1.8; }
  h1 { font-size: 30px; }
  .page-head h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  h3 { font-size: 19px; }
  .wrap { padding-left: 20px; padding-right: 20px; column-gap: 0; }
  .pad { padding-top: 56px; padding-bottom: 56px; }
  .pad-s { padding-top: 36px; padding-bottom: 36px; }
  .course-title .wrap { padding-top: 56px; padding-bottom: 32px; }
  .course-base .wrap { padding-top: 40px; padding-bottom: 40px; }
  .figure-main .wrap { padding-bottom: 44px; }
  .figure-main figure,
  .detail-grid figure { grid-column: 1 / span 12; }
  .site-footer .wrap { padding-top: 44px; padding-bottom: 44px; }
  .footer-name { margin-bottom: 36px; }
  .contact-line { font-size: 20px; }
  .nav ul { gap: 6px 18px; font-size: 15px; }
}
