:root {
  --ink: #1b3042;
  --night: #132636;
  --cream: #f3eee4;
  --paper: #f7f3eb;
  --gold: #9c7a3e;
  --gold-soft: #e4d2ae;
  --line: rgba(27, 48, 66, 0.14);
  --serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --text: "Literata", Georgia, serif;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #e7d7b0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--night);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  z-index: 30;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1140px, calc(100% - 3rem)); margin-inline: auto; }
.wrap-narrow { width: min(680px, calc(100% - 3rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: var(--night);
  color: var(--cream);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1140px, calc(100% - 3rem));
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}
.brand img {
  width: 42px;
  height: 52px;
  object-fit: cover;
  object-position: center 16%;
  box-shadow: 0 0 0 1px var(--gold-soft);
}
.brand strong, .brand em { display: block; font-style: normal; }
.brand strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand em {
  margin-top: 0.2rem;
  font-family: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.nav-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid rgba(243, 238, 228, 0.35);
  background: transparent;
  color: var(--cream);
  padding: 0.4rem 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.menu {
  margin-left: auto;
  display: flex;
  gap: 1.35rem;
}
.menu a {
  text-decoration: none;
  color: rgba(243, 238, 228, 0.82);
  font-size: 0.92rem;
  padding: 0.2rem 0;
}
.menu a[aria-current="page"] {
  color: var(--cream);
  box-shadow: inset 0 -1px 0 var(--gold-soft);
}
.menu a:hover { color: var(--cream); }

.hero {
  background:
    radial-gradient(820px 480px at 78% 42%, rgba(190, 216, 230, 0.95), transparent 68%),
    radial-gradient(640px 380px at 8% 90%, rgba(228, 206, 164, 0.55), transparent 62%),
    linear-gradient(180deg, #d5e5ef 0%, #e7eef3 55%, #f3eee4 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - var(--header));
  padding: 3.5rem 0 3rem;
}
.kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 8vw, 7.4rem);
}
.hero h1 em {
  display: block;
  margin-top: 0.15rem;
  font-style: italic;
  font-weight: 500;
  color: #3e6d8a;
}
.lede {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  font-size: 1.18rem;
  line-height: 1.55;
}
.actions { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; }
.actions .btn {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}
.actions .btn::after { content: " \2192"; }

.portrait-card { margin: 0; }
.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  background: #efe7da;
  box-shadow:
    0 0 0 12px #f7f3eb,
    0 0 0 13px #c6a56d,
    0 36px 70px rgba(19, 38, 54, 0.18);
}
.portrait-card figcaption {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: #4d6476;
  font-size: 0.92rem;
  line-height: 1.45;
}

.paths {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: min(1140px, calc(100% - 3rem));
  padding: 0;
  margin-bottom: 0;
}
.card {
  min-height: 0;
  display: block;
  text-decoration: none;
  padding: 2rem 1.6rem 2.1rem 0;
  border-right: 1px solid var(--line);
  background: transparent;
}
.card:last-child { border-right: 0; padding-right: 0; }
.card:hover h3 { color: #3e6d8a; }
.card h3 { font-size: 2.15rem; margin: 0 0 0.7rem; }
.card p { margin: 0 0 1.1rem; color: #4d6476; }
.card span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}

.listen {
  background: var(--night);
  color: var(--cream);
  padding: 3.2rem 0;
}
.listen .kicker { color: var(--gold-soft); }
.listen-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}
.listen h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--cream); }
.listen audio { width: min(420px, 100%); }

.panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 5rem 0 4rem;
}
.essay h2 { font-size: clamp(3rem, 6vw, 5rem); margin: 0 0 1.4rem; }
.essay p { font-size: 1.16rem; }
.essay h2 + p::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 5.1rem;
  line-height: 0.72;
  padding: 0.18rem 0.55rem 0 0;
  color: var(--gold);
}
.pull {
  margin: 2.8rem 0;
  padding: 0;
  border: 0;
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.2;
  color: #3e6d8a;
}
.essay .sign {
  margin-top: 2.2rem;
  color: #4d6476;
  font-size: 0.95rem;
}

