/* Brasa — brasa.click | regional-press, stacked-header, serif-editorial */
:root {
  --terracota: #C45C26;
  --terracota-dark: #9E4A1E;
  --terracota-soft: #F0E0D4;
  --cream: #F5F0E8;
  --cream-dark: #E8DFD2;
  --brown: #3D2B1F;
  --brown-muted: #6B5344;
  --brown-light: #8A7264;
  --white: #FFFCF8;
  --border: #D9CEC0;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --read: 40rem;
  --max: 72rem;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

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

a { color: var(--terracota-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Stacked header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--terracota);
  padding: 1.25rem 0 0;
}

.header-stack {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  text-align: center;
}

.site-logo {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.1;
}

.site-logo em {
  font-style: italic;
  color: var(--terracota);
}

.site-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-light);
  margin-top: 0.35rem;
  font-weight: 500;
}

.header-bar {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.65rem 0;
  position: relative;
}

.header-bar-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--brown);
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  color: var(--brown-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--terracota);
  text-decoration: none;
}

main { flex: 1; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

/* Featured story homepage */
.featured-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--brown);
}

.featured-main img {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.featured-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracota);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.featured-main h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.featured-main h1 a {
  color: var(--brown);
  text-decoration: none;
}

.featured-main h1 a:hover { color: var(--terracota-dark); }

.featured-deck {
  font-size: 1.0625rem;
  color: var(--brown-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.featured-meta {
  font-size: 0.8125rem;
  color: var(--brown-light);
}

.featured-secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Editorial lines cards */
.line-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.line-card:first-child { padding-top: 0; }

.line-card h2,
.line-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.line-card h2 a,
.line-card h3 a {
  color: var(--brown);
  text-decoration: none;
}

.line-card h2 a:hover,
.line-card h3 a:hover { color: var(--terracota); }

.line-card p {
  font-size: 0.875rem;
  color: var(--brown-muted);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.line-card .card-meta {
  font-size: 0.75rem;
  color: var(--brown-light);
}

.line-card-with-thumb {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}

.line-card-with-thumb img {
  border: 1px solid var(--border);
}

.section-head {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--terracota);
}

.section-head small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-light);
  margin-bottom: 0.25rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.topic-tag {
  display: inline-block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracota);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

/* Sidebar article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.article-sidebar h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.sidebar-card h3 a { color: var(--brown); text-decoration: none; }
.sidebar-card h3 a:hover { color: var(--terracota); }

.sidebar-card p {
  font-size: 0.75rem;
  color: var(--brown-light);
}

.article-read h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-read .deck {
  font-size: 1.125rem;
  color: var(--brown-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
  font-family: var(--font-serif);
  font-style: italic;
}

.article-read .byline {
  font-size: 0.8125rem;
  color: var(--brown-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-read .byline img { border-radius: 50%; border: 2px solid var(--terracota-soft); }

.article-read .updated {
  font-size: 0.75rem;
  color: var(--brown-light);
  margin-bottom: 1.25rem;
}

.article-read .hero-img {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.article-read .body p {
  margin-bottom: 1.1rem;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.article-read .body h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--brown);
}

.article-read .body ul {
  margin: 0 0 1rem 1.5rem;
  font-size: 1rem;
}

/* Institutional pages */
.page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--terracota);
}

.prose {
  max-width: var(--read);
  font-size: 1rem;
  line-height: 1.7;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; }

/* Articles listing */
.articles-list .line-card-with-thumb {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  max-width: var(--max);
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  color: var(--brown-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  color: var(--brown);
}

.contact-form button {
  background: var(--terracota);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover { background: var(--terracota-dark); }

.form-status {
  font-size: 0.875rem;
  color: var(--terracota-dark);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--terracota);
  background: var(--brown);
  color: var(--cream);
  padding: 2.5rem 0 1rem;
  margin-top: auto;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-inner h3 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracota-soft);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 0.35rem; }
.footer-inner a { color: var(--cream); }
.footer-inner a:hover { color: var(--terracota-soft); }

.footer-copy {
  width: min(100% - 2rem, var(--max));
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--brown-muted);
  font-size: 0.75rem;
  color: var(--brown-light);
  text-align: center;
}

/* Cookie */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brown);
  color: var(--cream);
  padding: 1rem;
  display: none;
  z-index: 100;
  border-top: 3px solid var(--terracota);
}

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

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

.cookie-wrap p { font-size: 0.875rem; max-width: 42rem; }
.cookie-wrap a { color: var(--terracota-soft); }

#cookie-accept {
  background: var(--terracota);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

#cookie-accept:hover { background: var(--terracota-dark); }

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

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    z-index: 50;
  }

  .header-nav.is-open { display: flex; }
  .header-bar { position: relative; }

  .featured-hero { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .line-card-with-thumb { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
