:root {
  --paper: #fbfaf6;
  --paper-strong: #f2ecdf;
  --ink: #2d2a24;
  --muted: #6f665b;
  --line: #ded4c2;
  --sage: #496756;
  --sage-dark: #2f4a3d;
  --clay: #9b573a;
  --gold: #b8863b;
  --white: #fffdf8;
  --shadow: 0 12px 30px rgba(54, 44, 30, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}

a {
  color: var(--sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(820px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--sage-dark);
}

.intro-band {
  padding: 72px 0 44px;
  background: linear-gradient(180deg, #f6efe1 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: 48px;
  align-items: center;
}

.intro-grid.no-media {
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.intro-band h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.45rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.18rem;
}

.intro-panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel p {
  margin: 0;
  color: var(--sage-dark);
  font-size: 1.45rem;
  line-height: 1.45;
}

.hero-image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-image-panel img {
  width: 100%;
  height: min(420px, 55vh);
  object-fit: cover;
}

.about-band {
  padding: 54px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 42px;
  align-items: center;
}

.about-grid.no-media {
  grid-template-columns: 1fr;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.about-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-content h2 {
  max-width: 740px;
}

.about-text {
  color: var(--muted);
}

.about-text p {
  margin-top: 0;
}

.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--sage-dark);
  border-radius: 6px;
  background: var(--sage-dark);
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--sage);
}

.section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.lesson-list {
  display: grid;
  gap: 18px;
}

.chapter-list {
  display: grid;
  gap: 18px;
}

.chapter-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chapter-summary,
.lesson-summary {
  cursor: pointer;
  list-style: none;
}

.chapter-summary::-webkit-details-marker,
.lesson-summary::-webkit-details-marker {
  display: none;
}

.chapter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.chapter-summary::after,
.lesson-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--sage-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.chapter-block[open] > .chapter-summary::after,
.lesson-accordion[open] > .lesson-summary::after {
  content: "-";
}

.chapter-summary small {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.lesson-accordion-list {
  padding: 0 22px 22px;
}

.lesson-accordion {
  border-top: 1px solid var(--line);
}

.lesson-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr) auto 18px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
}

.lesson-summary strong {
  color: var(--ink);
  line-height: 1.25;
}

.lesson-summary time {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  white-space: nowrap;
}

.lesson-accordion-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 18px;
}

.lesson-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lesson-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
}

.lesson-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lesson-card-body time,
.lesson-hero time,
.comment time {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.lesson-kicker,
.chapter-line {
  margin: 0 0 6px;
  color: var(--clay);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.chapter-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.lesson-card-body:only-child {
  grid-column: 1 / -1;
}

.lesson-card h2,
.lesson-card h3 {
  margin: 4px 0 8px;
}

.lesson-card h2 a,
.lesson-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.lesson-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.text-link,
.back-link {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
}

.page-title {
  padding: 58px 0 26px;
  border-bottom: 1px solid var(--line);
}

.lesson-hero {
  padding: 54px 0 26px;
}

.lesson-image-wrap {
  margin-top: 8px;
}

.lesson-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lesson-body {
  padding: 42px 0 60px;
}

.lesson-body p,
.lesson-body li {
  margin-top: 0;
  margin-bottom: 1.1em;
}

.lesson-body h2,
.lesson-body h3 {
  margin-top: 1.5em;
}

.lesson-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: #fff9ea;
  color: #4e4232;
}

.lesson-gallery {
  padding: 0 0 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.03);
}

.discussion-band {
  padding: 48px 0 64px;
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
}

.comment-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 32px;
}

.comment {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment p {
  margin: 0;
}

.comment.reply {
  margin-top: 14px;
  margin-left: 28px;
  background: #f7fbf4;
  border-color: #cdd9c5;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5eee0;
  color: var(--sage-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.form-panel {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfc4b0;
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.form-note,
.empty-text {
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.notice.success {
  border-color: #a8c09a;
  background: #eef7ea;
}

.notice.error {
  border-color: #c99183;
  background: #fff1ed;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .intro-grid,
  .about-grid,
  .lesson-list.compact,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .chapter-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-summary,
  .lesson-accordion-body {
    grid-template-columns: 1fr;
  }

  .lesson-summary {
    gap: 6px;
  }

  .lesson-summary time {
    white-space: normal;
  }

  .lesson-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
