/* The home page (henrysanchez.co). One screen made to sell, like an Apparta
   linktree cover: Henry's before and after and short story, then the four
   paid options as photo banners (text on the left, the photo fading in on
   the right). Same type and colors as the newer pages (DM Serif Display +
   Jost, green #5A7550, one warm background). */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #FAF8F4; color: #3A3A35;
  font-family: 'Jost', system-ui, sans-serif; font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

:root {
  --green: #5A7550; --ink: #3A3A35; --soft: #66655E;
  --line: #E2DED5; --card: #FFFFFF; --serif: 'DM Serif Display', Georgia, serif;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.top a.access { font-size: 0.92rem; color: var(--soft); text-decoration: none; }
.top a.access:hover { color: var(--green); }

/* Cover: story on the left, banners on the right */
.cover { padding: 2.6rem 0 3.4rem; }
.cover .wrap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 3rem; align-items: start; }
.intro h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.07; }
.intro h1 em { color: var(--green); }
.ba { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 440px; }
.ba figure { position: relative; }
.ba img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 16px; box-shadow: 0 10px 30px rgba(58,58,53,0.14); }
.ba figcaption {
  position: absolute; left: 0.55rem; bottom: 0.55rem; padding: 0.15rem 0.6rem; border-radius: 8px;
  background: rgba(250,248,244,0.92); font-size: 0.82rem; color: var(--ink);
}
.intro .story { margin-top: 1.2rem; font-size: 1.08rem; color: var(--soft); max-width: 34rem; }

/* Banners */
.banners { display: grid; gap: 0.85rem; }
.banners h2 { font-size: 1.5rem; line-height: 1.2; }
.banner {
  position: relative; display: block; min-height: 148px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; box-shadow: 0 6px 22px rgba(58,58,53,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.banner:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(58,58,53,0.13); border-color: #CFC9BC; }
.banner .pic { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; }
.banner .pic img { width: 100%; height: 100%; object-fit: cover; }
.banner .pic::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 55%;
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,0) 100%); z-index: 1;
}
.banner .text { position: relative; z-index: 2; display: block; width: 62%; padding: 1.05rem 0 1.05rem 1.3rem; }
.banner .name { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1.12; color: var(--ink); }
.banner .desc { display: block; margin-top: 0.3rem; font-size: 0.92rem; line-height: 1.4; color: var(--soft); }
.banner .cta { display: block; margin-top: 0.6rem; font-size: 0.92rem; font-weight: 500; color: var(--green); }
.banner .cta b { font-weight: 400; color: var(--ink); margin-right: 0.4rem; }
.banner.main { border-color: var(--green); }
.banner .pic img.clase { object-position: 30% center; }

footer { padding: 1.8rem 0 2.4rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--soft); }
footer .wrap { display: grid; gap: 0.6rem; }
footer .slogan { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--green); }
footer .legal { font-size: 0.8rem; color: #8B897F; }

@media (max-width: 900px) {
  .cover { padding: 1.4rem 0 2.4rem; }
  .cover .wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .ba { max-width: 560px; }
  .ba img { aspect-ratio: 5 / 4; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .intro h1 { font-size: 1.9rem; }
  .ba { margin-top: 1rem; }
  .ba img { aspect-ratio: 5 / 4; }
  .intro .story { font-size: 1rem; margin-top: 0.9rem; }
  .banner { min-height: 140px; }
  .banner .pic { width: 40%; }
  .banner .text { width: 66%; padding: 0.9rem 0 0.9rem 1rem; }
  .banner .name { font-size: 1.22rem; }
  .banner .desc { font-size: 0.85rem; }
  .banner .cta { font-size: 0.86rem; }
}
