/* ==========================================================================
   Jade Arts & Craft — site styles
   Edit the colour and font variables in :root to restyle the whole site.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset, SIL Open Font License) ---------- */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --jade: #1f6b5a;
  --jade-dark: #1f5648;
  --rose: #a84862;
  --rose-dark: #8a3a52;
  --violet: #4b3f8f;
  --focus: #6b5fb5;

  /* Text */
  --ink: #2b2733;
  --ink-2: #34303c;
  --ink-3: #4a4553;
  --ink-muted: #5e5865;

  /* Surfaces */
  --bg: #fff8f6;
  --bg-peach: #fdeee3;
  --bg-mint: #f1f8f5;
  --bg-lilac: #f2ecfa;
  --card: #ffffff;
  --tint-mint: #dcefe8;
  --tint-rose: #fbe0e6;
  --tint-lilac: #e6e0f6;
  --line: #ebdde0;
  --field-border: #8b7a86;

  /* Type */
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --section-pad: clamp(56px, 8vw, 96px);
  --radius: 18px;
  --shadow-polaroid: 0 22px 44px rgba(43, 39, 51, 0.16);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
a {
  color: var(--jade);
}
a:hover {
  color: var(--rose);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--jade);
  color: #fff;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-pad) 0;
}
.section--peach { background: var(--bg-peach); }
.section--mint { background: var(--bg-mint); }
.section--lilac { background: var(--bg-lilac); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 600;
  color: var(--rose);
  line-height: 1;
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  text-wrap: balance;
}
.display em,
.hero__title em {
  color: var(--rose);
  font-weight: 600;
}
.lead {
  max-width: 560px;
  color: var(--ink-muted);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.label-caps {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--jade);
  color: #fff;
}
.btn--primary:hover {
  background: var(--jade-dark);
  color: #fff;
}
.btn--outline {
  background: #fff;
  color: var(--jade);
  border-color: var(--jade);
}
.btn--outline:hover {
  background: var(--tint-mint);
  color: var(--jade);
}
.btn--sm {
  min-height: 46px;
  padding: 0 24px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand__text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}
