@font-face {
  font-family: "BTM Zilla Slab";
  src: url("./fonts/zilla-slab-latin-400.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ocean: #021728;
  --paper: #ffffff;
  --aqua: #00cad7;
  --content-width: 1200px;
  --gutter: clamp(2.375rem, 10.694vw, 6rem);
}

* { box-sizing: border-box; }

html { background: var(--ocean); }

body {
  min-width: 0;
  margin: 0;
  background: var(--ocean);
  color: var(--paper);
  font-family: "American Typewriter", "BTM Zilla Slab", Georgia, serif;
  font-size: clamp(0.79rem, 3.426vw, 0.875rem);
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--ocean);
  text-decoration: none;
}

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

.split { background: var(--ocean); }

.photo { display: block; width: 100%; }

.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-video { position: relative; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ocean); }
.hero-video__trigger { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ocean); color: var(--paper); text-decoration: none; cursor: pointer; }
.hero-video__trigger[hidden] { display: none; }
.hero-video__trigger:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; }
.hero-video__play { position: absolute; top: 50%; left: 50%; display: grid; width: 3.5rem; height: 3.5rem; transform: translate(-50%, -50%); place-items: center; border-radius: 50%; background: var(--aqua); color: var(--ocean); font-size: 1.4rem; }
.hero-video .photo,
.hero-video picture,
.hero-video img { display: block; width: 100%; height: 100%; }
.hero-video img { object-fit: cover; }
.hero-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.hero-video noscript iframe { position: absolute; inset: 0; }

.copy {
  min-width: 0;
  width: 100%;
  padding: clamp(2.125rem, 8.8vw, 3rem) var(--gutter);
}

.copy--intro { text-align: center; }

h1, h2, h3, p { margin: 0; font: inherit; }

h1, h2 {
  font-size: clamp(1.45rem, 6.185vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h1, h2 { margin-bottom: clamp(1.875rem, 7.7vw, 2.5rem); }

p + p { margin-top: 1.25rem; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  min-height: 2.75rem;
  margin-top: clamp(1.625rem, 6.7vw, 3.25rem);
  border: 0.6875rem solid transparent;
  padding: 0.375rem 1rem;
  background: var(--aqua);
  background-clip: padding-box;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

.copy--included ul {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding-left: 1.15em;
}

.copy--included li { padding-left: 0.1em; }

.copy--mentors > p { max-width: 48rem; }

.mentor-list {
  display: grid;
  gap: clamp(1.5rem, 7.326vw, 4.5rem);
  margin: 0;
  padding: 0 clamp(2.375rem, 11.528vw, 6rem) 0;
  list-style: none;
}

.mentor {
  display: grid;
  grid-template-columns: 27.076% 1fr;
  gap: clamp(0.75rem, 3.38vw, 1.25rem);
  align-items: start;
}

.mentor > img {
  width: 100%;
  height: auto;
  aspect-ratio: 450 / 632;
  object-fit: cover;
}

.mentor > div { min-width: 0; }

.mentor h3 {
  font-size: inherit;
  line-height: inherit;
}

.mentor p { margin-top: 0; }

.mentor p + p { margin-top: 1.25rem; }

.final-cta {
  display: flex;
  /* Match the PSD's final portrait-to-CTA proportions, including its transparent border. */
  padding: max(0px, calc(13.241vw - 0.6875rem)) var(--gutter) max(0px, calc(61.806vw - 0.6875rem));
  align-items: center;
  justify-content: center;
  text-align: center;
}

.final-cta .cta { margin-top: 0; }

.enquiry-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
  border-radius: 0;
  padding: 0;
  background: var(--ocean);
  color: var(--paper);
}

.enquiry-dialog::backdrop { background: rgb(0 0 0 / 70%); }

.enquiry-form { padding: 1.25rem; }

.enquiry-dialog__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.enquiry-dialog h2 {
  margin: 0;
  font-size: 1.5rem;
}

.enquiry-dialog__close {
  display: inline-grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  margin: -0.5rem -0.5rem 0 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.enquiry-dialog__intro { margin-top: 0.75rem; }

.enquiry-status {
  min-height: 1.2em;
  margin-top: 1rem;
  color: var(--paper);
}

.enquiry-status[data-state="error"] { color: #ffb6ac; }
.enquiry-status[data-state="success"] { color: var(--aqua); }
.enquiry-status[data-state="warning"] { color: #ffe29a; }

.enquiry-success { padding: 2rem 0 1rem; text-align: center; }
.enquiry-success__icon { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; color: var(--aqua); }
.enquiry-success__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.enquiry-success__icon circle { fill: color-mix(in srgb, var(--aqua) 18%, transparent); }
.enquiry-success__icon path { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.enquiry-success h3 { margin: 0; color: var(--paper); font-size: 1.5rem; line-height: 1.2; }
.enquiry-success p { margin: 0.85rem 0 0; color: var(--paper); }

.enquiry-field { margin-top: 1rem; }

.enquiry-field label { display: block; margin-bottom: 0.4rem; }

.enquiry-field input,
.enquiry-field textarea {
  display: block;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--paper) 70%, transparent);
  border-radius: 0;
  padding: 0.7rem;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
}

.enquiry-field textarea { resize: vertical; }

.enquiry-newsletter { margin-top: 1rem; }

.enquiry-newsletter label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.enquiry-newsletter input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--aqua);
}

.enquiry-field input[aria-invalid="true"],
.enquiry-field textarea[aria-invalid="true"] { border-color: #ffb6ac; }

.enquiry-error {
  min-height: 1.2em;
  margin-top: 0.35rem;
  color: #ffb6ac;
}

.enquiry-submit {
  min-height: 2.75rem;
  margin-top: 1.25rem;
  border: 0.4rem solid transparent;
  padding: 0.25rem 0.85rem;
  background: var(--aqua);
  background-clip: padding-box;
  color: var(--ocean);
  font: inherit;
  cursor: pointer;
}

.enquiry-submit:disabled { cursor: wait; opacity: 0.7; }

.enquiry-dialog button:focus-visible,
.enquiry-field input:focus-visible,
.enquiry-field textarea:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

.enquiry-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; line-height: 1.3; }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    max-width: var(--content-width);
    margin: 0 auto;
  }

  .split--workshop .photo,
  .split--sandbank .photo { order: 2; }

  .copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 3.333vw, 3rem);
  }

  .copy--intro { text-align: center; }

  h1, h2 { font-size: clamp(2rem, 2.5vw, 2.25rem); }

  .copy--included ul { gap: 1.6rem; }

  .mentor-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.6rem, 9vw, 4.5rem);
    padding: 3rem clamp(4rem, 6vw, 7rem) 0;
  }

  .mentor { grid-template-columns: 27% 1fr; gap: 1.25rem; }

  .final-cta { min-height: 0; padding-block: 3rem 6rem; }
}

@media (max-width: 390px) {
  .enquiry-form { padding: 1rem; }
}

@media (max-width: 599px) {
  .enquiry-form { padding: 1rem; }
  .enquiry-status:empty,
  .enquiry-error:empty { display: none; }
  .enquiry-field { margin-top: 0.75rem; }
  .enquiry-field input,
  .enquiry-field textarea { padding: 0.55rem 0.65rem; }
  .enquiry-field input { min-height: 2.75rem; }
  .enquiry-field textarea { height: 5.5rem; }
  .enquiry-newsletter { margin-top: 0.75rem; }
  .enquiry-submit { margin-top: 0.75rem; }
}

@media (min-width: 600px) and (max-width: 959px) {
  body { font-size: 1rem; }
}

@media (max-width: 359px) {
  :root { --gutter: 2rem; }
}
