/* Pulso — youth-media, magenta + grafite, modern-sans */
:root {
  --magenta: #e4007c;
  --magenta-light: #ff4da6;
  --magenta-dark: #b80062;
  --grafite: #2b2d33;
  --grafite-light: #3d4048;
  --grafite-dark: #1a1b1f;
  --off-white: #f7f6f8;
  --white: #ffffff;
  --gray-100: #eeedf0;
  --gray-200: #d4d2d8;
  --gray-400: #8b8894;
  --gray-600: #5c5964;
  --text: #2b2d33;
  --shadow: 0 6px 24px rgba(43, 45, 51, 0.1);
  --shadow-lg: 0 12px 40px rgba(43, 45, 51, 0.16);
  --shadow-magenta: 0 8px 28px rgba(228, 0, 124, 0.18);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1180px;
  --article-width: 820px;
  --spacing: 1.25rem;
  --radius: 10px;
  --transition: 0.22s ease;
}

[data-theme="dark"] {
  --off-white: #121316;
  --white: #1c1d22;
  --gray-100: #25262c;
  --gray-200: #383a42;
  --gray-400: #9b98a3;
  --gray-600: #c4c1ca;
  --text: #eceaed;
  --grafite: #f0eef2;
  --grafite-light: #d8d6dc;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-magenta: 0 8px 28px rgba(228, 0, 124, 0.25);
}

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

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: 2.4rem; margin-bottom: 0.9rem; }
h2 { font-size: 1.65rem; margin-bottom: 0.7rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.45rem; font-weight: 700; }

p { margin-bottom: 1.15rem; }

ul, ol { margin: 0 0 1.15rem 1.4rem; }
li { margin-bottom: 0.35rem; }

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

/* Header — minimal */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--grafite);
  text-transform: lowercase;
  flex-shrink: 0;
}

.logo span { color: var(--magenta); }

.tagline {
  display: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--magenta);
  background: rgba(228, 0, 124, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.btn-icon {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--grafite);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}

.btn-icon:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.menu-toggle { display: none; }

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

.hero-main.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Cards — shadowed */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: 1.15rem 1.25rem 1.35rem; }

.card-sm .card-body { padding: 0.9rem 1rem 1.1rem; }

.card-sm img,
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--magenta);
  margin-bottom: 0.45rem;
}

.card h2, .card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card h2 a, .card h3 a {
  color: var(--grafite);
}

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

.card-meta {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin: 0;
}

/* Section blocks */
.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--magenta);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.cat-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--white);
  color: var(--grafite);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.cat-pill:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: var(--shadow-magenta);
}

.intro-block {
  max-width: 680px;
  margin: 2rem 0 1.5rem;
}

.intro-block p {
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* Newsletter strip */
.newsletter-strip {
  background: var(--grafite-dark);
  color: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.newsletter-strip h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.newsletter-strip p {
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.newsletter-strip a {
  color: var(--magenta-light);
  font-weight: 600;
}

/* Page headers */
.page-header {
  margin: 2rem 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.page-header h1 { font-size: 2rem; }

.page-header p {
  color: var(--gray-600);
  max-width: 620px;
  margin-bottom: 0;
}

/* Articles list */
.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}

.article-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-row h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.article-row h2 a { color: var(--grafite); }
.article-row h2 a:hover { color: var(--magenta); }

/* Wide magazine article */
.article-wide {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 2rem var(--spacing) 3rem;
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-deck {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.article-hero-img {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-body {
  font-size: 1.02rem;
}

.article-body .lead {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--grafite);
}

.article-body h2 {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--magenta);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--grafite);
  font-style: normal;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.author-box strong { display: block; margin-bottom: 0.2rem; }
.author-box p { font-size: 0.88rem; color: var(--gray-600); margin: 0; }

/* Static pages */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--spacing) 3rem;
}

.content-page h2 {
  margin-top: 1.75rem;
  font-size: 1.3rem;
}

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

.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--grafite-dark);
  color: var(--gray-400);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--magenta-light);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

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

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

.footer-col a {
  color: var(--gray-400);
  font-size: 0.88rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--grafite-light);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  text-align: center;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--grafite-dark);
  color: var(--gray-400);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  font-size: 0.88rem;
}

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

.cookie-notice a { color: var(--magenta-light); }

.cookie-accept {
  background: var(--magenta);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-accept:hover { background: var(--magenta-light); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-row { grid-template-columns: 140px 1fr; }
}

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

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }

  .nav-bar { position: relative; }

  .story-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  h1 { font-size: 1.85rem; }
}