.brand__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav .nav-cta {
  background: var(--jade);
  color: #fff;
  padding: 0 22px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover {
  background: var(--jade-dark);
  color: #fff;
}
@media (max-width: 640px) {
  .site-header {
    justify-content: center;
  }
  .site-nav ul {
    justify-content: center;
    gap: 0 20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.blob--pink { top: -140px; left: -120px; width: 440px; height: 440px; background: #f4b8c7; opacity: 0.45; }
.blob--lilac { top: -100px; right: -140px; width: 480px; height: 480px; background: #cdbff0; opacity: 0.6; }
.blob--mint { bottom: -180px; left: 32%; width: 440px; height: 440px; background: #9ad3bf; opacity: 0.45; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 40px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__copy .eyebrow {
  font-size: 30px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__text {
  max-width: 520px;
  font-size: 19px;
  color: var(--ink-3);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 700;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__art {
  flex: 1 1 380px;
  min-width: 0;
  position: relative;
  min-height: 470px;
}
.hero__sprig {
  position: absolute;
  right: 2%;
  top: 0;
}

/* Polaroid frame (used in hero and studio) */
.polaroid {
  position: relative;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-polaroid);
}
.polaroid::before {
  /* washi tape */
  content: "";
  position: absolute;
  top: -12px;
  left: var(--tape-left, 40%);
  width: 84px;
  height: 26px;
  background: var(--tape, rgba(231, 166, 181, 0.75));
  transform: rotate(var(--tape-rot, -4deg));
}
.polaroid img {
  width: 100%;
}
.polaroid figcaption {
  padding: 10px 4px 2px;
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.1;
}
.polaroid--a {
  position: absolute;
  left: 3%;
  top: 2%;
  width: 68%;
  transform: rotate(-3deg);
}
.polaroid--b {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 46%;
  padding: 10px 10px 8px;
  transform: rotate(4deg);
  --tape: rgba(154, 211, 191, 0.8);
  --tape-left: 30%;
  --tape-rot: 4deg;
}
.polaroid--b figcaption {
  font-size: 22px;
}
.hero__art img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (max-width: 480px) {
  .hero__art {
    min-height: 380px;
  }
  .hero__art .polaroid figcaption {
    font-size: 17px;
  }
  .polaroid--a {
    width: 62%;
  }
}

/* ---------- Studio ---------- */
.studio {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.studio__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
}
.studio__photo {
  flex: 1 1 380px;
  min-width: 0;
}
.studio__photo .polaroid {
  transform: rotate(-1.5deg);
  --tape: rgba(242, 163, 58, 0.55);
  --tape-left: 38%;
  --tape-rot: -3deg;
}
.studio__photo img {
  aspect-ratio: 420 / 340;
  object-fit: cover;
}
.studio__copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.studio__copy p {
  max-width: 520px;
  color: var(--ink-2);
}
.signature {
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 600;
  color: var(--rose);
  line-height: 1.1;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint-rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}
.feature p {
  color: var(--ink-3);
}

/* ---------- Filter chips (gallery + schedule) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--jade);
  background: #fff;
  color: var(--jade);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.chip:hover {
  background: var(--tint-mint);
}
.chip[aria-pressed="true"] {
  background: var(--jade);
  color: #fff;
}
/* Chips only work with JavaScript; hide them if it is unavailable. */
.no-js .chips {
  display: none;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.artwork {
  height: 100%;
  background: var(--card);
  padding: 10px 10px 18px;
  box-shadow: 0 10px 28px rgba(43, 39, 51, 0.1);
  border-radius: 6px;
  min-width: 0;
}
.artwork img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: var(--bg-peach);
}
.artwork figcaption {
  padding: 14px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.artwork__title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
}
.artwork__byline {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Courses ---------- */
.courses {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.course {
  --accent: var(--jade);
  --accent-dark: var(--jade-dark);
  --tint: var(--tint-mint);
  flex: 1 1 300px;
  min-width: 0;
  background: var(--tint);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.course--rose {
  --accent: var(--rose);
  --accent-dark: var(--rose-dark);
  --tint: var(--tint-rose);
}
.course--violet {
  --accent: var(--violet);
  --accent-dark: var(--violet);
  --tint: var(--tint-lilac);
}
.course__ages {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.course__range {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 68px;
  line-height: 1;
  color: var(--accent);
}
.course__years {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.course h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}
.course > p {
  color: var(--ink-2);
}
.course__classes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course__classes span {
  display: block;
  color: var(--ink-3);
}
.course__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.course__fee {
  font-size: 15px;
  color: var(--ink-3);
}
.course .btn {
  background: var(--accent);
  color: #fff;
}
.course .btn:hover {
  background: var(--accent-dark);
  color: #fff;
  filter: brightness(0.95);
}

/* ---------- Schedule ---------- */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.slot__day abbr {
  text-decoration: none;
}
.slot__day {
  flex: 0 0 64px;
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: var(--jade);
}
.slot__time {
  flex: 0 0 150px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slot__name {
  flex: 1 1 220px;
  min-width: 0;
  font-weight: 700;
  font-size: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.pill--5-7 { background: var(--tint-mint); color: var(--jade-dark); }
.pill--8-12 { background: var(--tint-rose); color: var(--rose-dark); }
.pill--13-18 { background: var(--tint-lilac); color: var(--violet); }
.slot__link {
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.empty-note {
  padding: 24px;
  color: var(--ink-muted);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 56px;
}
.contact__info {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__info > p {
  max-width: 460px;
  color: var(--ink-3);
}
.contact__details {
  margin: 0;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__details dd {
  margin: 0;
}
.contact__card {
  flex: 1 1 360px;
  min-width: 0;
  background: var(--card);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 40px rgba(75, 63, 143, 0.12);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form > .btn {
  align-self: flex-start;
}
.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__row .field {
  flex: 1 1 140px;
}
.form__row .field--wide {
  flex: 2 1 200px;
}
.field label {
  font-weight: 700;
}
.field .optional {
  font-weight: 400;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.field textarea {
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--jade);
}
.field [aria-invalid="true"] {
  border-color: #b3261e;
}
.field__error {
  font-size: 14px;
  font-weight: 700;
  color: #b3261e;
}
.form__note {
  font-size: 14px;
  color: var(--ink-muted);
}
/* Honeypot: hidden from people, visible to spam bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  font-weight: 700;
  color: #b3261e;
}
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
}
.form-success h3:focus {
  outline: none;
}
.form-success p {
  color: var(--ink-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #f4eef3;
  padding: 40px 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer .brand__name {
  font-size: 30px;
}
.site-footer .brand__tag,
.site-footer small,
.site-footer p {
  color: #d9cfe3;
}
.site-footer p {
  font-size: 14px;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: #f4b8c7;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 14px;
}
.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* ---------- Simple content pages (privacy, 404) ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section-pad);
}
.page h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  margin: 36px 0 8px;
}
.page p,
.page ul {
  margin: 0 0 14px;
  color: var(--ink-2);
}

/* ---------- Schedule extras (built from weeklyschedule.yml) ---------- */
.schedule .empty-note {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.slot--full .slot__name::after {
  content: " · Full";
  font-weight: 700;
  color: var(--rose-dark);
}
.schedule-error {
  margin: 12px 0 0;
  padding: 12px;
  background: #fff4f2;
  border: 1px solid #f0c4bd;
  border-radius: 8px;
  font-size: 13px;
  color: #7a271a;
  white-space: pre-wrap;
}
