/* Ashley H. Crafts — handmade, homey site styles */
:root {
  --cream: #FFFCF7;
  --cream-deep: #F3EBE0;
  --paper: #FBF6EE;
  --linen: #EFE6D8;
  --ink: #2A2420;
  --ink-soft: #4A433C;
  --muted: #6B6258;
  --teal: #005C60;
  --teal-hover: #004347;
  --teal-soft: #E7F2F1;
  --terracotta: #C45C2A;
  --peach: #E8B08A;
  --rose: #C9897B;
  --sage: #7E8F6A;
  --navy: #243044;
  --line: #E4D5C4;
  --shadow: 0 14px 34px rgba(90, 58, 28, 0.10);
  --shadow-soft: 0 6px 18px rgba(90, 58, 28, 0.07);
  --font-script: "Allura", "Segoe Script", cursive;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --radius: 20px;
  --header-h: 4.75rem;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 640px at 8% -8%, rgba(232, 176, 138, 0.20), transparent 58%),
    radial-gradient(900px 520px at 100% 0%, rgba(126, 143, 106, 0.12), transparent 55%),
    radial-gradient(800px 500px at 80% 100%, rgba(201, 137, 123, 0.08), transparent 50%),
    url("../images/paper-grain.png");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, 320px 320px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }
a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--teal);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}
.skip:focus { top: 0.75rem; color: var(--cream); }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header::after {
  content: "";
  display: block;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--teal) 38%, var(--line));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal);
  min-width: 0;
}
.brand img { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark {
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--teal);
}
.tagline {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  color: var(--teal);
}
.nav-toggle:hover { background: var(--teal-soft); }
.nav-toggle-bars {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav ul {
  display: flex;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
}

/* Buttons */
.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover, a.btn:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--cream);
}
.btn:active { transform: translateY(1px); }
.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--teal);
}
.btn-ghost:hover,
a.btn-ghost:hover {
  background: var(--teal-soft);
  color: var(--teal-hover);
  border-color: var(--teal);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}
.btn:focus-visible { outline-color: var(--peach); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--linen) 70%, var(--cream)) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  min-height: min(78vh, 760px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 5vw, 4.2rem);
  position: relative;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero h1 { margin-bottom: 0.4rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.5rem; }
.hero-media {
  min-height: 320px;
  background: var(--cream-deep);
  position: relative;
}
.hero-media picture, .hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 20%;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media picture, .hero-media img { min-height: 360px; max-height: 62vh; }
}

/* Sections */
.section { padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.section-head p { color: var(--muted); max-width: 36rem; }
.kicker { color: var(--teal); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.35rem; }

/* Cards / product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #FFFEFA;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card-media {
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
  overflow: hidden;
  margin: 0.7rem 0.7rem 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 247, 0.4);
}
.card-media img, .card-media picture {
  width: 100%;
  height: 100%;
}
.card-media img { object-fit: cover; object-position: center; }
.card-body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.22rem; }
.card-body .desc { color: var(--ink-soft); font-size: 0.95rem; }
.price {
  font-weight: 700;
  color: var(--teal);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.price.pending { color: var(--terracotta); font-weight: 600; }
.card .btn { margin-top: auto; width: 100%; }

/* Category chips */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}
.cat-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #FFFEFA;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(90, 58, 28, 0.04);
}
.cat-nav a:hover, .cat-nav a:focus-visible { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }

.category { scroll-margin-top: 6rem; margin-bottom: 3.2rem; }
.category h2 { margin-bottom: 0.35rem; }
.category > .lead { color: var(--muted); margin-bottom: 1.2rem; }

/* Story / video */
.story {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  gap: 2.4rem;
  align-items: center;
  background: var(--teal);
  color: var(--cream);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  overflow: hidden;
}
.story h2, .story p, .story .kicker { color: var(--cream); }
.story .kicker { opacity: 0.85; }
.story p { color: #e6f1f1; }
.video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #00383b;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  margin-inline: auto;
  width: 100%;
}
.video-frame video, .video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vid-toggle {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  color: var(--teal);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
}
.vid-toggle:hover { background: var(--cream); }
@media (max-width: 720px) {
  .story { grid-template-columns: 1fr; }
  .video-frame { max-height: 480px; max-width: 320px; }
}

