:root {
  --bg: #12110f;
  --paper: #f4efe6;
  --ink: #f4efe6;
  --ink-dark: #1a1612;
  --muted: #c9c1b4;
  --accent: #d4531a;
  --accent-ink: #fff8f3;
  --field: #12110f;
  --field-ink: #f4efe6;

  --font-display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --font-text: "Outfit", system-ui, sans-serif;

  --step-body: 1.125rem;
  --step-lead: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem);
  --step-head: clamp(2.8rem, 1.2rem + 4vw, 5.5rem);
  --step-display: clamp(4.6rem, 1rem + 12vw, 11.5rem);

  --margin: clamp(1.1rem, 2.6vw, 2.4rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, address { margin: 0; }
h1, h2, h3, .wordmark, .footer-word, .product-row__name, .product-row__price {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-wrap: balance;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; background: #2a261f; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.promo {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  text-align: left;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 0.85rem var(--margin) 0;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  padding: 0.45rem var(--margin) 0.9rem;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  color: var(--ink);
}
.wordmark {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem);
  margin-right: auto;
  font-style: italic;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-size: 1.05rem;
  padding-bottom: 0.35rem;
}
.site-nav a:hover,
.cart-link:hover,
.footer-data a:hover,
.footer-col a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.35rem;
}
.cart-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1.05rem; }
.cart-count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-variation-settings: normal;
  letter-spacing: 0;
  line-height: 1;
  font-weight: 500;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

.nav-menu { display: none; }
.menu-btn { font-size: 1.05rem; list-style: none; cursor: pointer; }
.menu-btn::-webkit-details-marker { display: none; }
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1.25rem var(--margin) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: auto;
}
.nav-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}
.nav-panel a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  padding: 0.08rem 0;
}
.nav-meta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.nav-meta a { font-family: var(--font-text); font-style: normal; font-size: 1.15rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.3rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 0;
}
.btn:hover { background: #ef6a2e; }
.btn:active { transform: translateY(1px); }
.btn-full { width: 100%; }
.btn-light { background: var(--accent); color: var(--accent-ink); }

.hero {
  position: relative;
  display: block;
  min-height: calc(100svh - 7.5rem);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.15rem;
  min-height: calc(100svh - 7.5rem);
  padding: 2rem 40vw 2.2rem var(--margin);
}
.hero h1 {
  font-size: var(--step-display);
  max-width: 7ch;
  font-style: italic;
}
.hero p {
  max-width: 28ch;
  font-size: var(--step-lead);
  line-height: 1.35;
}
.hero__photo {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: min(42vw, 560px);
  height: min(68vh, 720px);
  margin: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band,
.band--flip {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 92vh;
  background: var(--bg);
}
.band img,
.band--flip img {
  grid-area: 1 / 1;
  width: 100%;
  height: 92vh;
  min-height: 92vh;
  object-fit: cover;
}
.band__copy,
.band--flip .band__copy {
  grid-area: 1 / 1;
  order: 0;
  align-self: end;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  width: min(34rem, 100%);
  margin: 0;
  padding: 1.5rem var(--margin) 1.7rem;
  background: var(--bg);
  color: var(--ink);
}
.band h2, .close-band h2 { font-size: var(--step-head); font-style: italic; }
.band p { max-width: 32ch; font-size: var(--step-lead); line-height: 1.35; }

.catalog {
  background: var(--paper);
  color: var(--ink-dark);
  padding: var(--section) var(--margin);
}
.catalog h2 {
  font-size: var(--step-head);
  font-style: italic;
  margin-bottom: 0.4rem;
}
.page-hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--margin) 1.5rem;
  max-width: 18ch;
}
.page-hero h1 { font-size: var(--step-display); font-style: italic; max-width: 8ch; }
.page-hero p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: var(--step-lead);
  line-height: 1.35;
  color: var(--muted);
}

