*, *::before, *::after { -webkit-hyphens: none !important; hyphens: none !important; }
/* ──────────────────────────────────────────────────────────
   TEQUILA TRES ESE — Ficha técnica (tech sheet)
   Screen-elegant, print-ready. One sheet = one PDF page.
   ────────────────────────────────────────────────────────── */

:root{
  --bg:            #F4EEE2;
  --bg-soft:       #EDE3D0;
  --paper:         #FBF7EE;
  --ink:           #2A2218;
  --ink-soft:      #584A38;
  --muted:         #8A7B62;
  --line:          #D8C9AC;
  --copper-deep:   #8A4E1E;
  --gold:          #B08542;
  --gold-light:    #E8CD8C;
  --agave-deep:    #2F3A24;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}
*{ box-sizing: border-box; }

body{
  margin: 0;
  background: #3a3226;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11pt;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

/* ───── Print toolbar (screen only) ───── */
.sheet-toolbar{
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  display: flex; gap: .5rem;
  z-index: 10;
}
.sheet-toolbar a, .sheet-toolbar button{
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: .75rem 1.1rem;
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s ease;
}
.sheet-toolbar a:hover, .sheet-toolbar button:hover{ background: var(--copper-deep); }

/* ───── Sheet — US Letter (8.5 × 11 in), locked height ───── */
.sheet{
  width: 100%;
  max-width: 8.5in;
  /* Screen: let height fit content (no dead space). Print rule below forces 11in page. */
  height: auto;
  background: var(--paper);
  color: var(--ink);
  padding: 14mm 14mm 11mm;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .15  0 0 0 0 .12  0 0 0 0 .08  0 0 0 .10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
/* Decorative hairline border — sits safely outside the content area */
.sheet::before{
  content:"";
  position: absolute;
  top: 7mm; left: 7mm; right: 7mm; bottom: 5mm;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ───── Header ───── */
.sheet-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 5mm;
  padding: 0 0 5mm;
  border-bottom: 1px solid var(--line);
}
.brand-block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2mm;
  line-height: 1;
}
.brand-block .brand-logo{
  height: 24mm;
  width: auto;
  display: block;
}
.brand-block .brand-caption{
  font-size: 7pt;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.sheet-meta{
  text-align: right;
  line-height: 1.3;
}
.sheet-meta .doc-type{
  font-size: 7pt;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}
.sheet-meta .doc-title{
  font-family: var(--serif);
  font-style: italic;
  font-size: 14pt;
  color: var(--ink);
  display: block;
  margin-top: 1.5mm;
}
.sheet-meta .doc-origin{
  font-size: 7.5pt;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2mm;
  display: block;
}

/* ───── Body — sized to its tallest column, no dead middle ───── */
.sheet-body{
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 58mm 1fr;
  gap: 8mm;
  margin: 0 0 6mm;
  min-height: 0;
}
.sheet-bottle{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 14mm;       /* room under the bottle for the shadow to sit */
  position: relative;
}
.sheet-bottle img{
  /* Square 1024×1024 PNGs — explicit width grows the bottle past the column.
     Absolute positioning with negative bottom drops the image so the visible
     bottle base lands directly on the shadow below. */
  position: absolute;
  left: 50%;
  bottom: -11mm;           /* grounded — visible base meets the column's end */
  transform: translateX(-50%);
  width: 170mm;            /* 5% smaller than 179 mm */
  height: auto;
  max-width: none;
  max-height: none;
  z-index: 1;
  filter:
    drop-shadow(0 .5pt 0 rgba(42,34,24,.85))
    drop-shadow(0 2pt 2pt rgba(42,34,24,.35));
}
/* Realistic ground shadow — soft elliptical pool tucked under the bottle base */
.sheet-bottle::after{
  content:"";
  position: absolute;
  left: 50%;
  bottom: -3mm;           /* tucked just under the grounded bottle base */
  transform: translateX(-50%);
  width: 48mm;
  height: 3mm;
  background:
    radial-gradient(ellipse 50% 100% at 50% 50%,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.25) 40%,
      rgba(0,0,0,.08) 70%,
      transparent 95%);
  filter: blur(3pt);
  pointer-events: none;
  z-index: 0;
}
.sheet-content{
  display: flex;
  flex-direction: column;
  gap: 6mm;            /* uniform breathing room between every block */
  min-height: 0;
}

.sheet-h2{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20pt;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.sheet-h2 em{ font-style: italic; color: var(--copper-deep); }
.sheet-tag{
  font-size: 7.5pt;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 2mm;
}

.sheet-lede{
  font-family: var(--sans);
  font-style: normal;
  font-size: 10pt;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
}

.sheet-section-title{
  font-size: 7.5pt;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 2mm;
  padding-bottom: 1.5mm;
  border-bottom: 1px solid var(--line);
}

/* tasting notes */
.sheet-tasting{
  display: grid;
  grid-template-columns: 20mm 1fr;
  row-gap: 2mm;
  column-gap: 4mm;
  margin: 0;
}
.sheet-tasting dt{
  font-size: 7pt;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0;
  padding-top: .5mm;
}
.sheet-tasting dd{
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5pt;
  color: var(--ink-soft);
  line-height: 1.4;
  text-align: left;        /* matches the main site's bottle-section notes — no forced gaps */
  text-wrap: pretty;
  hyphens: auto;
}

/* spec grid — 3 × 3 */
.sheet-specs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5mm;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sheet-specs li{
  display: flex;
  flex-direction: column;
  gap: .4mm;
  padding: 2.2mm 2.5mm;
  border: 1px solid var(--line);
  background: var(--bg);
}
.sheet-specs span{
  font-size: 6pt;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-specs strong{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 10pt;
  color: var(--ink);
}
/* Featured proof cell — ivory label (matches other tile backgrounds),
   bold italic gold number. Both pop. */
.sheet-specs li.proof-cell{
  background: var(--ink);
  border-color: var(--ink);
}
.sheet-specs .proof-cell span{
  color: var(--paper);
  font-weight: 500;
}
.sheet-specs .proof-cell strong{
  color: var(--gold-light);
  font-style: italic;
  font-size: 15pt;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
}

/* origin block */
.sheet-origin{
  margin-top: 0;
  padding: 3mm 4mm;
  background: var(--bg);
  border-left: 3px solid var(--gold);
}
.sheet-origin p{
  margin: 0;
  font-size: 9pt;
  color: var(--ink-soft);
  line-height: 1.4;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
}
.sheet-origin strong{
  color: var(--ink);
  font-weight: 500;
}

/* Foreign-language / Spanish terms in body copy (hacienda, fábrica, jimadores,
   piñas, hornos de mampostería) — italic + warm copper-brown for brand voice. */
.sheet-lede em,
.sheet-origin em{
  color: var(--copper-deep);
  font-style: italic;
}

/* ───── Footer — sits directly below the body, no auto push ───── */
.sheet-foot{
  margin-top: 0;
  padding-top: 4mm;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4mm;
  font-size: 6.5pt;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.sheet-foot .foot-brand{
  font-family: var(--serif);
  font-style: italic;
  font-size: 9pt;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink-soft);
}
.sheet-foot a{ color: var(--copper-deep); text-decoration: none; }
.sheet-foot .foot-link{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5mm;
  color: var(--copper-deep);
  text-decoration: none;
}
.sheet-foot .foot-qr{
  width: 18mm;
  height: 18mm;
  display: block;
}

/* ───── PRINT — US Letter 8.5 × 11 ───── */
@page{
  size: letter portrait;
  margin: 0;
}
@media print{
  html, body{
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body{ display: block; }
  .sheet-toolbar{ display: none !important; }
  .sheet{
    width: 8.5in;
    height: 11in;
    max-width: none;
    box-shadow: none !important;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ───── SCREEN — phone view: keep the desktop Letter layout, just scaled down ───── */
@media (max-width: 640px){
  body{ padding: .75rem; font-size: 9pt; }
  .sheet{
    width: 100%;
    max-width: none;
    /* No fixed aspect-ratio on phones — let the sheet grow tall enough to fit
       all the content (otherwise it'd cut off at Letter proportions). */
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 4.5mm 4.5mm 3.5mm;
  }
  .sheet::before{ top: 2mm; left: 2mm; right: 2mm; bottom: 2mm; }
  /* Header — stay horizontal like desktop */
  .sheet-head{
    flex-direction: row;
    align-items: flex-start;
    gap: 2mm;
    margin: 0 0 2.5mm;
    padding-bottom: 2mm;
  }
  .sheet-meta{ text-align: right; }
  .brand-block{ gap: 1mm; }
  .brand-block .brand-logo{ height: 11mm; }
  .brand-block .brand-caption{ font-size: 4.5pt; letter-spacing: .22em; }
  .sheet-meta .doc-type{ font-size: 4.5pt; letter-spacing: .22em; }
  .sheet-meta .doc-title{ font-size: 8.5pt; margin-top: .8mm; }
  .sheet-meta .doc-origin{ font-size: 4.5pt; letter-spacing: .14em; margin-top: 1mm; }
  /* Body — keep desktop 2-col (bottle left + content right), narrower */
  .sheet-body{
    grid-template-columns: 32mm 1fr;
    gap: 3mm;
    margin-bottom: 2.5mm;
  }
  .sheet-bottle{ padding: 0; }            /* bottle aligns to the bottom of the right-column content */
  .sheet-bottle{ padding: 0 0 10mm; min-height: 110mm; }
  .sheet-bottle img{ width: 124mm; bottom: -7mm; }
  .sheet-bottle::after{ bottom: -2mm; width: 34mm; height: 2.5mm; }
  .sheet-h2{ font-size: 12pt; }
  .sheet-tag{ font-size: 4.5pt; letter-spacing: .22em; margin-bottom: 1mm; }
  .sheet-lede{ font-size: 7pt; line-height: 1.35; max-width: none; }
  .sheet-content{ gap: 3mm; }
  .sheet-section-title{ font-size: 4.5pt; letter-spacing: .22em; margin-bottom: 1mm; padding-bottom: .8mm; }
  .sheet-tasting{ grid-template-columns: 12mm 1fr; row-gap: 1.2mm; column-gap: 2mm; }
  .sheet-tasting dt{ font-size: 4.5pt; letter-spacing: .18em; }
  .sheet-tasting dd{ font-size: 6.5pt; line-height: 1.3; }
  /* Specs stay 3 × 3 like desktop */
  .sheet-specs{ grid-template-columns: repeat(3, 1fr); gap: 1.25mm; }
  .sheet-specs li{ padding: 1.4mm 1.6mm; gap: .25mm; }
  .sheet-specs span{ font-size: 4pt; letter-spacing: .16em; }
  .sheet-specs strong{ font-size: 6.5pt; }
  .sheet-specs .proof-cell span{ font-size: 4.2pt; }
  .sheet-specs .proof-cell strong{ font-size: 9.5pt; }
  .sheet-origin{ padding: 1.5mm 2mm; }
  .sheet-origin p{ font-size: 5.8pt; line-height: 1.3; }
  /* Footer — keep horizontal like desktop */
  .sheet-foot{
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5mm;
    padding-top: 1.8mm;
    font-size: 4pt;
    letter-spacing: .14em;
  }
  .sheet-foot .foot-brand{ font-size: 5.5pt; }
  .sheet-toolbar{ top: .5rem; right: .5rem; }
  .sheet-toolbar a, .sheet-toolbar button{ padding: .45rem .7rem; font-size: .58rem; }
}
