/* RoyalOra — style.v1.css — editorial archive, vineyard-press theme */

:root {
  --vino: #5B1F2B;
  --oro: #C9A24B;
  --arena: #F2E8D5;
  --tinta: #241012;
  --vino-light: #7a3340;
  --oro-light: #e3c687;
  --max-width: 1080px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--arena);
  color: var(--tinta);
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--vino);
  line-height: 1.2;
  margin-top: 0;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-top: 2rem; }

a { color: var(--vino); text-decoration: underline; text-decoration-color: var(--oro); text-underline-offset: 2px; }
a:hover { color: var(--vino-light); }

img, svg { max-width: 100%; }

/* ---------------- Age gate ---------------- */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: radial-gradient(circle at 50% 20%, rgba(91,31,43,0.96), rgba(36,16,18,0.98));
}
.age-gate-box {
  max-width: 460px;
  width: 100%;
  background: var(--arena);
  border: 1px solid var(--oro);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.age-gate-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--oro);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.age-gate-box h2 { margin-bottom: 0.75rem; }
.age-gate-box p { margin: 0 0 1.25rem; font-size: 0.95rem; }
.age-gate-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.age-gate-actions button {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--vino);
  cursor: pointer;
}
#age-gate-yes { background: var(--vino); color: var(--arena); }
#age-gate-yes:hover { background: var(--vino-light); }
#age-gate-no { background: transparent; color: var(--vino); }
#age-gate-no:hover { background: rgba(91,31,43,0.08); }

/* ---------------- Header / nav ---------------- */
.site-header {
  background: var(--arena);
  border-bottom: 2px solid var(--oro);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-mark { font-size: 1.4rem; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--vino);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--tinta);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--oro); }

/* ---------------- Layout ---------------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vino);
  margin: 0 0 0.4rem;
}
.lede { font-size: 1.15rem; color: #3a1f22; max-width: 44em; }

.hero { padding: 1.5rem 0 1rem; border-bottom: 1px solid rgba(91,31,43,0.15); margin-bottom: 2rem; }
.page-head { margin-bottom: 1.5rem; }
.page-head-sub { border-bottom: 1px solid rgba(91,31,43,0.15); padding-bottom: 1rem; }

/* cards */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: #fff;
  border: 1px solid rgba(91,31,43,0.12);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.card h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card h2 a { text-decoration: none; color: var(--vino); }
.card p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.card-link a { font-weight: 600; font-size: 0.9rem; }

/* callout */
.callout {
  background: linear-gradient(135deg, var(--vino), var(--vino-light));
  color: var(--arena);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}
.callout h2 { color: var(--oro-light); margin-top: 0; }
.callout a { color: var(--arena); }
.callout .helpline { font-size: 1.1rem; }

.about-teaser { margin-top: 2.5rem; }

/* prose */
.prose { max-width: 42em; }
.prose p { margin: 0 0 1.1rem; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: 0.5rem; }

/* helpline box */
.helpline-box {
  background: #fff;
  border: 2px solid var(--oro);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.helpline-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--vino); font-weight: 600; margin: 0 0 0.3rem; }
.helpline-number { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--vino); margin: 0 0 0.3rem; }

/* FAQ */
.faq-list { max-width: 42em; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(91,31,43,0.14);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.faq-item summary { font-weight: 600; cursor: pointer; color: var(--vino); }
.faq-item p { margin: 0.7rem 0 0; }

/* timeline fallback list */
.tl-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.tl-list li {
  background: #fff;
  border: 1px solid rgba(91,31,43,0.12);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.tl-list a { text-decoration: none; font-weight: 600; }
.tl-anio { color: var(--oro); font-weight: 700; margin-right: 0.4rem; }
.tl-list p { margin: 0.4rem 0 0; font-size: 0.93rem; }

.tl-subnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(91,31,43,0.15);
  font-size: 0.92rem;
}
.tl-nav-index { font-weight: 600; }

/* Prensa del Tiempo mechanic */
.prensa-mecanica { margin: 2rem 0 3rem; }
.prensa-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 680px) {
  .prensa-layout { grid-template-columns: 1fr; }
}
.prensa-rig { text-align: center; }
.prensa-btn {
  margin-top: 0.75rem;
  background: var(--vino);
  color: var(--arena);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.prensa-btn:hover { background: var(--vino-light); }
.prensa-btn:disabled { background: #999; cursor: not-allowed; }
.prensa-status { font-size: 0.85rem; color: var(--vino); margin-top: 0.5rem; }

.era-card {
  background: #fff;
  border: 2px solid var(--oro);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  min-height: 90px;
}
.era-card-empty { border-style: dashed; color: #6b5a52; text-align: center; }
.era-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.era-anio-badge { display: inline-block; background: var(--oro); color: var(--tinta); font-weight: 700; font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }

.era-historial { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.era-historial li {
  background: rgba(255,255,255,0.6);
  border-left: 3px solid var(--oro);
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}
.era-historial a { font-weight: 600; text-decoration: none; }

.prensa-fallback h2 { margin-top: 0; }

/* buttons for 404 etc */
.btn-link {
  display: inline-block;
  background: var(--vino);
  color: var(--arena) !important;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 0.75rem;
}
.btn-link:hover { background: var(--vino-light); }
.notfound { text-align: center; padding: 3rem 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--tinta);
  color: #e9ded3;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.75rem;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; color: var(--oro-light); font-size: 1.3rem; font-weight: 700; margin: 0 0 0.5rem; }
.footer-heading { text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.75rem; color: var(--oro-light); font-weight: 600; margin: 0 0 0.6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-links a { color: #e9ded3; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-col p { font-size: 0.9rem; margin: 0 0 0.5rem; }
.footer-col a { color: var(--oro-light); }
.footer-disclaimer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid rgba(233,222,211,0.15);
  font-size: 0.78rem;
  color: #b7a99b;
}

/* decorative thin vine line */
.hero, .page-head {
  position: relative;
}
