:root {
  --sidebar-w: 300px;
  --ink-navy: #0b1a29;
  --nav-text: #c9b48a;
  --cream: #faf6ea;
  --cream-dark: #f0ead8;
  --brown: #6b4423;
  --brown-deep: #4a2f18;
  --gold: #d98a3e;
  --gold-deep: #b9762c;
  --line: #ddd6c2;
  --wicked-pink: #e8127a;
  --wicked-teal: #28c9c9;
  --wicked-yellow: #ffe000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Newsreader', serif;
  background: var(--cream);
  color: var(--brown-deep);
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 300;
  background: var(--ink-navy);
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--ink-navy);
  color: var(--nav-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  overflow-y: auto;
  z-index: 100;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--gold);
}

.brand-emblem {
  width: 100%;
  margin: 0;
  height: auto;
  display: block;
  background-color: var(--ink-navy);
}

.divider {
  border: none;
  border-top: 1px solid #26364a;
  margin: 22px 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-bottom: 16px;
}

.main-nav a {
  font-family: 'Libre Caslon Text', serif;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.sidebar-bottom {
  margin-top: 40px;
}

.legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-links li {
  margin-bottom: 6px;
}

.legal-links a {
  font-family: 'Newsreader', serif;
  color: #7f8fa3;
  text-decoration: underline;
  font-size: 12px;
  line-height: 1.6;
}

.legal-links a:hover { color: var(--nav-text); }

.nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: var(--ink-navy);
  color: var(--gold);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Content ---------- */

.content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.hero {
  padding: 48px 60px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 560px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #e9e3d4;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.hero-image.is-visible {
  transform: translateX(0);
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 10px;
}

.hero-arrow {
  width: 9px;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
}

.hero-arrow-prev::before {
  transform: rotate(135deg) translate(1px, 1px);
}

.hero-arrow-next::before {
  transform: rotate(-45deg) translate(1px, 1px);
}

.hero-arrow:hover {
  opacity: 1;
  transform: scale(1.15);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #d5cdb6;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dots button.active {
  background: var(--brown);
  transform: scale(1.25);
}

.flavor-caption {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--brown);
  font-size: 24px;
  line-height: 1.3;
  min-height: 60px;
}

.flavor-line-tag {
  font-family: 'Space Mono', monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 10px;
  color: #fff;
  background: var(--brown);
  vertical-align: middle;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 30px 60px;
}

.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 60px;
  scroll-margin-top: 80px;
}

.philosophy-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.philosophy-kicker {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #8a8577;
  font-size: 17px;
  margin: 0 0 4px;
}

.philosophy-title {
  font-family: 'Libre Caslon Text', serif;
  color: var(--brown-deep);
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 20px;
}

.philosophy-text p {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--brown-deep);
  margin: 0 0 18px;
}

.philosophy-text em {
  color: var(--gold-deep);
  font-style: italic;
}

.purpose {
  padding: 20px 60px 70px;
  text-align: center;
  scroll-margin-top: 70px;
}

.purpose h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--brown);
  font-size: 48px;
  margin: 10px 0;
}

.purpose h2 {
  font-family: 'Libre Caslon Text', serif;
  color: var(--brown);
  font-size: 26px;
  font-weight: 400;
  margin: 6px 0 30px;
}

.word-swap {
  position: relative;
  display: inline-block;
  text-align: left;
  vertical-align: top;
}

.word-layer {
  display: block;
  transition: opacity 0.3s ease-in-out;
  white-space: nowrap;
}

.word-base {
  opacity: 1;
}

.word-hover {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.word-swap.active .word-base {
  opacity: 0;
}

.word-swap.active .word-hover {
  opacity: 1;
}

.purpose-copy {
  max-width: 640px;
  margin: 0 auto 46px;
  line-height: 1.8;
  color: var(--brown-deep);
  font-size: 14px;
}

.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 44px;
}

.category {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}

.category-circle img { width: 100%; height: 100%; display: block; object-fit: cover; }

.category:hover .category-circle {
  transform: translateY(-6px) scale(1.03);
}

.category-label {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown);
}

/* ---------- Page sections ---------- */

.page-section {
  padding: 40px 60px 70px;
  max-width: 760px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.page-section.alt {
  background: var(--cream-dark);
  max-width: 100%;
}

.page-section.alt > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: 'Libre Caslon Text', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brown);
  font-size: 22px;
  margin: 0 0 20px;
}

.page-section p {
  line-height: 1.9;
  font-size: 14.5px;
  color: var(--brown-deep);
}

.page-section .flavor-list {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--gold-deep);
  font-size: 28px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 26px;
}

.line-kicker {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--gold-deep);
  margin-top: -12px;
  margin-bottom: 22px;
}

.section-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.section-note a {
  color: var(--gold-deep);
  text-decoration: underline;
  white-space: nowrap;
}

.section-note a:hover {
  color: var(--brown);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74,47,24,0.12);
}

.page-section.alt .product-card {
  background: var(--cream);
}

.product-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  background: transparent;
  border-style: dashed;
}

.placeholder-text {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: var(--gold-deep);
  opacity: 0.7;
  margin: 0;
}

