/* El Costurero de Coli & Lu — palette taken from the logo */
:root {
  --cream: #fbf6ef;
  --ink: #2e2320;
  --red: #b3302b;
  --green: #2f5b3f;
  --line: #eadfd2;
  --muted: #5b4c45;
  --muted-2: #7a6a61;
  --chip-line: #d8cabb;
  --tile: #efe5d8;
  --gold: #f1d9a8;
  --serif: 'Young Serif', serif;
  --sans: 'Work Sans', sans-serif;
  --script: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.section-border { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
.script { margin: 0; font-family: var(--script); font-weight: 600; font-size: 30px; line-height: 1; }
.script--green { color: var(--green); }
.script--red { color: var(--red); }
.script--cream { color: var(--gold); }

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 15px 26px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.btn--sm { padding: 10px 18px; }
.btn--red, .btn--red:hover { background: var(--red); color: #fff; }
.btn--outline { border: 1px solid var(--ink); padding: 14px 26px; }
.btn--cream, .btn--cream:hover { background: var(--cream); color: var(--ink); }
.btn--white, .btn--white:hover { background: #fff; color: var(--red); padding: 16px 28px; font-weight: 600; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 239, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand__name { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.brand__accent { color: var(--red); }
.nav { display: flex; gap: 26px; font-size: 15px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Variant: "Foto grande" (default) */
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 260px 260px 20px 20px; }
.hero__badge {
  position: absolute;
  left: -12px;
  bottom: 32px;
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(46, 35, 32, .12);
  font-family: var(--script);
  font-weight: 600;
  font-size: 26px;
  color: var(--red);
  line-height: 1;
}

/* Variant: "Collage" */
.hero__collage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 1;
}
.hero__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.hero__collage .hero__collage-tall { grid-row: span 2; border-radius: 220px 220px 18px 18px; }

html[data-hero="foto"] .hero__collage,
html[data-hero="collage"] .hero__photo { display: none; }

/* ---------- Collection ---------- */
.collection { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.collection__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.collection__intro { display: flex; flex-direction: column; gap: 10px; }
.collection__sub { margin: 0; color: var(--muted); font-size: 16px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--chip-line);
  background: transparent;
  color: var(--ink);
}
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 32px 20px;
}
.product { display: flex; flex-direction: column; gap: 12px; }
.product[hidden] { display: none; }
.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 16px; background: var(--tile); }
.product__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product__name { font-size: 16px; font-weight: 500; }
.product__cat { font-size: 13px; color: var(--muted-2); white-space: nowrap; }

/* ---------- How to order ---------- */
.orders { background: var(--green); color: var(--cream); }
.orders__inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 56px;
}
.orders__text { display: flex; flex-direction: column; gap: 20px; }
.orders__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #d9e4da; max-width: 30em; }
.orders__text .btn { align-self: flex-start; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid #4b7459; }
.step:last-child { border-bottom: 1px solid #4b7459; }
.step__num { font-family: var(--serif); font-size: 28px; color: var(--gold); }
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__title { font-size: 18px; font-weight: 500; }
.step__text { font-size: 15px; line-height: 1.55; color: #c6d6c9; }

/* ---------- About ---------- */
.about {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: center;
}
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; }
.about__photos .about__photo-offset { margin-top: 48px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 32em; text-wrap: pretty; }

/* ---------- Fairs ---------- */
.fairs { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.fairs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fairs__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.fairs__ig { font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.fairs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.fairs__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: #fff; }
.footer__inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  max-width: 12em;
  text-wrap: balance;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font-size: 14px;
}
.footer__bottom a, .footer__bottom a:hover { color: #fff; }
