:root {
  --ink: #211a16;
  --muted: #6f675f;
  --paper: #fff7e6;
  --paper-strong: #fffdf7;
  --line: #ead8b6;
  --brown: #3b2115;
  --amber: #d97918;
  --gold: #f0b83f;
  --green: #5f7f55;
  --red: #b92d23;
  --blue: #355c7d;
  --shadow: 0 22px 70px rgba(37, 24, 15, 0.14);
}

@font-face {
  font-family: "Deutsch Gothic";
  src: url("assets/fonts/deutsch-gothic.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fffaf1;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-elevated {
  background: rgba(251, 248, 241, 0.95);
  box-shadow: 0 12px 32px rgba(24, 19, 15, 0.09);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-name,
.brand-title {
  font-family: "Deutsch Gothic", "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-name {
  font-size: 1.18rem;
  line-height: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #7e1f19;
  object-fit: cover;
}

.site-nav {
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.84;
}

.site-nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  overflow: hidden;
  background: #2a130c;
  color: #fffaf1;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(42, 19, 12, 0.92) 0%, rgba(42, 19, 12, 0.68) 43%, rgba(42, 19, 12, 0.18) 100%),
    linear-gradient(0deg, rgba(42, 19, 12, 0.58) 0%, rgba(42, 19, 12, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 88px) clamp(56px, 10vh, 116px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd062;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 10vw, 7rem);
}

.brand-title {
  line-height: 0.9;
}

.brand-title span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 250, 241, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #ffd062;
  color: #1f160f;
}

.button-secondary {
  border-color: rgba(255, 250, 241, 0.42);
  color: #fffaf1;
}

.button-outline {
  border-color: var(--line);
  color: var(--brown);
}

.button-light {
  background: #fffaf1;
  color: var(--brown);
}

.button-ghost-light {
  border-color: rgba(255, 250, 241, 0.45);
  color: #fffaf1;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0;
}

.intro,
.categories,
.editions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: start;
}

.editions-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 46px);
  width: min(1260px, calc(100% - 36px));
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.editions-featured .section-heading h2 {
  max-width: 880px;
}

.editions-featured .edition-list {
  width: min(100%, 920px);
  justify-self: center;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-card,
.edition-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 10px 26px rgba(37, 24, 15, 0.05);
}

.category-card {
  min-height: 210px;
  padding: 24px;
}

.category-symbol {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--amber);
}

.category-card[data-accent="gold"] .category-symbol {
  background: var(--gold);
}

.category-card[data-accent="green"] .category-symbol {
  background: var(--green);
}

.category-card[data-accent="red"] .category-symbol {
  background: var(--red);
}

.category-card p,
.edition-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.category-guide {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 14px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f7e4b0;
  color: #6b300d;
  font-size: 0.78rem;
  font-weight: 800;
}

.edition-list {
  display: grid;
  gap: 14px;
}

.edition-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.edition-card h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.edition-city {
  font-weight: 700;
}

.edition-dates {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.edition-dates li {
  position: relative;
  padding-left: 20px;
}

.edition-dates li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.edition-price {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 24px;
  border-left: 4px solid var(--amber);
  padding: 14px 0 14px 16px;
  background: linear-gradient(90deg, rgba(255, 208, 98, 0.2), rgba(255, 208, 98, 0));
}

.edition-card .edition-price p {
  margin: 0;
}

.edition-card .edition-price-label {
  color: var(--brown);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.05;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 0 10px;
  background: #ece2d3;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-abierta {
  background: #dfead8;
  color: #2d5b27;
}

.status-proxima {
  background: #e6ecf2;
  color: var(--blue);
}

.status-cerrada {
  background: #efe6dc;
  color: #7a4b1b;
}

.status-pasada {
  background: #eadfdd;
  color: var(--red);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 10px;
  padding: clamp(46px, 7vw, 76px) clamp(18px, 6vw, 88px);
  background: linear-gradient(135deg, #3b2115 0%, #7e1f19 100%);
  color: #fffaf1;
}

.contact-band h2 {
  max-width: 800px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.contact-email {
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.78);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-image {
    object-position: 53% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(42, 19, 12, 0.93) 0%, rgba(42, 19, 12, 0.68) 66%, rgba(42, 19, 12, 0.24) 100%),
      linear-gradient(0deg, rgba(42, 19, 12, 0.68) 0%, rgba(42, 19, 12, 0) 44%);
  }

  .hero-content {
    width: auto;
    max-width: calc(100% - 36px);
    margin-bottom: 42px;
  }

  .intro,
  .categories,
  .editions {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .edition-card,
  .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .edition-card {
    display: grid;
  }

  .contact-band,
  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .edition-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.94rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .brand-title {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .category-card {
    min-height: auto;
  }
}