.product-card h3 {
  font-family: 'Libre Caslon Text', serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--brown);
  margin: 0 0 6px;
}

.product-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-deep);
  margin: 0 0 12px;
}

.product-quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--brown-deep);
  margin: 0;
  line-height: 1.6;
}

.product-card .product-note {
  font-family: 'Space Mono', monospace;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--gold-deep);
  opacity: 0.85;
  margin: 0;
  line-height: 1.6;
}

/* Origin — teaser */

.origin-section .section-title { color: var(--ink-navy); }

.origin-teaser {
  background: var(--ink-navy);
  color: #cdd7e2;
  border-radius: 4px;
  padding: 30px 34px;
}

.origin-teaser p {
  color: #cdd7e2;
}

.origin-teaser p:last-child { margin-bottom: 0; }

.origin-teaser-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 22px;
}

.origin-teaser-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Wicked — pop art */

.wicked-section .section-title { color: var(--wicked-pink); }

.wicked-grid .wicked-card {
  background: var(--ink-navy);
  border: 2px solid var(--wicked-yellow);
  position: relative;
  overflow: hidden;
}

.wicked-card h3 {
  color: var(--wicked-yellow);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wicked-card .product-sub { color: var(--wicked-teal); }

.wicked-card .product-quote { color: #f2eee2; font-style: normal; }

.contact.page-section {
  max-width: 1040px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px 48px 28px;
  box-shadow: 0 10px 30px rgba(74,47,24,0.06);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--brown-deep);
  margin: 0 0 20px;
}

.contact-info p {
  line-height: 1.7;
  font-size: 15px;
  color: var(--brown-deep);
  margin: 0 0 12px;
}

.contact-intro {
  margin-top: 65px;
  margin-bottom: auto;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail-label {
  font-family: 'Libre Caslon Text', serif;
  font-size: 20px;
  color: var(--brown);
}

.contact-detail a {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  color: var(--gold-deep);
  text-decoration: underline;
}

.contact-detail a:hover {
  color: var(--brown);
}

.contact-social {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-navy);
  color: var(--gold);
  transition: background 0.2s, transform 0.2s;
}

.contact-social a:hover {
  background: var(--brown);
  transform: translateY(-2px);
}

.contact-social svg {
  width: 16px;
  height: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--brown);
}

.contact-field input,
.contact-field textarea {
  font-family: 'Newsreader', serif;
  font-size: 15px;
  color: var(--brown-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.contact-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Newsreader', serif;
  font-size: 14px;
  color: var(--brown-deep);
  cursor: pointer;
}

.contact-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brown);
}

.contact-checkbox a {
  color: var(--gold-deep);
  text-decoration: underline;
}

.contact-checkbox a:hover {
  color: var(--brown);
}

.contact-submit {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: #fff;
  background: var(--brown-deep);
  border: none;
  border-radius: 4px;
  padding: 13px 34px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s;
}

.contact-submit:hover {
  background: var(--brown);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-honeypot {
  display: none;
}

.contact-form-status {
  font-family: 'Newsreader', serif;
  font-size: 14px;
  margin: 0;
  min-height: 0;
}

.contact-form-status.success { color: #3f7a4e; }
.contact-form-status.error { color: #b3402a; }

.site-footer {
  font-family: 'Space Mono', monospace;
  text-align: center;
  padding: 30px;
  font-size: 11px;
  color: #6b6350;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0 0 6px; }
.site-footer p:last-child { margin-bottom: 0; }

/* ---------- Product detail pages ---------- */

.product-page-section {
  max-width: 1000px;
}

.back-link {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--gold-deep);
  text-decoration: none;
  margin-bottom: 28px;
}

.back-link:hover { color: var(--brown); }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.product-hero-media img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(74,47,24,0.12);
}

.product-status {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.product-hero h1 {
  font-family: 'Libre Caslon Text', serif;
  color: var(--brown-deep);
  font-size: 32px;
  margin: 0 0 12px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
}

.product-badge.virtue { background: #ece4d2; color: #4a2f18; }
.product-badge.tribute { background: #f3e3c9; color: #5c2016; }
.product-badge.wicked { background: var(--ink-navy); color: #ffe000; border: 1px solid #ffe000; }

.product-description {
  line-height: 1.85;
  font-size: 14.5px;
  color: var(--brown-deep);
  margin: 0 0 24px;
}

.product-quote-block {
  border-left: 3px solid var(--gold-deep);
  padding-left: 16px;
  font-style: italic;
  color: var(--brown);
  margin: 0 0 28px;
}

.product-cta {
  display: inline-block;
  background: var(--ink-navy);
  color: var(--gold);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.product-cta:hover { background: #1c2e44; }

@media (max-width: 640px) {
  .product-hero {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .hero, .purpose, .page-section, .philosophy {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-divider {
    margin-left: 24px;
    margin-right: 24px;
  }

  .purpose h1 { font-size: 32px; }

  .flavor-caption { font-size: 16px; }
  .flavor-line-tag { font-size: 9px; padding: 2px 8px; margin-right: 8px; }

  .philosophy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .philosophy-title { font-size: 30px; }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-title { font-size: 32px; }
}
