/* juananlasol.com — papel, tinta y el cielo en acuarela de «Soñar A Voces» */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #E9E1CF;
  --paper-2: #E0D6C0;
  --ink: #2B2522;
  --ink-soft: #5E554D;
  --line: #302A26;
  --cosmos: #3D3A5E;
  --accent: #A3456F;
  --on-ink: #F3ECDD;
  --shadow: 0 14px 34px -12px rgba(43, 37, 34, .45);
  --grain-opacity: .35;
  --radius: 6px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1A28;
    --paper-2: #262539;
    --ink: #ECE4D2;
    --ink-soft: #B3AA9B;
    --line: #ECE4D2;
    --cosmos: #A9A2DD;
    --accent: #D683A8;
    --on-ink: #1B1A28;
    --shadow: 0 14px 34px -12px rgba(0, 0, 0, .7);
    --grain-opacity: .18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1A28;
  --paper-2: #262539;
  --ink: #ECE4D2;
  --ink-soft: #B3AA9B;
  --line: #ECE4D2;
  --cosmos: #A9A2DD;
  --accent: #D683A8;
  --on-ink: #1B1A28;
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, .7);
  --grain-opacity: .18;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grano de papel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2 { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; line-height: .95; margin: 0; }
h2 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: .55em; }

/* ---------- cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap;
  padding: 34px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 14px;
  background: linear-gradient(var(--paper) 75%, transparent);
}
.wordmark { display: inline-block; text-decoration: none; }
.wordmark-text {
  font: 700 1.05rem/1 "Fraunces", Georgia, serif;
  text-transform: uppercase; letter-spacing: .38em;
}
/* el monigote, sentado en la «A» de LASOL como en la portada (solo en la zona del título) */
.seat { position: relative; display: inline-block; }
.monigote {
  position: absolute; width: 30px; height: auto;
  left: calc(.36em - 11.7px); bottom: 3px;
  overflow: visible;
}
.monigote .ink, .monigote .ink path { fill: none; stroke: var(--line); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.monigote .head { fill: var(--paper); stroke: var(--line); stroke-width: 2.3; }
.monigote .eye { fill: var(--line); }
.monigote .leg { transform-box: view-box; transform-origin: 18px 60px; }
@media (prefers-reduced-motion: no-preference) {
  .monigote .leg-front { animation: dangle 2.6s ease-in-out infinite; }
  .monigote .leg-back { animation: dangle 2.6s ease-in-out -1.3s infinite; }
}
@keyframes dangle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(7deg); } }

.top nav { display: flex; gap: clamp(12px, 2.4vw, 28px); flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.top nav a:hover { border-bottom-color: currentColor; }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.foot { margin: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }

/* ---------- portada ---------- */
.hero {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 9vw, 110px);
}
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr .95fr; } }
.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 12.5vw, 7rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero-date { margin: 18px 0 0; font: 600 1.15rem/1.3 "Fraunces", Georgia, serif; color: var(--ink-soft); }
.countdown { display: flex; gap: 10px; margin-top: 26px; }
.countdown[hidden] { display: none; }
.countdown div {
  min-width: 70px; padding: 10px 8px 8px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.countdown span { display: block; font: 800 1.9rem/1 "Fraunces", Georgia, serif; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink); transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-ghost:hover { background: var(--paper-2); }
.hint { margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); max-width: 42ch; }
.hero-cover { margin: 0; }
.hero-cover img { width: 100%; border-radius: 3px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .hero-cover img { transform: rotate(1.2deg); } }

/* ---------- bloques ---------- */
.block { padding: clamp(48px, 8vw, 96px) 0; border-top: 1.5px solid color-mix(in srgb, var(--line) 22%, transparent); }
.lead { margin: 0 0 26px; max-width: 60ch; color: var(--ink-soft); }

.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 600px) { .releases { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; } }
.release a { display: block; text-decoration: none; }
.release img { width: 100%; border-radius: 3px; box-shadow: var(--shadow); transition: transform .2s ease; }
.release a:hover img { transform: translateY(-4px) rotate(-.6deg); }
.release h3 { margin: 16px 0 2px; font: 800 1.3rem/1.15 "Fraunces", Georgia, serif; }
.release p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.chip { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1.5px solid currentColor; color: var(--accent); }

.embed { margin-top: 40px; }
.embed[hidden] { display: none; }
.embed-load, .video-load {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: 12px;
  background: transparent; color: var(--ink); font: 600 1rem/1.3 "Inter", system-ui, sans-serif; cursor: pointer;
}
.embed-load:hover { background: var(--paper-2); }
.embed-load small, .video-load small { font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.embed iframe, .video iframe { display: block; width: 100%; border: 0; border-radius: 12px; }

.videos { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.video h3 { margin: 12px 0 0; font: 700 1.1rem/1.2 "Fraunces", Georgia, serif; }
.video-load { aspect-ratio: 16 / 9; padding: 0; border-style: solid; overflow: hidden; position: relative; color: #fff; }
.video-load img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-load span { position: relative; padding: 10px 18px; border-radius: 999px; background: rgba(27, 26, 40, .82); }
.video-load small { position: relative; color: #eee; background: rgba(27, 26, 40, .82); padding: 2px 10px; border-radius: 999px; }
.video iframe { aspect-ratio: 16 / 9; }

.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .about { grid-template-columns: .8fr 1.2fr; } }
.about-photo { width: 100%; max-width: 440px; border-radius: 3px; box-shadow: var(--shadow); }
@media (min-width: 820px) { .about-photo { transform: rotate(-1.5deg); } }
.about-text p { max-width: 60ch; margin: 0 0 1em; }
.about-text .bio p { margin: 0 0 .35em; }

.press { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.press a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border: 1.5px solid color-mix(in srgb, var(--line) 30%, transparent); border-radius: 10px; overflow: hidden; transition: border-color .15s ease; }
.press a:hover { border-color: var(--line); }
.press img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.press span { padding: 12px 14px 14px; font-weight: 600; }
.press small { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.press-bio-cta { margin: 24px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.copied { margin-left: 10px; font-size: .9rem; color: var(--accent); }

.contact .mail {
  display: inline-block; font: 800 clamp(1.45rem, 5vw, 2.6rem)/1.1 "Fraunces", Georgia, serif;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; overflow-wrap: anywhere;
}
.contact .mail:hover { color: var(--accent); }
.social { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.social a:hover { background: var(--ink); color: var(--on-ink); }

.foot { padding: 34px 0 46px; border-top: 1.5px solid color-mix(in srgb, var(--line) 22%, transparent); font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
