/* ReliTaste holding page (ADR-0131). A static copy of the approved prelaunch
   screen (PM sketch v8, apps/web-consumer/app/globals.css `.prelaunch`),
   without the waitlist form, which needs the app. Colours are the warm theme
   tokens from packages/design-tokens/tokens/tokens.css. No web fonts: the page
   loads nothing from any other origin. Logical properties throughout, so
   Hebrew mirrors without a second set of rules. */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --ink: #1f1a14;
  --muted: #6b5f52;
  --line: rgba(31, 26, 20, 0.08);
  --chip: #f1eae0;
  --brand: #c04a2b;
  --font-display: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Heebo", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Every link is a touch target of at least 44px. */
.tap {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 8px;
}

.top {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 0;
}

.prelaunch {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 24px;
  gap: 18px;
}

.prelaunch__mark {
  inline-size: 84px;
  block-size: 84px;
  border-radius: 22px;
  background: var(--chip);
  display: grid;
  place-items: center;
}

.prelaunch__mark svg {
  inline-size: 52px;
  block-size: 40px;
  fill: var(--brand);
}

h1 {
  margin: 0;
}

/* The Latin name always reads left to right, in both languages. */
.brand {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__tail {
  color: var(--brand);
}

.prelaunch__lead {
  margin: 0;
  max-inline-size: 30ch;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  line-height: 1.45;
  font-weight: 500;
  text-wrap: balance;
}

.prelaunch__body {
  margin: 0;
  max-inline-size: 46ch;
  font-size: clamp(1rem, 3.8vw, 1.1rem);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.prelaunch__stamp {
  margin: 8px 0 6px;
}

.prelaunch__stamp span {
  display: inline-block;
  transform: rotate(-5deg);
  background: var(--brand);
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 22px;
  font-weight: 800;
  font-size: clamp(1.4rem, 5.6vw, 2rem);
  line-height: 1.15;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 4px var(--brand),
    inset 0 0 0 7px #ffffff,
    0 2px 0 rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .prelaunch__stamp span {
    animation: stamp-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  }

  @keyframes stamp-in {
    from {
      transform: rotate(-5deg) scale(1.35);
      opacity: 0;
    }

    to {
      transform: rotate(-5deg) scale(1);
      opacity: 1;
    }
  }
}

.prelaunch__contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prelaunch__contact a {
  font-weight: 600;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 12px 20px;
  font-size: 0.95rem;
}

/* The accessibility statement and the not-found page. */
.doc {
  flex: 1 1 auto;
  inline-size: 100%;
  max-inline-size: 44rem;
  margin-inline: auto;
  padding: 16px 20px 32px;
}

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.2;
  margin-block: 8px 16px;
}

.doc h2 {
  font-size: 1.25rem;
  margin-block: 28px 8px;
}

.doc p,
.doc ul {
  margin-block: 0 12px;
}

.doc ul {
  padding-inline-start: 1.4em;
}

.doc li {
  margin-block-end: 4px;
}
