/* Luxo Brasil — ink-cream longform editorial */
:root {
  --primary: #0A0908;
  --accent: #C6AC8F;
  --bg: #F5F0EB;
  --text: #1B1A17;
  --muted: #998E82;
  --container: 1140px;
  --radius: 6px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --header-height: 88px;
  --header-shrink: 60px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

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

/* ——— Header: centered-logo, sticky-shrink ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(10, 9, 8, 0.08);
  transition: padding var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  box-shadow: 0 2px 20px rgba(10, 9, 8, 0.06);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  transition: padding var(--transition);
}

.site-header.is-shrunk .header-inner {
  padding: var(--space-sm) var(--space-md);
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  transition: font-size var(--transition);
}

.site-header.is-shrunk .site-logo {
  font-size: 1.4rem;
}

.site-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-xs);
  transition: opacity var(--transition), max-height var(--transition);
  max-height: 2rem;
  overflow: hidden;
}

.site-header.is-shrunk .site-tagline {
  opacity: 0;
  max-height: 0;
  margin: 0;
}

.main-nav {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
}

/* ——— Typography ——— */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ——— Bracket-label tags ——— */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag::before { content: "[ "; }
.tag::after { content: " ]"; }

/* ——— Buttons: subtle-ghost ——— */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-sans);
}

.btn:hover {
  background: var(--primary);
  color: var(--bg);
}

/* ——— Hero: split-image-text ——— */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
}

.hero-split__image {
  position: relative;
}

.hero-split__image img,
.hero-split__image svg {
  width: 100%;
  border-radius: var(--radius);
}

.hero-split__content {
  padding: var(--space-md) 0;
}

.hero-split__meta {
  margin-bottom: var(--space-sm);
}

.hero-split h1 {
  margin-bottom: var(--space-md);
}

/* ——— Full-bleed images ——— */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.full-bleed img,
.full-bleed svg {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* ——— Magazine columns: article list ——— */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

/* ——— Editorial-lines cards ——— */
.card {
  border-top: 1px solid var(--primary);
  padding-top: var(--space-md);
}

.card__thumb {
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border-radius: var(--radius);
}

.card__thumb img,
.card__thumb svg {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card__thumb img,
.card:hover .card__thumb svg {
  transform: scale(1.03);
}

.card h3 {
  font-size: 1.25rem;
  margin: var(--space-sm) 0;
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.card__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ——— Magazine breakout grid ——— */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

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

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

.article-body h2 {
  margin: var(--space-lg) 0 var(--space-md);
}

/* ——— Pull quotes ——— */
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.45;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  font-style: italic;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-sm);
}

/* ——— Breakout aside ——— */
.breakout {
  grid-column: 1 / -1;
  background: rgba(198, 172, 143, 0.12);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin: var(--space-lg) 0;
}

/* ——— Sticky TOC sidebar ——— */
.sidebar {
  position: relative;
}

.toc {
  position: sticky;
  top: calc(var(--header-shrink) + var(--space-md));
  padding: var(--space-md);
  border: 1px solid rgba(10, 9, 8, 0.1);
  border-radius: var(--radius);
}

.toc h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: var(--space-xs);
}

.toc a {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.toc a:hover,
.toc a.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ——— Author bio box ——— */
.author-bio {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-top: 2px solid var(--accent);
  background: rgba(245, 240, 235, 0.6);
  border-radius: var(--radius);
}

.author-bio__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.author-bio__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-bio__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--primary);
}

.author-bio__role {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.author-bio p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ——— Page sections ——— */
.page-header {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid rgba(10, 9, 8, 0.08);
}

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

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

.section--narrow {
  max-width: 720px;
  margin: 0 auto;
}

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

.prose ul, .prose ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
}

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

/* ——— Contact form ——— */
.contact-form {
  max-width: 560px;
  margin: var(--space-lg) auto;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(10, 9, 8, 0.15);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
}

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

/* ——— Footer: editorial-masthead ——— */
.site-footer {
  border-top: 2px solid var(--primary);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-masthead {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-masthead .site-logo {
  font-size: 1.6rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-masthead p {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

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

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

.footer-col a {
  font-size: 0.85rem;
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(10, 9, 8, 0.08);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ——— Cookie bottom-bar ——— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--primary);
  color: var(--bg);
  padding: var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-bar p {
  font-size: 0.85rem;
  max-width: 600px;
}

.cookie-bar a {
  color: var(--accent);
}

.cookie-bar .btn {
  border-color: var(--accent);
  color: var(--bg);
}

.cookie-bar .btn:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ——— Articles listing page ——— */
.articles-feed {
  padding: var(--space-xl) 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(10, 9, 8, 0.08);
  align-items: start;
}

.feed-item:first-child {
  border-top: 1px solid rgba(10, 9, 8, 0.08);
}

.feed-item__thumb {
  border-radius: var(--radius);
  overflow: hidden;
}

.feed-item__thumb img,
.feed-item__thumb svg {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

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

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

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

  .toc {
    position: static;
    margin-bottom: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feed-item {
    grid-template-columns: 1fr;
  }
}

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

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

  .main-nav {
    gap: var(--space-sm);
  }
}
