/* the art of craft — rudimentary v1 */

:root {
  --bg: #e1deda;
  --bg-alt: #ece9e4;
  --surface: #f4f2ef;
  --ink: #211e1a;
  --ink-soft: #4a453e;
  --accent: #5e7c99;
  --accent-dark: #455b70;
  --accent-light: #b7c4d1;
  --border: #cfc9c0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Livvic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 960px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* keep the footer at the bottom on short pages */
footer { margin-top: auto; }

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.05;
  margin: 0;
}

p { max-width: 62ch; }

/* ---------- top nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--accent);
  border-bottom: 1px solid var(--accent-dark);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 0.6rem clamp(1rem, 2.5vw, 2rem);
}

.site-nav .wordmark img {
  height: 50px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; }

.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* hamburger button: hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0 -0.5rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
}
.nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-nav.open .nav-toggle { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 720px) {
  .site-nav .wordmark img { height: 42px; }
  .nav-toggle { display: inline-flex; }

  /* with JavaScript: links collapse into a dropdown under the bar */
  .js .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--accent);
    border-bottom: 1px solid var(--accent-dark);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
  }
  .js .site-nav.open ul { display: flex; }
  .js .site-nav ul li + li { border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .js .site-nav ul a {
    display: block;
    padding: 0.95rem clamp(1rem, 2.5vw, 2rem);
    font-size: 1.05rem;
  }
  .js .site-nav a[aria-current="page"] { text-underline-offset: 5px; }

  /* without JavaScript: keep the old wrapped row of links */
  .site-nav .wrap { flex-wrap: wrap; row-gap: 0.4rem; }
  .site-nav ul { flex-wrap: wrap; gap: 0.5rem 1.1rem; }
}
html:not(.js) .nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.5rem, 8vw, 4rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.hero-logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

.hero-note {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.hero-note p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero-note p + p { margin-top: 0.9rem; }

.hero-note a {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 720px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-logo img { max-width: 320px; }
}

/* ---------- sections ---------- */

section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  color: var(--ink);
}

.section-head .eyebrow {
  display: block;
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.about-grid .section-head {
  grid-column: 1 / -1;
}

.about p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.about .placeholder-flag {
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-dark);
  background: var(--accent-light);
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- about carousel ---------- */

.carousel {
  position: relative;
  margin: 0;
  width: 100%;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: transparent;
}

.carousel-slide figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

.carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  background: rgba(244, 242, 239, 0.92);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.active { background: var(--accent); }

/* ---------- shop gallery ---------- */

.shop-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-intro p {
  color: var(--ink-soft);
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
}

.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(33, 30, 26, 0.1);
}

.gallery-item .thumb {
  aspect-ratio: 1 / 1;
  background: var(--accent-light);
  overflow: hidden;
}

.gallery-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .label {
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- follow ---------- */

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

.follow p { color: var(--ink-soft); margin: 0.4rem 0 0; }

.ig-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.ig-embeds blockquote.instagram-media {
  margin: 0 auto !important;
}

/* ---------- classes & private events ---------- */

.classes .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 780px) {
  .offer-grid { grid-template-columns: 1fr; }
}

.offer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.4rem;
}

.offer h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.offer p {
  margin: 0;
  color: var(--ink-soft);
}

.classes .cta-line,
.pricing .cta-line {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.classes { padding-bottom: clamp(2rem, 5vw, 3rem); }
.classes .offer-grid { margin-bottom: 0; }

/* two-up variant used when only two cards */
.offer-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) {
  .offer-grid.two { grid-template-columns: 1fr; }
}

/* single-card variant */
.offer-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }

.offer p a { font-weight: 600; }

/* anchored sections clear the sticky nav */
#schedule, #pricing { scroll-margin-top: 5.5rem; }

.schedule .lead { margin-bottom: 2rem; }

/* email opt-in */
.optin { max-width: 520px; margin: 0 0 2.25rem; }

.optin-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.optin-row {
  display: flex;
  gap: 0.6rem;
}

.optin-row input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

.optin-row .btn { flex: 0 0 auto; }
.optin-row .btn:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 480px) {
  .optin-row { flex-direction: column; }
}

.optin-status { margin: 0.6rem 0 0; font-size: 0.95rem; min-height: 1.4em; color: var(--ink-soft); }
.optin-status.ok { color: #2f6b3f; }
.optin-status.err { color: #9a3b2e; }

/* flyer on the left, sign-up form on the right (stacked on phones) */
.class-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.class-row .signup { margin-top: 0; }
@media (max-width: 780px) {
  .class-row { grid-template-columns: 1fr; }
  .class-row .signup { margin-top: 1.5rem; }
}
/* the sign up button under the flyer only helps when the form is below it */
@media (min-width: 781px) {
  .flyer .btn { display: none; }
}

.flyer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (max-width: 780px) {
  .flyer-grid { max-width: 480px; }
}

.flyer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
}

.flyer-art {
  aspect-ratio: 8.5 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  font-style: italic;
}

.flyer-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.flyer .btn { justify-content: center; }

.tier-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.tier-list li { margin-bottom: 0.5rem; }
.tier-list li:last-child { margin-bottom: 0; }

.btn.is-placeholder {
  opacity: 0.55;
  cursor: default;
}
.btn.is-placeholder:hover {
  background: transparent;
  color: var(--accent-dark);
}

.pricing .offer-grid { margin-bottom: 2.5rem; }
.placeholder-text { font-style: italic; }

/* ---------- contact ---------- */

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -0.25rem;
}

/* ---------- footer ---------- */

footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer a { color: var(--ink-soft); }

/* Netlify's floating "Powered by Netlify" badge sits over the bottom-right on phones;
   extra bottom room lets the footer links scroll up clear of it */
@media (max-width: 720px) {
  footer { padding-bottom: 6rem; }
}

/* ---------- class sign-up ---------- */

.signup { margin-top: 3rem; }
/* anchored targets clear the sticky nav (two rows tall on phones) */
#class-signup, #class-form { scroll-margin-top: 5.5rem; }
@media (max-width: 720px) {
  #class-signup, #class-form { scroll-margin-top: 5.5rem; }
}
.signup h3 { margin-bottom: 0.4rem; }
.signup-details { margin: 0 0 1.5rem; color: var(--ink-soft); }
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
.field.check label { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.field.check input { width: auto; margin-top: 0.3rem; flex: 0 0 auto; }
.signup-thanks { max-width: 520px; padding: 1.25rem 1.5rem; background: var(--surface); border-radius: 6px; }
.signup-thanks h4 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.25rem; }
.signup-thanks p { margin: 0 0 0.6rem; }

.signup [hidden] { display: none !important; }

.signup-note { margin: 0 0 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }

.field.check.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.field.check.choice legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.field.check.choice label { margin-bottom: 0.7rem; }

/* ---------- cookie banner ---------- */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(33, 30, 26, 0.12);
  padding: 1rem 0;
}

.consent-banner[hidden] { display: none; }

.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
}

.consent-inner p {
  margin: 0;
  flex: 1 1 26rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.consent-actions { display: flex; gap: 0.6rem; }
.consent-actions .btn { min-width: 6.5rem; justify-content: center; }

@media (max-width: 480px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- privacy notice (long-form text page) ---------- */

.prose h3 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; max-width: 62ch; }
.prose li { margin-bottom: 0.45rem; }
