/* Puesto Abierto - vendalia.digital */
:root {
  --pa-coral: #E85D4C;
  --pa-ink: #2B2B2B;
  --pa-cream: #FFF8F5;
  --pa-cream-dark: #F5EDE8;
  --pa-muted: #6B6560;
  --pa-border: #E8DDD6;
  --pa-coral-soft: rgba(232, 93, 76, 0.12);
  --pa-read-width: 42rem;
  --pa-stream-width: 52rem;
  --pa-header-h: 3.5rem;
  --pa-radius: 4px;
  --pa-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pa-transition: 0.2s ease;
}

[data-theme="dark"] {
  --pa-cream: #1E1C1B;
  --pa-cream-dark: #2A2725;
  --pa-ink: #F0EBE6;
  --pa-muted: #A89F97;
  --pa-border: #3D3835;
  --pa-coral-soft: rgba(232, 93, 76, 0.2);
}

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

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

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

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

a {
  color: var(--pa-coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--pa-transition);
}

a:hover { color: var(--pa-ink); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* Header - minimal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pa-cream);
  border-bottom: 1px solid var(--pa-border);
  height: var(--pa-header-h);
}

.header-inner {
  max-width: var(--pa-stream-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--pa-ink);
}

.brand:hover { color: var(--pa-coral); }

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-tag {
  display: none;
  font-size: 0.75rem;
  color: var(--pa-muted);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  color: var(--pa-ink);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--pa-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pa-coral);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-btn {
  background: none;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: var(--pa-ink);
  font-size: 0.8rem;
  line-height: 1;
}

.theme-btn:hover { border-color: var(--pa-coral); }

/* Main layout */
main {
  max-width: var(--pa-stream-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.narrow {
  max-width: var(--pa-read-width);
  margin-left: auto;
  margin-right: auto;
}

/* Hero strip */
.hero-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pa-border);
}

.hero-text .kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pa-coral);
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: var(--pa-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.hero-visual {
  border-radius: var(--pa-radius);
  overflow: hidden;
  background: var(--pa-cream-dark);
}

/* Section labels */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pa-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pa-coral);
  display: inline-block;
}

/* Article stream */
.article-stream {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stream-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--pa-border);
  text-decoration: none;
  color: inherit;
  transition: background var(--pa-transition);
}

.stream-item:first-child { padding-top: 0; }

.stream-item:hover {
  color: var(--pa-ink);
}

.stream-item:hover h2 {
  color: var(--pa-coral);
}

.stream-thumb {
  aspect-ratio: 4/3;
  background: var(--pa-cream-dark);
  border-radius: var(--pa-radius);
  overflow: hidden;
}

.stream-body .meta {
  font-size: 0.78rem;
  color: var(--pa-muted);
  margin-bottom: 0.35rem;
}

.stream-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  transition: color var(--pa-transition);
}

.stream-body .excerpt {
  font-size: 0.92rem;
  color: var(--pa-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-item--featured {
  grid-template-columns: 1fr;
  padding: 1.75rem;
  background: var(--pa-coral-soft);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  margin-bottom: 1rem;
}

.stream-item--featured .stream-thumb {
  aspect-ratio: 16/7;
  max-height: 220px;
}

.stream-item--featured h2 {
  font-size: 1.4rem;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--pa-coral);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* Two-column picks */
.picks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pick-card {
  padding: 1.25rem;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  background: var(--pa-cream);
}

.pick-card h3 {
  margin-bottom: 0.5rem;
}

.pick-card p {
  font-size: 0.88rem;
  color: var(--pa-muted);
  margin-bottom: 0.75rem;
}

.pick-card a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* Article page */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pa-border);
}

.article-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.82rem;
  color: var(--pa-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pa-cream-dark);
}

.author-info {
  font-size: 0.85rem;
}

.author-info strong {
  display: block;
  color: var(--pa-ink);
}

.author-info span {
  color: var(--pa-muted);
}

.article-hero-img {
  margin: 1.5rem 0 2rem;
  border-radius: var(--pa-radius);
  overflow: hidden;
  background: var(--pa-cream-dark);
}

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

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--pa-coral);
  background: var(--pa-coral-soft);
  font-style: italic;
  color: var(--pa-muted);
}

.article-body blockquote p:last-child { margin-bottom: 0; }

/* Related */
.related-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pa-border);
}

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

.related-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pa-border);
}

.related-list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--pa-ink);
}

.related-list a:hover { color: var(--pa-coral); }

.related-list .date {
  display: block;
  font-size: 0.75rem;
  color: var(--pa-muted);
  font-weight: 400;
}

/* Cards grid (articles listing) */
.page-intro {
  margin-bottom: 2rem;
}

.page-intro h1 { margin-bottom: 0.5rem; }

.page-intro p {
  color: var(--pa-muted);
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  overflow: hidden;
  background: var(--pa-cream);
  transition: border-color var(--pa-transition);
}

.card:hover { border-color: var(--pa-coral); }

.card a { text-decoration: none; color: inherit; }

.card-thumb {
  aspect-ratio: 16/10;
  background: var(--pa-cream-dark);
}

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

.card-body .meta {
  font-size: 0.75rem;
  color: var(--pa-muted);
  margin-bottom: 0.4rem;
}

.card-body h2 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  transition: color var(--pa-transition);
}

.card:hover h2 { color: var(--pa-coral); }

.card-body p {
  font-size: 0.86rem;
  color: var(--pa-muted);
  margin: 0;
}

/* Legal / static pages */
.legal-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 0.8rem;
  color: var(--pa-muted);
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

/* Contact */
.contact-block {
  padding: 1.5rem;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  background: var(--pa-cream-dark);
}

.contact-block p:last-child { margin-bottom: 0; }

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--pa-border);
  background: var(--pa-cream-dark);
  padding: 2rem 1.25rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: var(--pa-stream-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--pa-muted);
  max-width: 22rem;
  margin: 0.5rem 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--pa-muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--pa-coral); }

.footer-copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--pa-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pa-border);
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--pa-ink);
  color: var(--pa-cream);
  padding: 1rem 1.25rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

.cookie-notice a { color: var(--pa-coral); }

.cookie-notice button {
  background: var(--pa-coral);
  color: #fff;
  border: none;
  border-radius: var(--pa-radius);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-notice button:hover { opacity: 0.9; }

/* Responsive */
@media (min-width: 640px) {
  .brand-tag { display: block; }
}

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

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--pa-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--pa-cream);
    border-bottom: 1px solid var(--pa-border);
    padding: 0.75rem 1.25rem 1rem;
  }

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

  .site-nav a {
    padding: 0.5rem 0;
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stream-item {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
  }

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

  h1 { font-size: 1.6rem; }
}
