/* ElevenLabs editorial system. Display: EB Garamond (open substitute for Waldenburg Light). */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --primary: #111111;
  --primary-active: #2a2a2a;
  --brass: #c99746;
  --ink: #111111;
  --body: #4e4e4e;
  --muted: #777169;
  --muted-soft: #a8a29e;
  --hairline: #e7e5e4;
  --hairline-strong: #d6d3d1;
  --canvas: #f5f0e7;
  --canvas-soft: #f5f0e7;
  --card: #f5f0e7;
  --surface-strong: #ebe4d6;
  --dark: #111111;
  --dark-elevated: #1c1917;
  --walnut: #3a2b22;
  --peach: #f4c5a8;
  --lavender: #c8b8e0;
  --rose: #e8b8c4;
  --serif: "EB Garamond", "Times New Roman", serif;
  --sans: Inter, sans-serif;
  --wrap: 1200px;
  --header: 88px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: calc(var(--header) + 12px); }

html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16px;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus { top: 8px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.site-header.is-stuck { border-bottom-color: var(--hairline-strong); }

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  height: 72px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-desktop a,
.lang-switch a,
.nav-mobile a {
  color: rgba(28, 27, 25, 0.6);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 32px;
  border-left: 1px solid var(--hairline);
}

.lang-switch a[aria-current="true"],
.nav-mobile a[aria-current="true"] { color: rgba(28, 27, 25, 0.92); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-header {
  height: 36px;
  min-height: 36px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.btn-header:hover {
  background: transparent;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1px;
  background: rgba(28, 27, 25, 0.75);
}

.burger { top: 21px; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--canvas);
  padding: 8px max(24px, calc((100% - var(--wrap)) / 2)) 24px;
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile.is-open { display: block; }

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - var(--header));
  background: var(--dark);
  color: #fff;
  overflow: clip;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
}

.hero-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: 62% 42%;
  animation: books-grow 16s ease-in-out infinite alternate;
}

@keyframes books-grow {
  from { transform: scale(1); }
  to { transform: scale(1.28); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.12) 0%, rgba(17, 17, 17, 0.05) 42%, rgba(17, 17, 17, 0.62) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.5) 0%, rgba(17, 17, 17, 0.16) 48%, transparent 78%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  padding: 0 0 72px;
  text-align: left;
}

.kicker {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, .pull {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.36px;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1.92px;
}

.hero h1 em {
  color: var(--brass);
  font-style: italic;
}

.hero .kicker { color: var(--brass); }

.hero h1 {
  font-style: normal;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero .lede { color: rgba(255, 255, 255, 0.86); }

.hero .btn-primary {
  background: #fff;
  color: var(--ink);
}

.hero .btn-primary:hover { background: var(--canvas); }

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.lede {
  max-width: 36rem;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.16px;
  color: var(--body);
}

.hero .lede { margin-inline: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
}

.btn-primary,
.btn-ink {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-ink:hover { background: var(--primary-active); }

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

.btn-block { width: 100%; }

.mark { display: none; }

.section { padding: 96px 0; }

.section-dark {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: 120px 0;
  background: #f5f0e7 url("../img/fingerprint-horizontal.png") left center / cover no-repeat;
  color: var(--ink);
  overflow: hidden;
}

.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(245, 240, 231, 0) 0%, rgba(245, 240, 231, 0) 42%, rgba(245, 240, 231, 0.55) 62%, #f5f0e7 78%);
}

.section-dark .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(640px, calc(100% - 48px));
  margin-right: max(24px, calc((100% - var(--wrap)) / 2));
  margin-left: auto;
  text-align: left;
}

.section h2,
.band-copy h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1.17;
  letter-spacing: -0.36px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-split { padding: 0; }

.split-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(92vh, calc(50vw * 1536 / 1024));
}

.split-screen-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 72px;
  margin: 0;
  padding: 80px 56px 80px max(24px, calc(100% - var(--wrap) / 2));
}

.split-screen-copy .prose { max-width: none; margin: 0; }

.split-screen-copy .prose p:last-child { margin-bottom: 0; }

.split-screen-media { position: relative; }

.split-screen-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.split img,
.piece-row img {
  border-radius: 0;
}

