@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;1,6..96,400;1,6..96,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Cedarville+Cursive&display=swap');

/* ── Variables ── */
:root {
  --ink:        #1A1208;
  --ink-mid:    #4A3720;
  --ink-light:  #7A6040;
  --parchment:  #F5F0E4;
  --parchment2: #EDE5CC;
  --parchment3: #D9CEAE;
  --rule:       #B8A07A;
  --accent:     #6B3A1F;
  --white:      #FDFAF4;
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Libre Baskerville', Georgia, serif;
  --font-logo:    'Cedarville Cursive', cursive;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header / Nav ── */
header {
  background: var(--ink);
  border-bottom: 3px double var(--rule);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}
.logo-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-logo);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--parchment);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rule);
  font-style: italic;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--parchment);
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment2);
  padding: 0.45rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover, nav a.active { color: var(--parchment); border-bottom-color: var(--rule); text-decoration: none; }
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-family: var(--font-body);
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ── Page wrapper ── */
main { flex: 1; }
.page { display: none; }
.page.active { display: block; }

/* ── Hero ── */
.hero {
  background: var(--ink);
  color: var(--parchment);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  border-bottom: 4px double var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(184,160,122,0.04) 3px,
    rgba(184,160,122,0.04) 4px
  );
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rule);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--rule);
  margin-bottom: 1.5rem;
}
.hero p {
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  color: var(--parchment2);
  line-height: 1.8;
}
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1.5px solid var(--rule);
  color: var(--parchment);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--rule); color: var(--ink); text-decoration: none; }
.btn-dark {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-mid); border-color: var(--ink-mid); }

/* ── Section wrappers ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.section-rule {
  width: 60px; height: 2px;
  background: var(--rule);
  margin: 0 auto 2.5rem;
}
.ornament { text-align: center; color: var(--rule); letter-spacing: 8px; font-size: 1rem; margin: 1rem 0; }

/* ── Feature strips on landing ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--parchment2);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.feature-card .icon { font-size: 1.6rem; margin-bottom: 0.75rem; color: var(--accent); }
.feature-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--ink-mid); line-height: 1.6; }

/* ── Products page ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--rule);
}
.product-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
  background: var(--parchment3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.product-main-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-light); font-family: var(--font-display);
  aspect-ratio: 4/3;
  background: var(--parchment3);
  border-bottom: 1px solid var(--rule);
  cursor: zoom-in;
}
.thumb-row {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--parchment2);
  border-bottom: 1px solid var(--rule);
}
.thumb {
  width: calc(16.666% - 5px);
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
  border: 1.5px solid transparent;
  transition: border-color 0.15s;
  background: var(--parchment3);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--accent); }
.thumb-placeholder {
  width: calc(16.666% - 5px);
  aspect-ratio: 1;
  background: var(--parchment3);
  border: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: var(--ink-light); text-align: center;
  cursor: default;
}
.product-info { padding: 1rem 1.1rem 1.25rem; }
.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.product-desc { font-size: 0.82rem; color: var(--ink-mid); margin-bottom: 0.75rem; line-height: 1.6; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.product-controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.qty-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); }
select.qty-select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--rule);
  background: var(--parchment);
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}
.btn-add {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  background: var(--ink);
  color: var(--parchment);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-add:hover { background: var(--accent); }
.btn-clear {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: var(--ink-light);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-clear:hover { background: var(--parchment3); color: var(--ink); }
.added-badge {
  font-size: 0.72rem;
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  display: none;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,14,6,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 2px solid var(--rule); }
.lightbox-close {
  position: absolute; top: -12px; right: -12px;
  background: var(--ink); color: var(--parchment);
  border: 1px solid var(--rule);
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}

/* ── About page ── */
.about-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.about-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--rule);
  float: right;
  margin: 0 0 1.5rem 2rem;
  background: var(--parchment3);
  display: flex; align-items: center; justify-content: center;
}
.about-photo-placeholder {
  width: 160px; height: 160px;
  background: var(--parchment3);
  border: 2px solid var(--rule);
  float: right;
  margin: 0 0 1.5rem 2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-light); text-align: center; padding: 1rem;
  font-family: var(--font-display);
}
.about-wrap p { margin-bottom: 1.1rem; font-size: 0.95rem; line-height: 1.8; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ── Downloads page ── */
.downloads-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; max-width: 680px; margin: 0 auto; }
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.9rem 1.1rem;
  transition: background 0.15s;
}
.download-item:hover { background: var(--parchment2); }
.dl-icon { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }
.dl-desc { font-size: 0.8rem; color: var(--ink-mid); }
.dl-link {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s;
}
.dl-link:hover { background: var(--parchment3); text-decoration: none; }
.dl-placeholder {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Cart page ── */
.cart-wrap { max-width: 760px; margin: 0 auto; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty p { font-size: 1rem; color: var(--ink-mid); margin-bottom: 1.5rem; font-style: italic; font-family: var(--font-display); }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 2px solid var(--rule);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.cart-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--parchment3);
  font-size: 0.88rem;
  vertical-align: middle;
}
.cart-table td:last-child { text-align: right; }
.cart-remove {
  background: none; border: none; cursor: pointer;
  color: var(--ink-light); font-size: 1rem; padding: 0 4px;
  transition: color 0.15s;
}
.cart-remove:hover { color: var(--accent); }
.cart-totals { text-align: right; margin-bottom: 2rem; }
.cart-totals table { margin-left: auto; min-width: 280px; }
.cart-totals td { padding: 0.3rem 0.5rem; font-size: 0.9rem; }
.cart-totals td:first-child { color: var(--ink-mid); }
.cart-totals td:last-child { font-weight: 700; text-align: right; }
.cart-totals .total-row td { border-top: 2px solid var(--rule); padding-top: 0.6rem; font-family: var(--font-display); font-size: 1rem; }

.shipping-select-wrap { margin-bottom: 2rem; }
.shipping-select-wrap label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--ink-mid);
}
select.shipping-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  background: var(--parchment);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  width: 100%; max-width: 320px;
  cursor: pointer;
}

/* Contact form */
.form-section { border-top: 2px double var(--rule); padding-top: 2rem; margin-top: 1rem; }
.form-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--ink-mid);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-family: var(--font-display);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-actions { margin-top: 1.75rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.paypal-note { font-size: 0.78rem; color: var(--ink-mid); font-style: italic; }

.btn-paypal {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  background: #003087;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-paypal:hover { background: #001f5e; }

.order-success {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
}
.order-success h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; }
.order-success p { color: var(--ink-mid); font-size: 0.9rem; max-width: 480px; margin: 0 auto 1.5rem; }

/* ── Footer ── */
footer {
  background: var(--ink);
  border-top: 3px double var(--rule);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}
.footer-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--rule);
  margin-bottom: 1rem;
}
footer p { font-size: 0.82rem; color: var(--parchment3); margin-bottom: 0.25rem; }
footer a { color: var(--rule); }
footer a:hover { color: var(--parchment); }
.footer-copy { font-size: 0.72rem; color: var(--ink-light); margin-top: 1rem; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--rule);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-style: italic;
  z-index: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-top: 1px solid var(--ink-mid);
    padding: 0.5rem 0 1rem;
    gap: 0;
  }
  nav.open { display: flex; }
  nav a { padding: 0.7rem 1.5rem; border-bottom: none; width: 100%; }
  header { position: relative; }
  .header-inner { flex-wrap: wrap; }
  .about-photo-placeholder { float: none; margin: 0 auto 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
  .products-grid { grid-template-columns: 1fr; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
}
