/* Hispacore — Editorial Research Publication */
:root {
  --hc-burgundy: #6B2737;
  --hc-cream: #F4ECE6;
  --hc-ink: #1C1410;
  --hc-ink-muted: #4a3f38;
  --hc-line: #d4c8be;
  --hc-burgundy-light: #8a3d4f;
  --hc-white: #faf8f6;
  --hc-serif: "Georgia", "Times New Roman", "Palatino Linotype", serif;
  --hc-sans: "Helvetica Neue", Arial, sans-serif;
  --hc-max: 1200px;
  --hc-narrow: 720px;
  --hc-sidebar: 300px;
  --hc-gap: 2rem;
  --hc-radius: 2px;
  --hc-shadow: 0 1px 3px rgba(28, 20, 16, 0.08);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hc-serif);
  color: var(--hc-ink);
  background: var(--hc-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--hc-burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--hc-burgundy-light); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1.25rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }

/* Stacked Header */
.site-header {
  border-bottom: 3px double var(--hc-ink);
  background: var(--hc-white);
}

.header-top {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--hc-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hc-ink-muted);
  border-bottom: 1px solid var(--hc-line);
}

.header-brand {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.site-logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hc-ink);
  text-decoration: none;
}

.site-tagline {
  font-family: var(--hc-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hc-ink-muted);
  margin-top: 0.35rem;
}

.header-nav {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  border-top: 1px solid var(--hc-line);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-list li { border-left: 1px solid var(--hc-line); }
.nav-list li:first-child { border-left: none; }

.nav-list a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-family: var(--hc-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hc-ink);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--hc-burgundy);
  background: var(--hc-cream);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hc-ink);
  padding: 0.5rem 0.75rem;
  font-family: var(--hc-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--hc-ink);
}

/* Main Layout */
.site-main {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.editorial-columns {
  display: grid;
  grid-template-columns: 1fr var(--hc-sidebar);
  gap: var(--hc-gap);
  align-items: start;
}

.content-primary { min-width: 0; }

.content-sidebar {
  border-left: 1px solid var(--hc-line);
  padding-left: 1.5rem;
}

/* Editorial Lines */
.editorial-rule {
  border: none;
  border-top: 1px solid var(--hc-line);
  margin: 2rem 0;
}

.editorial-rule-double {
  border: none;
  border-top: 3px double var(--hc-ink);
  margin: 2.5rem 0;
}

.section-label {
  font-family: var(--hc-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hc-burgundy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hc-line);
}

/* Hero */
.hero-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 3px double var(--hc-ink);
}

.hero-block img {
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--hc-ink-muted);
  max-width: 52rem;
}

/* Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.article-card {
  border: 1px solid var(--hc-line);
  background: var(--hc-white);
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: var(--hc-shadow); }

.article-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--hc-line);
}

.article-card-body { padding: 1.25rem; }

.article-card-meta {
  font-family: var(--hc-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hc-ink-muted);
  margin-bottom: 0.5rem;
}

.article-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.article-card h3 a {
  color: var(--hc-ink);
  text-decoration: none;
}

.article-card h3 a:hover { color: var(--hc-burgundy); }

.article-card-excerpt {
  font-size: 0.95rem;
  color: var(--hc-ink-muted);
  margin: 0;
}

/* Featured */
.featured-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hc-line);
}

.featured-story-thumb { border: 1px solid var(--hc-line); }

.featured-story-content h2 { margin-top: 0; }

.featured-story-content h2 a {
  color: var(--hc-ink);
  text-decoration: none;
}

.featured-story-content h2 a:hover { color: var(--hc-burgundy); }

/* Sidebar */
.sidebar-block { margin-bottom: 2rem; }

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hc-line);
  font-size: 0.95rem;
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  color: var(--hc-ink);
  text-decoration: none;
}

.sidebar-list a:hover { color: var(--hc-burgundy); }

.sidebar-date {
  display: block;
  font-family: var(--hc-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hc-ink-muted);
  margin-top: 0.25rem;
}

/* Article Page */
.article-header {
  max-width: var(--hc-narrow);
  margin: 0 auto 2rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hc-line);
}

.article-category {
  font-family: var(--hc-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hc-burgundy);
}

.article-meta {
  font-family: var(--hc-sans);
  font-size: 0.8rem;
  color: var(--hc-ink-muted);
  margin-top: 1rem;
}

.article-body {
  max-width: var(--hc-narrow);
  margin: 0 auto;
}

.article-body .lead {
  font-size: 1.2rem;
  color: var(--hc-ink-muted);
  border-left: 3px solid var(--hc-burgundy);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.article-body figure {
  margin: 2rem 0;
  text-align: center;
}

.article-body figcaption {
  font-family: var(--hc-sans);
  font-size: 0.75rem;
  color: var(--hc-ink-muted);
  margin-top: 0.5rem;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--hc-line);
  background: var(--hc-white);
  margin: 2.5rem 0;
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-box-name {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.author-box-bio {
  font-size: 0.9rem;
  color: var(--hc-ink-muted);
  margin: 0;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double var(--hc-ink);
}

/* Page Content */
.page-content {
  max-width: var(--hc-narrow);
  margin: 0 auto;
}

.page-content h1 {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hc-line);
  margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-family: var(--hc-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--hc-serif);
  font-size: 1rem;
  border: 1px solid var(--hc-line);
  background: var(--hc-white);
  color: var(--hc-ink);
  border-radius: var(--hc-radius);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--hc-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--hc-burgundy);
  color: var(--hc-cream);
  border: none;
  cursor: pointer;
  border-radius: var(--hc-radius);
}

.btn:hover { background: var(--hc-burgundy-light); }

/* Footer */
.site-footer {
  border-top: 3px double var(--hc-ink);
  background: var(--hc-ink);
  color: var(--hc-cream);
  padding: 2.5rem 1.5rem;
}

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

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--hc-line);
  margin: 0;
}

.footer-nav h4,
.footer-legal h4 {
  font-family: var(--hc-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: var(--hc-line);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-legal li { margin-bottom: 0.5rem; }

.footer-nav a,
.footer-legal a {
  color: var(--hc-cream);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-legal a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: var(--hc-max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 236, 230, 0.2);
  text-align: center;
  font-family: var(--hc-sans);
  font-size: 0.75rem;
  color: var(--hc-line);
}

.footer-bottom a { color: var(--hc-cream); }

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--hc-ink);
  color: var(--hc-cream);
  padding: 1rem 1.5rem;
  z-index: 1000;
  display: none;
  font-family: var(--hc-sans);
  font-size: 0.85rem;
}

.cookie-notice.is-visible { display: block; }

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

.cookie-notice p { margin: 0; flex: 1; min-width: 200px; }

.cookie-notice a { color: var(--hc-cream); }

.cookie-accept {
  background: var(--hc-burgundy);
  color: var(--hc-cream);
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--hc-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--hc-radius);
}

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

  .content-sidebar {
    border-left: none;
    border-top: 1px solid var(--hc-line);
    padding-left: 0;
    padding-top: 2rem;
  }

  .featured-story {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  html { font-size: 16px; }

  .menu-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--hc-line);
  }

  .nav-list.is-open { display: flex; }

  .nav-list li { border-left: none; border-bottom: 1px solid var(--hc-line); }

  h1 { font-size: 1.8rem; }

  .site-logo { font-size: 1.8rem; }
}
