:root {
  --ink: #181716;
  --ink-soft: #4d4b47;
  --muted: #74716b;
  --line: #deddd8;
  --paper: #ffffff;
  --gallery: #f5f6f3;
  --charcoal: #242322;
  --amber: #b86624;
  --amber-dark: #8d4a1a;
  --focus: #2d6cdf;
  --shadow: 0 20px 60px rgba(24, 23, 22, 0.10);
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

figure {
  margin: 0;
}

.wp-block-group > .wp-block-group__inner-container {
  display: contents;
}

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

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, transparent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 17, 16, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--amber);
  font-size: 14px;
  letter-spacing: .08em;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text small {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle span {
  transform: translate(-50%, -50%);
}

.nav-toggle::before {
  transform: translate(-50%, -8px);
}

.nav-toggle::after {
  transform: translate(-50%, 6px);
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.primary-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 78px;
  display: none;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.primary-nav.is-open {
  display: block;
}

.nav-links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--gallery);
  color: var(--ink);
}

.nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.button,
.text-link,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.button,
.wp-block-button__link {
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #fff;
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-1px);
}

.button.secondary,
.wp-block-button.secondary .wp-block-button__link {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button.secondary:hover,
.wp-block-button.secondary .wp-block-button__link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button.ghost,
.wp-block-button.ghost .wp-block-button__link {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost:hover,
.wp-block-button.ghost .wp-block-button__link:hover {
  background: var(--gallery);
  border-color: var(--ink);
  color: var(--ink);
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--amber-dark);
}

.text-link:hover {
  color: var(--ink);
}

.section {
  padding: 58px 0;
}

.section.tight {
  padding: 36px 0;
}

.band {
  background: var(--gallery);
}

.dark-band {
  background: var(--charcoal);
  color: #fff;
}

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

.narrow {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 20px;
  padding: 24px 0 32px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 8vw, 56px);
  line-height: .98;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.section-intro p {
  margin: 0;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.45;
}

.hero-actions,
.split-actions,
.form-actions,
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
}

.hero-media img,
.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(24, 23, 22, .12);
}

.hero-note strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-note span {
  color: var(--ink-soft);
  font-size: 14px;
}

.hero-note p {
  margin: 0;
}

.section-heading,
.section-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2,
.section-intro h2,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--ink-soft);
}

.page-hero {
  display: grid;
  gap: 18px;
  padding: 42px 0 36px;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.course-card,
.event-row,
.tier-card,
.sponsor-card,
.profile-card,
.feature-panel,
.notice,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.course-card {
  overflow: hidden;
}

.course-thumb {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(24, 23, 22, .86), rgba(24, 23, 22, .52)),
    var(--course-bg, #444);
}

.course-body,
.tier-card,
.sponsor-card,
.profile-card,
.feature-panel,
.form-panel {
  padding: 22px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.meta li,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.course-card h3,
.event-row h3,
.tier-card h3,
.sponsor-card h3,
.profile-card h3,
.feature-panel h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.15;
}

.course-card p,
.event-row p,
.tier-card p,
.sponsor-card p,
.profile-card p,
.feature-panel p,
.notice p {
  margin: 0;
  color: var(--ink-soft);
}

.course-card footer,
.tier-card footer,
.card-footer,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.card-actions {
  justify-content: flex-start;
}

.price {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-row {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.event-date {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-align: center;
  line-height: 1;
}

.event-date strong {
  font-size: 28px;
}

.event-date span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-date p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.split {
  display: grid;
  gap: 26px;
  align-items: center;
}

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  background: #111;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-frame {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, .22);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)),
    var(--frame-bg, #333);
}

.contact-frame:nth-child(1) { --frame-bg: #64625d; }
.contact-frame:nth-child(2) { --frame-bg: #2b3236; }
.contact-frame:nth-child(3) { --frame-bg: #766c62; }
.contact-frame:nth-child(4) { --frame-bg: #3f3b36; }

.stat-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 22px;
  background: var(--paper);
}

.stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 14px;
}

.stat p {
  margin: 0;
}

.tier-card.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.light-panel {
  background: #fff;
  color: var(--ink);
}

.tier-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tier-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sponsor-card {
  min-height: 156px;
}

.sponsor-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber-dark);
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.notice {
  padding: 18px;
  background: #fffaf4;
  border-color: #ead8c3;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.footer {
  padding: 42px 0;
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer a {
  color: rgba(255, 255, 255, .82);
}

.footer .brand {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer p {
  margin: 10px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, .68);
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .section {
    padding: 82px 0;
  }

  .hero {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    gap: 42px;
    padding: 48px 0 52px;
  }

  .hero-media img {
    aspect-ratio: 5 / 4;
  }

  .hero h1 {
    font-size: clamp(48px, 5.4vw, 68px);
  }

  .hero-note {
    position: absolute;
    right: 18px;
    bottom: -24px;
    margin: 0;
  }

  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

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

  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr auto auto;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .nav-links a {
    padding: 10px;
    color: rgba(255, 255, 255, .78);
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, .10);
    color: #fff;
  }

  .nav-actions {
    display: flex;
    margin-top: 0;
  }

  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
