/* ==========================================================================
   LoveForWood.studio — Stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #efe9df;
  --ink: #2b1d14;
  --ink-soft: #5b4a3c;
  --accent: #8a4520;
  --band-contact: #e2d8c8;
  --sold: #8c827a;
  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;
  --page-pad: 48px;
  --page-max: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;                 /* removes the default white border */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

/* Centered content column used by every section */
.inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 42px;
}

/* ---------- Buttons ---------- */
.btn {
  align-self: flex-start;
  display: inline-block;
  min-height: 44px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.btn.off {
  background: transparent;
  color: var(--sold);
  border: 1px solid var(--sold);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px var(--page-pad);
}

.brand {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.site-nav a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding: 56px var(--page-pad) 88px;
}

.hero-text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 68px;
  line-height: 1.05;
}

.hero-lead {
  margin: 0;
  max-width: 480px;
  color: var(--ink-soft);
}

.hero-img {
  flex: 1 1 380px;
  max-width: 540px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- Work / gallery ---------- */
.work {
  padding: 80px var(--page-pad);
}

.work .section-title { margin-bottom: 8px; }

.work-note {
  margin: 0 0 40px;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 32px;
}

/* Gallery cards (built by the script in index.html) */
.card {
  display: flex;
  flex-direction: column;
}

.wrap { position: relative; }

.art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9cdb9;
  border-radius: 2px;
}

.art:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Every photo / texture layer is stacked; only the first shows by default */
.art > :not(.scrub-zones) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.art > :first-child { opacity: 1; }

/* Invisible hover strips that switch photos on desktop */
.scrub-zones {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
}

.scrub-zone { flex: 1; }

.dots-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.dot.active { background: #fff; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
}

.row h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
}

.row p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.price {
  font-weight: 500;
  white-space: nowrap;
}

/* Touch screens: photos become a swipeable strip */
@media (hover: none) {
  .art {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .art::-webkit-scrollbar { display: none; }

  .art > :not(.scrub-zones) {
    position: static;
    flex: 0 0 100%;
    opacity: 1 !important;
    scroll-snap-align: start;
  }

  .scrub-zones { display: none; }
}

/* ---------- About ---------- */
.about {
  background: var(--ink);
  color: var(--bg);
}

.about .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 88px var(--page-pad);
}

.about-photo {
  width: 20%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

.about-text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.about-text p { margin: 0; }

/* ---------- Buying ---------- */
.buy {
  padding: 88px var(--page-pad);
}

.buy .section-title { margin-bottom: 40px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
}

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

/* ---------- Contact ---------- */
.contact { background: var(--band-contact); }

.contact .inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 88px var(--page-pad);
}

.contact p {
  margin: 0;
  max-width: 520px;
  color: #4a3a2d;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px var(--page-pad);
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Workshops page
   ========================================================================== */

/* Current page in the nav */
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Text-only hero */
.hero.hero-solo { padding-bottom: 56px; }
.hero-solo .hero-text { max-width: 640px; }

.workshop-section {
  padding: 88px var(--page-pad);
}

.workshop-section .section-title { margin-bottom: 40px; }

/* Packing checklist */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px 48px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.checklist strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

/* Waiver band: text + QR code */
.waiver {
  background: var(--ink);
  color: var(--bg);
}

.waiver .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 88px var(--page-pad);
}

.waiver-text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.waiver-text p { margin: 0; }

.waiver .btn {
  background: var(--bg);
  color: var(--ink);
}

.waiver-url {
  font-size: 14px;
  opacity: 0.75;
  word-break: break-all;
}

.qr-card {
  margin: 0;
  padding: 20px;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  text-align: center;
}

.qr-card img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
}

.qr-card figcaption {
  font-size: 15px;
  color: var(--ink-soft);
}

.workshop-section.flush-top { padding-top: 0; }

/* Full-width photo banner: any number of photos side by side */
.photo-banner {
  display: flex;
  gap: 4px;
  background: var(--bg);
}

.photo-banner img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
  object-position: center;
  background: #d9cdb9;
}

/* Phones: swipeable strip, with the next photo peeking in */
@media (max-width: 700px) {
  .photo-banner {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .photo-banner::-webkit-scrollbar { display: none; }

  .photo-banner img {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}
