/* ===== Design Tokens ===== */
:root {
  --bg:          #f9f6f0;
  --bg-alt:      #2c2416;
  --ink:         #1e1b14;
  --ink-light:   #5c5546;
  --accent:      #c4732e;
  --accent-hover:#a55d20;
  --accent-dark: #8b3a0e;
  --surface:     #ffffff;
  --border:      #e0d9cc;
  --border-dark: #3d3527;
  --olive:       #417505;
  --gold:        #d4a43a;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;

  --radius: 8px;
  --font-brand:  "Rancho", cursive;
  --font-heading:"Quicksand", sans-serif;
  --font-body:   "Lora", Georgia, "Times New Roman", serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,115,46,0.06) 0%, transparent 70%),
    var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0;
  line-height: 1.1;
}
.brand a { color: var(--ink); }
.brand a:hover { color: var(--accent); }

/* ===== Navigation ===== */
.nav-toggle-input,
.nav-toggle-label { display: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink-light);
  padding: 6px 4px;
  position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

/* ===== Section Titles ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}
.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: var(--space-lg) 0 var(--space-xs);
  color: var(--accent-dark);
}

/* ===== Collection Intro ===== */
.collection-intro {
  max-width: 74ch;
  margin-bottom: var(--space-sm);
  color: var(--ink-light);
}
.collection-intro:first-of-type {
  font-size: 1.12rem;
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
}
.hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* ===== Notice Banner ===== */
.notice-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(196,115,46,0.12), rgba(196,115,46,0.04));
  border: 1px solid rgba(196,115,46,0.2);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
}
.notice-banner svg { flex-shrink: 0; }

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  border-left: 4px solid var(--accent);
}
.card:active { transform: scale(0.97); }
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover img { transform: scale(1.04); }
.card p {
  margin: 0;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.95rem;
  color: var(--ink);
}
.card small {
  display: block;
  color: var(--ink-light);
  font-size: 0.82rem;
  margin-top: 2px;
}

.gallery-card { color: inherit; text-decoration: none; }
.gallery-card:hover { text-decoration: none; }
.gallery-card p { border-top: 1px solid var(--border); }

/* ===== Filter Buttons ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== Gallery Overlay ===== */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.90);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-overlay.open {
  opacity: 1;
  visibility: visible;
}
.gallery-inner {
  max-width: min(1000px, 94vw);
  max-height: 92vh;
  width: 100%;
  color: #fff;
}
.gallery-image-wrap {
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-overlay img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-overlay.open img { transform: scale(1); }
.gallery-meta { padding: 10px 0 0; }
.gallery-meta h3 { margin: 0 0 6px; font-size: 1.1rem; font-family: var(--font-heading); }
.gallery-meta p { margin: 0; color: #ddd; }
.gallery-controls {
  display: flex;
  gap: var(--space-xs);
  margin-top: 12px;
}
.gallery-btn {
  border: 1px solid #555;
  background: #202020;
  color: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.gallery-btn:hover { background: #333; }
.gallery-close-top {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
  line-height: 1;
  padding: var(--space-xs);
}

/* ===== Pull Quote ===== */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--accent);
  text-align: center;
  max-width: 60ch;
  margin: var(--space-lg) auto;
  padding: var(--space-md);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ===== Bio / Centered Content ===== */
.bio-hero {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto var(--space-md);
  border-radius: 12px;
  border: 3px solid var(--accent);
  padding: 4px;
  background: var(--surface);
}
.centered-content {
  max-width: 760px;
  margin: 0 auto var(--space-lg);
}
.centered-content .bio-hero {
  max-width: 280px;
}
.tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: var(--space-md);
}

/* ===== Contact Info ===== */
.contact-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}
.contact-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.contact-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}
.event-card .event-date {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}
.event-card .event-location {
  color: var(--ink-light);
  font-size: 0.95rem;
}

/* ===== CTA Button ===== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ===== Footer / Social ===== */
.site-footer {
  background: var(--bg-alt);
  color: #a09080;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: var(--gold); }
.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-3px);
}
.social-icons img { width: 24px; height: 24px; }
.footer-text { font-size: 0.85rem; margin: 0; }
.footer-text a { color: #a09080; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent-hover); }

/* ===== Process Gallery (Writing With Fire) ===== */
.process-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.process-gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.process-gallery img:hover { transform: scale(1.03); }

/* ===== Studio Gallery (Bio) ===== */
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.studio-gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.studio-gallery img:hover { transform: scale(1.03); }

/* ===== Feature Box (Furniture intro) ===== */
.feature-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Horizontal Rule / Divider ===== */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: var(--space-xl) 0;
}

/* ===== Page Banner Image ===== */
.page-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== Responsive: 0-599px (Phone) ===== */
@media (max-width: 599px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-xs);
    position: absolute;
    top: var(--space-sm);
    right: var(--space-md);
    z-index: 51;
  }
  .nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle-input:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    padding: var(--space-sm);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .nav-toggle-input:checked ~ .nav { display: flex; }
  .nav a { padding: 12px var(--space-xs); }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card img { height: 180px; }
  .hero { grid-template-columns: 1fr; }
  .bio-hero { max-width: 200px; }
  .centered-content .bio-hero { max-width: 200px; }
}

/* ===== Responsive: 600-899px (Tablet) ===== */
@media (min-width: 600px) and (max-width: 899px) {
  .nav { gap: 4px 12px; font-size: 0.88rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ===== Responsive: 900px+ (Desktop) ===== */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .two-col { grid-template-columns: 0.8fr 1.2fr; }
  .bio-text { text-align: left; }
}

/* ===== Responsive: 1200px+ (Large Desktop) ===== */
@media (min-width: 1200px) {
  .container { padding: var(--space-xl) var(--space-sm) var(--space-2xl); }
}
