/* Lenù: one-page site.
   Layout: magazine spreads on a phone. Each section is an "article": a huge headline,
   a big typewriter standfirst and a small credit line, with art that breaks the grid.
   No rules, no numbers: white space and alternating placement separate the sections.
   Mobile-first; larger screens become two-page spreads at 900px. */

:root {
  /* For now: white paper, black ink, neutral greys. The final palette comes later. */
  --paper: #ffffff;
  --ink: #000000;
  --mid: #8a8a8a;
  --art: #ececec;
  --art-2: #dcdcdc;

  --head: "Poppins", "Arial Black", system-ui, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --gut: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: clip;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Type roles ---------- */
.hl {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.deck { font-size: 17px; line-height: 1.5; letter-spacing: .05em; max-width: 34ch; }
.deck.ph { color: var(--mid); } /* placeholder copy, to be replaced */
.credit { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.credit b { font-weight: 700; }
.nobreak { white-space: nowrap; }

/* ---------- Logo (inline SVG, follows the ink colour) ---------- */
.logo { display: block; width: 100%; height: auto; aspect-ratio: 5816 / 2713; overflow: visible; fill: currentColor; }
/* Die-cut outline: a thick paper-coloured stroke drawn behind the letters.
   The stroke width is in the logo's own units (about 7px at the header size). */
.logo .halo { fill: var(--paper); stroke: var(--paper); stroke-width: 9700; stroke-linejoin: round; }

/* ---------- Top bar: die-cut logo + MENÚ pill, both fixed, no bar behind ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(var(--gut) + env(safe-area-inset-right, 0px)) 14px calc(var(--gut) + env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar .home { display: block; width: 84px; }

.pill {
  font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 99px;
  padding: 0 18px; min-height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; text-decoration: none;
}

/* ---------- Full-screen menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(var(--gut) + env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) calc(var(--gut) + env(safe-area-inset-left, 0px));
  transform: translateY(-100%); visibility: hidden;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .45s;
}
.overlay.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.overlay .top { display: flex; justify-content: space-between; align-items: center; }
.overlay .home { display: block; width: 84px; }
.overlay nav { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 4px; }
.overlay nav a {
  font-family: var(--head); font-weight: 900; text-transform: uppercase; text-decoration: none;
  font-size: clamp(48px, 15vw, 150px); line-height: 1; letter-spacing: -.015em; text-align: right;
}
.overlay .foot { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Floating blob sticker ---------- */
.blob {
  position: fixed; z-index: 40;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 96px; height: 96px;
  display: grid; place-items: center; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border-radius: 52% 48% 45% 55% / 55% 45% 55% 45%;
  font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em;
  transform: rotate(-6deg);
}

/* ---------- Art placeholders (organic spots where the drawings will go) ---------- */
.art {
  position: relative; display: grid; place-items: center;
  background: var(--art); color: var(--mid); max-width: 100%;
  border-radius: 58% 42% 55% 45% / 46% 58% 42% 54%;
}
.art.b { border-radius: 40% 60% 38% 62% / 60% 40% 60% 40%; background: var(--art-2); }
.art span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; text-align: center; padding: 0 12px; }

/* ---------- Hero: art on top, headline at the foot ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: 84px var(--gut) 56px;
  position: relative; overflow-x: clip;
}
.hero .art { position: absolute; top: 70px; right: -18%; width: 105%; aspect-ratio: 1.15; z-index: 0; }
.hero > *:not(.art) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(46px, 14vw, 168px); }

/* ---------- Articles ---------- */
main { display: grid; gap: 120px; padding-top: 72px; }
.article { padding: 0 var(--gut); display: grid; gap: 16px; position: relative; overflow-x: clip; }
.article h2 { font-size: clamp(46px, 14vw, 150px); }

.vino .art { width: 78%; aspect-ratio: 1; justify-self: end; margin-right: -12%; margin-top: 8px; }
.cocina .art { width: 112%; aspect-ratio: 1.6; margin-left: -6%; margin-bottom: 4px; }
.donde h2 { font-size: clamp(42px, 12.5vw, 140px); }
.donde address { font-style: normal; }
.donde .art { position: absolute; width: 150px; aspect-ratio: .8; right: -22px; bottom: -70px; z-index: -1; }
.donde .pill { justify-self: start; margin-top: 6px; }

.contacto { padding: 0 var(--gut); text-align: center; }
.contacto a { display: block; text-decoration: none; font-size: clamp(40px, 13.5vw, 170px); margin-top: 6px; overflow-wrap: anywhere; }

/* ---------- Footer: giant logo running off the page ---------- */
footer { margin-top: 120px; padding: 0 var(--gut); overflow: clip; }
footer .folio { display: flex; justify-content: space-between; gap: 12px; }
footer .toplink { display: block; width: 104%; margin: 20px -2% -9vw; }

/* ---------- Larger screens: two-page spreads ---------- */
@media (min-width: 900px) {
  :root { --gut: 48px; }
  .bar .home, .overlay .home { width: 120px; }
  .logo .halo { stroke-width: 6800; } /* keeps the outline near 7px at the larger size */
  .deck { font-size: 22px; }
  .blob {
    width: 120px; height: 120px; font-size: 12px;
    right: calc(32px + env(safe-area-inset-right, 0px));
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .hero { padding: 120px var(--gut) 72px; }
  .hero .art { top: 40px; right: -4%; width: 62%; aspect-ratio: 1.5; }
  .hero h1 { font-size: clamp(64px, 8.4vw, 136px); max-width: 15ch; }

  main { gap: 180px; padding-top: 120px; }
  .article { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: center; }
  .vino h2, .vino .deck, .vino .credit { grid-column: 1; }
  .vino .art { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin: 0 -10% 0 0; }
  .cocina .art { grid-column: 1 / -1; width: 100%; aspect-ratio: 2.6; margin: 0; }
  .cocina h2 { grid-column: 1; }
  .cocina .deck { grid-column: 2; align-self: end; }
  .donde { grid-template-columns: 1.4fr 1fr; }
  .donde h2 { grid-column: 1 / -1; max-width: 12ch; }
  .donde .art { width: 260px; right: 8%; bottom: -40px; }
  footer .toplink { margin-bottom: -7vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .overlay, .overlay.open { transition: none; }
}
