/* Delicaro — coming soon. Two brand tokens, nothing else. */

@font-face {
  font-family: "Prata";
  src: url("/assets/fonts/prata-sub.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wine:  #692831;
  --paper: #F5EFE6;

  --display: "Prata", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--wine);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* No background here on purpose: the wine sits on `html`, so the z-index:-1
     background video paints between the canvas and the page content. Give body
     an opaque background again and the video disappears behind it. */
  color: var(--paper);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: calc(2.5rem + env(safe-area-inset-top));
  padding-right: calc(1.25rem + env(safe-area-inset-right));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  padding-left: calc(1.25rem + env(safe-area-inset-left));
}

::selection {
  background-color: var(--paper);
  color: var(--wine);
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- layout ---------- */

.stage {
  flex: 1 1 auto;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0 3rem;
}

.site-footer {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-footer a,
.stage a:not(.logo-link) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- logo ---------- */

.logo {
  display: block;
  width: clamp(180px, 42vw, 240px);
  height: auto;
  margin: 0 auto;
  color: var(--paper);
}

.logo-link {
  display: inline-block;
  color: inherit;
}

/* ---------- type ---------- */

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.45rem, 4.2vw, 2.4rem);
  line-height: 1.35;
  margin: 2.5rem 0 0;
  text-wrap: balance;
}

.subline {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 1.25rem 0 0;
  max-width: 28rem;
}

.prose {
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 1.75rem 0 0;
  text-align: left;
}

.consent {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.7;
  margin: 1.25rem 0 0;
  max-width: 26rem;
}

.status {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 1.25rem 0 0;
  max-width: 28rem;
}

.status:empty {
  margin: 0;
}

/* ---------- form ---------- */

.signup {
  width: 100%;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
/* `hidden` alone loses to the display:flex above — enforce it. */
.signup[hidden] { display: none; }

.signup-input {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.85rem 1rem;
  color: var(--paper);
  background-color: transparent;
  border: 1px solid var(--paper);
  border-color: color-mix(in srgb, var(--paper) 60%, transparent);
  border-radius: 2px;
  appearance: none;
}

.signup-input::placeholder {
  color: var(--paper);
  opacity: 0.55;
}

.signup-input:hover {
  border-color: var(--paper);
}

.signup-button {
  flex: 0 0 auto;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  color: var(--wine);
  background-color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  transition: opacity 120ms ease-out;
}

.signup-button:hover { opacity: 0.88; }
.signup-button:active { opacity: 0.78; }

.signup-button[disabled] {
  cursor: default;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .signup { flex-direction: column; }
  .signup-input,
  .signup-button { flex: 1 1 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .signup-button { transition: none; }
}

/* ---------- utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* honeypot — kept out of sight and out of the tab order */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

/* ---------- motion: one page-load moment ---------- */

@media (prefers-reduced-motion: no-preference) {
  .intro {
    opacity: 0;
    transform: translateY(12px);
    animation: intro-rise 600ms ease-out forwards;
  }
}

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

/* ---------- ambient background video ---------- */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
}

/* ---------- divider ornament ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(240px, 60%);
  margin: 20px auto;
  opacity: 0.65;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--paper);
}

.divider .gem {
  width: 8px;
  height: 8px;
  border: 1px solid var(--paper);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- language toggle ---------- */

.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1;
  color: var(--paper);
  opacity: 0.7;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.lang-switch:hover {
  opacity: 1;
  text-decoration: underline;
}
