:root {
  --ivory: #fffdf9;
  --white: #ffffff;
  --sand: #f2e9dc;
  --sand-deep: #e3d3bd;
  --tan: #c7a980;
  --brown: #6f4e37;
  --brown-dark: #3f2b20;
  --brown-soft: #8a6b54;
  --ink: #332820;
  --muted: #75695f;
  --shadow: 0 16px 45px rgba(72, 48, 32, .10);
  --shadow-soft: 0 8px 24px rgba(72, 48, 32, .08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(227,211,189,.45), transparent 26rem),
    linear-gradient(180deg, var(--ivory), #fbf7f0 60%, var(--ivory));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,253,249,.88);
  border-bottom: 1px solid rgba(111,78,55,.10);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Garamond, "EB Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brown);
  box-shadow: var(--shadow-soft);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brown-dark);
  font-weight: 650;
  font-size: .95rem;
  transition: .2s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--sand); }
.menu-btn {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  background: var(--sand);
  color: var(--brown-dark);
  cursor: pointer;
}

.hero {
  padding: 74px 0 46px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--sand-deep);
  background: rgba(255,255,255,.68);
  border-radius: 999px;
  color: var(--brown);
  font-weight: 750;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  margin: 16px 0 14px;
  color: var(--brown-dark);
  font-family: Garamond, "EB Garamond", Georgia, serif;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.025em;
}
.hero .lead {
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
}
.hero-art {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 7% 6% 2%;
  border-radius: 48% 52% 44% 56% / 54% 42% 58% 46%;
  background: linear-gradient(145deg, #eadcc9, #f9f3e9);
  box-shadow: var(--shadow);
}
.hero-art img {
  position: relative;
  width: min(460px, 92%);
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(52,34,22,.22));
  border-radius: 22px;
}
.hero-note {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 2;
  max-width: 210px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(111,78,55,.12);
  box-shadow: var(--shadow-soft);
  color: var(--brown-dark);
  font-size: .88rem;
}

.section { padding: 64px 0; }
.section-title {
  margin: 0 0 12px;
  color: var(--brown-dark);
  font-family: Garamond, "EB Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
}
.section-intro { max-width: 760px; margin: 0 auto 32px; color: var(--muted); }
.center { text-align: center; }

.hasta-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: stretch;
}
.info-card {
  padding: 30px;
  border: 1px solid rgba(111,78,55,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
}
.info-card.big {
  background: linear-gradient(145deg, var(--brown-dark), var(--brown));
  color: var(--white);
}
.info-card.big .section-title { color: var(--white); }
.info-card p { margin: 0; }
.quote-line { margin-top: 20px !important; font-family: Garamond, Georgia, serif; font-size: 1.2rem; opacity: .9; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}
.choice-card {
  position: relative;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid rgba(111,78,55,.13);
  background: linear-gradient(135deg, #f8f1e7, #eee0cd);
  box-shadow: var(--shadow-soft);
  transition: transform .24s ease, box-shadow .24s ease;
}
.choice-card:nth-child(2) { background: linear-gradient(135deg, #fffdfa, #ead9c0); }
.choice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.choice-number {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: Garamond, Georgia, serif;
  font-size: 5.4rem;
  line-height: 1;
  color: rgba(111,78,55,.11);
}
.choice-card h3 { margin: 0 0 4px; font-family: Garamond, Georgia, serif; font-size: 2rem; color: var(--brown-dark); }
.choice-card p { margin: 0; color: var(--muted); }
.choice-link { margin-top: 18px; font-weight: 800; color: var(--brown); }

.page-hero { padding: 70px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
.page-hero p { max-width: 730px; margin: 0 auto; color: var(--muted); font-size: 1.06rem; }
.page-hero .count-pill { margin-top: 20px; }
.count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--brown-dark);
  font-weight: 750;
  font-size: .88rem;
}

.toolbar {
  display: flex;
  justify-content: center;
  margin: 16px auto 34px;
}
.search-wrap {
  width: min(620px, 100%);
  position: relative;
}
.search-wrap span { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--brown-soft); }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--sand-deep);
  outline: none;
  border-radius: 999px;
  padding: 14px 18px 14px 45px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(72,48,32,.04);
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { border-color: var(--tan); box-shadow: 0 0 0 4px rgba(199,169,128,.15); }

.hasta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.hasta-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(111,78,55,.12);
  background: rgba(255,255,255,.88);
  box-shadow: 0 9px 28px rgba(72,48,32,.065);
  transition: transform .22s ease, box-shadow .22s ease;
}
.hasta-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hasta-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f7efe4, #ecdfcf);
}
.hasta-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  transition: transform .25s ease;
}
.hasta-card:hover .hasta-image { transform: scale(1.025); }
.hasta-index {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--brown);
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(72,48,32,.08);
}
.hasta-body { padding: 20px 20px 22px; }
.hasta-name {
  margin: 0;
  color: var(--brown-dark);
  font-family: Garamond, "EB Garamond", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.05;
}
.hasta-meaning { margin: 6px 0 16px; color: var(--brown); font-weight: 750; }
.hasta-body h4 { margin: 0 0 7px; color: var(--brown-dark); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.uses { margin: 0; padding-left: 18px; color: var(--muted); }
.uses li + li { margin-top: 4px; }
.image-fallback {
  width: 100%; height: 100%; display: none; place-items: center; text-align: center;
  padding: 16px; color: var(--brown); font-family: Garamond, Georgia, serif; font-size: 1.35rem;
  border: 1px dashed rgba(111,78,55,.28); border-radius: 14px; background: rgba(255,255,255,.45);
}

.video-section {
  margin-top: 74px;
  padding: 46px 0 72px;
  border-top: 1px solid rgba(111,78,55,.11);
}
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.video-card {
  overflow: hidden;
  text-decoration: none;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(111,78,55,.12);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--sand); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 25%, rgba(35,23,15,.24));
}
.play span {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--brown-dark); font-size: 1.2rem; padding-left: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.video-copy { padding: 18px 20px 20px; }
.video-copy strong { display: block; color: var(--brown-dark); line-height: 1.35; }
.video-copy small { display: block; margin-top: 7px; color: var(--muted); }

.source-note {
  margin-top: 34px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sand);
  color: var(--muted);
  font-size: .87rem;
}
.source-note a { color: var(--brown); font-weight: 750; }

.footer {
  padding: 26px 0 38px;
  color: var(--muted);
  text-align: center;
  font-size: .88rem;
}
.footer-nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-nav a { color: var(--brown); font-weight: 700; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding-top: 46px; }
  .hero-art { min-height: 460px; order: -1; }
  .hero-art img { max-height: 450px; }
  .hasta-intro { grid-template-columns: 1fr; }
  .hasta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1160px); }
  .nav { min-height: 64px; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-btn { display: inline-block; }
  .nav-links {
    position: absolute;
    left: 11px;
    right: 11px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(255,253,249,.98);
    border: 1px solid var(--sand-deep);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .hero-art { min-height: 385px; }
  .hero-note { display: none; }
  .section { padding: 46px 0; }
  .choice-grid, .video-grid, .hasta-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 190px; }
  .page-hero { padding-top: 46px; }
  .hasta-image-wrap { aspect-ratio: 16/10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
