:root {
  --paper: #f8f6f0;
  --ink: #17221f;
  --green: #2f704a;
  --red: #b83c39;
  --yellow: #f2bf2d;
  --blue: #2c779e;
  --line: #d8d2c5;
  --card: #ffffff;
  --shadow: 0 14px 32px rgba(23, 34, 31, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: .6rem; transform: translateY(-200%); padding: .55rem .8rem; color: #fff; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; background: var(--green); }
.hero img { width: 100%; height: clamp(15rem, 37vw, 33rem); object-fit: cover; object-position: center; }
.hero-cta { position: absolute; right: clamp(1rem, 5vw, 4rem); bottom: clamp(1rem, 5vw, 3rem); padding: .75rem 1rem; color: var(--ink); background: var(--yellow); font-size: .9rem; font-weight: 900; text-decoration: none; }
.hero-cta:hover { color: #fff; background: var(--red); }
.site-nav { position: sticky; z-index: 5; top: 0; display: flex; gap: .15rem; justify-content: center; overflow-x: auto; padding: .65rem max(1rem, calc((100vw - 72rem) / 2)); color: #fff; background: var(--ink); white-space: nowrap; scrollbar-width: thin; }
.site-nav a { padding: .35rem .6rem; text-decoration: none; font-size: .88rem; font-weight: 700; }
.site-nav a:hover { color: var(--yellow); }

.section, .registration-section { width: min(72rem, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-heading, .section-title-row { display: flex; gap: 2rem; align-items: end; justify-content: space-between; }
.section-title-row { margin-bottom: 1.75rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; }
h1 { max-width: 14ch; font-size: clamp(2.1rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.6rem; }
.offer { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.offer-copy { max-width: 35rem; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.offer-copy p { margin-top: 0; }
.pdf-link { display: inline-flex; gap: .5rem; align-items: center; margin-top: .75rem; padding-bottom: .15rem; border-bottom: 2px solid var(--red); color: var(--ink); font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.pdf-link:hover { color: var(--red); }

.photo-section { padding-top: 1rem; }
.scroll-controls { display: flex; gap: .55rem; flex-shrink: 0; }
.scroll-button { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 1.2rem; }
.scroll-button:hover { border-color: var(--red); color: #fff; background: var(--red); }
.photo-strip, .calendar-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 27rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .2rem; padding: .3rem .2rem 1.25rem; scrollbar-color: var(--green) transparent; scrollbar-width: thin; }
.photo-strip figure, .month-card { margin: 0; scroll-snap-align: start; }
.photo-strip figure { overflow: hidden; background: var(--ink); }
.photo-strip img { width: 100%; aspect-ratio: 1.2; object-fit: cover; transition: transform .35s ease; }
.photo-strip figure:hover img { transform: scale(1.035); }
.photo-strip figcaption { min-height: 3.3rem; padding: .7rem .9rem; color: #fff; font-weight: 700; font-size: .9rem; }

.calendar-section { border-top: 1px solid var(--line); }
.calendar-strip { grid-auto-columns: minmax(18rem, 23rem); }
.month-card { min-height: 19rem; padding: 1.6rem; border-top: .45rem solid var(--green); background: var(--card); box-shadow: var(--shadow); }
.month-card:nth-child(2) { border-color: var(--yellow); }
.month-card:nth-child(3) { border-color: var(--red); }
.workshop-list, .past-workshops { padding: 0; list-style: none; }
.workshop-list { margin: 1.5rem 0 0; }
.workshop-list li + li { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.workshop-list strong, .workshop-list time { display: block; }
.workshop-list time { margin-top: .2rem; color: var(--green); font-size: .85rem; font-weight: 800; }
.workshop-list p, .empty-state { margin: .4rem 0 0; font-size: .92rem; }
.empty-state { color: #59635c; }

.past-section { border-top: 1px solid var(--line); }
.past-workshops { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }
.past-workshops a { display: block; padding: .7rem .95rem; border: 2px solid var(--blue); color: var(--ink); font-weight: 800; text-decoration: none; }
.past-workshops a:hover { color: #fff; background: var(--blue); }

.registration-section { display: grid; place-items: center; }
.registration-card { width: min(100%, 47rem); padding: clamp(1.8rem, 5vw, 4rem); border-top: .55rem solid var(--yellow); background: var(--card); box-shadow: var(--shadow); }
.registration-intro { max-width: 36rem; }
.form-message { padding: .8rem 1rem; border-left: .35rem solid var(--green); background: #e8f4e9; font-weight: 700; }
.form-errors { padding: .7rem 1rem; border-left: .35rem solid var(--red); background: #fff0ee; }
.form-errors p { margin: 0; font-weight: 800; }
.form-errors ul, .errorlist { margin: .4rem 0 0; padding-left: 1.15rem; color: #8d2927; font-size: .9rem; }
.registration-form { margin-top: 1.8rem; }
.form-row { display: grid; grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.form-row label { padding-top: .7rem; font-weight: 800; }
.field-control input, .field-control select { width: 100%; padding: .72rem .8rem; border: 2px solid var(--blue); border-radius: 0; color: var(--ink); background: #fff; font: inherit; }
.field-control select { border-color: var(--green); }
.form-row:nth-child(5) .field-control input { border-color: var(--red); }
.has-error input, .has-error select { border-color: var(--red); }
.submit-button { margin-top: 1.4rem; padding: .85rem 1.2rem; border: 0; color: var(--ink); background: var(--yellow); font: inherit; font-weight: 900; cursor: pointer; }
.submit-button:hover { color: #fff; background: var(--red); }
.regulations { max-width: 48rem; border-top: 1px solid var(--line); }
.regulations > div { margin-top: 1.25rem; }
.site-footer { padding: 2rem max(1.25rem, calc((100vw - 72rem) / 2)); color: #fff; background: var(--ink); }
.site-footer p { margin: .8rem 0 0; }
.footer-top { color: var(--yellow); font-size: .85rem; font-weight: 800; text-decoration: none; }

@media (max-width: 42rem) {
  .section, .registration-section { width: min(100% - 1.5rem, 72rem); padding: 3.5rem 0; }
  .site-nav { justify-content: flex-start; }
  .offer, .section-heading { display: block; }
  .offer-copy { margin-top: 1.4rem; }
  .section-title-row { gap: 1rem; align-items: end; }
  .photo-strip { grid-auto-columns: minmax(15rem, 82vw); }
  .calendar-strip { grid-auto-columns: minmax(17rem, 88vw); }
  .form-row { grid-template-columns: 1fr; gap: .25rem; }
  .form-row label { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-strip img { transition: none; }
}
