:root {
  --night-top: #0d2b2b;
  --night-bot: #123f37;
  --parchment: #f5eedd;
  --parchment-card: #fbf6ea;
  --ink: #2b2620;
  --ink-soft: #6b6253;
  --amber: #d98e3a;
  --amber-deep: #b9701f;
  --pine: #3a7d5d;
  --line: #e3d9c0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 30, 25, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6vh 1.5rem;
  color: var(--parchment);
  background: radial-gradient(120% 120% at 50% 0%, var(--night-bot) 0%, var(--night-top) 70%);
  overflow: hidden;
}

.hero__topo {
  position: absolute;
  inset: 0;
  color: var(--amber);
  opacity: 0.14;
  pointer-events: none;
}
.hero__topo svg { width: 100%; height: 100%; }

.hero__content {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero__logo {
  width: clamp(140px, 26vw, 220px);
  color: var(--parchment);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  margin-bottom: 1rem;
}

.hero__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--amber);
  letter-spacing: 0.02em;
}

.hero__lead {
  margin-top: 1.1rem;
  color: rgba(245, 238, 221, 0.82);
  font-size: 1.05rem;
}
.hero__lead strong { color: var(--parchment); }

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #2b2009; }
.btn--primary:hover { background: #e7a24f; }
.btn--ghost { border: 1.5px solid rgba(245, 238, 221, 0.4); color: var(--parchment); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.chevron {
  width: 14px; height: 14px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ---------- Catalog ---------- */
.catalog {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem 2rem;
}
.catalog__head { text-align: center; margin-bottom: 2.5rem; }
.catalog__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.catalog__title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}
.catalog__sub { color: var(--ink-soft); margin-top: 0.6rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
.grid__state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 0;
}

.card {
  background: var(--parchment-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.5s ease both;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(20, 30, 25, 0.18);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.card__cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--line);
  display: block;
}
.card__body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}
.card__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}
.card__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pine);
  background: rgba(58, 125, 93, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.card__meta { font-size: 0.8rem; color: var(--ink-soft); }
.download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: var(--parchment);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.download:hover { background: var(--amber-deep); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.footer a { color: var(--amber-deep); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
