/* GuíaTere — revista de montaña, cultura y viajes
   Design éditorial chaleureux — papier crème, terre cuite, ocre, vert pin.
   Aucune photo : héros et vignettes en dégradés CSS. */

:root {
  --paper: #f8f3ea;
  --paper-2: #f0e8d8;
  --paper-3: #e9dec9;
  --ink: #2a2016;
  --ink-soft: #6b5c47;
  --terra: #c05a2e;
  --terra-deep: #96421f;
  --ochre: #d69a38;
  --ochre-soft: #ecd9ae;
  --pine: #2e5c4f;
  --pine-deep: #1e4238;
  --line: #e0d3bb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 40px -22px rgba(42, 32, 22, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ochre-soft); }

a { color: var(--terra-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 99;
}
.skip:focus { left: 0; }

/* ---------- barre supérieure ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: .65rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-text { font-family: var(--serif); font-size: 1.45rem; line-height: 1.05; letter-spacing: .01em; }
.brand-text b { color: var(--terra); font-weight: 700; }
.brand-text small {
  display: block; font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .18rem;
}
.nav { display: flex; gap: 1.15rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.875rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--terra); border-bottom-color: var(--ochre); }
.nav a.is-active { color: var(--terra-deep); border-bottom-color: var(--terra); }

/* ---------- héros en dégradés ---------- */
.hero {
  position: relative; overflow: hidden; color: #fbf6ec;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(214, 154, 56, .95) 0%, rgba(214, 154, 56, 0) 46%),
    radial-gradient(150% 120% at 15% 100%, rgba(30, 66, 56, .85) 0%, rgba(30, 66, 56, 0) 55%),
    linear-gradient(175deg, #c05a2e 0%, #a3491f 38%, #6e3a52 68%, #2e3a4a 100%);
}
.hero--b {
  background:
    radial-gradient(110% 80% at 20% 10%, rgba(236, 217, 174, .9) 0%, rgba(236, 217, 174, 0) 42%),
    radial-gradient(140% 110% at 85% 95%, rgba(46, 92, 79, .9) 0%, rgba(46, 92, 79, 0) 58%),
    linear-gradient(170deg, #2e5c4f 0%, #27504a 45%, #96421f 100%);
}
.hero--c {
  background:
    radial-gradient(100% 70% at 82% 18%, rgba(192, 90, 46, .95) 0%, rgba(192, 90, 46, 0) 40%),
    radial-gradient(160% 120% at 10% 105%, rgba(42, 32, 22, .9) 0%, rgba(42, 32, 22, 0) 52%),
    linear-gradient(168deg, #d69a38 0%, #c05a2e 48%, #6e3a52 100%);
}
.hero::after { /* chaîne de montagnes stylisée */
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background:
    linear-gradient(to top right, rgba(42, 32, 22, .96) 49.6%, transparent 50.2%) 0 100% / 62% 100% no-repeat,
    linear-gradient(to top left, rgba(42, 32, 22, .88) 49.6%, transparent 50.2%) 100% 100% / 46% 78% no-repeat,
    linear-gradient(to top right, rgba(30, 66, 56, .92) 49.6%, transparent 50.2%) 34% 100% / 42% 62% no-repeat;
  opacity: .85;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 5.2rem 1.4rem 6.4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; margin: .4rem 0 .9rem;
  font-weight: 700; letter-spacing: -.01em; max-width: 21ch;
  text-wrap: balance; text-shadow: 0 2px 26px rgba(42, 32, 22, .35);
}
.hero-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 58ch; margin: 0;
  color: #f6ecd9; text-shadow: 0 1px 16px rgba(42, 32, 22, .4);
}

/* ---------- kickers, titres ---------- */
.kicker {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--terra);
  margin: 0 0 .5rem;
}
.kicker--light { color: var(--ochre-soft); }
.page-title { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.14; margin: .1rem 0 .8rem; text-wrap: balance; }
.page-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 1rem; font-style: italic; }

/* ---------- article ---------- */
main { display: block; }
.article {
  max-width: 760px; margin: 0 auto; padding: 2.6rem 1.4rem 3.4rem;
}
.article--wide { max-width: 960px; }
.article h2 {
  font-size: 1.5rem; line-height: 1.25; margin: 2.4rem 0 .8rem; letter-spacing: -.005em;
}
.article h2::before {
  content: ""; display: block; width: 3.2rem; height: 3px; margin-bottom: .7rem;
  background: linear-gradient(90deg, var(--terra), var(--ochre));
}
.article h3 { font-size: 1.16rem; margin: 1.8rem 0 .5rem; }
.article p { margin: 0 0 1.15rem; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.article li { margin-bottom: .45rem; }
.article li::marker { color: var(--terra); font-weight: 700; }
.article strong { font-weight: 700; }
.article figure { margin: 2rem 0; }
.article figcaption {
  font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft);
  margin-top: .55rem; letter-spacing: .02em;
}
.dropcap > p:first-of-type::first-letter {
  float: left; font-size: 3.4em; line-height: .82; padding: .06em .12em 0 0;
  color: var(--terra); font-weight: 700;
}
blockquote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--ochre);
  font-style: italic; font-size: 1.16rem; color: var(--ink-soft);
}
.dateline {
  font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft);
  letter-spacing: .05em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .5rem 0; text-transform: uppercase;
}
.dateline span:first-child { color: var(--terra-deep); font-weight: 700; }

