:root {
  --ink: #11100f;
  --muted: #6d6760;
  --line: #e8e1d7;
  --paper: #fbfaf7;
  --soft: #f3eee6;
  --gold: #b97812;
  --gold-dark: #8a560b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 16, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(185, 120, 18, 0.09), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(17, 16, 15, 0.08), transparent 24%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(17, 16, 15, 0.08);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a:hover,
.site-footer a:hover {
  color: var(--gold-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 77px);
  padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero-content {
  max-width: 730px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.9;
  font-weight: 500;
}

.hero-copy {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.primary,
.submit-button {
  background: var(--ink);
  color: var(--white);
}

.secondary {
  border-color: rgba(17, 16, 15, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

.button:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.registration-panel {
  border: 1px solid rgba(17, 16, 15, 0.09);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading img {
  width: 94px;
  height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.panel-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
}

form {
  display: grid;
  gap: 14px;
}

.hidden-field {
  display: none;
}

fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(17, 16, 15, 0.1);
  border-radius: 8px;
  padding: 15px;
  background: rgba(243, 238, 230, 0.34);
}

legend {
  padding: 0 8px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: 7px;
  color: #2c2925;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9d0c4;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(185, 120, 18, 0.2);
  border-color: var(--gold);
}

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

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.programs {
  padding: 18px clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.quick-links a {
  border: 1px solid rgba(17, 16, 15, 0.09);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.66);
}

.quick-links span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-links strong {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.18;
}

.page-hero {
  padding: clamp(48px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 48px);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.7;
}

.page-section {
  padding-top: 0;
}

.purpose {
  margin: 0 clamp(18px, 5vw, 72px) clamp(28px, 5vw, 46px);
  border: 1px solid rgba(17, 16, 15, 0.09);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.66);
}

.purpose h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.purpose p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
  padding-top: 0;
}

.location-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
}

.location h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.location p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.map-card {
  display: block;
  min-height: 320px;
  border-radius: 8px;
  cursor: pointer;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid rgba(17, 16, 15, 0.1);
  border-radius: 8px;
  background: var(--soft);
  pointer-events: none;
}

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

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.program-grid article,
.program-card {
  display: block;
  min-height: 190px;
  border: 1px solid rgba(17, 16, 15, 0.09);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.program-card:hover {
  border-color: rgba(185, 120, 18, 0.34);
  box-shadow: 0 18px 44px rgba(17, 16, 15, 0.08);
  transform: translateY(-2px);
}

.program-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--gold-dark);
  font-weight: 900;
}

.program-grid h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.program-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lesson-hero {
  padding: clamp(54px, 9vw, 112px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 52px);
}

.lesson-hero h1 {
  margin: 0;
}

.lesson-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.lesson-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.lesson-detail article {
  border: 1px solid rgba(17, 16, 15, 0.09);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.66);
}

.lesson-detail h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.lesson-detail p,
.lesson-detail li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.lesson-detail ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(17, 16, 15, 0.1);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: #f0bd68;
  font-weight: 900;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
  border-top: 1px solid rgba(17, 16, 15, 0.1);
  padding-top: clamp(28px, 5vw, 48px);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-screen {
  width: min(100%, 620px);
  text-align: center;
}

.thanks-screen img {
  width: 126px;
  height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.thanks-screen h1 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 10vw, 6rem);
}

.thanks-screen p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .registration-panel {
    max-width: 680px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.7rem);
  }

  .field-row,
  .program-grid,
  .quick-links,
  .lesson-detail,
  .section-heading,
  .location,
  .cta-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .location,
  .cta-band,
  .site-footer {
    display: grid;
  }

  .panel-heading {
    align-items: flex-start;
  }
}
