/* Otro Sesgo. Tipografías: Piazzolla (HT Fonts) y Libre Franklin (Impallari Type), SIL Open Font License.
   Los estilos base son para celular (360 px) y se agrandan con min-width. */
@font-face { font-family: "Piazzolla"; src: url("/fonts/piazzolla.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Piazzolla"; src: url("/fonts/piazzolla-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f1f1ef;
  --sheet: #fbfbfa;
  --ink: #141414;
  --text: #252524;
  --muted: #595956;
  --rule: #d3d3cf;
  --amber: #f5a623;
  --amber-ink: #3b2800;
  --night-text: #efede8;
  --night-muted: #aaa59b;
  --serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }
img, svg { display: block; }
a { color: inherit; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-family: var(--sans); font-size: 15px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* El subrayado ámbar, con las puntas inclinadas como la barra del logo */
.sesgo {
  font-style: normal;
  background-image: linear-gradient(100deg, transparent .2em, var(--amber) .2em, var(--amber) calc(100% - .2em), transparent calc(100% - .2em));
  background-repeat: no-repeat;
  background-size: 100% .15em;
  background-position: 0 90%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .08em;
  margin: 0 -.08em;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: -.005em;
  text-decoration: none; background: var(--ink); color: var(--paper);
  border-radius: 4px; transition: background-color .15s ease-out;
}
.btn:hover { background: #2e2c29; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 650; font-size: 22px; letter-spacing: -.015em;
}
.mark { height: 24px; width: auto; overflow: visible; }
.nav { display: flex; align-items: center; gap: 24px; font-family: var(--sans); font-size: 15px; }
.nav-link { display: none; text-decoration: none; padding: 12px 0; color: var(--ink); }
.nav-link:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.nav .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Portada */
.hero { padding: 40px 0 56px; }
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(42px, 8.4vw, 92px); line-height: 1.02; letter-spacing: -.02em; word-spacing: .03em;
  max-width: 13ch; margin: 0 0 24px;
}
.hero-grid { display: grid; gap: 48px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text); max-width: 34ch; margin: 0 0 28px; padding-top: 22px; border-top: 1px solid var(--ink); }
.signup { min-height: 47px; }
.signup iframe { display: block; max-width: 100%; }
.signup-note { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; max-width: 44ch; }

/* La última edición, como una hoja impresa con un señalador inclinado */
.issue {
  position: relative; display: flex; flex-direction: column;
  background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--ink);
  padding: 18px 20px 20px;
}
.issue::before {
  content: ""; position: absolute; top: -26px; right: 28px; width: 13px; height: 42px;
  background: var(--amber); transform: rotate(11deg); transform-origin: top center;
}
.issue-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}
.issue-head strong { color: var(--ink); font-weight: 600; }
.issue-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 32px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 12px; }
.issue-title a { text-decoration: none; }
.issue-title a::after { content: ""; position: absolute; inset: 0; }
.issue:hover .issue-title a { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.issue-dek { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.issue-hook { font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; color: var(--ink); margin: 0 0 28px; text-indent: -.42em; }
.issue-stat { margin: auto 0 20px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.stat-num { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.issue-stat figcaption { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--muted); }
.issue-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.issue-cta { font-weight: 600; color: var(--ink); white-space: nowrap; }
.issue-cta span { display: inline-block; transition: transform .2s ease-out; }
.issue:hover .issue-cta span { transform: translateX(4px); }

/* Secciones */
.section { padding: 64px 0; border-top: 1px solid var(--ink); }
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 16px;
}
.section-intro { color: var(--muted); max-width: 38ch; margin: 0 0 32px; }
.split { display: grid; gap: 8px; }

/* Preguntas */
.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; border-top: 1px solid var(--ink); }
.questions li { counter-increment: q; border-bottom: 1px solid var(--rule); }
.q-row { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 12px; padding: 22px 0 20px; text-decoration: none; color: inherit; }
.q-row::before { content: counter(q, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.45; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.q { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.28; letter-spacing: -.012em; color: var(--ink); max-width: 30ch; }
.q-tag { grid-column: 2; margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.q-tag b { font-weight: 600; color: var(--ink); }
a.q-row:hover .q { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 5px; }
a.q-row:hover .q-tag span { transform: translateX(4px); }
.q-tag span { display: inline-block; transition: transform .2s ease-out; }

/* Banda oscura: el logo en grande y una frase de la edición */
.band { background: var(--ink); color: var(--night-text); overflow: hidden; }
.band .wrap { padding-top: 64px; padding-bottom: 72px; display: grid; gap: 36px; }
.band-mark { height: 84px; width: auto; overflow: visible; }
.band-mark .bar-2 { transform-box: fill-box; transform-origin: 50% 100%; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.022em; color: var(--night-text); margin: 0 0 28px; max-width: 14ch; text-wrap: balance; }
.quote em { font-style: normal; color: var(--amber); }
.quote figcaption { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--night-muted); max-width: 52ch; }
.quote figcaption a { color: var(--night-text); }

/* Cómo es y quién escribe */
.about { display: grid; gap: 56px; }
.about-lead { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0 0 24px; max-width: 36ch; }
.ficha { margin: 0; border-top: 1px solid var(--ink); }
.ficha div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ficha dt { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.ficha dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.author p { margin: 0 0 16px; max-width: 46ch; }
.byline { display: flex; align-items: center; gap: 14px; margin: 28px 0 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.byline-mark { flex: none; width: 52px; height: 52px; background: var(--ink); display: grid; place-items: center; }
.byline-mark svg { height: 26px; width: auto; }
.byline strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); }
.byline span { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Cierre en ámbar */
.cta { background: var(--amber); color: var(--ink); }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; gap: 28px; }
.cta h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; max-width: 13ch; margin: 0; }

.cta p { margin: 0 0 24px; max-width: 40ch; }
.cta .signup-note { color: var(--amber-ink); }

/* Pie */
.site-footer { padding: 48px 0 36px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.footer-tag { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--text); margin: 10px 0 0; max-width: 32ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.footer-nav a { display: inline-block; padding: 11px 0; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.colophon { margin: 20px 0 0; font-size: 14px; line-height: 1.55; max-width: 80ch; }

/* Páginas legales y 404 */
.legal { padding: 48px 0 80px; }
.legal .inner { max-width: 68ch; }
.legal h1 { font-size: clamp(38px, 6vw, 60px); max-width: none; margin: 0 0 10px; }
.legal .updated { font-family: var(--sans); font-size: 15px; color: var(--muted); margin: 0 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.legal h2 { font-size: 26px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--muted); }
.notfound { padding: 72px 0 120px; }
.notfound h1 { max-width: 12ch; margin-bottom: 32px; }
.notfound .lead { margin-bottom: 32px; }

/* El único movimiento: la barra ámbar se inclina cuando la banda entra en pantalla */
@keyframes sesgo { from { transform: rotate(-11deg); } to { transform: rotate(0); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band-mark .bar-2 { animation: sesgo linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .issue-cta span, .q-tag span { transition: none; }
}

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .ficha div { grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: baseline; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .issue { padding: 22px 28px 26px; }
  .issue-stat { grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
}

@media (min-width: 720px) {
  .nav-link { display: inline-block; }
  .site-header .wrap { min-height: 72px; }
  .brand { font-size: 24px; }
  .mark { height: 26px; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; }
  .issue { margin-top: 10px; }
  h1 { font-size: clamp(64px, 6.6vw, 88px); margin-bottom: 32px; }
  .lead { font-size: 22px; }
  .section { padding: 96px 0; }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .split-head { position: sticky; top: 32px; }
  .q-row { grid-template-columns: 3rem minmax(0, 1fr) 13rem; padding: 28px 0 26px; align-items: baseline; }
  .q-tag { grid-column: 3; margin: 0; text-align: right; }
  .band .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; padding-top: 104px; padding-bottom: 104px; gap: 56px; }
  .band-mark { order: 2; height: 300px; justify-self: center; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .about > div:first-child { padding-right: 56px; }
  .about > div:last-child { padding-left: 56px; border-left: 1px solid var(--rule); }
  .cta .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 72px; padding-top: 96px; padding-bottom: 96px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .legal { padding: 72px 0 104px; }
}