/* tuiles «photo» en dégradé */
.ph { border-radius: 10px; box-shadow: var(--shadow); }
.ph--a { height: 240px; background:
  radial-gradient(90% 70% at 75% 20%, rgba(236, 217, 174, .85) 0%, transparent 45%),
  linear-gradient(170deg, #c05a2e, #96421f 55%, #2e3a4a); }
.ph--b { height: 240px; background:
  radial-gradient(80% 60% at 25% 25%, rgba(214, 154, 56, .8) 0%, transparent 50%),
  linear-gradient(165deg, #2e5c4f, #1e4238 60%, #2a2016); }
.ph--c { height: 240px; background:
  radial-gradient(100% 80% at 50% 100%, rgba(192, 90, 46, .75) 0%, transparent 55%),
  linear-gradient(160deg, #d69a38, #c05a2e 50%, #6e3a52); }

/* encadré */
.notebox {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.1rem 1.3rem; margin: 1.8rem 0; font-size: .95rem;
}
.notebox p:last-child { margin-bottom: 0; }
.notebox .kicker { margin-bottom: .35rem; }

/* sommaire */
.toc {
  background: var(--paper-2); border-radius: 12px; padding: 1.2rem 1.5rem;
  margin: 1.6rem 0 2.2rem; border: 1px solid var(--line);
}
.toc h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.toc h2::before { display: none; }
.toc ol { margin: 0; font-family: var(--sans); font-size: .92rem; }

/* ---------- migas ---------- */
.crumbs {
  font-family: var(--sans); font-size: 0.875rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.2rem;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--terra); }
.crumbs-sep { margin: 0 .45rem; color: var(--ochre); }

/* ---------- cartes / maillage ---------- */
.related { max-width: 960px; margin: 0 auto; padding: 0 1.4rem 3.6rem; }
.related-title {
  font-size: 1.25rem; margin: 0 0 1.1rem;
}
.related-title::before {
  content: ""; display: block; width: 3.2rem; height: 3px; margin-bottom: .6rem;
  background: linear-gradient(90deg, var(--terra), var(--ochre));
}
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fffdf8; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -20px rgba(42, 32, 22, .5); }
.card-tone { display: block; height: 96px; }
.card-tone--a { background:
  radial-gradient(90% 80% at 70% 15%, rgba(236, 217, 174, .9) 0%, transparent 50%),
  linear-gradient(165deg, #c05a2e, #96421f 55%, #2e3a4a); }
.card-tone--b { background:
  radial-gradient(80% 70% at 25% 25%, rgba(214, 154, 56, .85) 0%, transparent 52%),
  linear-gradient(160deg, #2e5c4f, #1e4238 58%, #2a2016); }
.card-tone--c { background:
  radial-gradient(100% 90% at 50% 100%, rgba(192, 90, 46, .8) 0%, transparent 58%),
  linear-gradient(160deg, #d69a38, #c05a2e 52%, #6e3a52); }
.card-body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.card-kicker {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terra);
}
.card-title { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
.card-desc { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }

/* liste éditoriale (index de tags/categorías) */
.postlist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.postlist li {
  border-top: 1px solid var(--line); padding: 1.1rem 0; margin: 0;
  display: flex; flex-direction: column; gap: .25rem;
}
.postlist li::marker { content: none; }
.postlist a.pl-title { font-size: 1.22rem; font-weight: 700; text-decoration: none; }
.postlist a.pl-title:hover { color: var(--terra); }
.postlist .pl-meta { font-family: var(--sans); font-size: 0.875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.postlist .pl-desc { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* tags en ligne */
.tagrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.tag {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600; letter-spacing: .05em;
  text-decoration: none; color: var(--pine-deep); background: #e7efe9;
  border: 1px solid #cfdcd2; border-radius: 999px; padding: .28rem .8rem;
}
.tag:hover { background: var(--pine); color: #fff; border-color: var(--pine); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #e9e0cd; margin-top: 2rem; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 3rem 1.4rem 3.4rem;
  display: grid; grid-template-columns: minmax(230px, 1fr) 2.2fr; gap: 2.4rem;
}
.footer-name { font-size: 1.7rem; margin: 0 0 .6rem; color: #f8f3ea; }
.footer-name b { color: var(--ochre); }
.footer-note { font-size: .92rem; color: #c9bda3; line-height: 1.6; max-width: 36ch; }
.footer-note + .footer-note { margin-top: .8rem; }
.footer-copy { font-family: var(--sans); font-size: 0.875rem; color: #a2957c; margin-top: 1.2rem; }
.footer-copy a { color: var(--ochre); }
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem;
}
.footer h3 {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); margin: 0 0 .7rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .42rem; }
.footer li a { color: #e9e0cd; text-decoration: none; font-size: .9rem; }
.footer li a:hover { color: var(--ochre); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .topbar-inner { justify-content: center; }
  .hero-inner { padding: 3.4rem 1.2rem 4.6rem; }
  .article { padding: 2rem 1.1rem 2.6rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  body { font-size: 17px; }
}

/* ---------- fotografías ---------- */
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42,32,22,.92) 0%, rgba(42,32,22,.78) 55%, rgba(30,58,74,.55) 100%);
}
.article figure.lead-figure { margin: 0 0 1.8rem; }
.article figure.lead-figure img {
  width: 100%; max-width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover;
  display: block; border-radius: 10px; box-shadow: var(--shadow);
}


/* ---------- Accesibilidad: objetivos táctiles ≥ 40 px ---------- */
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0; }
.crumbs a { display: inline-block; padding: 10px 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-copy a { display: inline-block; padding: 10px 0; }

/* Autor */
.dateline a{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.autor-caja{margin:2.4rem 0 0;padding:1.15rem 1.35rem;border:1px solid var(--line);border-radius:12px;background:rgba(194,90,46,.05)}
.autor-caja .autor-caja__rol{margin:0 0 .3rem;font-size:0.875rem;letter-spacing:.2em;text-transform:uppercase;color:var(--terra-deep,#9a4526);font-weight:700}
.autor-caja .autor-caja__nombre{margin:0 0 .5rem;font-size:1.06rem}
.autor-caja .autor-caja__nombre a{color:inherit;text-decoration:none;border-bottom:1px solid var(--line)}
.autor-caja p:last-child{margin:0;font-size:.94rem;color:var(--ink-soft)}