.prose,
.prose p {
  margin: 0 0 16px;
  color: var(--body);
}

.section-dark .lede {
  margin: 0 0 20px;
  max-width: 28rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.55;
  text-transform: uppercase;
  text-align: left;
}

.section-dark .pull {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 8.5vw, 120px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.pull {
  margin: 24px 0 0;
  font-size: 32px;
  line-height: 1.13;
  letter-spacing: -0.32px;
}

.pull strong {
  display: block;
  margin-top: 12px;
  font-weight: 400;
}

.rule {
  width: 32px;
  height: 1px;
  margin: 0 0 16px;
  background: var(--brass);
  border: 0;
}

.section-dark .rule { background: var(--brass); }

.notes {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.notes li {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.notes li:last-child { border-bottom: 1px solid var(--hairline); }

.section-books {
  background: var(--dark);
  color: #f5f0e7;
}

.section-books .kicker { color: var(--brass); }

.section-books > .wrap > .prose { color: rgba(245, 240, 231, 0.78); }

.section-books .book-card {
  background: transparent;
  border: 0;
  color: #f5f0e7;
}

.section-books .book-card:hover { border-color: transparent; }

.section-books .catalog { gap: 32px; }

.section-books .book-card div { padding: 20px 0 0; }

.section-books .book-card h3 { color: var(--brass); }

.section-books .book-card p { color: #f5f0e7; }

.section-books .book-card .meta { color: rgba(245, 240, 231, 0.62); }

.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.book-card,
.journal article,
.journal a.piece {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--hairline);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.book-card:hover,
.journal article:hover {
  border-color: var(--ink);
}

.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-card div,
.journal div { padding: 24px; }

.book-card h3,
.journal h3 {
  margin: 8px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.book-card p,
.journal p {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.47;
}

.book-card p:last-child,
.journal p:last-child { margin-bottom: 0; }

.meta,
.soon {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.96px;
  text-transform: uppercase;
}

.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.journal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

#about {
  position: relative;
  overflow: clip;
}

#about::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 0;
  top: 40px;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}

.band {
  padding: 96px 0;
  background: var(--canvas-soft);
  color: var(--ink);
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

#contact.band {
  background: var(--dark);
  color: #fff;
}

#newsletter.band {
  background: var(--walnut);
  color: #f5f0e7;
}

#newsletter .kicker { color: var(--brass); }

#newsletter .band-copy p { color: rgba(245, 240, 231, 0.78); }

.band-copy,
.embed-shell { padding: 0; }

#contact .kicker { color: var(--brass); }
#contact .rule { background: var(--brass); }
#contact .band-copy a { color: #fff; }

.embed-shell {
  display: block;
}

.embed-shell [data-core-embed] {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

.embed-shell iframe,
.embed-shell [data-core-embed] iframe {
  width: 100%;
  border: 0;
  min-height: 280px;
  background: transparent;
}

.page-hero { padding: 96px 0 16px; }

.stack { display: grid; gap: 48px; }

.piece-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.legal {
  max-width: 42rem;
  padding-bottom: 96px;
}

.legal h2 {
  margin-top: 48px;
  font-size: 32px;
}

.legal h3 {
  margin-top: 24px;
  font-size: 24px;
}

.legal p,
.legal li { color: var(--body); }

.legal a { color: var(--ink); }

.site-footer {
  background: var(--canvas);
  color: var(--body);
  padding: 64px 0;
  font-size: 15px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { color: var(--ink); }

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer p { margin: 4px 0; }

.embed-form {
  font-family: var(--sans);
  color: var(--ink);
}

body.embed-boletin form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

body.embed-boletin .field:nth-child(n + 3),
body.embed-boletin .btn { grid-column: 1 / -1; }

.embed-form .field {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}

.embed-form .field > label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.embed-form .field:has(.choice-group) > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.embed-form .field input,
.embed-form .field textarea,
.embed-form .field select {
  width: 100%;
  min-height: 0;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}

.embed-form .field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.embed-form .field input::placeholder,
.embed-form .field textarea::placeholder {
  color: var(--muted-soft);
  font-style: italic;
}

.embed-form .field input:focus,
.embed-form .field textarea:focus,
.embed-form .field select:focus {
  outline: none;
  border-bottom: 1px solid var(--ink);
}

.embed-form .choice-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.embed-form .choice-group input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  flex: none;
}

.embed-form .choice-group input[type="checkbox"]:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--canvas-soft);
}

.embed-form .choice-group label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-transform: none;
  color: var(--body);
}