.page-hero { padding: 4.2rem 0 0.4rem; }
.page-hero h1 { font-size: clamp(3.6rem, 7vw, 6.2rem); margin: 0 0 1rem; }
.page-hero p { max-width: 40rem; color: #415868; font-size: 1.16rem; }
.page-hero h2 { margin-top: 2rem; font-size: clamp(2rem, 3vw, 2.6rem); }

.books, .steps, .goods { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.books { counter-reset: obra; max-width: 720px; }
.books li {
  counter-increment: obra;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin: 0;
  padding: 1rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.books li::before {
  content: counter(obra, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.3rem;
}
.books li strong { font-family: var(--serif); font-size: 1.85rem; font-weight: 500; }

.goods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 2rem;
  max-width: 720px;
}
.goods li {
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0.35rem 0 0.35rem 1rem;
  box-shadow: inset 2px 0 0 var(--gold-soft);
}

.steps { counter-reset: paso; max-width: 760px; }
.steps li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0.35rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  border-radius: 0;
}
.steps li p { margin: 0.15rem 0 0; }

.note {
  max-width: 18em;
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
  margin: 2.2rem 0 0;
}
.gallery button {
  padding: 0;
  border: 0;
  background: #ddd4c6;
  cursor: zoom-in;
  overflow: hidden;
  height: 230px;
}
.gallery button:nth-child(1) { grid-column: span 4; grid-row: span 2; height: auto; min-height: 470px; }
.gallery button:nth-child(2),
.gallery button:nth-child(3) { grid-column: span 2; }
.gallery button:nth-child(4),
.gallery button:nth-child(5) { grid-column: span 3; height: 260px; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.gallery button:hover img { transform: scale(1.03); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  padding: 1.5rem 0 4rem;
  align-items: start;
}
.info, form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.info a[href^="tel"] {
  display: inline-block;
  margin: 0.2rem 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
  text-decoration: none;
}
.info .btn {
  font-family: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
form { border-left: 1px solid var(--line); padding-left: 2.4rem; }
label { display: block; margin-bottom: 1.15rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5c7282; }
input, textarea {
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(27, 48, 66, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0 0.45rem;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }
textarea { min-height: 120px; resize: vertical; }
button.btn {
  border: 0;
  background: var(--night);
  color: var(--cream);
  padding: 0.85rem 1.3rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
button.btn:hover { background: #21445e; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 0.8rem 0; margin: 0 0 1rem; }
.alert.ok { color: #1d5c32; }
.alert.err { color: #8a2b2b; }

.site-footer {
  background: var(--night);
  color: rgba(243, 238, 228, 0.78);
  padding: 2rem 0 5.5rem;
  font-size: 0.95rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--cream); text-decoration: none; }

.wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1c7a45 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7'%3E%3Cpath d='M5 18.5 6.2 15A7.2 7.2 0 1 1 9 18.2L5 18.5z'/%3E%3Cpath d='M9.2 10.2c.2.6.8 1.5 1.6 2 .8.4 1.3.3 1.7-.1l.4-.5c.2-.2.4-.2.6 0l1.1.6c.2.1.3.4.1.6-.4.7-1.2 1.2-2.1 1.1-1.6-.1-3.4-1.5-4.3-3.1-.6-1.1-.4-2 .2-2.6l.5-.5c.2-.2.2-.4 0-.6l-.5-.9c-.2-.3-.1-.6.1-.8l.6-.4z'/%3E%3C/svg%3E") center / 28px no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: 0 10px 24px rgba(12, 40, 24, 0.28);
}
.wa:hover { background-color: #166638; }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(980px, 94vw);
}
dialog::backdrop { background: rgba(10, 18, 26, 0.82); }
dialog img { width: 100%; max-height: 84vh; object-fit: contain; }
dialog form { margin: 0 0 0.45rem; text-align: right; }
dialog button {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 238, 228, 0.4);
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem 1.5rem 1rem;
    background: var(--night);
    flex-direction: column;
    gap: 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: 0.75rem 0; border-bottom: 1px solid rgba(243, 238, 228, 0.08); }
  .hero-grid, .cards, .contact-grid, .goods { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 1.6rem; align-items: start; padding-top: 1.6rem; }
  .portrait-card { order: -1; }
  .hero h1 { font-size: 3.5rem; }
  .cards { width: min(1140px, calc(100% - 3rem)); }
  .card { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
  .listen-inner { flex-direction: column; align-items: start; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button,
  .gallery button:nth-child(1),
  .gallery button:nth-child(2),
  .gallery button:nth-child(3),
  .gallery button:nth-child(4),
  .gallery button:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    height: 180px;
    min-height: 0;
  }
  .gallery button:nth-child(1) { grid-column: 1 / -1; height: 240px; }
  form { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

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