/* ============================================================
   Petit Nola — Portixol, Palma de Mallorca
   World: "Etiqueta" — Mediterranean fruit-crate label lithography.
   Flat unmixed spot colours, fat wood-type, ruled frames,
   condensed gothic small print along the bottom edge of a panel,
   a circular grading seal stamped in the corner.
   Designed & developed by PixelUno · https://pixelUno.es
   ============================================================ */

/* ---- 1. Ink ------------------------------------------------ */

:root {
  /* spot colours — flat, unmixed, printed one layer at a time */
  --aqua: #5fbcc2;
  --aqua-deep: #0e5f69;
  --aqua-pale: #cbe7e8;
  --aqua-ink: #0a464e;
  --tinta: #10221f;
  --tinta-soft: #1c3a35;
  --cal: #f4efe1;
  --cal-dim: #e2dac5;
  --guindilla: #b93318;
  --guindilla-deep: #7e2110;
  --zumo: #e3a21c;
  --palma: #3c6b36;

  /* roles on the bone ground */
  --ground: var(--cal);
  --ink: var(--tinta);
  --ink-soft: #4e5f58;
  --rule: rgba(16, 34, 31, 0.24);
  --rule-strong: rgba(16, 34, 31, 0.55);

  /* map */
  --map-land: #efe8d7;
  --map-sea: #5fbcc2;
  --map-sand: #ecd9a8;
  --map-ink: #10221f;
  --map-dot: rgba(10, 70, 78, 0.5);
  --map-hi: #b93318;

  /* type */
  --wood: "Chonburi", "Bodoni Moda", Georgia, serif;
  --gothic: "Archivo", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --didone: "Bodoni Moda", Georgia, serif;

  /* metrics */
  --strip-h: 34px;
  --head-h: 62px;
  --gut: clamp(1.15rem, 4vw, 3.25rem);
  --panel-y: clamp(3.75rem, 8vw, 7.5rem);
  --rad: 3px;

  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);
}

@media (max-width: 640px) {
  :root {
    --strip-h: 46px;
    --head-h: 56px;
  }
}

/* ---- 2. Reset & base --------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--strip-h) + var(--head-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--guindilla);
  outline-offset: 3px;
  border-radius: 2px;
}

.panel-dark :focus-visible,
.panel-aqua :focus-visible,
.panel-deep :focus-visible,
.panel-chili :focus-visible {
  outline-color: var(--cal);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: calc(var(--strip-h) + 0.5rem);
  z-index: 90;
  transform: translateY(-200%);
  background: var(--tinta);
  color: var(--cal);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

/* ---- 3. Type ----------------------------------------------- */

.wood {
  font-family: var(--wood);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  hyphens: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

.smallprint {
  font-family: var(--gothic);
  font-variation-settings: "wdth" 82;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  line-height: 1.35;
}

.lede {
  font-size: clamp(1.09rem, 1.7vw, 1.32rem);
  line-height: 1.55;
  max-width: 34ch;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

/* dotted rule with small print at both ends — the crate label's
   bottom edge. Never sits above a heading. */
.footrule,
.dayrail-ends,
.map-caption,
.labels-note {
  max-width: none;
}

.footrule {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  border-top: 1.5px solid currentColor;
  padding-top: 0.6rem;
  margin-top: 1.6rem;
}

.footrule > .leader {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 0.5em;
  border-bottom: 2px dotted currentColor;
  opacity: 0.42;
}

/* ---- 4. Panels & the crate frame --------------------------- */

.wrap {
  width: min(1220px, 100% - var(--gut) * 2);
  margin-inline: auto;
}

.panel {
  padding-block: var(--panel-y);
  position: relative;
}

.panel-bone {
  background: var(--cal);
  color: var(--tinta);
}

.panel-aqua {
  background: var(--aqua);
  color: var(--tinta);
  --rule: rgba(16, 34, 31, 0.3);
  --ink-soft: #12403f;
}

.panel-dark {
  background: var(--tinta);
  color: var(--cal);
  --rule: rgba(244, 239, 225, 0.26);
  --ink-soft: #b7c4bd;
}

.panel-deep {
  background: var(--aqua-deep);
  color: var(--cal);
  --rule: rgba(244, 239, 225, 0.26);
  --ink-soft: #bcdcdd;
}

.panel-chili {
  background: var(--guindilla);
  color: var(--cal);
  --rule: rgba(244, 239, 225, 0.3);
  --ink-soft: #f7e3dd;
}

/* the printed frame: double rule inset from the sheet edge, with the
   register marks a litho press leaves in the corners */
.crate {
  border: 2px solid currentColor;
  position: relative;
}

.crate::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
}

.crate-pad {
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
}

.crate > .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid currentColor;
  opacity: 0.8;
  z-index: 3;
  pointer-events: none;
}

