:root {
  color-scheme: light;
  --ink: #201a18;
  --muted: #635c57;
  --paper: #f6f7f5;
  --surface: #ffffff;
  --line: #d8ddd7;
  --red: #8d2f2c;
  --red-dark: #61211f;
  --green: #2f684e;
  --gold: #c58a2a;
  --blue: #365f7d;
  --shadow: 0 18px 40px rgb(32 26 24 / 11%);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--red-dark);
}

a:hover {
  color: var(--green);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 7vw, 5.6rem);
  font-weight: 800;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.08rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--surface);
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2ed;
  color: var(--red-dark);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(246 247 245 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  aspect-ratio: 1;
  background: var(--red);
  color: #fff;
  border: 2px solid #f0c16f;
  clip-path: polygon(50% 0, 92% 22%, 92% 78%, 50% 100%, 8% 78%, 8% 22%);
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links .active {
  background: #e6eee7;
  color: var(--red-dark);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgb(141 47 44 / 11%), transparent 42%),
    linear-gradient(180deg, #f2f6f1 0%, var(--paper) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero-inner > *,
.content-grid > *,
.rules-layout > *,
.rules-content > *,
.summary-grid > *,
.class-list > *,
.faq-wrap > * {
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 68ch;
  color: #3f3732;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.05rem;
  border: 2px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--red);
  color: #fff;
}

.button-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--red);
  color: var(--red-dark);
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.notice-panel {
  position: relative;
  padding: clamp(1.3rem, 4vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notice-panel::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 4.2rem;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, transparent 44%, rgb(197 138 42 / 72%) 45% 55%, transparent 56%),
    linear-gradient(45deg, rgb(47 104 78 / 16%), rgb(54 95 125 / 18%));
  border: 1px solid rgb(141 47 44 / 20%);
  clip-path: polygon(50% 0, 92% 22%, 92% 78%, 50% 100%, 8% 78%, 8% 22%);
}

.notice-panel h2 {
  margin-bottom: 1rem;
  padding-right: 4rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.notice-panel p {
  color: var(--muted);
}

.schedule-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.3rem;
}

.schedule-list div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.schedule-list dt {
  color: var(--red-dark);
  font-weight: 800;
}

.schedule-list dd {
  margin: 0;
}

.content-wrap,
.content-grid {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.content-wrap {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.content-wrap.narrow {
  max-width: 880px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.intro-grid {
  align-items: center;
}

.band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.band.muted {
  background: #edf3ef;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

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

.summary-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 1.7rem;
}

.summary-card,
.faq-item,
.class-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgb(49 35 24 / 6%);
}

.summary-card {
  padding: 1.1rem;
}

.summary-card h3,
.faq-item h2,
.class-list h3 {
  margin-bottom: 0.55rem;
  color: var(--red-dark);
}

.summary-card p,
.class-list p,
.faq-item p {
  color: var(--muted);
}

.summary-card p:last-child,
.faq-item p:last-child,
.class-list p:last-child {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.47rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  background: var(--green);
  box-shadow: inset 0 0 0 2px #fff;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compact-table {
  margin: 0;
}

.closing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.closing-section div {
  max-width: 680px;
}

.page-title {
  background:
    linear-gradient(120deg, rgb(47 104 78 / 13%), transparent 38%),
    #f2f6f1;
  border-bottom: 1px solid var(--line);
}

.page-title .content-wrap {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.rules-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 6.2rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-family: Arial, Helvetica, sans-serif;
}

.toc ol {
  padding-left: 1rem;
}

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

.toc a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.rules-content {
  display: grid;
  gap: 1.25rem;
}

.rule-section {
  scroll-margin-top: 6rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-section h2 {
  margin-bottom: 1rem;
}

.rule-section h3 {
  margin: 1.55rem 0 0.55rem;
}

.rule-section h3:first-of-type {
  margin-top: 1rem;
}

.rule-section p,
.rule-section li {
  color: #514a45;
}

.callout,
.tbd {
  border-left: 5px solid var(--gold);
  background: #fff4d9;
}

.callout {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout h3 {
  margin-top: 0;
}

.tbd {
  padding: 0.9rem 1rem;
  color: #593b07;
  font-weight: 800;
}

.class-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.class-list article {
  padding: 1rem;
}

.faq-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-item {
  padding: 1.2rem;
}

.faq-item h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 880px) {
  .hero-inner,
  .content-grid,
  .rules-layout,
  .summary-grid,
  .summary-grid.two-column,
  .class-list,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
  }

  .toc {
    position: static;
  }

  .toc ol {
    columns: 2;
  }

  .closing-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    justify-content: center;
    padding: 0 0.45rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .notice-panel::before {
    width: 3.4rem;
  }

  .schedule-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .toc ol {
    columns: 1;
  }

  table {
    min-width: 460px;
  }
}
