/* =========================================================================
   ARTICLES — NOMAD's editorial section
   Paper-and-ink cousin of the editorial pages: same palette and faces as
   pages.css (body.editorial), laid out as a reading surface instead of a
   sales page. Header runs dark-on-paper here because there is no photo hero
   behind it.
   ========================================================================= */

.journal {
  --paper: #f1ece3;
  --card: #fbf8f2;
  --ink: #241d13;
  --soft: #57503f;
  --burgundy: #5d0000;
  --gold: #c2a878;
  --rule: rgba(28, 22, 14, 0.13);
  --sans: "Gantari", "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
.journal main { background: var(--paper); }
.journal .wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- header on paper ---------- */
.journal .site-ui {
  opacity: 1;
  background: rgba(241, 236, 227, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(14px, 1.6vw, 20px);
}
.journal .wordmark img { filter: brightness(0); }
.journal .nav-links a,
.journal .nav-contact {
  color: var(--ink);
  text-shadow: none;
}
.journal .nav-links a:hover,
.journal .nav-contact:hover { color: var(--burgundy); }
.journal .nav-links a.is-active { color: var(--burgundy); }
.journal .nav-toggle span { background: var(--ink); }
.journal .mobile-menu { background: var(--paper); }
.journal .mobile-menu a { color: var(--ink); }
.journal .mobile-menu a:hover,
.journal .mobile-menu a.is-active { color: var(--burgundy); }

/* ---------- hub hero ---------- */
.j-hero {
  padding: clamp(130px, 15vh, 190px) 0 clamp(22px, 3vh, 38px);
  border-bottom: 1px solid var(--rule);
}
.j-hero-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
}
.j-hero-sub {
  margin-top: clamp(16px, 2vh, 26px);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  line-height: 1.35;
  max-width: 22ch;
}
.j-hero-note {
  margin-top: 20px;
  max-width: 50ch;
  color: var(--soft);
  font-size: clamp(1.02rem, 1.15vw, 1.15rem);
  line-height: 1.7;
}

/* ---------- chips, filters ---------- */
.j-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.j-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.j-filter {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.j-filter span { color: var(--soft); font-size: 0.78em; margin-left: 4px; }
.j-filter:hover { border-color: rgba(93, 0, 0, 0.45); }
.j-filter.is-on { background: var(--ink); border-color: var(--ink); color: #f6f2ea; }
.j-filter.is-on span { color: rgba(246, 242, 234, 0.6); }
.j-count { margin: 18px 0 26px; color: var(--soft); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.j-empty { color: var(--soft); padding: 40px 0 60px; }

/* ---------- card grid ---------- */
.j-grid-wrap { padding: clamp(30px, 4.5vh, 54px) 0 clamp(40px, 6vh, 80px); }
.j-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.6vw, 40px) clamp(18px, 2.2vw, 34px);
}
.j-card-link { display: block; color: inherit; }
.j-card-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 3;
}
.j-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.j-card:hover .j-card-media img { transform: scale(1.04); }
.j-card-noimg { width: 100%; height: 100%; background: linear-gradient(140deg, #e7e0d4, #d9d0c1); }
.j-card-body { padding-top: 14px; }
.j-card-title {
  margin-top: 9px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.18rem, 1.55vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.j-card:hover .j-card-title { color: var(--burgundy); }
.j-card-dek {
  margin-top: 10px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.j-card-meta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- article ---------- */
.a-wrap { padding: clamp(120px, 15vh, 180px) 0 clamp(30px, 5vh, 60px); }
.a-crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.a-crumbs a { color: var(--soft); }
.a-crumbs a:hover { color: var(--burgundy); }
.a-head { max-width: 24ch; margin-top: clamp(26px, 4vh, 48px); }
.a-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.a-dek {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  line-height: 1.62;
  color: var(--soft);
}
.a-head, .a-dek, .a-meta { max-width: 62ch; }
.a-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.a-hero-fig {
  margin: clamp(34px, 5vh, 60px) 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.a-hero-fig img { width: 100%; height: auto; display: block; max-height: 72vh; object-fit: cover; }

.a-toc {
  margin: clamp(34px, 5vh, 56px) 0 0;
  max-width: 68ch;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px);
}
.a-toc-h {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.a-toc ol { margin: 14px 0 0; padding-left: 20px; }
.a-toc li { margin: 9px 0; font-size: 1.02rem; }
.a-toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.a-toc a:hover { border-bottom-color: var(--burgundy); color: var(--burgundy); }

/* body typography */
.a-body { max-width: 66ch; margin-top: clamp(34px, 5vh, 58px); font-size: clamp(1.09rem, 1.3vw, 1.24rem); line-height: 1.82; }
.a-body > * + * { margin-top: 1.3em; }
.a-body h2 {
  margin-top: 1.9em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  scroll-margin-top: 110px;
}
.a-body h3 {
  margin-top: 1.6em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  line-height: 1.25;
  scroll-margin-top: 110px;
}
.a-body h4 { margin-top: 1.4em; font-weight: 600; font-size: 1.02em; }
.a-body a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.a-body ul, .a-body ol { padding-left: 1.3em; }
.a-body li { margin: 0.6em 0; padding-left: 0.2em; }
.a-body li::marker { color: var(--gold); }
.a-body strong { font-weight: 600; }
.a-body blockquote {
  border-left: 2px solid var(--burgundy);
  padding-left: 22px;
  font-family: var(--serif);
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--ink);
}
.a-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  display: block;
  overflow-x: auto;
}
.a-body th, .a-body td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.a-body th { background: var(--card); font-weight: 600; }
.a-fig { margin: 1.8em 0; border-radius: 10px; overflow: hidden; background: var(--card); }
.a-fig img { width: 100%; height: auto; display: block; }
.a-fig figcaption {
  padding: 10px 2px 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.a-faq { max-width: 68ch; margin-top: clamp(44px, 6vh, 70px); border-top: 1px solid var(--rule); padding-top: clamp(28px, 4vh, 44px); }
.a-faq h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.015em; }
.a-faq-item { margin-top: 26px; }
.a-faq-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.24rem; line-height: 1.3; }
.a-faq-item p { margin-top: 9px; color: var(--soft); font-size: 1.05rem; line-height: 1.75; }
.a-note {
  max-width: 68ch;
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* related */
.a-rel-wrap { padding: clamp(50px, 8vh, 96px) 0; border-top: 1px solid var(--rule); }
.a-rel-h { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.015em; }
.a-rel-grid { margin-top: clamp(24px, 3vh, 38px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 34px); }
.a-rel { display: block; color: inherit; }
.a-rel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.a-rel-chip {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.a-rel-title { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.18rem; line-height: 1.27; }
.a-rel:hover .a-rel-title { color: var(--burgundy); }

/* ---------- CTA + footer ---------- */
.j-cta { background: #16130f; color: #f6f2ea; padding: clamp(60px, 9vh, 110px) 0; }
.j-cta-kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.j-cta-head { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.j-cta-copy { margin-top: 18px; max-width: 54ch; color: rgba(246, 242, 234, 0.82); font-size: 1.08rem; line-height: 1.7; }
.j-cta-row { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; gap: 14px; }
.j-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  background: var(--gold);
  color: #16130f;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.25s ease;
}
.j-btn:hover { opacity: 0.85; }
.j-btn.ghost { background: transparent; color: #f6f2ea; border: 1px solid rgba(246, 242, 234, 0.35); }

.j-foot { background: var(--paper); border-top: 1px solid var(--rule); padding: 30px 0; }
.j-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.j-foot-links { display: flex; gap: 18px; }
.j-foot a { color: var(--soft); }
.j-foot a:hover { color: var(--burgundy); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .j-grid { grid-template-columns: repeat(2, 1fr); }
  .a-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .j-grid { grid-template-columns: 1fr; }
  .a-rel-grid { grid-template-columns: 1fr; }
  .a-head, .a-title { max-width: none; }
  .j-hero { padding-top: clamp(110px, 15vh, 150px); }
}
@media (prefers-reduced-motion: reduce) {
  .j-card-media img { transition: none; }
}

/* =========================================================================
   FAQ (/faq/ · /es/faq/)
   Same paper surface as the articles; questions are <details> so the answers
   are in the DOM for search and for anyone with JS off, and only the reader's
   eye has to do the filtering.
   ========================================================================= */
.faq-title { font-size: clamp(2.6rem, 7.5vw, 5.6rem); }
.faq-lead {
  margin-top: clamp(18px, 2.4vh, 28px);
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.7;
  color: var(--soft);
}
.faq-wrap { padding: clamp(34px, 5vh, 60px) 0 clamp(50px, 7vh, 90px); }
.faq-group + .faq-group { margin-top: clamp(38px, 5vh, 64px); }
.faq-group-h {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}
.faq-item { border-bottom: 1px solid var(--rule); max-width: 80ch; }
.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  justify-content: space-between;
  padding: clamp(18px, 2.2vh, 24px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  line-height: 1.3;
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--burgundy);
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--burgundy); }
.faq-a {
  padding: 0 0 clamp(20px, 2.6vh, 28px);
  max-width: 68ch;
}
.faq-a p {
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  line-height: 1.8;
  color: var(--soft);
}
.faq-ask {
  margin-top: clamp(48px, 7vh, 84px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(26px, 3.4vw, 44px);
  max-width: 80ch;
}
.faq-ask-h {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}
.faq-ask-sub { margin-top: 8px; color: var(--soft); }
.faq-ask .j-cta-row { margin-top: clamp(20px, 2.6vh, 30px); }
.faq-ask .j-btn.ghost.dark { color: var(--ink); border-color: rgba(28, 22, 14, 0.28); }
.faq-ask .j-btn.ghost.dark:hover { border-color: var(--burgundy); color: var(--burgundy); }
.faq-legal {
  margin-top: clamp(30px, 4vh, 46px);
  max-width: 80ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(87, 80, 63, 0.85);
}
@media (max-width: 620px) {
  .faq-item summary { font-size: 1.08rem; }
}