.crate > .c-tl {
  top: 12px;
  left: 12px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.crate > .c-tr {
  top: 12px;
  right: 12px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.crate > .c-bl {
  bottom: 12px;
  left: 12px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.crate > .c-br {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* ---- 5. PixelUno preview strip ----------------------------- */

.pu-strip {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--strip-h);
  display: grid;
  place-items: center;
  background: #5b21b6;
  color: #f5f0ff;
  text-align: center;
  padding: 0 0.9rem;
  font-family: var(--gothic);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* ---- 6. Masthead ------------------------------------------- */

.masthead {
  position: fixed;
  top: var(--strip-h);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: var(--gut);
  padding-inline: var(--gut);
  background: var(--cal);
  border-bottom: 2px solid var(--tinta);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.masthead.on-dark {
  background: var(--tinta);
  color: var(--cal);
  border-bottom-color: var(--aqua);
}

.mast-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.mast-mark .seal-mini {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.mast-name {
  font-family: var(--wood);
  font-size: 1.16rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1;
}

.mast-nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  margin-left: auto;
}

.mast-nav a {
  text-decoration: none;
  font-variation-settings: "wdth" 86;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.mast-nav a:hover,
.mast-nav a:focus-visible {
  border-bottom-color: var(--guindilla);
}

.masthead.on-dark .mast-nav a:hover,
.masthead.on-dark .mast-nav a:focus-visible {
  border-bottom-color: var(--aqua);
}

.mast-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

@media (max-width: 940px) {
  .mast-nav {
    display: none;
  }
  .mast-side {
    margin-left: auto;
  }
}

/* language switch — a printed selector, not a dropdown */
.langs {
  display: flex;
  border: 1.5px solid currentColor;
}

.langs button {
  appearance: none;
  background: none;
  border: 0;
  border-right: 1px solid currentColor;
  padding: 0.42rem 0.55rem;
  cursor: pointer;
  font-variation-settings: "wdth" 82;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.langs button:last-child {
  border-right: 0;
}

.langs button[aria-pressed="true"] {
  background: currentColor;
}

.langs button[aria-pressed="true"] span {
  color: var(--cal);
  mix-blend-mode: normal;
}

.masthead.on-dark .langs button[aria-pressed="true"] span {
  color: var(--tinta);
}

.langs button:hover:not([aria-pressed="true"]) {
  background: rgba(185, 51, 24, 0.16);
}

/* ---- 7. Ticket (the primary action) ------------------------ */

.ticket {
  --t-bg: var(--guindilla);
  --t-fg: var(--cal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--t-bg);
  color: var(--t-fg);
  border: 0;
  padding: 0.85rem 1.35rem;
  min-height: 46px;
  text-decoration: none;
  font-variation-settings: "wdth" 88;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease);
  /* punched ticket notches */
  --n: 7px;
  mask:
    radial-gradient(var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.ticket:hover,
.ticket:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(16, 34, 31, 0.55);
}

.ticket:active {
  transform: translateY(0);
}

.ticket .ic {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.ticket-ghost {
  --t-bg: transparent;
  --t-fg: currentColor;
  border: 2px solid currentColor;
  mask: none;
}

.ticket-ghost:hover,
.ticket-ghost:focus-visible {
  background: currentColor;
}

.ticket-ghost:hover .tg-text,
.ticket-ghost:focus-visible .tg-text {
  color: var(--cal);
}

.panel-dark .ticket-ghost:hover .tg-text,
.panel-dark .ticket-ghost:focus-visible .tg-text,
.panel-chili .ticket-ghost:hover .tg-text,
.panel-chili .ticket-ghost:focus-visible .tg-text {
  color: var(--tinta);
}

.ticket-ghost:hover .ic,
.ticket-ghost:focus-visible .ic {
  color: var(--cal);
}

.panel-dark .ticket-ghost:hover .ic,
.panel-chili .ticket-ghost:hover .ic {
  color: var(--tinta);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---- 8. The seal ------------------------------------------- */

.seal {
  display: block;
  color: inherit;
}

.seal .disc {
  fill: var(--aqua);
}

.seal .lettering {
  fill: var(--cal);
}

.seal .ring-text {
  fill: currentColor;
  font-family: var(--gothic);
  font-variation-settings: "wdth" 78;
  font-weight: 700;
  font-size: 9.6px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.seal .ribbon-fill {
  fill: var(--cal);
}

.seal .ribbon-text {
  fill: var(--tinta);
  font-family: var(--gothic);
  font-variation-settings: "wdth" 78;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.15em;
}

.seal .nola {
  font-family: var(--didone);
  font-weight: 500;
  fill: var(--cal);
}

.seal .tick {
  stroke: currentColor;
  opacity: 0.42;
}

.seal .tick-major {
  opacity: 0.8;
}

.seal .dial-arc {
  stroke: var(--guindilla);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
}

.seal .dial-hand {
  fill: var(--guindilla);
}

.seal .hour-num {
  fill: currentColor;
  font-family: var(--gothic);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 10px;
  opacity: 0.75;
}

/* ---- 9. Hero ----------------------------------------------- */

.hero {
  padding-top: calc(var(--strip-h) + var(--head-h) + clamp(1.1rem, 3vw, 2.2rem));
  padding-bottom: clamp(1.1rem, 3vw, 2.2rem);
  background: var(--aqua);
  color: var(--tinta);
  --rule: rgba(16, 34, 31, 0.32);
  position: relative;
  overflow: hidden;
}

.hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  color: var(--aqua-ink);
}

.hero-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
}

.hero-type {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-h1 {
  margin-block: clamp(0.4rem, 1.6vw, 1.1rem) 0;
}

.hero-h1 .wm {
  display: block;
  font-family: var(--wood);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.018em;
  font-size: clamp(3.3rem, 11.4vw, 6rem);
}

.hero-h1 .wm-2 {
  color: var(--cal);
  -webkit-text-stroke: 2px var(--tinta);
  paint-order: stroke fill;
}

.hero-h1 .sub {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--gothic);
  font-variation-settings: "wdth" 84;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
  text-wrap: pretty;
}

.hero-lede {
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  max-width: 40ch;
}

.hero-actions {
  margin-top: clamp(1.2rem, 2.4vw, 1.7rem);
}

.hero-foot {
  margin-top: auto;
  padding-top: 1.25rem;
}

.hero-foot .footrule {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.hero-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-figure {
  position: relative;
  flex: 1 1 auto;
  border: 2px solid var(--tinta);
  overflow: hidden;
  min-height: clamp(240px, 42vh, 460px);
  background: var(--aqua-deep);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
}

.hero-seal {
  position: absolute;
  top: clamp(-14px, -1.2vw, -8px);
  right: clamp(-10px, -0.8vw, -6px);
  width: clamp(124px, 17vw, 206px);
  height: clamp(124px, 17vw, 206px);
  z-index: 3;
  filter: drop-shadow(0 6px 18px rgba(10, 40, 44, 0.32));
}

.hero-cap {
  margin-top: 0.7rem;
}

@media (max-width: 900px) {
  .hero-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-plate {
    order: -1;
  }
  .hero-figure {
    min-height: 52vw;
    max-height: 380px;
  }
  .hero-seal {
    width: 108px;
    height: 108px;
    top: -8px;
    right: -4px;
  }
}

@media (max-width: 640px) {
  .hero-cap .clockwrap {
    display: none;
  }
  .hero-cap .leader {
    min-width: 0;
  }
}

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1.5px solid currentColor;
  padding: 0.4rem 0.7rem;
  font-variation-settings: "wdth" 84;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--guindilla);
  flex: 0 0 auto;
}

.status[data-open="yes"] .dot {
  background: var(--palma);
  box-shadow: 0 0 0 0 rgba(60, 107, 54, 0.55);
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  70%,
  100% {
    box-shadow: 0 0 0 0 rgba(60, 107, 54, 0);
  }
  20% {
    box-shadow: 0 0 0 6px rgba(60, 107, 54, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status[data-open="yes"] .dot {
    animation: none;
  }
}

/* ---- 10. Section headings ---------------------------------- */

.sec-head {
  max-width: 46ch;
}

.sec-head h2 {
  font-family: var(--wood);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.008em;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
}

.sec-head .lede {
  margin-top: clamp(0.9rem, 2vw, 1.3rem);
  max-width: 46ch;
  color: var(--ink-soft);
}

/* ---- 11. The day ------------------------------------------- */

.day-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: end;
}

@media (min-width: 940px) {
  .day-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }
}

.day-seal {
  display: flex;
  justify-content: flex-start;
}

.day-seal .seal {
  width: clamp(180px, 24vw, 268px);
  height: clamp(180px, 24vw, 268px);
}

@media (min-width: 940px) {
  .day-seal {
    justify-content: flex-end;
  }
}

.dayrail {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  position: relative;
}

.dayrail-track {
  position: relative;
  height: 58px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(100% / 15 - 1px),
    var(--rule) calc(100% / 15 - 1px) calc(100% / 15)
  );
}

.dayrail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--aqua);
  opacity: 0.9;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
}

.dayrail-now {
  position: absolute;
  top: -9px;
  bottom: -9px;
  width: 3px;
  background: var(--guindilla);
  transform: translateX(-50%);
}

.dayrail-now::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--guindilla);
}

.dayrail-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
}

.dayrail-hours {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.55rem;
  pointer-events: none;
}

.dayrail-hours span {
  font-variation-settings: "wdth" 78;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.dayrail-hours span:nth-child(even) {
  display: none;
}

@media (min-width: 700px) {
  .dayrail-hours span:nth-child(even) {
    display: inline;
  }
}

.panel-deep .dayrail-now,
.panel-deep .dayrail-now::after {
  border-top-color: var(--zumo);
}

.panel-deep .dayrail-now {
  background: var(--zumo);
}

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 0;
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
  border-top: 1.5px solid var(--rule);
}

.moment {
  padding: 1.5rem clamp(0.9rem, 2vw, 1.6rem) 1.5rem 0;
  border-right: 1.5px solid var(--rule);
}

.moment:last-child {
  border-right: 0;
}

.moment + .moment {
  padding-left: clamp(0.9rem, 2vw, 1.6rem);
}

.moment h3 {
  font-family: var(--wood);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.moment p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.moment .sun {
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  color: var(--zumo);
}

@media (max-width: 720px) {
  .moment {
    border-right: 0;
    border-bottom: 1.5px solid var(--rule);
    padding-right: 0;
  }
  .moment + .moment {
    padding-left: 0;
  }
  .moment:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* ---- 12. Dish labels --------------------------------------- */

.labels {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
}

.label {
  --l-bg: var(--cal);
  --l-fg: var(--tinta);
  grid-column: span 2;
  background: var(--l-bg);
  color: var(--l-fg);
  border: 2px solid var(--l-fg);
  padding: clamp(0.95rem, 1.8vw, 1.35rem);
  display: flex;
  flex-direction: column;
  position: relative;
}

.label-lead {
  grid-column: span 4;
}

.label-figure {
  border: 1.5px solid currentColor;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 1.05rem;
}

.label-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.85s var(--ease);
}

@media (min-width: 1001px) {
  .label-lead {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.1rem, 2vw, 1.7rem);
    align-items: center;
  }
  .label-lead .label-figure {
    margin-bottom: 0;
  }
  .label-lead .label-figure img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 400px;
  }
  .label-lead .label-typeblock {
    display: flex;
    flex-direction: column;
  }
  .label-lead .label-typeblock .footrule {
    margin-top: 1.5rem;
  }
}

