/* CASA DON BRUNO — landing coming soon
   Mismo lenguaje visual que donbruno.com.ar pero adaptado a la casa
   --------------------------------------------------------------- */

:root {
  --paper:     #E8E2D5;
  --paper-lt:  #F4EFE5;
  --bordo:     #4A1219;
  --bronce:    #7A5530;
  --antracita: #1d1c19;
  --rule:      rgba(122, 85, 48, 0.35);
}

@property --brand-weight {
  syntax: '<number>';
  inherits: false;
  initial-value: 350;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
html { background: var(--paper); }

body {
  background: var(--paper);
  color: var(--bordo);
  font-family: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  position: relative;
}

/* Subtle paper texture using radial gradient noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(122, 85, 48, 0.025), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(74, 18, 25, 0.02), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* ---- Eyebrow text — sutil arriba del wordmark ---- */
.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--bronce);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* ---- Brand wordmark — Montserrat, "breathing" weight ---- */
.brand {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 350;
  font-variation-settings: 'wght' var(--brand-weight);
  font-size: clamp(1.8rem, 6vw, 3.8rem);
  letter-spacing: 0.16em;
  color: var(--bronce);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  animation: breath 8s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { --brand-weight: 320; opacity: 1; }
  50%      { --brand-weight: 400; opacity: 1; }
}

/* ---- Divider tiny dot ---- */
.divider {
  font-family: 'Cormorant Garamond', serif;
  color: var(--bronce);
  font-size: 1.2rem;
  margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
  opacity: 0.5;
}

/* ---- Status line — Cormorant italic, bordó ---- */
.status {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--bordo);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
}

/* ---- First wine block — el guiño a Don Bruno ---- */
.firstwine {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--bordo);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
}

.firstwine-label {
  display: block;
  font-style: italic;
  font-size: 0.85em;
  color: var(--bronce);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.firstwine-name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0.2em;
  color: var(--bronce);
}

/* ---- Meta lines — Montserrat uppercase, antracita ---- */
.meta {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--antracita);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---- Divider line ---- */
.divider-line {
  font-family: 'Cormorant Garamond', serif;
  color: var(--bronce);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0.85;
}

/* ---- Contact — Cormorant italic ---- */
.contact {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.contact a {
  color: var(--bordo);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.5s ease, color 0.5s ease;
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--bordo);
  outline: none;
}

/* ---- Language toggle — esquina superior derecha ---- */
.lang-toggle {
  position: fixed;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  background: none;
  border: none;
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--antracita);
  opacity: 0.4;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  opacity: 1;
  outline: none;
}

/* ---- Fade-in cascade on load ---- */
main > *,
.lang-toggle {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

main > .eyebrow        { animation-delay: 0.15s; }
main > .brand          { animation-delay: 0.35s; }
main > .divider        { animation-delay: 0.55s; }
main > .status         { animation-delay: 0.70s; }
main > .origin         { animation-delay: 0.95s; }
main > .divider-line   { animation-delay: 1.10s; }
main > .contact        { animation-delay: 1.30s; }
.lang-toggle           { animation-delay: 1.60s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Brand needs special handling: cascade fade-in + breath both */
main > .brand {
  animation:
    rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards,
    breath 8s ease-in-out 1.5s infinite;
}

.lang-toggle {
  animation: rise-low 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

@keyframes rise-low {
  to { opacity: 0.4; transform: translateY(0); }
}

/* ---- Mobile refinements ---- */
@media (max-width: 480px) {
  body { padding: 1.25rem; }
  .brand { letter-spacing: 0.12em; }
  .firstwine-name { letter-spacing: 0.16em; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  main, main > *, .lang-toggle, .brand {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .lang-toggle { opacity: 0.4 !important; }
}

/* ---- View Transitions for lang switch ---- */
@view-transition {
  navigation: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Print fallback ---- */
@media print {
  .lang-toggle { display: none; }
  body { background: white; color: black; overflow: visible; }
}
