/* ============================================
   CARRY BEANS — Coffee Culture Magazine
   Design System
   ============================================ */

:root {
  /* Color Palette */
  --espresso: #3B2417;
  --cream-foam: #F5EDE0;
  --copper: #B87333;
  --copper-light: #C98843;
  --copper-dark: #9E6228;
  --sage: #7A8B5C;
  --sage-light: #8B9C6D;
  --sage-dark: #647248;
  --warm-white: #FBF8F3;
  --text: #2D1B0F;
  --text-muted: #6B5A4E;
  --border: #E8DDD0;
  --shadow: rgba(59, 36, 23, 0.08);
  --shadow-md: rgba(59, 36, 23, 0.15);
  --shadow-lg: rgba(59, 36, 23, 0.22);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--copper-dark);
}

ul, ol {
  list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--espresso);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: var(--space-sm); }

/* ============================================
   LAYOUT UTILITY
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.text-center { text-align: center; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.02em;
}

.brand-name span {
  color: var(--copper);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--copper);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  margin: 5px auto;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    gap: var(--space-md);
    box-shadow: -4px 0 30px var(--shadow-lg);
    transition: right var(--transition);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu a {
    font-size: 1.1rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--espresso);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,36,23,0.8) 0%, rgba(59,36,23,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0;
  max-width: 650px;
}

.hero-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper-light);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.hero h1 {
  color: var(--warm-white);
  margin-bottom: var(--space-md);
}

.hero-text {
  color: rgba(251, 248, 243, 0.85);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--copper);
  color: var(--warm-white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--warm-white);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(251, 248, 243, 0.5);
}

.btn-outline:hover {
  border-color: var(--copper-light);
  color: var(--copper-light);
}

.btn-dark {
  background: var(--espresso);
  color: var(--warm-white);
}

.btn-dark:hover {
  background: var(--text);
  color: var(--warm-white);
}

.btn-sage {
  background: var(--sage);
  color: var(--warm-white);
}

.btn-sage:hover {
  background: var(--sage-dark);
  color: var(--warm-white);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: block;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FEATURED ARTICLE (HOMEPAGE)
   ============================================ */

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 40px var(--shadow-md);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content .section-label {
  margin-bottom: var(--space-sm);
}

.featured-content h2 {
  margin-bottom: var(--space-md);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.featured-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .featured {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ARTICLE CARDS GRID
   ============================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.article-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px var(--shadow-md);
}

.article-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-body {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.article-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.article-card-title a {
  color: var(--espresso);
}

.article-card-title a:hover {
  color: var(--copper);
}

.article-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-card-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ============================================
   ORIGIN SPOTLIGHT
   ============================================ */

.origin-spotlight {
  background: var(--cream-foam);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.origin-spotlight-image {
  min-height: 400px;
  overflow: hidden;
}

.origin-spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-spotlight-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.origin-spotlight-content h2 {
  margin-bottom: var(--space-md);
}

.origin-spotlight-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.origin-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.origin-stat {
  text-align: left;
}

.origin-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper);
  display: block;
}

.origin-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .origin-spotlight {
    grid-template-columns: 1fr;
  }
  .origin-spotlight-image {
    min-height: 250px;
  }
}

/* ============================================
   GEAR CORNER
   ============================================ */

.gear-section {
  background: var(--espresso);
  color: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.gear-section h2 {
  color: var(--warm-white);
}

.gear-section p {
  color: rgba(251, 248, 243, 0.75);
}

.gear-section .section-label {
  color: var(--copper-light);
}

.gear-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/2;
}

.gear-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gear-list {
  list-style: none;
  margin: var(--space-md) 0;
}

.gear-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(251, 248, 243, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(251, 248, 243, 0.85);
}

.gear-list li::before {
  content: '◆';
  color: var(--copper-light);
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .gear-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BREWING TECHNIQUE VISUAL
   ============================================ */

.brew-techniques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.brew-card {
  background: var(--cream-foam);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--transition);
}

.brew-card:hover {
  transform: translateY(-4px);
}

.brew-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.brew-card h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.3rem;
}

.brew-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.brew-card .brew-time {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--copper);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   NEWSLETTER STRIP
   ============================================ */

.newsletter {
  background: var(--sage);
  color: var(--warm-white);
  text-align: center;
  padding: var(--space-xl) 0;
}

.newsletter h2 {
  color: var(--warm-white);
  margin-bottom: var(--space-sm);
}

.newsletter p {
  color: rgba(251, 248, 243, 0.85);
  max-width: 500px;
  margin: 0 auto var(--space-md);
}

