/* Creative Kristy — single stylesheet. Tokens per design-spec §4 (contrast verified there). */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette — see design-spec §4.2 */
  --cream: #FAF3E6; --cream-deep: #F1E6D0; --paper: #FFFDF8;
  --rust: #B4532F; --rust-dark: #963F1F; --rust-soft: #D98A66;
  --sage: #8FA58A; --sage-deep: #4A6350; --sage-pale: #DCE5D6;
  --ink: #3B2F2A; --ink-soft: #6B5A50;
  /* semantic */
  --bg: var(--cream); --text: var(--ink); --muted: var(--ink-soft); --link: var(--rust-dark);
  --btn-primary-bg: var(--rust); --btn-primary-fg: var(--paper); --btn-primary-bg-hover: var(--rust-dark);
  --btn-shop-bg: var(--sage-deep); --btn-shop-fg: var(--paper);
  --focus: var(--ink);
  /* type */
  --font-display: 'Fraunces Variable', Fraunces, Georgia, serif;
  --font-body: 'Nunito Variable', Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-body: 1.125rem; --fs-small: .9rem;
  --fs-h1: clamp(2.125rem, 5vw, 3.375rem); --fs-h2: clamp(1.625rem, 3.5vw, 2.25rem); --fs-h3: 1.3125rem;
  /* shape & space */
  --radius: 18px; --radius-pill: 999px;
  --shadow: 0 6px 18px rgba(59, 47, 42, .10);
  --space-1: .25rem; --space-2: .5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2.5rem; --space-6: 4rem;
  --maxw: 1120px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(180, 83, 47, .045) 1px, transparent 1.4px);
  background-size: 14px 14px;
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-body);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 var(--space-2); text-wrap: balance; }
h1 { font-size: var(--fs-h1); color: var(--ink); }
h2 { font-size: var(--fs-h2); color: var(--rust-dark); }
h3 { font-size: var(--fs-h3); color: var(--ink); line-height: 1.35; }
p { margin: 0 0 var(--space-3); text-wrap: pretty; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--sage-pale); color: var(--ink); }
main:focus { outline: none; }
/* Short pages (/thanks, 404): footer sits at the bottom of the window, no cream strip below it. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-pill);
  font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); color: var(--paper); }
.btn-shop { background: var(--btn-shop-bg); color: var(--btn-shop-fg); }
.btn-shop:hover { background: #3b5140; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--rust-dark); border-color: var(--rust); }
.btn-ghost:hover { background: var(--cream-deep); color: var(--rust-dark); }
.btn[aria-disabled="true"] { cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, transform .15s ease; }
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- header / nav ---------- */
.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 1.3rem/1 var(--font-display); color: var(--rust-dark); text-decoration: none;
}
.brand:hover { color: var(--rust-dark); }
.brand-skein {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--sage); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .12);
}
.menu { position: static; }
.menu-toggle {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 2px solid var(--ink-soft); background: var(--paper); font-weight: 700; color: var(--ink);
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.menu[open] .menu-label-closed, .menu:not([open]) .menu-label-open { display: none; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-block: 1px solid rgba(59, 47, 42, .1); box-shadow: var(--shadow); padding: 12px 20px 20px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.nav-link:hover { background: var(--cream-deep); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--sage-pale); }
.nav-shop { margin-top: 8px; }
.nav-shop .btn { width: 100%; }

@media (min-width: 960px) {
  .site-nav { position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .nav-list { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 2px; }
  .nav-shop { margin: 0 0 0 8px; }
  .nav-shop .btn { width: auto; }
  .menu.is-desktop > .menu-toggle { display: none; }
  @supports selector(::details-content) {
    .menu > .menu-toggle { display: none; }
    .menu::details-content { content-visibility: visible; display: block; }
  }
}

/* ---------- sections ---------- */
.hero { text-align: center; padding-block: 8px 48px; }
.hero-title { margin: 0; line-height: 0; }
.wordmark { display: block; width: min(980px, 100%); height: auto; margin: 4px auto 8px; }
.lead { font: 500 clamp(1.3rem, 3vw, 1.875rem)/1.4 var(--font-display); max-width: 740px; margin: 8px auto 10px; color: var(--ink); text-wrap: balance; }
.sub { color: var(--muted); max-width: 700px; text-wrap: pretty; }
.hero .sub { margin: 0 auto 26px; }
.next-class { margin: 18px 0 6px; font-weight: 700; }
/* On phones, a long centred paragraph is hard to scan: left-align it; the headline and buttons stay centred. */
@media (max-width: 639px) { .hero .sub { text-align: left; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-row-start { justify-content: flex-start; }
/* Keep running text near 65-70 characters per line in full-width sections. */
.section > p { max-width: 68ch; }
.cta-note { font-size: var(--fs-small); color: var(--muted); margin: 12px 0 0; }
.cta-note + .cta-note { margin-top: 2px; }

.section { padding-block: 44px 12px; }
.eyebrow { color: var(--muted); margin: 0 0 22px; }
.also { max-width: 760px; color: var(--muted); margin-top: 22px; }
.all { margin: 26px 0 0; }

.band { background: var(--cream-deep); padding-block: 44px 52px; margin-top: 44px; }
.band-stitched, .band-dashed { border-top: 2px dashed rgba(180, 83, 47, .35); border-bottom: 2px dashed rgba(180, 83, 47, .35); }
.band-dashed { background: transparent; }
.band + .band { margin-top: 0; border-top: 0; }

.page-head { padding-block: 28px 12px; }
.page-head .sub { font-size: 1.125rem; }
.divider { display: block; width: 180px; height: auto; margin: 0 0 10px; }
.thanks { text-align: center; padding-block: 48px 72px; }
.thanks .divider { margin-inline: auto; }
.thanks .sub { margin-inline: auto; }
.thanks .thanks-hint { font-size: var(--fs-small); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cards.cards-single { max-width: 420px; grid-template-columns: 1fr; }
.card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  border: 1px solid rgba(59, 47, 42, .08); box-shadow: var(--shadow); padding: 22px 22px 20px;
}
.card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 6px; border-radius: 0 0 6px 6px;
  background: repeating-linear-gradient(90deg, var(--rust) 0 10px, var(--rust-soft) 10px 14px);
}
.card h3 { margin: 0 0 4px; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.craft-card p { margin: 0; }

.photo-ph {
  aspect-ratio: 4 / 3; border-radius: 14px; margin: 6px 0 14px; display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--cream-deep); border: 1px solid rgba(59, 47, 42, .10); color: var(--ink);
}
.photo-ph span { font: 600 1.125rem/1.3 var(--font-display); }
.photo-ph small { font-size: var(--fs-small); color: var(--muted); }
.card .photo-ph { border: 0; } /* a photo slot inside a card, not a second card */
.photo-square { aspect-ratio: 1 / 1; margin: 0; }
.photo-portrait { aspect-ratio: 4 / 5; margin: 0; }

/* event cards */
/* Cards in a row share the row's height; the action sits at the bottom so links line up across the row. */
.event-card { display: flex; flex-direction: column; }
.event-card > .more { align-self: flex-start; margin-top: auto; }
.event-card > .date-picks-label { margin-top: auto; }
.event-date { display: flex; gap: 12px; align-items: center; margin: 6px 0 12px; }
.date-chip {
  display: grid; place-content: center; width: 56px; height: 60px; flex: none; border-radius: 12px;
  background: var(--sage-pale); color: var(--ink); font: 600 1.5rem/1.1 var(--font-display); text-align: center;
}
.date-chip small { display: block; font: 700 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); }
.event-when { margin: 0; font-weight: 700; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.event-title { margin: 0 0 4px; }
.event-place { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.event-desc { margin: 0 0 14px; }
.cards-compact .event-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-weight: 700; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.date-picks-label { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.date-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.date-pick {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 2px solid var(--rust); background: var(--paper); color: var(--rust-dark); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.date-pick:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--paper); }
.page-note { margin: 4px 0 0; font-weight: 700; }

.event-list { padding-block: 8px 24px; }
.month-heading { margin: 28px 0 16px; font-size: 1.625rem; }
.event-region > .month-heading:first-child, .dev-note + .month-heading { margin-top: 8px; }
.state { background: var(--paper); border-radius: var(--radius); padding: 18px 22px; border: 1px solid rgba(59, 47, 42, .10); max-width: 760px; }
.state-error { border: 2px solid var(--rust-dark); }
.dev-note { display: inline-block; font-size: var(--fs-small); color: var(--muted); border: 1px dashed var(--ink-soft); border-radius: 8px; padding: 2px 10px; margin-bottom: 14px; }
.next-label { font-weight: 700; margin-bottom: 14px; }
.placeholder-note { color: var(--muted); font-style: italic; }

/* meet / shop / final */
.meet { display: grid; gap: 20px; align-items: center; padding-block: 52px 8px; }
.meet h2 { margin-bottom: 10px; }
.shop-band { background: var(--sage-pale); margin-top: 48px; padding-block: 40px; text-align: center; }
.shop-band h2 { color: var(--ink); }
.shop-band p { max-width: 640px; margin: 0 auto 18px; }
.final-cta { text-align: center; padding-block: 48px 48px; }
.final-cta h2 { color: var(--ink); font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: 16px; }
.shop-strip {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  background: var(--sage-pale); border-radius: var(--radius); padding: 20px 24px; margin-block: 32px 48px;
}
.shop-strip p { margin: 0; font-weight: 600; }

/* about / crafts / privacy */
.story { display: grid; gap: 28px; padding-block: 12px 12px; align-items: start; }
.story-text { max-width: 680px; }
.glance { padding-left: 1.2em; }
.glance li { margin-bottom: 6px; }
.gallery-section { padding-block: 28px 4px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery .photo-ph { margin: 0; }
.lead-small { font-size: 1.25rem; font-family: var(--font-display); font-weight: 500; }
.prose { max-width: 760px; padding-block: 8px 48px; }
.prose h2 { font-size: 1.5rem; margin-top: 28px; }

/* faq */
.faq details { background: var(--paper); border: 1px solid rgba(59, 47, 42, .10); border-radius: 14px; margin-bottom: 10px; max-width: 760px; }
.faq summary { cursor: pointer; padding: 12px 18px; min-height: 48px; display: flex; align-items: center; font-weight: 700; }
.faq details p { padding: 0 18px 8px; margin: 0 0 8px; }

/* ---------- contact ---------- */
.contact-layout { display: grid; gap: 32px; padding-block: 12px 56px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink-soft);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--rust-dark); }
.field-error { color: var(--rust-dark); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.field-error::before { content: "⚠ "; }
.error-summary, .form-message {
  background: var(--paper); border: 2px solid var(--rust-dark); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px;
}
.error-summary h3 { margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: var(--fs-small); color: var(--muted); margin-top: 14px; }
.contact-details h2 { font-size: 1.375rem; color: var(--ink); }
.contact-details dl { margin: 0 0 24px; }
.class-summary {
  background: var(--sage-pale); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; color: var(--ink);
}
.class-summary p { margin: 0 0 6px; }
.class-summary p:last-child { margin: 0; }
.class-summary-what { font: 600 1.25rem/1.35 var(--font-display); }
.field-hint { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.contact-details dt { font-weight: 700; }
.contact-details dd { margin: 0 0 12px; color: var(--muted); }
.shop-reminder p { font-weight: 700; color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 40px 20px; margin-top: 24px; font-size: 1rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--cream); }
.site-footer .btn-shop { color: var(--paper); }
.footer-grid { display: grid; gap: 28px; }
.footer-name { display: flex; align-items: center; gap: 10px; font: 600 1.375rem/1 var(--font-display); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-label { font-weight: 700; }
.disclaimer { font-size: var(--fs-small); }
.footer-small { font-size: var(--fs-small); margin: 24px auto 0; opacity: .9; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .brand { font-size: 1.5rem; }
  .wrap { padding-inline: 24px; }
  .meet { grid-template-columns: minmax(200px, 300px) 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(260px, 360px) 1fr; gap: 44px; }
  .contact-layout { grid-template-columns: 3fr 2fr; gap: 48px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .hero { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
