/* ============================================================
   Lucía Ferrán — sitio personal (libros / música / vídeos)
   Paleta y tipografía pensadas para una autora multidisciplinar:
   serif editorial para el nombre y los títulos de obra,
   sans contemporánea para todo lo funcional.
   ============================================================ */

:root {
    --ink: #1b1524; /* fondo principal, casi negro con violeta */
    --ink-soft: #241d31; /* paneles algo más claros sobre --ink */
    --paper: #f3ede3; /* fondo claro para secciones de lectura */
    --paper-text: #241b2e; /* texto sobre --paper */
    --cream-text: #ece5da; /* texto sobre --ink */
    --muted: #b9aec4; /* texto secundario sobre --ink */
    --gold: #c89b3c; /* acento — libros / marca */
    --marron: #b3654a; /* acento — libros / marca */
    --sage: #7c9a86; /* acento — música */
    --clay: #b3654a; /* acento — vídeo */
    --line: #3a2e42; /* líneas divisorias sobre --ink */
    --line-soft: #ddd2c2; /* líneas divisorias sobre --paper */
    --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--cream-text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.30rem;
    line-height: 1.6;
}

h1, h2, h3, .display-font {
    font-family: "Inter", "Fraunces", Georgia, serif;
    font-weight: 500;
    color: var(--cream-text);
    letter-spacing: -0.01em;
}

a { color: inherit; }
a.link-quiet {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a.link-quiet:hover { border-color: currentColor; }

.container-narrow {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 2000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -------------------- Nav -------------------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--ink);

    padding: 1.75rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
}
.site-nav .brand {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav .nav-link {
  color: var(--muted);
  font-size: 0.98rem;
  padding: 0.25rem 0 0.25rem 0 !important;
  margin-left: 1.75rem;
  border-bottom: 1px solid transparent;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--cream-text);
  border-bottom-color: var(--gold);
}
.navbar-toggler {
    border-color: var(--line) !important;
    padding: 0.35rem 0.6rem;
}
.navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(1.6);
    background-image: none;
}

/* -------------------- Hero -------------------- */
.hero {
  padding: 5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero .tagline {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero .cta-row a {
  margin-right: 1.75rem;
  font-size: 1rem;
}

/* Abstract mark built from three overlapping shapes — one per discipline */
.hero-mark {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-mark span {
  position: absolute;
  display: block;
  border-radius: var(--radius);
}
.hero-mark .m-book {
  width: 62%;
  height: 78%;
  left: 0;
  top: 10%;
  background: linear-gradient(155deg, var(--gold), #8a6a24);
  box-shadow: 14px 0 0 -6px rgba(200,155,60,0.35),
              26px 0 0 -10px rgba(200,155,60,0.2);
}
.hero-mark .m-vinyl {
  width: 52%;
  aspect-ratio: 1/1;
  right: 0;
  top: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink) 0 8%, transparent 8.5%),
    repeating-radial-gradient(circle at center, var(--sage) 0, var(--sage) 2px, #5f7a68 2px, #5f7a68 4px);
}
.hero-mark .m-frame {
  width: 58%;
  height: 34%;
  right: 4%;
  bottom: 6%;
  background: linear-gradient(120deg, var(--clay), #7d4634);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero-mark .m-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--paper);
}

/* -------------------- Discipline tags -------------------- */
.tag {
  display: inline-block;
  font-size: 1.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid currentColor;
}
.tag-libro  { color: var(--marron); }
.tag-musica { color: var(--sage); }
.tag-video  { color: var(--clay); }

/* -------------------- Editorial rows (home showcase) -------------------- */
.work-row {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row .work-visual { flex: 0 0 150px; }
.work-row .work-body { flex: 1 1 320px; }
.work-row h3 { font-size: 1.6rem; margin: 0.5rem 0 0.4rem; }
.work-row p { color: var(--muted); margin-bottom: 0.75rem; max-width: 60ch; }

.shape-book {
  width: 96px;
  height: 128px;
  background: linear-gradient(155deg, var(--gold), #8a6a24);
  box-shadow: 10px 0 0 -3px rgba(200,155,60,0.3);
  border-radius: 2px;
}
.shape-vinyl {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink-soft) 0 9%, transparent 9.5%),
    repeating-radial-gradient(circle at center, var(--sage) 0, var(--sage) 3px, #57705f 3px, #57705f 6px);
}
.shape-video {
  width: 140px;
  height: 96px;
  position: relative;
  background: linear-gradient(120deg, var(--clay), #7d4634);
  border-radius: 2px;
}
.shape-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--paper);
}

/* -------------------- Paper sections (bio / listados) -------------------- */
.section-paper {
  background: var(--paper);
  color: var(--paper-text);
  padding: 4rem 0;
}
.section-paper h2 {
  color: var(--paper-text);
}
.section-paper .muted { color: #6b5e77; }
.section-paper hr { border-top: 1px solid var(--line-soft); }

/* -------------------- Listing pages (libros / música / vídeos) -------------------- */
.page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-header p { color: var(--muted); max-width: 60ch; }

.item-row {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.item-row .item-visual { flex: 0 0 120px; }
.item-row .item-body { flex: 1 1 300px; }
.item-row h2 { font-size: 1.4rem; margin: 0.3rem 0; }
.item-row .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.item-row p.desc { color: var(--muted); max-width: 62ch; }

.embed-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

audio { width: 100%; }
audio::-webkit-media-controls-panel { background: var(--ink-soft); }

/* -------------------- Buttons -------------------- */
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover { background: #d8ab4c; color: var(--ink); }

.btn-outline-quiet {
  border: 1px solid var(--line);
  color: var(--cream-text);
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
}
.btn-outline-quiet:hover { border-color: var(--gold); color: var(--gold); }

/* -------------------- Forms -------------------- */
.form-control {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  color: var(--cream-text);
  border-radius: var(--radius);
}
.form-control:focus {
  background: var(--ink-soft);
  color: var(--cream-text);
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(200,155,60,0.25);
}
label { color: var(--muted); margin-bottom: 0.3rem; }

/* -------------------- Footer -------------------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer a { margin-right: 1.25rem; }

/* -------------------- Accessibility -------------------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 767px) {
  .work-row, .item-row { flex-direction: column; align-items: flex-start; }
}
