/* ============ DESIGN TOKENS ============ */
:root,
[data-theme='light'] {
  /* Surfaces — beige */
  --color-bg: #f2ead9;
  --color-surface: #f8f1e3;
  --color-surface-2: #fffcf5;
  --color-surface-offset: #ece0c9;
  --color-surface-offset-2: #e2d3b4;
  --color-divider: #d8cbb0;
  --color-border: #c9b99a;

  /* Text — navy ink */
  --color-text: #1b2a41;
  --color-text-muted: #4a5a72;
  --color-text-faint: #7c8aa0;
  --color-text-inverse: #f2ead9;

  /* Accent — bordeaux (buttons, icons, forms) */
  --color-primary: #7a1f2b;
  --color-primary-hover: #631822;
  --color-primary-active: #4d131b;
  --color-primary-highlight: #e6d0d4;
  /* Body text accent — bright pink */
  --color-accent: #e85d9a;
  --color-accent-hover: #d14a87;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 60 / 0.14);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

[data-theme='dark'] {
  /* Surfaces — deep navy */
  --color-bg: #12182a;
  --color-surface: #1a2338;
  --color-surface-2: #1f2a44;
  --color-surface-offset: #243049;
  --color-surface-offset-2: #2a3753;
  --color-divider: #2a3753;
  --color-border: #3a4768;

  /* Text — beige */
  --color-text: #ece3d0;
  --color-text-muted: #a8afc2;
  --color-text-faint: #7c8aa0;
  --color-text-inverse: #12182a;

  /* Accent — bordeaux (buttons, icons, forms) */
  --color-primary: #d88792;
  --color-primary-hover: #e49aa4;
  --color-primary-active: #c47480;
  --color-primary-highlight: #3a2330;
  /* Body text accent — bright pink */
  --color-accent: #ff8fc7;
  --color-accent-hover: #ffa6d1;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(3rem, 0.5rem + 6vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============ LAYOUT PRIMITIVES ============ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-8);
}

.brand {
  position: relative;
  display: block;
  width: 268px;
  height: 72px;
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
}
.brand-wordmark {
  height: 72px;
  width: auto;
  display: block;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.wm-light { opacity: 1; }
.wm-dark { opacity: 0; }
[data-theme='dark'] .wm-light { opacity: 0; }
[data-theme='dark'] .wm-dark { opacity: 1; }
@media (max-width: 640px) {
  .brand-wordmark { height: 54px; }
  .brand { width: 202px; height: 54px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.main-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-text);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-text-faint);
  background: var(--color-surface-offset);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ============ HERO ============ */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 78vh;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.02;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-copy p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-tags {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.hero-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.hero-art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ GALLERY ============ */
.gallery-controls {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.filter-btn {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
}
.filter-btn:hover {
  border-color: var(--color-text-faint);
  color: var(--color-text);
}
.filter-btn.is-active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.gallery-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, oklch(0.15 0.02 60 / 0.72), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}
.gallery-card:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-caption .cap-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.gallery-caption .cap-meta {
  font-size: var(--text-xs);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-card[hidden] {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: oklch(0.1 0.01 60 / 0.86);
}
.lightbox.is-open {
  display: flex;
}
.lightbox-inner {
  max-width: 720px;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.lightbox-inner img {
  width: 100%;
}
.lightbox-info {
  padding: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.lightbox-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.lightbox-info p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);
  align-items: start;
}
.about-portrait {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  aspect-ratio: 4/5;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
}
.about-body p:first-of-type {
  font-size: var(--text-lg);
  color: var(--color-text);
}
.about-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  display: block;
}
.stat .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.process-step {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.process-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.process-num {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  display: block;
}

/* ============ SHOP ============ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.shop-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.shop-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.shop-card-body {
  padding: var(--space-5);
}
.shop-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.shop-price {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.shop-note {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  border: 1px solid var(--color-divider);
}

/* ============ CONTACT ============ */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16);
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
  font-weight: 400;
}
.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 42ch;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}
.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-detail a {
  color: var(--color-text);
  text-decoration: none;
}
.contact-detail a:hover {
  color: var(--color-accent);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
input,
select,
textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.form-success {
  display: none;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}
.form-success.is-visible {
  display: block;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-brand svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-text);
}
.footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--space-10);
  }
  .hero-art {
    order: -1;
    aspect-ratio: 4/3;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 320px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) clamp(var(--space-5), 5vw, var(--space-12));
    gap: var(--space-5);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-interactive), transform var(--transition-interactive);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav a {
    color: var(--color-accent);
  }
  .header-actions .btn-primary {
    display: none;
  }
  .header-inner {
    gap: var(--space-3);
  }
  .brand-name {
    white-space: nowrap;
    font-size: var(--text-base);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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