:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #541e2d;
  --bg-surface-soft: #632435;
  --bg-champagne: #e8d5a8;
  --text-primary: #fff5e8;
  --text-muted: #e6cec0;
  --text-dark: #3b0d1a;
  --accent-primary: #e8d5a8;
  --border-subtle: #732a3f;
  --shadow-offset: 4px 4px 0 #19040a;
  --font-stack: "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1180px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--bg-champagne);
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border: 2px solid var(--text-dark);
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Top Culture Tagline */
.editorial-ticker {
  background-color: #270710;
  color: var(--accent-primary);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

/* Header & Brand (Non-sticky, strictly left-aligned brand) */
.site-header {
  position: static;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  margin: 0;
  text-align: left;
  flex-shrink: 0;
}

.brand-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  border-radius: 0;
}

/* Layout Containers & Sections */
main {
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.5rem;
}

.lead-hero-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(2rem, 5vw, 4.5rem) 1.5rem;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

h1, .h1-lead {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.18;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.p-lead {
  font-size: 1.1875rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Hero Media with Overlaid Champagne Fact Box */
.hero-media-wrap {
  position: relative;
  min-height: 380px;
}

.hero-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-subtle);
}

.hero-fact-square {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background-color: var(--bg-champagne);
  color: var(--text-dark);
  padding: 1.5rem;
  max-width: 320px;
  box-shadow: var(--shadow-offset);
  border: 1px solid #c9b582;
}

.hero-fact-square h3 {
  color: var(--text-dark);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.fact-list {
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.45;
}

.fact-list li {
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  position: relative;
}

.fact-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Almanac Diagonal Section Bands */
.section-band {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.band-clipped-deep {
  background-color: var(--bg-surface);
  clip-path: polygon(0 2.5vw, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
  margin: 2vw 0;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.band-clipped-reverse {
  background-color: var(--bg-surface-soft);
  clip-path: polygon(0 0, 100% 2.5vw, 100% 100%, 0 calc(100% - 2.5vw));
  margin: 2vw 0;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

/* Two-Column Editorial Grids */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.editorial-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Cards with Round Overlapping Champagne Badge */
.almanac-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.card-media-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #270710;
}

.card-media-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.round-badge {
  position: absolute;
  bottom: -18px;
  left: 1.25rem;
  background-color: var(--bg-champagne);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #19040a;
  z-index: 2;
}

.card-body {
  padding: 2rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body p:last-of-type {
  margin-bottom: auto;
}

.card-footer-link {
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Country Comparison Table */
.table-scroll-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.country-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 620px;
}

.country-table th,
.country-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.country-table th {
  background-color: #2a0812;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.country-table tr:last-child td {
  border-bottom: none;
}

.country-table td strong {
  color: var(--accent-primary);
}

/* Plain Stacked FAQ Items */
.faq-stack {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
}

.faq-card h3 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Solid Champagne Action Buttons */
.btn-champagne {
  display: inline-block;
  background-color: var(--bg-champagne);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-offset);
  border: 2px solid var(--text-dark);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-align: center;
}

.btn-champagne:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #19040a;
}

.btn-champagne:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 transparent;
}

/* Form & Drafting Workspace */
.query-workspace {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: #270710;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.output-preview {
  margin-top: 2rem;
  background-color: #22060e;
  border: 1px dashed var(--accent-primary);
  padding: 1.5rem;
}

.output-preview h4 {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.preview-box {
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #170308;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.status-msg {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Footer (Domain, legal name, registered address, © 2026) */
.site-footer {
  background-color: #21050d;
  border-top: 2px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: var(--accent-primary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3d0d1a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-fact-square {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
  .editorial-split {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2e0813;
    border-bottom: 2px solid var(--border-subtle);
    padding: 1.5rem;
    z-index: 99;
  }
  .site-nav.is-active {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .site-header {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
