/* Págix — modern-magazine, navy + coral */
:root {
  --navy: #1a2744;
  --navy-light: #2a3d66;
  --navy-dark: #0f1829;
  --coral: #e86f5c;
  --coral-light: #f4a090;
  --coral-dark: #c95542;
  --cream: #faf8f5;
  --white: #ffffff;
  --gray-100: #f0eeeb;
  --gray-200: #d9d6d1;
  --gray-400: #8a8680;
  --gray-600: #5c5852;
  --text: #2c2a26;
  --shadow: 0 4px 20px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 8px 32px rgba(26, 39, 68, 0.14);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --article-width: 780px;
  --spacing: 1.5rem;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --cream: #141820;
  --white: #1e2430;
  --gray-100: #252d3a;
  --gray-200: #3a4455;
  --gray-400: #9aa3b0;
  --gray-600: #b8c0cc;
  --text: #e8eaed;
  --navy: #8ba4d4;
  --navy-light: #a8bce0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }

ul, ol { margin: 0 0 1.25rem 1.5rem; }
li { margin-bottom: 0.4rem; }

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

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

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem var(--spacing) 0.75rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

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

.tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid var(--gray-100);
  padding: 0.6rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav {
  display: flex;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gray-600);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

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

.btn-icon {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.menu-toggle { display: none; }

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

.hero-main {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.hero-main img,
.hero-main svg {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-main .card-body {
  padding: 1.75rem 2rem 2rem;
}

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

/* Cards — shadowed */
.card {
  background: var(--white);
  border-radius: 4px;
  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 img,
.card svg.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

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

.category {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--coral); }

.card-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.75rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.section-header a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Editorial picks */
.editorial-picks {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.editorial-picks h2 { color: var(--white); }

.editorial-picks .section-header { border-color: var(--coral); }

.editorial-picks .card {
  background: var(--navy-light);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.editorial-picks .card h3 a { color: var(--white); }
.editorial-picks .card h3 a:hover { color: var(--coral-light); }
.editorial-picks .category { color: var(--coral-light); }
.editorial-picks .card-meta { color: rgba(255,255,255,0.6); }

/* Newsletter band */
.newsletter-band {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  padding: 2.5rem var(--spacing);
}

.newsletter-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-band p { opacity: 0.9; max-width: 500px; margin: 0 auto 1rem; }

/* Page layouts */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.page-header p {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

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

.article-wide .article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.article-wide .article-header h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.article-deck {
  font-size: 1.2rem;
  color: var(--gray-600);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

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

.article-hero-img svg,
.article-hero-img img {
  width: 100%;
  height: auto;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.article-body blockquote {
  border-left: 4px solid var(--coral);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--gray-600);
  font-size: 1.15rem;
}

.article-body .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 2rem;
}

/* Author boxes — 4 different styles */
.author-box {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.author-box.style-classic {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-box.style-classic .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-box.style-minimal {
  text-align: center;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 4px;
  border-top: none;
}

.author-box.style-minimal .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.author-box.style-bordered {
  border: 2px solid var(--navy);
  padding: 1.5rem;
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.author-box.style-bordered .author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 4px;
}

.author-box.style-accent {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 4px;
  border-top: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.author-box.style-accent .author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--coral);
  flex-shrink: 0;
}

.author-box.style-accent .author-name { color: var(--white); }
.author-box.style-accent .author-bio { color: rgba(255,255,255,0.8); }

.author-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: var(--font-sans);
}

/* About page */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.about-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-info p { margin-bottom: 0.5rem; }

/* Legal pages */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Articles listing */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}

.article-list-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 4px;
  overflow: hidden;
}

.article-list-item svg,
.article-list-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-list-item .card-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

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

.footer-brand .logo {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

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

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

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  color: var(--white);
  padding: 1rem var(--spacing);
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

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

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

.cookie-inner p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
}

.cookie-inner a { color: var(--coral-light); }

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background: var(--coral-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Intro text on homepage */
.intro-editorial {
  max-width: 680px;
  margin: 0 auto 1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-600);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-list-item { grid-template-columns: 1fr; }
  .article-list-item .card-body { padding: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

  .menu-toggle { display: flex; }

  .nav-bar {
    flex-direction: column;
    position: relative;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

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

  .header-actions {
    position: absolute;
    right: var(--spacing);
    top: 0.75rem;
    margin: 0;
  }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-main svg { height: 240px; }

  .author-box.style-classic,
  .author-box.style-accent,
  .author-box.style-bordered {
    flex-direction: column;
    text-align: center;
  }

  .author-box.style-bordered {
    display: flex;
    flex-direction: column;
  }
}
