/* Rastros e LevantesPE — site shell */
:root {
  --c-red: #ed1c24;
  --c-blue: #0088cb;
  --c-yellow: #ffcb05;
  --c-ink: #1a1a1a;
  --c-muted: #5a5a5a;
  --c-paper: #f7f5f2;
  --c-white: #ffffff;
  --c-line: #e0ddd8;
  --font-display: "Newsreader", "Georgia", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
  --max: 960px;
  --pad: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink);
  background:
    linear-gradient(180deg, #fff 0%, var(--c-paper) 48%, #ebe7e1 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--c-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-red);
}

.site-header {
  background: var(--c-white);
  border-bottom: 3px solid var(--c-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0.75rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

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

.site-brand img {
  height: 48px;
  width: auto;
}

.site-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-red);
}

.nav-toggle {
  display: none;
  background: var(--c-ink);
  color: var(--c-white);
  border: 0;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  justify-content: flex-end;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--c-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--c-red);
  border-bottom-color: var(--c-yellow);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
}

.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  background: #1a1210 center / cover no-repeat;
  color: var(--c-white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 2.75rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  max-width: 14ch;
}

.hero-brand em {
  font-style: normal;
  color: var(--c-yellow);
}

.hero p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--c-red);
  color: var(--c-white);
}

.btn-primary:hover {
  background: #c41219;
  color: var(--c-white);
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: var(--c-white);
  color: var(--c-ink);
}

.page-header {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--c-yellow);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0;
  color: var(--c-ink);
}

.page-header .lede {
  margin: 0.75rem 0 0;
  color: var(--c-muted);
  font-size: 1.05rem;
}

.prose h2,
.romlicontainer h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.75rem 0 0.6rem;
}

.prose h3,
.romlicontainer h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.credits {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--c-white);
  border-left: 4px solid var(--c-blue);
}

.credits h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

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

.credits li {
  margin: 0.35rem 0;
}

.credits li strong {
  color: var(--c-red);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-block {
  background: var(--c-white);
  padding: 1.35rem 1.5rem;
  border-top: 4px solid var(--c-red);
}

.card-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.card-block .author {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--c-muted);
  font-weight: 600;
}

.figure {
  margin: 1.5rem 0;
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-grid a {
  flex: 1 1 220px;
  background: var(--c-white);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--c-ink);
  border-bottom: 3px solid var(--c-blue);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-grid a:hover {
  border-bottom-color: var(--c-red);
  transform: translateY(-2px);
  color: var(--c-ink);
}

.home-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.home-grid span {
  font-size: 0.92rem;
  color: var(--c-muted);
}

.blog-container {
  margin-top: 0.5rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  background: var(--c-white);
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--c-blue);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.blog-title a {
  color: var(--c-ink);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--c-red);
}

.blog-preview {
  color: var(--c-muted);
  font-size: 0.98rem;
}

.blog-preview p {
  margin: 0;
}

.site-footer {
  background: var(--c-ink);
  color: #d8d5d0;
  margin-top: auto;
  padding: 2rem var(--pad);
}

.site-footer-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer a {
  color: var(--c-yellow);
}

.site-footer .footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 0.65rem;
  filter: brightness(1.1);
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.romlifooter {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid var(--c-line);
  }

  .hero {
    min-height: 70vh;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.page-header,
.home-grid a {
  animation: fade-up 0.55s ease both;
}

.home-grid a:nth-child(2) {
  animation-delay: 0.08s;
}
.home-grid a:nth-child(3) {
  animation-delay: 0.16s;
}
.home-grid a:nth-child(4) {
  animation-delay: 0.24s;
}
