/* Typography & Base */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
body {
  --beige: #c7afa0;
  --deep-red: #9b1c1c;
  --ink: #111111;
  --paper: #f7efe9;
  font-family: "Newsreader", Georgia, serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 960px; margin: 0 auto; padding: 24px; }

/* Header */
.site-header { border-bottom: none; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: none; /* Make background transparent */
  border: none; /* Remove border */
  border-radius: 0; /* Remove border-radius */
  margin: 12px auto;
}

@media (max-width: 768px) { /* Adjust for mobile screens */
  .topbar {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the start for better mobile stacking */
    padding: 14px 16px; /* Adjust padding for smaller screens */
  }
  .brand-wordmark { font-size: 24px; margin-bottom: 8px; } /* Smaller font for mobile title */
  .remote {
    width: 100%; /* Full width for mobile remote */
    justify-content: space-between; /* Distribute items horizontally */
    margin-top: 8px; /* Space below title */
  }
}

.brand-wordmark { margin: 0; font-size: 28px; letter-spacing: 0.01em; text-transform: none; font-family: "Newsreader", Georgia, serif; font-weight: 700; }

/* Segmented controls in header (remote-style) */
.remote {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between segments */
  position: relative; 
}

.segment {
  display: inline-flex;
  align-items: center;
  background: #fff;
  gap: 6px;
  padding: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(17,17,17,0.2);
  transition: all 160ms ease; 
}

/* Language segment always visible */
.segment.lang {
  opacity: 1;
  pointer-events: auto;
  position: static; 
  transform: none; 
}

/* Navigation segment for Story/Stores */
.segment.nav-links {
  /* Always visible on mobile, hide/reveal on desktop */
  opacity: 1; 
  pointer-events: auto;
  transform: translateX(0); 
  width: auto; 
  overflow: visible; 
  white-space: nowrap;
  transition: none; /* No transition on mobile for immediate visibility */
}

@media (min-width: 769px) { /* Desktop styles for hover reveal */
  .segment.nav-links {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px); /* Slightly shift out to create sliding effect */
    width: 0; /* Collapse width to 0 */
    overflow: hidden; /* Hide content when width is 0 */
    transition: opacity 200ms ease, transform 200ms ease, width 200ms ease; /* Smooth transitions for these properties */
  }
  .remote:hover .segment.nav-links,
  .remote:focus-within .segment.nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0); /* Slide into view */
    width: auto; /* Allow natural width */
    min-width: fit-content; /* Ensure content fits */
  }
}

.segment .seg-btn, .segment .seg-link {
  text-decoration: none;
  border: 1px solid var(--deep-red);
  color: var(--deep-red);
  padding: 8px 12px;
  border-radius: 9999px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.segment .seg-btn.is-active, .segment .seg-btn:hover,
.segment .seg-link[aria-current="page"], .segment .seg-link:hover {
  background: var(--deep-red);
  color: #fff;
}

/* Hero (no h1, lede is the main intro) */
.hero h1 { display: none; }
.lede { color: #333; margin: 12px 0 0; font-size: 18px; hyphens: auto; }
.merch a { color: var(--deep-red); }

/* Article meta */
.article-meta { margin: 24px 0 8px; }
.article-title { font-family: "Newsreader", Georgia, serif; font-size: 44px; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
.article-byline { margin-top: 6px; color: #555; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-size: 14px; }
.article-byline a { color: var(--deep-red); text-decoration: none; }
.article-byline a:hover { text-decoration: underline; }

/* Story panes */
.story__pane { margin-top: 24px; }
.story__pane.is-hidden { display: none; }
.story-figure { margin: 16px 0; }
.story-figure img { width: 100%; height: auto; display: block; }
.story-figure img.aspect-4-5 { aspect-ratio: 4 / 5; object-fit: cover; }
.story-figure figcaption { font-size: 14px; color: #333; margin-top: 6px; }
.wrap-left, .wrap-right { max-width: 360px; }
.wrap-left { float: left; margin: 6px 18px 10px 0; }
.wrap-right { float: right; margin: 6px 0 10px 18px; }
.story p { text-wrap: pretty; }

/* Promo banner CTA */
.promo {
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 12px;
  padding: 12px;
  margin: 24px auto; /* Center the promo horizontally */
  max-width: 720px; /* Limit width to align with content */
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.15; /* Subtler background image */
  filter: grayscale(1);
  display: block;
}

.promo .promo-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  text-align: center;
  justify-content: center; /* Center content vertically */
  min-height: 180px; /* Ensure space for content */
}

.promo .promo-copy { font-family: "Newsreader", Georgia, serif; font-size: 1.25em; line-height: 1.5; max-width: 600px; margin: 0 auto; }
.promo .promo-copy strong { color: var(--deep-red); }

.promo .promo-btn {
  text-decoration: none;
  border: 1px solid var(--deep-red);
  color: #fff;
  background: var(--deep-red);
  padding: 12px 24px; /* Larger button */
  border-radius: 9999px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.1em; /* Larger font */
  justify-self: center; /* Center horizontally */
  align-self: center; /* Center horizontally in flex */
  margin-top: 10px; /* Space from copy */
}
.promo .promo-btn:hover { filter: brightness(0.9); }

/* Locations layout */
.layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .layout { grid-template-columns: 1.2fr 1fr; } }
.map { min-height: 420px; border: 1px solid rgba(17,17,17,0.18); }
.list { display: grid; gap: 16px; }
.list > h2 { margin: 18px 0 6px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #666; border-top: 1px solid rgba(17,17,17,0.08); padding-top: 10px; }

.card { border: 1px solid rgba(17,17,17,0.12); padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-radius: 8px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.address { font-size: 15px; color: #222; }
.address a { color: var(--ink); text-decoration: underline; }
.actions { margin-top: 6px; }
.actions a { color: var(--deep-red); text-decoration: underline; margin-right: 10px; font-weight: 600; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-size: 14px; }

/* Article meta */
.article-meta { margin: 24px 0 8px; }
.article-title { font-family: "Newsreader", Georgia, serif; font-size: 44px; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
.article-byline { margin-top: 6px; color: #555; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-size: 14px; }
.article-byline a { color: var(--deep-red); text-decoration: none; }
.article-byline a:hover { text-decoration: underline; }
.reviews { margin-top: 8px; color: #333; }
.review { margin: 0 0 6px; }

/* Footer */
.site-footer { border-top: 1px solid #111; padding: 16px 24px; color: #333; background: var(--paper); }
