:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #521e2d;
  --bg-surface-hover: #5f2435;
  --text-primary: #fff5df;
  --text-muted: #dccbb5;
  --accent-primary: #e8d5a8;
  --accent-secondary: #c9b382;
  --border-subtle: #936e60;
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Slim Header: Brand strictly far-left, not sticky */
header.site-header {
  position: relative;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand-title {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
}

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

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

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 1.25rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  line-height: 1;
}

/* Ambient Radial Gradients */
.ambient-bg {
  position: relative;
  background-image: radial-gradient(circle at 85% 15%, rgba(232, 213, 168, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 10% 90%, rgba(232, 213, 168, 0.05) 0%, transparent 50%);
}

/* Hero Section */
.hero-burgundy {
  padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(2.5rem, 5vw, 4.5rem);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(170deg, #3b0d1a 0%, #4a1725 60%, #310813 100%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-burgundy h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-primary);
  text-shadow: 0 0 25px rgba(232, 213, 168, 0.25);
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero-lede {
  max-width: 68ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Button & Link Styles */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #3b0d1a;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #fff5df;
  color: #2b0610;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 213, 168, 0.25);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-primary);
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: #fff;
}

/* Bento Grid System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4.5rem) 1.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }

.bento-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bento-tile:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--accent-primary);
}

.tile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.bento-tile h2, .bento-tile h3 {
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.bento-tile p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

/* Strictly square imagery */
.tile-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.thumb-img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Icon-led list rows with thin champagne dividers */
.divided-rows {
  list-style: none;
  width: 100%;
}

.divided-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(232, 213, 168, 0.25);
}

.divided-row:first-child {
  padding-top: 0.25rem;
}

.divided-row:last-child {
  border-bottom: none;
}

.circle-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.row-content h4, .row-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.row-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.tag-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

/* Reading Measures for Editorial Long-form */
.editorial-article {
  max-width: 72ch;
  margin: 0 auto;
}

.editorial-article h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

.editorial-article h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.editorial-article p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.editorial-article ul {
  padding-left: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.editorial-article li {
  margin-bottom: 0.5rem;
}

/* Responsive Table Wrapper */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
  background-color: var(--bg-surface);
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 580px;
}

table.comparison-table th,
table.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(147, 110, 96, 0.4);
}

table.comparison-table th {
  background-color: #431522;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

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

/* FAQ Accordion Details */
details.faq-item {
  border-bottom: 1px solid rgba(232, 213, 168, 0.25);
  padding: 1.25rem 0;
}

details.faq-item:first-of-type {
  border-top: 1px solid rgba(232, 213, 168, 0.25);
}

details.faq-item summary {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-primary);
  line-height: 1;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item .faq-answer {
  padding-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact Message Drafting Utility */
.draft-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

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

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

.preview-box {
  background-color: #2e0914;
  border: 1px dashed var(--border-subtle);
  padding: 1rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text-muted);
  min-height: 100px;
}

.action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Footer Section */
footer.site-footer {
  background-color: #2b0712;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(147, 110, 96, 0.3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll Animation Observer Class */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4 {
    grid-column: span 12;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.4rem 0;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}