.embed-form .btn { margin-top: 8px; }

.form-status,
.embed-form .success-message {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.13;
  color: var(--ink);
}

body.embed-boletin,
body.embed-boletin .embed-form,
body.embed-contacto,
body.embed-contacto .embed-form { color: #fff; }

body.embed-boletin .field > label,
body.embed-boletin .choice-group label,
body.embed-contacto .field > label,
body.embed-contacto .choice-group label { color: rgba(255, 255, 255, 0.72); }

body.embed-boletin .field input,
body.embed-boletin .field textarea,
body.embed-boletin .field select,
body.embed-contacto .field input,
body.embed-contacto .field textarea,
body.embed-contacto .field select {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.embed-boletin .field input::placeholder,
body.embed-boletin .field textarea::placeholder,
body.embed-contacto .field input::placeholder,
body.embed-contacto .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }

body.embed-boletin .field input:focus,
body.embed-boletin .field textarea:focus,
body.embed-boletin .field select:focus,
body.embed-contacto .field input:focus,
body.embed-contacto .field textarea:focus,
body.embed-contacto .field select:focus { border-bottom-color: #fff; }

body.embed-boletin .choice-group input[type="checkbox"],
body.embed-contacto .choice-group input[type="checkbox"] { border-color: #fff; }

body.embed-boletin .choice-group input[type="checkbox"]:checked,
body.embed-contacto .choice-group input[type="checkbox"]:checked {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--dark);
}

body.embed-boletin .choice-group input[type="checkbox"]:checked {
  box-shadow: inset 0 0 0 2px var(--walnut);
}

body.embed-boletin .btn-primary,
body.embed-contacto .btn-primary {
  background: #fff;
  color: var(--ink);
}

body.embed-boletin .btn-primary:hover,
body.embed-contacto .btn-primary:hover { background: var(--canvas); }

body.embed-boletin .form-status,
body.embed-boletin .success-message,
body.embed-contacto .form-status,
body.embed-contacto .success-message { color: #fff; }

@media (max-width: 420px) {
  body.embed-boletin form { grid-template-columns: 1fr; }
}

.hp-field-wrap,
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success-message {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.13;
}

@media (max-width: 1024px) {
  h1 { font-size: 48px; letter-spacing: -0.96px; }
  .catalog { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop,
  .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  :root { --header: 72px; }
  .wordmark img { height: 56px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .split-screen {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .split-screen-copy {
    gap: 48px;
    width: min(var(--wrap), calc(100% - 32px));
    margin-inline: auto;
    padding: 64px 0;
  }
  .split-screen-media { aspect-ratio: 1024 / 1536; }
  .split,
  .catalog,
  .journal,
  .band-grid,
  .piece-row,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-copy {
    width: min(var(--wrap), calc(100% - 32px));
    padding: 0 0 48px;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0.15) 40%, rgba(17, 17, 17, 0.72) 100%);
  }
  .section-dark {
    min-height: 100vh;
    align-items: flex-end;
    background-image: url("../img/fingerprint-vertical.png");
    background-position: center top;
    background-size: cover;
  }
  .section-dark::after {
    background: linear-gradient(180deg, rgba(245, 240, 231, 0) 0%, rgba(245, 240, 231, 0) 48%, rgba(245, 240, 231, 0.7) 68%, #f5f0e7 82%);
  }
  .section-dark .wrap {
    align-items: flex-start;
    width: min(var(--wrap), calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .section-dark .lede,
  .section-dark .pull { text-align: left; }
  .band-grid { gap: 32px; }
  .section { padding: 64px 0; }
  h1 { font-size: 32px; letter-spacing: -0.32px; }
  .section h2,
  .band-copy h2 { font-size: 32px; }
}

@media (max-width: 640px) {
  .catalog,
  .journal { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stage img { animation: none; }
}
