/* Limoncello Turksema — vintage Italian liquore poster */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cobalto: #1E3FA0;
  --notte: #122a6e;
  --limone: #F2C500;
  --crema: #F6EFD6;
  --foglia: #2E6B3F;

  --display: "Bodoni Moda", "Didot", "Bodoni MT", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--cobalto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cobalto);
  outline-offset: 2px;
  border-radius: 2px;
}
.ritual :focus-visible,
.hero :focus-visible,
.footer :focus-visible {
  outline-color: var(--crema);
}

::selection { background: var(--limone); color: var(--notte); }

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--notte);
  background: var(--limone);
  text-decoration: none;
  border: 2px solid var(--notte);
  border-radius: 3px;
  padding: 0.85em 1.5em;
  box-shadow: 4px 4px 0 var(--notte);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--notte); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--notte); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--notte);
}

.hero-canvas {
  position: relative;
  height: 64svh;
  min-height: 420px;
  overflow: hidden;
}

/* The inner canvas always keeps the artwork's exact aspect ratio and covers
   the viewport box, so % coordinates map 1:1 onto the artwork at any size. */
.hero-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: max(100%, 66.67vw);
  aspect-ratio: 1536 / 1024;
  container-type: inline-size;
}
.hero-inner img {
  width: 100%;
  height: 100%;
}

/* Brand set in real text over the bottle's blank label */
.bottle-label {
  position: absolute;
  left: 42.6%;
  top: 46.5%;
  width: 9.4%;
  margin: 0;
  text-align: center;
  color: var(--cobalto);
  display: flex;
  flex-direction: column;
  gap: 0.55cqw;
  padding-top: 2.2cqw;
}
.bottle-label-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05cqw;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}
.bottle-label-sub {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.62cqw;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1.1cqw;
}

/* Hero copy — desktop: over the open sea, left of the bottle */
.hero-copy { color: var(--crema); }
.hero-copy .eyebrow { color: var(--limone); margin-bottom: 0.9em; }
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  color: var(--crema);
  margin: 0;
}
.hero-title span { display: block; }
.hero-sub { max-width: 24em; }

.hero-copy-overlay {
  display: none;
}

.hero-copy-band {
  padding: 2.2rem var(--gutter) 2.8rem;
  text-align: center;
  background: var(--notte);
}
.hero-copy-band .hero-title { font-size: clamp(2.4rem, 11vw, 3.6rem); margin-bottom: 0.35em; }
.hero-copy-band .hero-sub { margin: 0 auto 1.6em; }

@media (min-width: 760px) {
  .hero-canvas {
    height: min(96svh, 64vw);
    min-height: 560px;
  }
  .hero-copy-band { display: none; }
  .hero-copy-overlay {
    display: block;
    position: absolute;
    left: 6%;
    top: 30%;
    width: 30%;
  }
  .hero-copy-overlay .eyebrow { font-size: clamp(0.6rem, 0.9cqw, 0.85rem); }
  .hero-copy-overlay .hero-title { font-size: 4.6cqw; }
  .hero-copy-overlay .hero-sub { font-size: clamp(0.85rem, 1.25cqw, 1.15rem); margin: 1em 0 1.7em; }
  .hero-copy-overlay .btn { font-size: clamp(0.7rem, 0.95cqw, 0.95rem); }
}

/* ---------- Sections ---------- */
.story, .order {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter);
}

.story-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-text h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: 0.6em;
}
.story-text p { max-width: var(--measure); font-size: 1.06rem; }
.story-img { width: min(20rem, 78vw); justify-self: center; }

@media (min-width: 760px) {
  .story-grid { grid-template-columns: 1.2fr 0.8fr; }
  .story-img { width: 100%; max-width: 24rem; }
}

.ritual {
  background: var(--cobalto);
  color: var(--crema);
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter);
}
.ritual-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ritual-text h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: 0.6em;
}
.ritual-text p { max-width: var(--measure); font-size: 1.06rem; }
.ritual-img {
  width: min(18rem, 82vw);
  justify-self: center;
  border: 6px solid var(--crema);
  box-shadow: 10px 10px 0 var(--notte);
}
.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--limone);
  margin-top: 1em;
  line-height: 1.2;
}
.price-detail {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--crema);
}

