:root {
  /* Official brand palette */
  --ink: #4a5a3a; /* Olive Green */
  --paper: #f8f7f2; /* Cream */
  --accent: #c45a3c; /* Terracotta */
  --caramel: #c68f4e;
  --dusty-rose: #d79b8f;
  --sage: #8a9b73; /* Sage Green */
  --sand: #d9d1c4;
  --leaf: #b46e3f; /* matches the leaf accent in the icon mark */
  --muted: #6b7260; /* derived muted olive-gray, for readable secondary text */
  --font-serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
}

/* Full-bleed dark background for the closing story bubble and design teasers */

.dark-zone {
  background: var(--ink);
  color: var(--paper);
  margin-bottom: -24px;
}

.dark-zone h2 {
  color: var(--paper);
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0 24px;
}

main {
  padding: 0 0 24px;
}

/* Standalone logo, shown just below the header on the light background */

.logo-showcase {
  text-align: center;
  padding: 32px 24px 8px;
}

.logo-showcase-img {
  height: 170px;
  width: auto;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  margin: 0 0 10px;
}

.free-shipping {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--muted);
}

.desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* Landing page hero + pre-order banner */

.hero {
  padding: 48px 24px 16px;
  text-align: center;
}

.preorder-banner {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--accent);
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 1.7rem;
  font-weight: bold;
  margin: 24px 0 32px;
}

/* Straddles the light/dark boundary: centered exactly on the section's top
   edge so half sits over the section above and half over this dark banner. */
.preorder-banner--split {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
}

/* Full-bleed dark story banners (Who we are / pre-order urgency) */

.story-banner {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 80px 24px 56px;
  text-align: center;
}

.story-banner .wrap {
  max-width: 720px;
}

.story-banner h1 {
  margin: 0 0 16px;
  color: var(--paper);
}

.story-banner p {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
}

.story-banner p:last-child {
  margin-bottom: 0;
}

/* Two-column story section with a vertical divider, on the light background */

.story-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 24px 72px;
}

.story-column p {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.story-divider {
  width: 2px;
  align-self: stretch;
  background: var(--ink);
}

@media (max-width: 700px) {
  .story-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-divider {
    width: 100%;
    height: 2px;
  }
}

/* Story bubbles */

.story-bubble {
  border: 2px solid var(--muted);
  border-radius: 20px;
  background: #fff;
  padding: 28px 32px;
  margin: 0 0 24px;
  text-align: left;
}

.story-bubble p {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.story-bubble p:last-child {
  margin-bottom: 0;
}

.story-bubble--leaf {
  border-color: var(--leaf);
  background: rgba(180, 110, 63, 0.18);
  text-align: center;
}

.story-bubble--leaf p {
  color: var(--paper);
}

.preorder-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Landing page design teasers */

.teaser-section {
  padding: 24px 24px 48px;
}

.teaser-section h2 {
  text-align: center;
  margin-bottom: 24px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.teaser-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.teaser-card:hover {
  transform: translateY(-3px);
}

.teaser-card img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 12px;
  border-radius: 6px;
}

.teaser-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

/* Individual product page */

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 24px;
  align-items: flex-start;
}

.product-gallery {
  flex: 1 1 320px;
  max-width: 400px;
}

.product-gallery img {
  width: 100%;
  border-radius: 10px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  flex: 1;
  padding: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.gallery-thumb.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.product-detail-info {
  flex: 1 1 280px;
  max-width: 360px;
}

.product-detail-info h1 {
  margin: 0 0 8px;
}

.not-found {
  text-align: center;
  padding: 60px 24px;
}

.buy-btn {
  display: inline-block;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: none;
  padding: 12px 0;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.buy-btn:hover {
  background: var(--accent);
}

.buy-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 36px;
}

.site-footer {
  background: var(--ink);
  text-align: center;
  padding: 24px 0;
  color: rgba(248, 247, 242, 0.7);
  font-size: 0.8rem;
}

/* Header + cart button */

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-icon {
  display: inline-flex;
}

.header-icon img {
  height: 56px;
  width: auto;
}

.cart-btn {
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
}

.cart-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Shop dropdown */

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 4px;
}

.nav-link {
  color: var(--paper);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 4px;
}

.nav-link:hover {
  color: var(--accent);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  overflow: hidden;
  z-index: 40;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--paper);
}

/* Size selector on product cards */

.size-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
  margin-bottom: 4px;
}

.size-select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

/* Cart drawer */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-header h2 {
  margin: 0;
}

.cart-header button {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: bold;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.qty-input {
  width: 48px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.cart-total {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.checkout-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

/* Success / cancel pages */

.status-page {
  max-width: 480px;
  margin: 100px auto;
  text-align: center;
  padding: 0 24px;
}

.status-page h1 {
  margin-bottom: 12px;
}

.status-page a {
  color: var(--ink);
  font-weight: bold;
}

/* Donate page */

.donate-section {
  max-width: 480px;
  padding: 48px 24px;
  text-align: center;
}

.donate-label {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 16px;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.donate-amount-btn {
  padding: 14px 0;
  border: 2px solid var(--muted);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.donate-amount-btn:hover {
  border-color: var(--accent);
}

.donate-amount-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.donate-custom-row {
  display: flex;
  align-items: center;
  border: 2px solid var(--muted);
  border-radius: 10px;
  padding: 0 16px;
  margin-bottom: 32px;
}

.donate-dollar-sign {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--muted);
  margin-right: 8px;
}

.donate-custom-input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--ink);
  background: none;
}

.donate-custom-input:focus {
  outline: none;
}

/* Narrow screens: shrink the standalone logo a bit */

@media (max-width: 480px) {
  .logo-showcase-img {
    height: 120px;
  }

  .preorder-banner {
    font-size: 1rem;
    padding: 10px 18px;
  }

  .preorder-banner--split {
    width: 88%;
  }

  .donate-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}