.label-lead .label-figure img {
  aspect-ratio: 4 / 5;
}

.label:hover .label-figure img {
  transform: scale(1.035);
}

.label h3 {
  font-family: var(--wood);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.label-lead h3 {
  font-size: clamp(2rem, 4.6vw, 3.05rem);
}

.label p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42ch;
  opacity: 0.92;
}

.label .footrule {
  margin-top: auto;
  letter-spacing: 0.15em;
}

/* the dot leader needs room to read as one; inside a narrow label card the
   rule above already carries the crate-label bottom edge */
.label .footrule .leader {
  display: none;
}

.label-ink-chili {
  --l-bg: var(--guindilla);
  --l-fg: var(--cal);
}

.label-ink-dark {
  --l-bg: var(--tinta);
  --l-fg: var(--cal);
}

.label-ink-palm {
  --l-bg: var(--palma);
  --l-fg: var(--cal);
}

.label-ink-zumo {
  --l-bg: var(--zumo);
  --l-fg: var(--tinta);
}

.label-ink-aqua {
  --l-bg: var(--aqua-deep);
  --l-fg: var(--cal);
}

/* the type-only label — no photograph exists for this dish */
.label-typeset {
  justify-content: space-between;
  gap: clamp(1.6rem, 5vw, 3.2rem);
}