@media (min-width: 760px) {
  .ritual-grid { grid-template-columns: 0.85fr 1.15fr; }
  .ritual-img { width: 100%; max-width: 22rem; }
}

/* ---------- Order form: the etichetta ---------- */
.order { background: var(--crema); }

.etichetta {
  --scallop: 11px;
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  background: #FBF6E4;
  filter: drop-shadow(8px 10px 0 rgba(18, 42, 110, 0.18));
}
/* scalloped (serrated) top and bottom edges, like a cut label */
.etichetta::before, .etichetta::after {
  content: "";
  display: block;
  height: var(--scallop);
  background-repeat: repeat-x;
  background-size: calc(var(--scallop) * 2) var(--scallop);
}
.etichetta::before {
  background-image: radial-gradient(circle at 50% 100%, #FBF6E4 69%, transparent 71%);
}
.etichetta::after {
  background-image: radial-gradient(circle at 50% 0%, #FBF6E4 69%, transparent 71%);
}

.etichetta-inner {
  margin: 0.5rem 1rem;
  border: 2px solid var(--cobalto);
  outline: 1px solid var(--cobalto);
  outline-offset: 3px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
}

.seal {
  margin: 0 auto 0.9rem;
  transform: rotate(-7deg);
}

.ordine {
  font-size: clamp(2.3rem, 7vw, 3.2rem);
  letter-spacing: 0.01em;
}
.ordine-sub {
  margin: 0.7em auto 2em;
  max-width: 26em;
  font-size: 0.95rem;
}

form { text-align: left; }

.field { margin-bottom: 1.2rem; }

label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin-bottom: 0.45em;
}
.optional, .req { text-transform: none; letter-spacing: 0; font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  font: inherit;
  color: var(--notte);
  background: var(--crema);
  border: 2px solid var(--cobalto);
  border-radius: 3px;
  padding: 0.65em 0.8em;
}
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cobalto);
  outline-offset: 2px;
}
textarea { resize: vertical; min-height: 5.5em; }

.field-aantal input { max-width: 7em; }

.field-error {
  color: #A4262C;
  font-weight: 600;
  font-size: 0.86rem;
  margin: 0.45em 0 0;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #A4262C;
}

.totaal {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  margin: 0.6em 0 0;
}

.privacy {
  font-size: 0.84rem;
  margin: 1.4em 0;
}

.btn-submit {
  width: 100%;
  font-size: 1.02rem;
}
.btn-submit[disabled] {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: 4px 4px 0 var(--notte);
}

.form-status {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 1em 0 0;
  min-height: 1.4em;
  color: #A4262C;
}

/* honeypot — visually gone, still in the DOM */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success { padding: 1.5rem 0; }
.success img { margin: 0 auto 1.2rem; }
.success-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 0.3em;
  color: var(--foglia);
}
.success p { max-width: 24em; margin-left: auto; margin-right: auto; }
.success:focus-visible { outline-offset: 8px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--notte);
  color: var(--crema);
  text-align: center;
  padding: 2.8rem var(--gutter) 2.4rem;
}
.footer img { margin: 0 auto 1rem; }
.footer p { margin-bottom: 0.3em; }
.nix18 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--limone);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* one orchestrated load moment */
  .hero-inner img {
    animation: hero-in 1100ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
  }
  .hero-copy-overlay, .hero-copy-band, .bottle-label {
    animation: rise-in 900ms cubic-bezier(0.22, 0.8, 0.3, 1) 250ms both;
  }

  /* scroll reveals — transform only, so text contrast never blends mid-animation */
  .js .reveal {
    transform: translateY(14px);
    transition: transform 700ms cubic-bezier(0.22, 0.8, 0.3, 1);
  }
  .js .reveal.is-visible {
    transform: none;
  }
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
