/* BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  lang: en;
}
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background-color: #f9f8f6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
h1, h2, h3, h4, h5, h6, .brand-name, nav a {
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: normal;
  line-height: 1.2;
  color: #111;
}
a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: #a73c2a;
}
:focus-visible {
  outline: 2px solid #a73c2a;
  outline-offset: 4px;
}

/* SPACING & UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}
.section-spacing {
  margin-top: 64px;
  margin-bottom: 64px;
}
.text-center { text-align: center; }
.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;
}
.is-hidden { display: none !important; }

/* EDITORIAL TYPOGRAPHY */
.editorial-title {
  font-size: 3rem;
  margin-bottom: 24px;
  border-bottom: 4px solid #1a1a1a;
  padding-bottom: 16px;
}
.editorial-subtitle {
  font-size: 1.5rem;
  font-family: Georgia, serif;
  font-style: italic;
  color: #444;
  margin-bottom: 40px;
}
.editorial-rule {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 40px 0;
}
.editorial-meta {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 16px;
  display: block;
}

/* HEADER */
.site-header {
  height: 64px;
  background-color: #f9f8f6;
  border-bottom: 2px solid #1a1a1a;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a1a1a;
}
.brand svg {
  width: 24px;
  height: 24px;
  fill: #a73c2a;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-cta {
  background: #1a1a1a;
  color: #f9f8f6;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #1a1a1a;
  transition: background 0.2s, color 0.2s;
}
.header-cta:hover {
  background: transparent;
  color: #1a1a1a;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: #1a1a1a;
}

/* EDITORIAL CARDS (Horizontal Split) */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.card-horizontal {
  display: flex;
  gap: 24px;
  border-top: 1px solid #ccc;
  padding-top: 24px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.card-horizontal:hover .card-title {
  color: #a73c2a;
}
.card-media {
  flex: 0 0 40%;
  min-width: 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.card-horizontal:hover .card-media img {
  filter: grayscale(0%);
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.card-excerpt {
  color: #444;
  margin-bottom: 24px;
  flex-grow: 1;
}
.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #ccc;
  padding: 4px 8px;
  color: #555;
}
.card-cta {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  color: #a73c2a;
}

/* ARTICLE LAYOUT */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px auto;
}
.article-featured-image {
  width: 100%;
  height: 60vh;
  min-height: 300px;
  object-fit: cover;
  margin-bottom: 64px;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.125rem;
}
.article-body p {
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: 2rem;
  margin-top: 64px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}
.article-body h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  padding: 24px 0;
  margin-bottom: 40px;
}
.stat-block {
  text-align: center;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 12px;
}
.stat-value {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: #1a1a1a;
}

/* LEGAL PAGES */
.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.legal-content h2 {
  font-size: 1.75rem;
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-content p, .legal-content li {
  font-size: 1rem;
  margin-bottom: 16px;
}
.cookie-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #ccc;
}
.cookie-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}
.cookie-table th, .cookie-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
  font-size: 0.9375rem;
}
.cookie-table th {
  background: #eae9e7;
  font-family: Georgia, serif;
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info {
  background: #eae9e7;
  padding: 40px;
  border: 1px solid #ccc;
}
.contact-info h2 {
  margin-bottom: 24px;
}
.contact-info p {
  margin-bottom: 16px;
}
.map-block {
  width: 100%;
  height: 240px;
  background: #ddd;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  border: 1px solid #ccc;
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #1a1a1a;
}
.form-control:focus {
  outline: none;
  border-color: #a73c2a;
  box-shadow: 0 0 0 2px rgba(167, 60, 42, 0.2);
}
.form-control.is-invalid {
  border-color: #d92d20;
  background-color: #fef3f2;
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.btn-submit {
  display: inline-block;
  background: #1a1a1a;
  color: #f9f8f6;
  padding: 16px 32px;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: #a73c2a;
}
.form-error-msg {
  display: none;
  color: #d92d20;
  font-size: 0.875rem;
  margin-top: 8px;
}
.is-invalid + .form-error-msg {
  display: block;
}
.form-success-msg {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 16px;
  border: 1px solid #c8e6c9;
  margin-bottom: 24px;
}
.form-success-msg.is-visible {
  display: block;
}

/* FOOTER */
.site-footer {
  background: #1a1a1a;
  color: #f9f8f6;
  padding: 64px 0 24px 0;
  margin-top: 64px;
}
.site-footer a {
  color: #f9f8f6;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  color: #a73c2a;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
.footer-brand h2 {
  color: #f9f8f6;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.footer-col h3 {
  color: #999;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  font-size: 0.875rem;
  color: #999;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f9f8f6;
  border-top: 2px solid #1a1a1a;
  padding: 24px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 300px;
}
.cookie-text p {
  margin-bottom: 8px;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-cookie {
  padding: 8px 16px;
  border: 1px solid #1a1a1a;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-cookie.primary {
  background: #1a1a1a;
  color: #f9f8f6;
}
.btn-cookie:hover {
  background: #a73c2a;
  color: #f9f8f6;
  border-color: #a73c2a;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: #f9f8f6;
    border-bottom: 2px solid #1a1a1a;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .main-nav.is-open {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .card-horizontal {
    flex-direction: column;
  }
  .article-featured-image {
    height: 40vh;
  }
  .article-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .editorial-title {
    font-size: 2rem;
  }
}

@media (max-width: 399px) {
  .container {
    padding: 0 16px;
  }
  .site-header {
    height: 48px;
  }
  .main-nav {
    top: 48px;
  }
  .editorial-title {
    font-size: 1.75rem;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}

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