/*
Theme Name: Relato Raiz
Theme URI: https://nicky.doblek.duckdns.org/
Author: Relato Raiz
Description: Tema editorial para la reconstruccion de Relato Raiz.
Version: 0.2.0
Text Domain: relato-raiz
*/

:root {
  --ra-ink: #27252b;
  --ra-muted: #716b73;
  --ra-paper: #f3eee6;
  --ra-white: #fbf8f2;
  --ra-plum: #3e332c;
  --ra-coral: #715941;
  --ra-line: #ded6cb;
  --ra-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ra-paper);
  color: var(--ra-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ra-plum); }
h1, h2, h3, h4, .ra-brand, .ra-nav {
  font-family: Inter, Arial, sans-serif;
}
h1, h2, h3, h4, p { margin-top: 0; }
.ra-wrap { width: min(var(--ra-max), calc(100% - 3rem)); max-width: var(--ra-max); margin-right: auto; margin-left: auto; }

.ra-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--ra-line);
  background: rgba(247, 243, 237, .95);
  backdrop-filter: blur(12px);
}
.ra-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 82px; }
.ra-brand { display: block; width: 86px !important; max-width: 86px !important; flex: 0 0 86px; }
.ra-brand img { display: block; width: 86px !important; max-width: 86px !important; height: auto !important; }
.ra-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.2rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ra-nav a { padding: .25rem 0; border-bottom: 2px solid transparent; }
.ra-nav a:hover, .ra-nav .current-menu-item a { border-bottom-color: var(--ra-coral); color: var(--ra-plum); }

.ra-hero { padding: 1rem 0 7rem; background: var(--ra-paper); }
.ra-hero-media { position: relative; width: min(var(--ra-max), calc(100% - 2rem)); min-height: 560px; margin: 0 auto; overflow: hidden; background: linear-gradient(rgba(29, 27, 24, .7), rgba(29, 27, 24, .2)), url('assets/hero.jpg') center 63% / cover; }
.ra-hero-copy { position: absolute; top: 3.5rem; left: 50%; width: 100%; transform: translateX(-50%); text-align: center; }
.ra-kicker { margin-bottom: 1rem; color: var(--ra-coral); font: 700 .75rem/1.2 Inter, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.ra-hero h1 { margin-bottom: 1.3rem; color: #f7f0e7; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.ra-hero p { display: inline-block; margin: 0; padding: .8rem 1.5rem; background: rgba(49, 45, 41, .82); color: #f7f0e7; font: 700 .9rem/1.35 Inter, Arial, sans-serif; letter-spacing: .08em; }

.ra-section { padding: 5rem 0; }
.ra-section--white { background: var(--ra-white); }
.ra-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--ra-line); }
.ra-section-heading h2 { margin-bottom: .8rem; color: var(--ra-plum); font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; }
.ra-section-heading a { color: var(--ra-coral); font: 700 .75rem Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ra-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; min-width: 0; overflow: hidden; background: var(--ra-line); }
.ra-feature { min-width: 0; min-height: 230px; overflow: hidden; padding: 0 0 1.5rem; background: var(--ra-paper); }
.ra-feature:nth-child(2) { background: #eee5dc; }
.ra-feature:nth-child(3) { background: #e6ece8; }
.ra-feature img { display: block !important; width: 100% !important; max-width: 100% !important; height: 220px !important; margin-bottom: 1rem; object-fit: cover !important; }
.ra-feature span, .ra-feature h3, .ra-feature time { margin-left: 1.2rem; margin-right: 1.2rem; }
.ra-feature span { color: var(--ra-coral); font: 700 .7rem Inter, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ra-feature h3 { margin: 2.5rem 0 .4rem; color: var(--ra-plum); font: 600 1.45rem/1.1 Georgia, serif; }
.ra-feature time { color: var(--ra-muted); font: .8rem Inter, Arial, sans-serif; }
.ra-quote { max-width: 760px; margin: 0 auto; color: var(--ra-plum); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; text-align: center; }
.ra-quote cite { display: block; margin-top: 1.5rem; color: var(--ra-coral); font: 700 .72rem Inter, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ra-sections { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ra-line); border-left: 1px solid var(--ra-line); }
.ra-sections a { padding: 1rem 1.2rem; border-right: 1px solid var(--ra-line); border-bottom: 1px solid var(--ra-line); color: var(--ra-plum); font: 700 .8rem Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ra-sections a:hover { background: var(--ra-plum); color: var(--ra-white); }
.ra-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.ra-newsletter h2 { max-width: 520px; margin-bottom: 0; color: var(--ra-plum); font: 400 clamp(2rem, 4vw, 3.6rem)/1 Georgia, serif; }
.ra-newsletter p { color: var(--ra-muted); }
.ra-form { display: flex; gap: .5rem; border-bottom: 1px solid var(--ra-plum); }
.ra-form input { min-width: 0; flex: 1; padding: .8rem 0; border: 0; outline: 0; background: transparent; font: 1rem Georgia, serif; }
.ra-form button { padding: .8rem 0; border: 0; background: transparent; color: var(--ra-plum); font: 700 .75rem Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.ra-footer { padding: 3rem 0 1.5rem; border-top: 1px solid var(--ra-line); background: var(--ra-plum); color: #eadfd7; }
.ra-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.ra-footer h2, .ra-footer h3 { color: #fffaf3; }
.ra-footer h2 { font: 600 1.6rem Georgia, serif; }
.ra-footer h3 { font: 700 .72rem Inter, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ra-footer p, .ra-footer a { color: #d8c9c1; font-size: .9rem; }
.ra-footer-note { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); color: #cbbab2; font: .75rem Inter, Arial, sans-serif; }

.ra-content { min-height: 55vh; padding: 5rem 0; }
.ra-content h1 { color: var(--ra-plum); font: 400 clamp(2.5rem, 6vw, 5rem)/1 Georgia, serif; }
.ra-content article { max-width: 760px; }
.ra-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ra-post { padding: 1.3rem; border: 1px solid var(--ra-line); background: var(--ra-white); }
.ra-post h2 { margin: 2rem 0 .5rem; color: var(--ra-plum); font: 600 1.4rem/1.1 Georgia, serif; }
.ra-post time { color: var(--ra-muted); font: .78rem Inter, Arial, sans-serif; }

@media (max-width: 800px) {
  .ra-wrap { width: min(var(--ra-max), calc(100% - 2rem)); }
  .ra-header-inner, .ra-hero-grid, .ra-newsletter { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; }
  .ra-header-inner { padding: 1rem 0; }
  .ra-nav { justify-content: flex-start; }
  .ra-hero { padding: 5rem 0 4rem; }
  .ra-feature-grid, .ra-posts { grid-template-columns: 1fr; }
  .ra-sections { grid-template-columns: repeat(2, 1fr); }
  .ra-footer-grid { grid-template-columns: 1fr 1fr; }
}