.newsletter-form {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  gap: var(--space-xs);
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 0.85rem 1.5rem;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ============================================
   ARTICLE PAGE LAYOUT
   ============================================ */

.article-header {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--cream-foam);
}

.article-header .container {
  max-width: var(--container-narrow);
}

.article-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.article-header h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: 0 auto var(--space-xl);
  box-shadow: 0 10px 40px var(--shadow-md);
}

.article-body {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-2xl);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.8rem;
}

.article-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5rem;
  list-style-position: outside;
}

.article-body li {
  margin-bottom: var(--space-xs);
}

.article-body blockquote {
  border-left: 4px solid var(--copper);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--cream-foam);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--espresso);
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-color: rgba(184, 115, 51, 0.3);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--copper);
}

.article-body strong {
  color: var(--espresso);
  font-weight: 600;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  box-shadow: 0 4px 20px var(--shadow);
}

.article-body figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* Callout box */
.callout {
  background: var(--cream-foam);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
}

.callout-title {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--copper);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--espresso);
  color: var(--warm-white);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  background: var(--warm-white);
}

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

.comparison-table tr:nth-child(even) td {
  background: var(--cream-foam);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.checklist li {
  padding: var(--space-sm) 0 var(--space-sm) 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: var(--space-sm);
  width: 24px;
  height: 24px;
  background: var(--sage);
  color: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Article footer / share */
.article-footer {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
  border-top: 1px solid var(--border);
}

.related-articles {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ============================================
   PAGE HEADER (non-home pages)
   ============================================ */

.page-header {
  background: var(--cream-foam);
  padding: var(--space-xl) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--copper);
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 40px var(--shadow-md);
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.value-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--cream-foam);
  border-radius: var(--radius-md);
}

.value-card h3 {
  color: var(--copper);
  margin-bottom: var(--space-xs);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info h3 {
  margin-bottom: var(--space-sm);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.contact-detail-label {
  font-weight: 600;
  color: var(--espresso);
}

.contact-form {
  background: var(--cream-foam);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--warm-white);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-success {
  display: none;
  background: var(--sage);
  color: var(--warm-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  text-align: center;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ORIGINS PAGE
   ============================================ */

.origins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.origin-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.origin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px var(--shadow-md);
}

.origin-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.origin-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-card-body {
  padding: var(--space-md);
}

.origin-card-flag {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.origin-card h3 {
  margin-bottom: var(--space-xs);
}

.origin-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.origin-card-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.origin-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--cream-foam);
  border-radius: 20px;
  color: var(--text-muted);
}

/* ============================================
   JOURNAL / BLOG INDEX
   ============================================ */

.journal-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  align-items: start;
}

.journal-main .article-grid {
  grid-template-columns: 1fr 1fr;
}

.journal-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-block {
  margin-bottom: var(--space-xl);
}

.sidebar-block h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--copper);
}

.sidebar-post {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.sidebar-post-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: block;
  margin-bottom: 0.2rem;
}

.sidebar-post-title:hover {
  color: var(--copper);
}

.sidebar-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-list {
  list-style: none;
}

.category-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list a {
  color: var(--text);
  font-size: 0.95rem;
}

.category-list a:hover {
  color: var(--copper);
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--cream-foam);
  padding: 0.1rem 0.6rem;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .journal-layout {
    grid-template-columns: 1fr;
  }
  .journal-sidebar {
    position: static;
  }
  .journal-main .article-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LEGAL / TEXT PAGES
   ============================================ */

.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.legal-content h1 {
  margin-bottom: var(--space-md);
}

.legal-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.legal-content p, .legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

/* ============================================
   SITEMAP PAGE
   ============================================ */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.sitemap-section h3 {
  margin-bottom: var(--space-sm);
  color: var(--copper);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
}

.sitemap-section li {
  padding: 0.3rem 0;
}

.sitemap-section a {
  color: var(--text);
  font-size: 0.95rem;
}

.sitemap-section a:hover {
  color: var(--copper);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.error-bean {
  font-size: 5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--copper);
  margin-bottom: var(--space-sm);
}

.error-page p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--espresso);
  color: rgba(251, 248, 243, 0.7);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand .brand-logo {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  color: rgba(251, 248, 243, 0.6);
}

.footer-col h4 {
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

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

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

.footer-col a {
  color: rgba(251, 248, 243, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--copper);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--warm-white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   REDUCED MOTION
   ============================================ */

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

/* ============================================
   UTILITY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--copper);
  margin: var(--space-sm) 0;
  border-radius: 2px;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