.label-typeblock {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.label-typeblock .footrule {
  margin-top: 1.25rem;
}

.label-typeset .motif {
  width: clamp(96px, 20vw, 210px);
  height: auto;
  margin: 0.2rem 0 0;
  align-self: center;
}

@media (max-width: 1000px) {
  .labels {
    grid-template-columns: repeat(2, 1fr);
  }
  .label {
    grid-column: span 1;
  }
  .label-lead {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .labels {
    grid-template-columns: 1fr;
  }
  .label-lead {
    grid-column: span 1;
  }
}

.labels-note {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  border-top: 1.5px solid var(--rule);
  padding-top: 1rem;
}

.labels-note > :first-child {
  margin: 0;
}

.inline-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s var(--ease);
}

.inline-link:hover,
.inline-link:focus-visible {
  opacity: 0.65;
}

/* ---- 13. The room ------------------------------------------ */

.room {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: center;
}

.room-figure {
  border: 2px solid var(--cal);
  overflow: hidden;
}

.room-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.room-body h2 {
  font-family: var(--wood);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
}

.room-body .quote {
  margin-top: clamp(1.1rem, 2.4vw, 1.6rem);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  max-width: 44ch;
}

.room-facts {
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 44ch;
}

.room-facts li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
}

.room-facts .ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 0.14rem;
  color: var(--aqua);
}