.tabs { position: relative; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.tabs__bar label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 1rem + 2vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #8d867b;
  cursor: pointer;
}
.tabs:has(#tab-citricos:checked) label[for="tab-citricos"],
.tabs:has(#tab-huerta:checked) label[for="tab-huerta"],
.tabs:has(#cat-citricos:checked) label[for="cat-citricos"],
.tabs:has(#cat-huerta:checked) label[for="cat-huerta"],
.tabs:has(#cat-todas:checked) label[for="cat-todas"] { color: var(--ink-dark); }

.product-list { display: flex; flex-direction: column; }
.product-list.tab-panel { display: none; }
.tabs:has(#tab-citricos:checked) .panel-citricos,
.tabs:has(#tab-huerta:checked) .panel-huerta,
.tabs:has(#cat-citricos:checked) .panel-citricos,
.tabs:has(#cat-huerta:checked) .panel-huerta,
.tabs:has(#cat-todas:checked) .panel-todas { display: flex; }

.product-row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr) auto;
  grid-template-areas: "media name price" "media meta price";
  gap: 0.25rem 1.25rem;
  align-items: center;
  padding: 0.85rem 0;
  color: inherit;
  background: transparent;
}
.product-row:nth-child(even) { background: transparent; padding-inline: 0; }
.row-media {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  grid-area: media;
}
.row-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row-life { opacity: 0; }
@media (hover: hover) {
  .product-row:hover .row-life { opacity: 1; }
}
.product-row__name {
  grid-area: name;
  font-size: clamp(2.1rem, 1rem + 3.4vw, 4.6rem);
  font-style: italic;
}
.product-row:hover .product-row__name { color: var(--accent); }
.product-row__meta { grid-area: meta; font-size: 1rem; color: #5e584f; }
.product-row__price {
  grid-area: price;
  align-self: center;
  font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 20, "opsz" 48;
}

.mechanism {
  background: var(--bg);
  color: var(--ink);
  padding: var(--section) var(--margin);
}
.mechanism h2 {
  font-size: var(--step-display);
  font-style: italic;
  max-width: 8ch;
  margin-bottom: 1.4rem;
}
.mechanism > p {
  max-width: 40rem;
  font-size: var(--step-lead);
  line-height: 1.4;
  margin-bottom: 0.9rem;
}
.process-cols {
  display: grid;
  gap: 1.6rem;
  margin-top: 3rem;
}
.process-cols h3 {
  font-size: clamp(2.4rem, 1rem + 4vw, 4.5rem);
  font-style: italic;
  margin-bottom: 0.35rem;
}
.process-cols p { max-width: 36ch; }

.close-band {
  display: block;
  background: var(--bg);
  color: var(--ink);
  min-height: 0;
}
.close-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(3rem, 8vw, 6rem) var(--margin) 2rem;
}
.close-band h2 { max-width: 8ch; }
.close-band p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.close-band address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.4rem;
  font-size: 1.1rem;
}
.close-band address strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.close-band img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.bleed-photo img { width: 100%; height: 70vh; object-fit: cover; }

main:has(.pdp),
main:has(.prose-page),
main:has(.cart-page),
main:has(.checkout-page),
main:has(.thanks-page) {
  background: var(--paper);
  color: var(--ink-dark);
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.9fr);
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
.pdp-gallery {
  display: grid;
  gap: 0.4rem;
  background: var(--bg);
  padding: 0.4rem;
  position: sticky;
  top: 5.5rem;
  align-self: start;
}
.pdp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-info { padding: clamp(1.6rem, 4vw, 3.2rem) var(--margin) var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 0.16em; }
.pdp-info h1 { font-size: clamp(3rem, 1.4rem + 4vw, 5.8rem); font-style: italic; max-width: 10ch; }
.notes { margin: 0.9rem 0 1rem; font-size: 1.05rem; }
.pdp-lead { max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; margin-bottom: 0.8rem; }
.pdp-mech { max-width: 46ch; margin-bottom: 1.3rem; }

.sizes { display: grid; gap: 0.2rem; margin-bottom: 0.7rem; }
.sizes label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.15rem;
  cursor: pointer;
}
.sizes input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.sizes label:has(:checked) { background: var(--ink-dark); color: var(--paper); padding-inline: 0.75rem; }
.size-meta { margin-bottom: 1rem; }
.pdp-form:has([value="pequena"]:checked) .meta-clasica,
.pdp-form:has([value="clasica"]:checked) .meta-pequena,
.pdp-form:has([value="pequena"]:checked) .price-clasica,
.pdp-form:has([value="clasica"]:checked) .price-pequena { display: none; }
.qty { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.qty input {
  width: 4.6rem;
  height: 2.8rem;
  border: 1px solid var(--ink-dark);
  background: var(--paper);
  color: var(--ink-dark);
  text-align: center;
  border-radius: 0;
}
.acc { margin-top: 2rem; }
.acc summary {
  cursor: pointer;
  padding: 0.8rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc details p { max-width: 52ch; padding-bottom: 0.8rem; }
.related {
  background: var(--paper);
  color: var(--ink-dark);
  padding: 0 var(--margin) var(--section);
}
.related h2 { font-size: var(--step-head); font-style: italic; margin-bottom: 0.3rem; }

.prose-page,
.cart-page,
.checkout-page,
.thanks-page {
  padding: clamp(2.4rem, 6vw, 4.5rem) var(--margin) var(--section);
  max-width: 46rem;
}
.checkout-page, .cart-page { max-width: 72rem; margin-inline: auto; }
.prose-page h1,
.cart-page h1,
.checkout-page h1,
.thanks-page h1 {
  font-size: clamp(3.2rem, 1.4rem + 5vw, 6rem);
  font-style: italic;
  margin-bottom: 1rem;
}
.prose-page h2 { font-size: clamp(1.8rem, 1.2rem + 1vw, 2.5rem); font-style: italic; margin: 2rem 0 0.6rem; }
.prose-page p { margin-bottom: 0.9rem; max-width: 62ch; }
.prose-page a, .check a { text-decoration: underline; text-underline-offset: 0.16em; }
.prose-page .btn { text-decoration: none; margin-top: 0.5rem; }
.figure-wide { margin: 1.4rem 0; }
.figure-wide img { width: 100%; }
.checkout-lead, .thanks-page > p { max-width: 42ch; margin-bottom: 1.4rem; font-size: var(--step-lead); line-height: 1.35; }

.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 32ch; }
.cart-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 0.9rem 1.1rem;
  align-items: start;
  padding: 1rem 0;
}
.cart-item img { width: 5.5rem; height: 5.5rem; object-fit: cover; }
.cart-item h2 { font-size: clamp(1.6rem, 1rem + 1.4vw, 2.3rem); font-style: italic; margin-bottom: 0.2rem; }
.cart-line { font-family: var(--font-display); font-style: italic; color: var(--accent); }
.cart-remove { margin-top: 0.4rem; text-decoration: underline; text-underline-offset: 0.16em; }
.cart-summary { margin-top: 1.2rem; display: grid; gap: 0.45rem; max-width: 24rem; margin-left: auto; }
.cart-summary > div, .cart-summary .total { display: flex; justify-content: space-between; gap: 1rem; }
.cart-summary .total { font-family: var(--font-display); font-style: italic; font-size: 2rem; margin: 0.3rem 0 0.7rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem;
  align-items: start;
}
.form-grid { display: grid; gap: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field { display: grid; gap: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--ink-dark);
  background: var(--paper);
  color: var(--ink-dark);
  border-radius: 0;
  padding: 0.5rem 0.7rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.pay-box, .order-box { background: #e7e0d4; padding: 1.1rem 1.15rem; }
.pay-box strong { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; font-weight: 560; }
.pay-box p { margin-top: 0.4rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.order-box h2 { font-size: 2rem; font-style: italic; margin-bottom: 0.7rem; }
.order-line {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem 0;
}
.order-line img { width: 3.6rem; height: 3.6rem; object-fit: cover; }
.order-box .cart-summary { max-width: none; margin-left: 0; }
.thanks-hello { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 1rem + 2vw, 3rem); line-height: 1; margin-bottom: 0.6rem; }
.thanks-order { margin-top: 1.4rem; max-width: 36rem; }
.thanks-order h2 { font-size: 2rem; font-style: italic; margin-bottom: 0.5rem; }

.site-footer {
  background: var(--bg);
  color: var(--ink);
  padding: clamp(2.5rem, 6vw, 4rem) var(--margin) 1.4rem;
}
.footer-word {
  font-style: italic;
  font-size: clamp(4rem, 2rem + 12vw, 11rem);
  line-height: 0.8;
  margin-bottom: 1.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem 2.5rem;
}
.footer-brand-col p { max-width: 34ch; margin-bottom: 0.9rem; }
.footer-data { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.footer-col p { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; margin-bottom: 0.3rem; }
.footer-note { max-width: 62ch; margin-top: 2.4rem; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  margin-top: 1.2rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-menu { display: block; }
  .hero__photo { position: relative; width: 100%; height: 62vw; margin-top: 1rem; }
  .hero__copy, .hero { min-height: 0; }
  .hero h1 { font-size: clamp(3.6rem, 16vw, 5.4rem); }
  .pdp, .checkout-grid, .footer-grid, .form-row, .cart-item { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-line { justify-self: start; }
  .cart-summary { margin-left: 0; }
  .product-row {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    grid-template-areas: "media name" "media meta" "media price";
  }
  .row-media { width: 5.4rem; height: 5.4rem; }
  .product-row__price { justify-self: start; }
  .band img, .band--flip img { height: 70vh; min-height: 70vh; }
}

@media (max-width: 560px) {
  .product-row__name { font-size: 2rem; }
  .footer-word { font-size: clamp(3.2rem, 18vw, 4.6rem); }
}