/* Band / teaser */
.band {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--linen) 80%, var(--cream-deep)) 0%, var(--cream-deep) 100%);
  border-block: 1px dashed color-mix(in srgb, var(--teal) 22%, var(--line));
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split img, .split picture {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: 36rem;
  box-shadow: var(--shadow-soft);
}
.split picture {
  display: block;
  overflow: hidden;
  background: var(--linen);
  padding: 0.45rem;
  border: 1px solid var(--line);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); box-shadow: var(--shadow); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.placeholder-edit {
  border: 2px dashed var(--terracotta);
  background: #fff7f0;
  color: var(--ink);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.placeholder-edit strong { color: var(--terracotta); letter-spacing: 0.04em; }

/* Forms */
form { display: grid; gap: 0.85rem; }
label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 0.3rem; }
input, textarea, select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFEFA;
  color: var(--ink);
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(90, 58, 28, 0.04);
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid color-mix(in srgb, var(--teal) 40%, transparent);
  border-color: var(--teal);
}
textarea { min-height: 8rem; resize: vertical; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.contact-list a { font-weight: 600; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: #f3eee6;
  padding: 2.4rem 0 1.5rem;
  border-top: 3px dashed color-mix(in srgb, var(--peach) 55%, transparent);
}
.site-footer a { color: #f3eee6; }
.site-footer a:hover { color: var(--peach); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.footer-brand .wordmark { color: #f7f2ea; font-size: 2rem; }
.footer-brand p { color: #d8d2c8; }
.site-footer h2 { font-size: 1.05rem; color: var(--peach); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.legal { border-top: 1px solid color-mix(in srgb, #fff 18%, transparent); padding-top: 1rem; font-size: 0.88rem; color: #c9c3b8; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* Dialog */
dialog.order-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  width: min(32rem, calc(100% - 2rem));
  box-shadow: var(--shadow);
  background: var(--cream);
}
dialog.order-dialog::backdrop { background: rgba(28, 42, 43, 0.5); }
.dialog-inner { padding: 1.4rem 1.5rem 1.5rem; }
.dialog-inner h2 { margin-top: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

/* 404 / misc */
.page-hero { padding: 2.4rem 0 0.4rem; }
.note { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .video-frame video,
  .market-film-frame video { display: none; }
  .video-frame .poster-fallback,
  .market-film-frame .poster-fallback { display: block; }
}
.video-frame .poster-fallback,
.market-film-frame .poster-fallback { display: none; width: 100%; height: 100%; object-fit: cover; }

/* Homey extras */
.kicker {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}
.page-hero { padding: 2.4rem 0 0.4rem; }
.page-hero h1 { text-wrap: balance; }

/* At the Market / Behind the Booth */
.market-film {
  background:
    linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--linen) 70%, var(--cream)) 100%);
  border-top: 1px dashed color-mix(in srgb, var(--teal) 25%, var(--line));
  padding-bottom: clamp(2.6rem, 6vw, 4.8rem);
}
.market-film-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.market-film-copy .kicker { color: var(--terracotta); }
.market-film-copy h2 { margin-bottom: 0.45em; }
.market-film-copy p { color: var(--ink-soft); max-width: 36rem; }
.market-film-frame {
  position: relative;
  margin: 0;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.55rem 0.55rem 0.85rem;
  box-shadow: var(--shadow);
}
.market-film-frame::before,
.market-film-frame::after {
  content: "";
  position: absolute;
  width: 2.7rem;
  height: 0.82rem;
  background: color-mix(in srgb, var(--peach) 82%, #fff);
  opacity: 0.92;
  transform: rotate(-8deg);
  box-shadow: 0 1px 2px rgba(90, 58, 28, 0.12);
  z-index: 2;
  pointer-events: none;
}
.market-film-frame::before { top: 0.35rem; left: 1.1rem; }
.market-film-frame::after { top: 0.45rem; right: 1.2rem; transform: rotate(7deg); background: color-mix(in srgb, var(--sage) 62%, #fff); }
.market-film-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #3a2f28;
  aspect-ratio: 4 / 5;
}
.market-film-media video,
.market-film-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.market-film-controls {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  z-index: 3;
}
.market-film-controls .vid-toggle {
  position: static;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  color: var(--teal);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: 700 0.85rem var(--font-body);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(42, 36, 32, 0.16);
}
.market-film-controls .vid-toggle:hover { background: var(--cream); }
.market-film-frame figcaption {
  margin: 0.7rem 0.35rem 0.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
@media (max-width: 800px) {
  .market-film-inner { grid-template-columns: 1fr; }
  .market-film-frame { max-width: 420px; margin-inline: auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