@media (max-width: 860px) {
  .room {
    grid-template-columns: 1fr;
  }
  .room-figure img {
    aspect-ratio: 3 / 2;
  }
}

/* ---- 14. Story & the two houses ---------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.6rem, 5vw, 4.5rem);
  align-items: start;
}

.story blockquote {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.5;
  max-width: 40ch;
}

.story blockquote p + p {
  margin-top: 0.9em;
}

.story cite {
  display: block;
  margin-top: 1.3rem;
  font-style: normal;
}

.houses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
  align-content: start;
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
}

.houses-title {
  grid-column: 1 / -1;
  margin: 0 0 -0.35rem;
}

@media (max-width: 760px) {
  .houses {
    grid-template-columns: minmax(0, 1fr);
  }
}

.story-seal {
  width: clamp(120px, 17vw, 210px);
  height: clamp(120px, 17vw, 210px);
  margin-top: clamp(2rem, 5vw, 3.4rem);
}

@media (max-width: 860px) {
  .story-seal {
    display: none;
  }
}

.house {
  border: 2px solid currentColor;
  padding: clamp(1.05rem, 2.2vw, 1.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.house-flat {
  grid-template-columns: 1fr;
}

.house .stamp {
  width: clamp(64px, 8vw, 84px);
  height: clamp(64px, 8vw, 84px);
  flex: 0 0 auto;
}

.house h3 {
  font-family: var(--wood);
  font-weight: 400;
  font-size: 1.3rem;
  text-transform: uppercase;
  line-height: 1;
}

.house p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.house-self {
  background: var(--aqua-deep);
  border-color: var(--aqua-deep);
  color: var(--cal);
  --ink-soft: #bcdcdd;
}

.house-link:hover,
.house-link:focus-visible {
  background: var(--cal);
  color: var(--tinta);
  --ink-soft: #4e5f58;
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
  }
}

/* ---- 15. Visit --------------------------------------------- */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
}

