:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #501d2b;
  --bg-surface-hover: #622435;
  --text-primary: #fff6e7;
  --text-muted: #d9c5b2;
  --accent-primary: #e8d5a8;
  --accent-secondary: #c9a96e;
  --border-subtle: rgba(232, 213, 168, 0.35);
  --border-strong: #e8d5a8;
  --shadow-hard: 4px 4px 0px #1f050c;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  padding: 24px;
  min-height: 100vh;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-frame {
  border: 1px solid var(--border-subtle);
  max-width: 1360px;
  margin: 0 auto;
  background-color: var(--bg-canvas);
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.65rem;
}

p {
  margin-bottom: 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

/* Header & Tagline */
.tagline-bar {
  background-color: #2a0812;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-canvas);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-primary);
  background-color: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

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

.menu-dots-btn {
  display: none;
  background: var(--bg-surface);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero Section */
.hero-viewport {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.1) brightness(0.65);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59,13,26,0.55) 0%, rgba(59,13,26,0.88) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--accent-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 16px;
  background-color: rgba(59, 13, 26, 0.75);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Buttons */
.btn-champagne {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #2a0812;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.btn-champagne:hover {
  color: #1f050c;
  background-color: #f3e4be;
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #1f050c;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-primary);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, color 0.2s ease;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Main Wrapper & Sections */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-block {
  margin-bottom: 72px;
}

.section-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.badge-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

/* Bento Grid & Tiles */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

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

.flat-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flat-tile:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-hover);
}

.tile-img-wrap {
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.tile-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background-color: #2f0914;
  border-top: 1px solid var(--border-subtle);
}

.tile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  object-fit: cover;
  flex-shrink: 0;
}

/* Café Directory Rows */
.cafe-directory {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cafe-row {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 24px;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.cafe-row:hover {
  border-color: var(--border-strong);
}

.cafe-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
}

/* History Ribbons */
.history-ribbon-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.history-ribbon {
  display: grid;
  grid-template-columns: 140px 1fr;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.history-ribbon:hover {
  border-color: var(--border-strong);
}

.ribbon-year {
  background-color: #2a0812;
  border-right: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.ribbon-body {
  padding: 24px;
}

/* Weekend Checklist */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.checklist-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.checklist-item:hover {
  border-color: var(--border-strong);
}

.checklist-item input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Long-form Prose & Reading Width */
.prose-article {
  max-width: 70ch;
  margin: 0 auto;
}

.prose-article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.prose-article h3 {
  margin-top: 1.75rem;
}

.prose-article ul, .prose-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.editorial-callout {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  padding: 24px;
  margin: 28px 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #2a0812;
  color: var(--accent-primary);
  font-family: var(--font-serif);
  font-weight: normal;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.faq-item:hover, .faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.4rem;
}

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

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* Contact Composer */
.composer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--accent-primary);
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: #2a0812;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--accent-primary);
}

.preview-box {
  background-color: #2a0812;
  border: 1px solid var(--border-subtle);
  padding: 20px;
  font-family: monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
  min-height: 220px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #2a0812;
  padding: 48px 24px 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-heading {
  font-family: var(--font-serif);
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bento-span-8, .bento-span-6, .bento-span-4 {
    grid-column: span 6;
  }
  .cafe-row {
    grid-template-columns: 180px 1fr;
  }
  .cafe-row-meta {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .tagline-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .menu-dots-btn {
    display: inline-block;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a0812;
    border-bottom: 1px solid var(--border-strong);
    padding: 20px 24px;
    z-index: 50;
  }
  .primary-nav.nav-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .bento-span-8, .bento-span-6, .bento-span-4 {
    grid-column: span 12;
  }
  .cafe-row {
    grid-template-columns: 1fr;
  }
  .cafe-row-meta {
    grid-column: span 1;
  }
  .history-ribbon {
    grid-template-columns: 1fr;
  }
  .ribbon-year {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 20px;
  }
  .composer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding: 6px;
  }
  .main-container {
    padding: 32px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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