/*
  escuelachina.es — 2026
  Sistema editorial rojo/dorado. Sin Bootstrap, sin jQuery.
*/

/* ---------- Tokens ---------- */
:root{
  --paper: #faf6ee;
  --paper-2: #f2e9d8;
  --paper-3: #ece0c8;
  --ink: #201510;
  --ink-soft: #5b4c42;
  --ink-faint: #8a7a6c;
  --red: #ab1d21;
  --red-deep: #7c1417;
  --red-ink: #4a0f11;
  --gold: #b4903f;
  --gold-soft: #e7d9b2;
  --line: rgba(32,21,16,.14);
  --line-soft: rgba(32,21,16,.08);

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif-cjk: 'Fraunces', 'Noto Serif SC', 'Songti SC', 'PingFang SC', 'Heiti SC', 'Microsoft YaHei', 'STSong', serif;

  --container: 1180px;
  --radius-sm: 2px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(32,21,16,.08);
  --shadow: 0 12px 32px -12px rgba(32,21,16,.28);
  --ease: cubic-bezier(.16,.8,.28,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html, body{ overflow-x: hidden; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font: inherit; cursor: pointer; }
svg{ display: block; }
::selection{ background: var(--red); color: var(--paper); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout helpers ---------- */
.wrap{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px){ .wrap{ padding: 0 40px; } }

.section{ padding: 72px 0; position: relative; }
@media (min-width: 900px){ .section{ padding: 96px 0; } }

.section--tight{ padding: 56px 0; }
.section--after-wave{ padding-top: 16px; }
@media (min-width: 900px){ .section--after-wave{ padding-top: 24px; } }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before{
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.heading-row{
  max-width: 640px;
  margin-bottom: 56px;
}
.heading-row h2{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.55rem + 2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.heading-row p{
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.heading-row--center{ margin-left: auto; margin-right: auto; text-align: center; }
.heading-row--center .eyebrow{ justify-content: center; }
.heading-row--center p{ margin-left: auto; margin-right: auto; }

.rule{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn svg{ width: 16px; height: 16px; }

.btn--primary{
  background: var(--red);
  color: var(--paper);
}
.btn--primary:hover{ background: var(--red-deep); }

.btn--ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover{ border-color: var(--ink); }

.btn--on-dark{
  background: transparent;
  color: var(--paper);
  border-color: rgba(250,246,238,.35);
}
.btn--on-dark:hover{ border-color: var(--paper); }

/* ---------- Seal mark (logo) ---------- */
.seal{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  padding: 14px 0;
  background: rgba(250,246,238,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-word{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-word em{
  font-style: normal;
  color: var(--red);
}
.brand-word small{
  display: block;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-top: 1px;
}

.nav-toggle{
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
}
.nav-toggle span{
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px){ .nav-toggle{ display: none; } }

.site-nav{
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.site-nav.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.site-nav ul{
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.site-nav ul a{
  font-family: var(--serif);
  font-size: 2rem;
  padding: 10px 10px;
  display: inline-block;
}
.nav-cta{ margin-top: 28px; text-align: center; }

@media (min-width: 900px){
  .site-nav{
    position: static;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .site-nav ul{
    flex-direction: row;
    gap: 32px;
  }
  .site-nav ul a{
    font-family: var(--sans);
    font-size: .92rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
  }
  .site-nav ul a::after{
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease);
  }
  .site-nav ul a:hover::after{ transform: scaleX(1); transform-origin: left; }
  .nav-cta{ margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 152px 0 0;
  overflow: hidden;
  background: var(--paper);
}
.hero .wrap{ margin-bottom: 32px; }
.hero-glyph{
  position: absolute;
  top: -8%;
  right: -6%;
  font-family: var(--serif-cjk);
  font-size: min(56vw, 640px);
  line-height: 1;
  color: var(--ink);
  opacity: .045;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap{ position: relative; z-index: 1; }
.hero-content{ max-width: 780px; }
.hero h1{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin-bottom: 26px;
}
.hero h1 em{
  font-style: italic;
  color: var(--red);
  font-weight: 500;
}
.hero-lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 40px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
  padding-top: 28px;
  border-top: 2px solid var(--gold);
  width: 100%;
  max-width: 620px;
}
@media (max-width: 480px){
  .hero-stats{ grid-template-columns: minmax(0, auto); gap: 24px; }
}
.hero-stats dt{
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.6vw + 2rem, 3.1rem);
  color: var(--red);
  font-weight: 600;
  line-height: 1;
}
.hero-stats dd{
  margin: 10px 0 0;
  font-size: .85rem;
  color: var(--ink-soft);
  max-width: 18ch;
}

.brush-divider{
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
}

/* ---------- Feature cards (Especialidad) ---------- */
.features{
  display: grid;
  gap: 20px;
}
@media (min-width: 760px){
  .features{ grid-template-columns: repeat(3, 1fr); }
}
.feature{
  background: var(--paper);
  padding: 40px 34px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.feature:hover{
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.feature:hover::before{ transform: scaleX(1); }
.feature-index{
  position: absolute;
  top: -6px;
  right: 20px;
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 600;
  color: var(--gold);
  opacity: .17;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.feature:hover .feature-index{ opacity: .28; transform: translateY(-4px); }
.feature-body{ position: relative; z-index: 1; }
.feature .icon-badge{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(171,29,33,.08);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background-color .3s var(--ease);
}
.feature:hover .icon-badge{ background: var(--red); }
.feature .icon{
  width: 26px;
  height: 26px;
  color: var(--red);
  transition: color .3s var(--ease);
}
.feature:hover .icon{ color: var(--paper); }
.feature h3{
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature p{
  color: var(--ink-soft);
  font-size: .98rem;
}

/* ---------- Método / split section ---------- */
.split{
  display: grid;
  gap: 56px;
  align-items: start;
}
@media (min-width: 900px){
  .split{ grid-template-columns: 1.1fr .9fr; gap: 80px; }
}
.split h2{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.55rem + 2vw, 3rem);
  line-height: 1.1;
  margin-bottom: 22px;
}
.split p{ color: var(--ink-soft); font-size: 1.02rem; }
.split p + p{ margin-top: 18px; }

.stat-card{
  background: var(--ink);
  color: var(--paper);
  padding: 44px 40px;
  border-radius: 10px;
}
.stat-card ul{ display: flex; flex-direction: column; gap: 28px; }
.stat-card li{
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250,246,238,.14);
}
.stat-card li:last-child{ border-bottom: 0; padding-bottom: 0; }
.stat-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(231,217,178,.12);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg{ width: 20px; height: 20px; }
.stat-text{ display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.stat-title{
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
}
.stat-desc{ font-size: .9rem; color: rgba(250,246,238,.65); }

/* ---------- Certificaciones banner ---------- */
.cert-banner{
  background: var(--red);
  color: var(--paper);
  overflow: hidden;
  position: relative;
  padding: 72px 0;
}
@media (min-width: 900px){ .cert-banner{ padding: 96px 0; } }
.cert-banner .wrap{
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px){
  .cert-banner .wrap{ grid-template-columns: auto 1fr; gap: 72px; }
}
.cert-banner .big-num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(231,217,178,.55);
  position: relative;
}
.cert-banner .big-num::before{
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(231,217,178,.3);
}
.cert-banner .big-num-prefix{
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-soft);
  align-self: flex-start;
  margin-top: 30px;
}
.cert-banner .big-num-digit{
  font-family: var(--serif);
  font-size: 5.6rem;
  line-height: 1;
  font-weight: 600;
  color: var(--paper);
}
.cert-banner h3{
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 14px;
}
.cert-banner p{ color: rgba(250,246,238,.85); max-width: 56ch; margin-bottom: 28px; }
.cert-glyph{
  position: absolute;
  right: -4%;
  bottom: -18%;
  font-family: var(--serif-cjk);
  font-size: 40vw;
  color: rgba(250,246,238,.06);
  z-index: 0;
  line-height: 1;
}

/* ---------- Pricing ---------- */
.plans{
  display: grid;
  gap: 24px;
}
@media (min-width: 760px){
  .plans{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  .plans{ grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
.plan{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.plan:hover{ transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.plan--featured{
  border-color: var(--red);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative;
}
.plan--featured::before{
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--red);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-title{ margin-bottom: 22px; }
.plan-title h3{
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.plan-title .plan-tag{
  display: block;
  margin-top: 6px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
}
.plan-title .price{
  display: block;
  margin-top: 10px;
  font-size: .85rem;
  color: var(--ink-faint);
}
.plan-features{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.plan-features li{
  font-size: .92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
}
.plan-features li svg{ width: 15px; height: 15px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.plan .btn{ align-self: flex-start; }

/* ---------- Chengyu ticker (comunidad / cultura) ---------- */
.ticker-section{
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  overflow: hidden;
}
.ticker-section .heading-row h2{ color: var(--paper); }
.ticker-section .heading-row p{ color: rgba(250,246,238,.65); }

.community-stats{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 72px;
}
@media (min-width: 760px){ .community-stats{ grid-template-columns: repeat(4, 1fr); } }
.community-stat{
  padding: 28px 24px;
  border: 1px solid rgba(250,246,238,.14);
  border-radius: 10px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.community-stat:hover{
  border-color: rgba(231,217,178,.5);
  background: rgba(250,246,238,.03);
  transform: translateY(-4px);
}
.community-stat-icon{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(231,217,178,.12);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.community-stat-icon svg{ width: 19px; height: 19px; }
.community-stats .num{
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem);
  color: var(--paper);
  line-height: 1;
}
.community-stats .label{ font-size: .82rem; color: rgba(250,246,238,.65); margin-top: 10px; }

.ticker{
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track{
  display: flex;
  width: max-content;
  gap: 64px;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-item{
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}
.ticker-item .hanzi{
  font-family: var(--serif-cjk);
  font-size: 1.9rem;
  color: var(--paper);
}
.ticker-item .gloss{
  font-size: .85rem;
  color: rgba(250,246,238,.55);
}
.ticker-item .dot{ color: var(--gold); }

@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Contact ---------- */
.contact-quick{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 32px;
}
.contact-list{ display: flex; flex-direction: column; gap: 20px; }
.contact-list li{ display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg{ width: 19px; height: 19px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.contact-list a, .contact-list span{ font-size: .98rem; color: var(--ink-soft); }
.contact-list a:hover{ color: var(--ink); }

.contact-list--inline{
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.social-row{ display: flex; gap: 10px; }
.social-btn{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background-color .2s, border-color .2s, color .2s;
}
.social-btn:hover{ background: var(--red); border-color: var(--red); color: var(--paper); }
.social-btn svg{ width: 17px; height: 17px; }

.map-frame{
  min-height: 360px;
  height: 100%;
  filter: grayscale(45%) contrast(1.05);
}
.map-frame iframe{ width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.locations{
  display: grid;
  gap: 24px;
}
@media (min-width: 800px){
  .locations{ grid-template-columns: repeat(2, 1fr); }
}
.location-card{
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.location-card h3{
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.location-card .hanzi-inline{ font-family: var(--serif-cjk); font-weight: 500; }
.location-tag{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 6px;
  margin-bottom: 22px;
}
.location-card .contact-list{ margin-bottom: 24px; gap: 16px; }
.location-card .contact-list li{ font-size: .92rem; }
.map-frame--small{ min-height: 200px; border-radius: 6px; overflow: hidden; margin-top: auto; }
.map-frame--small iframe{ min-height: 200px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: rgba(250,246,238,.7);
  padding: 72px 0 32px;
}
.footer-top{
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,246,238,.12);
  margin-bottom: 32px;
}
.footer-brand .brand-word{ color: var(--paper); }
.footer-brand p{ margin-top: 14px; font-size: .88rem; max-width: 32ch; color: rgba(250,246,238,.55); }
.footer-cols{ display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4{
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,246,238,.4);
  margin-bottom: 16px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: .92rem; transition: color .2s; }
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(250,246,238,.4);
}
.footer-bottom a:hover{ color: var(--paper); }
.tag-pill{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--paper);
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Legal page ---------- */
.legal-hero{
  padding: 168px 0 72px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1{
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 600;
}
.legal-hero p{ margin-top: 16px; color: var(--ink-soft); max-width: 60ch; }

.legal-nav{
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.legal-nav a{
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid transparent;
}
.legal-nav a:hover{ border-bottom-color: var(--red); }

.legal-body{ max-width: 760px; }
.legal-body h2{
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-top: 8px;
}
.legal-body h3{
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 34px;
  margin-bottom: 10px;
  color: var(--ink);
}
.legal-body h4{
  font-size: .96rem;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 6px;
}
.legal-body p{
  color: var(--ink-soft);
  font-size: .96rem;
  margin-bottom: 14px;
}
.legal-body a{ color: var(--red); text-decoration: underline; }
.legal-block + .legal-block{ margin-top: 88px; padding-top: 64px; border-top: 1px solid var(--line); }

/* ---------- Misc ---------- */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: fixed;
  top: -60px;
  left: 16px;
  background: var(--red);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 300;
  transition: top .2s;
  font-size: .85rem;
  font-weight: 600;
}
.skip-link:focus{ top: 16px; }