.mapframe {
  overflow: hidden;
  background: var(--map-land);
}

.mapframe > .corner {
  color: var(--map-ink);
}

.mapframe::before {
  border-color: var(--map-ink);
  opacity: 0.35;
}

.mapart {
  width: 100%;
  height: auto;
  display: block;
}

.map-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tinta);
  color: var(--cal);
  padding: 0.6rem 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 1.35rem;
}

.contact-list dt {
  font-variation-settings: "wdth" 82;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
}

.contact-list dd a {
  text-decoration: none;
  border-bottom: 2px solid var(--aqua);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}

.contact-list dd a:hover,
.contact-list dd a:focus-visible {
  border-bottom-color: var(--guindilla);
}

.visit-actions {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

@media (max-width: 880px) {
  .visit {
    grid-template-columns: 1fr;
  }
}

/* ---- 16. Footer -------------------------------------------- */

.foot {
  background: var(--tinta);
  color: var(--cal);
  --ink-soft: #b7c4bd;
  --rule: rgba(244, 239, 225, 0.24);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.foot-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.foot-seal {
  width: clamp(84px, 11vw, 118px);
  height: clamp(84px, 11vw, 118px);
}

.foot-claim {
  font-family: var(--wood);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  max-width: 16ch;
}

.foot-links {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.foot-links a {
  text-decoration: none;
  font-variation-settings: "wdth" 86;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  border-bottom-color: var(--aqua);
}

.foot-bottom {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  border-top: 1.5px solid var(--rule);
  padding-block: 1.3rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
}

.pu-sign a {
  color: var(--cal);
  text-decoration: none;
  border-bottom: 2px solid #8b5cf6;
  padding-bottom: 1px;
}

.pu-sign a:hover,
.pu-sign a:focus-visible {
  border-bottom-color: var(--cal);
}

.pu-sign .heart {
  color: #a78bfa;
}

@media (max-width: 780px) {
  .foot-top {
    grid-template-columns: 1fr;
  }
}

/* ---- 17. Sticky thumb bar (small screens) ------------------ */

.thumbbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  border-top: 2px solid var(--tinta);
  background: var(--cal);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.thumbbar.up {
  transform: none;
}

.thumbbar a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  text-decoration: none;
  font-variation-settings: "wdth" 86;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.thumbbar a:first-child {
  background: var(--guindilla);
  color: var(--cal);
}

.thumbbar a:last-child {
  background: var(--tinta);
  color: var(--cal);
}

.thumbbar .ic {
  width: 17px;
  height: 17px;
}

@media (max-width: 760px) {
  .thumbbar {
    display: flex;
  }
  body {
    padding-bottom: 0;
  }
  .foot-bottom {
    padding-bottom: 5rem;
  }
}

/* ---- 18. Motion: the registration slip --------------------- */
/* One authored moment: each panel's ink layers settle into
   register, the way a mis-registered litho print snaps true. */

@media (prefers-reduced-motion: no-preference) {
  .reg {
    opacity: 0.55;
    transform: translate3d(var(--rx, -10px), var(--ry, 14px), 0);
    filter: blur(4px);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease),
      filter 0.7s var(--ease);
    transition-delay: var(--rd, 0ms);
  }

  .reg.set {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .no-js .reg {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---- 19. Print --------------------------------------------- */

@media print {
  .pu-strip,
  .masthead,
  .thumbbar,
  .hero-motif {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .panel {
    padding-block: 1.5rem;
    break-inside: avoid;
  }
}
