/* one pixel. semantic defaults; semantic layout classes, plus .testimonials for course reviews. */
@layer reset, base, layout;
@layer reset {
  a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure, blockquote, dl { margin: 0; }
  button, input, select, textarea { font: inherit; color: inherit; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { border-radius: 0; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { color-scheme: light; --paper: #fff; --ink: #111; --line: 1px solid currentColor; --space: clamp(1.25rem, 4vw, 3rem); }
  html { scroll-padding-top: 2rem; }
  body { background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 Arial, Helvetica, sans-serif; }
  ::selection { background: var(--ink); color: var(--paper); }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
  a:hover { text-decoration-thickness: 3px; }
  :focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
  h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
  h1 { font-size: clamp(3.1rem, 7.7vw, 6.5rem); max-width: 15ch; }
  h2 { font-size: clamp(2rem, 4vw, 3rem); }
  h3 { font-size: 1.5rem; }
  p { max-width: 62ch; }
  small, dt, label, summary, nav, button, .button { font-family: 'Courier New', monospace; }
  small { font-size: .875rem; }
  strong { font-weight: 700; }
  :where(article, section, aside, form, details) > * + * { margin-top: 1.25rem; }
  :where(h2, h3) + p { margin-top: 1rem; }
  hr { border: 0; border-top: 0; margin: 2rem 0; }
  ul, ol { padding-left: 1.3em; }
  li + li { margin-top: .5rem; }
  blockquote { border-left: 3px solid; padding-left: 1.5rem; font-size: 1.4rem; }
  blockquote footer { margin-top: 1rem; font: .875rem/1.6 'Courier New', monospace; }
  code, pre { font-family: 'Courier New', monospace; font-size: .9375rem; }
  code { background: #eee; padding: .1em .3em; }
  pre { border: var(--line); padding: 1.25rem; overflow: auto; white-space: pre-wrap; }
  pre code { background: none; padding: 0; }
  button, .button { display: inline-block; background: var(--paper); color: var(--ink); border: var(--line); padding: .85rem 1.2rem; text-decoration: none; font-size: .9375rem; line-height: 1.3; cursor: pointer; box-shadow: inset 0 0 0 0 currentColor; }
  :is(button, .button):hover { box-shadow: inset 0 0 0 2px currentColor; }
  :is(button, .button):active { background: var(--ink); color: var(--paper); }
  label { display: block; font-size: .875rem; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; margin-top: .5rem; border: var(--line); background: white; padding: .8rem; }
  select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
  textarea { min-height: 8rem; resize: vertical; }
  input[type=checkbox], input[type=radio] { accent-color: #111; }
  fieldset { border: var(--line); padding: 1.25rem; }
  table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
  th, td { text-align: left; padding: .9rem .5rem; border-bottom: 0; vertical-align: top; }
  th { font-family: 'Courier New', monospace; font-weight: normal; }
  details { border-bottom: 0; padding: 1.25rem 0; }
  summary { cursor: pointer; font-size: .9375rem; }
  summary:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .22em; }
  details p { margin: 1rem 0 .25rem; }
}
@layer layout {
  body > header { background: var(--ink); color: var(--paper); }
  body > header > nav, main, body > footer { max-width: 1200px; margin-inline: auto; }
  body > header > nav { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem var(--space); flex-wrap: wrap; font-size: .9375rem; }
  nav > div { display: flex; flex-wrap: wrap; gap: 1.5rem; }
  nav a[aria-current=page] { text-decoration-thickness: 3px; }
  main { padding-inline: var(--space); }
  main > header { padding-block: clamp(3rem, 7vw, 6rem); }
  main > header > * + * { margin-top: 1.75rem; }
  main > header > p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 46ch; }
  main > header > small { display: block; }
  main > section { padding-block: 3rem; border-top: 0; }
  section > header { background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; margin-bottom: 2rem; }
  section > header h2 { font: 1rem/1.5 'Courier New', monospace; letter-spacing: 0; }
  .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
  .columns > * { min-width: 0; }
  .columns > article { display: flex; flex-direction: column; align-items: flex-start; }
  .columns > article > .button:last-child { margin-top: auto; }
  .columns > article > p:last-of-type { margin-bottom: 1.75rem; }
  dl { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 2rem; }
  dt { font-size: .875rem; } dd { margin: 0; }
  body > footer { padding: 2rem var(--space); border-top: 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: .875rem/1.6 'Courier New', monospace; }
  @media (max-width: 650px) { .columns { grid-template-columns: 1fr; } body > header > nav { align-items: flex-start; } nav > div { gap: 1rem; } dl { grid-template-columns: 1fr; gap: .25rem; } dd + dt { margin-top: 1rem; } }
}

/* Saved copy preserves intentional line breaks for all visitors. */
[data-copy] { white-space: pre-line; }

/* Repeated figures stack naturally as more course reviews arrive. */
.testimonials > figure { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.testimonials > figure + figure { margin-top: 2.5rem; padding-top: 2.5rem; border-top: var(--line); }
.testimonials img { width: 8rem; height: 8rem; object-fit: cover; border-radius: 50%; }
.testimonials blockquote { border: 0; padding: 0; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.35; letter-spacing: -.025em; }
.testimonials figcaption { margin-top: 1.25rem; font-size: 1rem; }
@media (max-width: 650px) { .testimonials > figure { grid-template-columns: 1fr; gap: 1.25rem; } .testimonials img { width: 5rem; height: 5rem; } }

.testimonials details { margin: 0; padding: 0; border: 0; }
.testimonials summary { list-style: none; font: inherit; }
.testimonials summary::-webkit-details-marker { display: none; }
.testimonials summary > span { display: block; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.35; letter-spacing: -.025em; }
.testimonials summary small { display: block; margin-top: 1rem; text-decoration: underline; text-underline-offset: .22em; }
.testimonials summary small:last-child { display: none; }
.testimonials details[open] summary > span, .testimonials details[open] summary small:nth-child(2) { display: none; }
.testimonials details[open] summary small:last-child { display: block; margin-top: 0; }
.testimonials details blockquote { margin-top: 1rem; }
.testimonials details blockquote p { margin: 0; }
.testimonials summary:hover { text-decoration: none; }
.testimonials summary:hover small { text-decoration-thickness: 3px; }

.profile { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.profile img { width: clamp(7rem, 22vw, 13.75rem); height: auto; flex: 0 0 auto; }
.profile p { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.045em; }

/* The course introduction flows directly into its first section. */
main > header:has(+ section#details) { padding-bottom: 0; }
main > section#details { border-top: 0; }

.course-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 2.5rem; }
.course-days > article { margin: 0; padding-left: 1.25rem; border-left: 1px solid var(--ink); }
.course-days h3 { font: 1rem/1.5 'Courier New', monospace; letter-spacing: 0; }
.course-days p { margin-top: .75rem; }
@media (max-width: 650px) { .course-days { grid-template-columns: 1fr; gap: 2rem; } }

form[data-inquiry] { max-width: 48rem; }
form[data-inquiry] textarea { min-height: 10rem; }
form[data-inquiry="course"] textarea { min-height: 12rem; }
form[data-inquiry] fieldset > * + * { margin-top: .75rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
