:root {
  --bg: #F4EEE2;
  --bg-deep: #E8DFCC;
  --ink: #2A241C;
  --ink-soft: #574C3E;
  --accent: #B4502A;
  --line: #C8BAA0;
  --paper: #FBF7EE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 300; }

/* paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 100;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.6rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: rgba(244, 238, 226, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 186, 160, 0.4);
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
}

nav ul { display: flex; gap: 2.5rem; list-style: none; }

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
nav a:hover { color: var(--accent); }
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}
nav a:hover::after { width: 100%; }

/* ---------- Hero (index page) ---------- */
.hero {
  min-height: 100vh;
  padding: 10rem 3rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.hero-text h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.hero-text h1 em { font-style: italic; color: var(--accent); font-weight: 300; }

.hero-text .lede {
  font-size: 1.05rem;
  max-width: 34ch;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
  display: block;
}

.hero-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  transition: all 0.4s ease;
}
.hero-shop:hover { color: var(--accent); border-color: var(--accent); gap: 1.2rem; }

.hero-ornament {
  position: absolute;
  top: 13rem; right: 3rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  opacity: 0.6;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, transparent 40%, rgba(42, 36, 28, 0.1) 100%);
  pointer-events: none;
}

.hero-visual svg { width: 100%; height: 100%; display: block; }

.hero-visual-caption {
  position: absolute;
  bottom: 1.2rem; left: 1.4rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* ---------- Section intro ---------- */
.section-intro {
  padding: 7rem 3rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
}

.section-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.section-intro h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.section-intro h2 em { font-style: italic; color: var(--accent); }

/* ---------- Product list (index) ---------- */
.products { padding: 4rem 3rem 6rem; }

.product {
  display: grid;
  grid-template-columns: 0.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.4s ease;
}

.product:last-child { border-bottom: 1px solid var(--line); }

.product:hover { opacity: 1; }
.products:hover .product:not(:hover) { opacity: 0.55; }

.product-index {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  align-self: start;
  padding-top: 0.5rem;
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-image svg,
.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product:hover .product-image { transform: translateY(-6px); }

.product-info { padding: 0 1rem; }

.product-category {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.product-name {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

.product-name em { font-style: italic; color: var(--accent); }

.product-origin {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.product-description {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.product-price {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.product-price .cur { font-size: 0.8rem; vertical-align: super; margin-right: 0.1rem; color: var(--ink-soft); }

.product-cta {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
}
.product-cta:hover { color: var(--accent); border-color: var(--accent); }

/* reverse every other row */
.product:nth-child(even) { grid-template-columns: 1fr 1fr 0.4fr; }
.product:nth-child(even) .product-index { order: 3; text-align: right; }
.product:nth-child(even) .product-image { order: 2; }
.product:nth-child(even) .product-info { order: 1; text-align: right; }
.product:nth-child(even) .product-meta { flex-direction: row-reverse; }

/* ---------- Product detail page ---------- */
.product-page {
  padding: 8rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  min-height: 100vh;
  align-items: start;
}

.product-page-image {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  position: sticky;
  top: 7rem;
}

.product-page-image svg,
.product-page-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-page-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, transparent 50%, rgba(42, 36, 28, 0.08) 100%);
  pointer-events: none;
}

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

.detail-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.detail-name {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.detail-name em { font-style: italic; color: var(--accent); }

.detail-origin {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.detail-price {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}
.detail-price .cur { font-size: 1.1rem; vertical-align: super; margin-right: 0.15rem; color: var(--ink-soft); }

.detail-description {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

.detail-description p + p { margin-top: 1.2rem; }

.detail-specs {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.detail-specs h3 {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(200, 186, 160, 0.5);
  font-size: 0.92rem;
}

.spec-row:last-child { border-bottom: none; }

.spec-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
}

.spec-value { color: var(--ink); }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  transition: all 0.4s ease;
}
.detail-back:hover { color: var(--accent); border-color: var(--accent); gap: 1.2rem; }

/* ---------- Footer ---------- */
footer {
  background: #1A1612;
  color: #C8BAA0;
  padding: 4rem 3rem 2.5rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.footer-logomark {
  width: 60px;
  height: 30px;
  color: #FBF7EE;
}

.footer-logomark svg { width: 100%; height: 100%; display: block; }

.footer-company {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: #FBF7EE;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.footer-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0 0 2.5rem 0;
  max-width: 56ch;
}

.footer-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(244, 238, 226, 0.7);
}

.footer-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 238, 226, 0.85);
}

.footer-icon svg { width: 14px; height: 14px; }

.footer-details a {
  color: rgba(244, 238, 226, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-details a:hover { color: var(--accent); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 238, 226, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.45);
}

/* ---------- Page load fade-in (single, simple) ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

body { animation: pageIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* legacy class kept inert in case any element still has it */
.reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header { padding: 1.2rem 1.5rem; }
  nav ul { gap: 1.2rem; }
  nav a { font-size: 0.7rem; }

  .hero { grid-template-columns: 1fr; padding: 8rem 1.5rem 3rem; gap: 2rem; }
  .hero-ornament { display: none; }

  .section-intro { grid-template-columns: 1fr; padding: 5rem 1.5rem 2rem; gap: 1.5rem; }
  .products { padding: 2rem 1.5rem 4rem; }

  .product, .product:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
  .product:nth-child(even) .product-index,
  .product:nth-child(even) .product-image,
  .product:nth-child(even) .product-info { order: unset; text-align: left; }
  .product:nth-child(even) .product-meta { flex-direction: row; }
  .product-info { padding: 0; }

  .product-page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 7rem 1.5rem 3rem;
  }
  .product-page-image { position: static; }

  footer {
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
  }
  .footer-legal {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    align-items: center;
  }
}
