/* Léiw Lux website. Palette follows the app's design tokens. */
@font-face {
  font-family: "Cinzel";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-700.woff2") format("woff2");
}

:root {
  --cream: #f7f1e1;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5b564a;
  --line: #ddd3b8;
  --field-border: #7a7466;
  --red: #ef3340;          /* flagRed: decorative + large text only */
  --blue: #00a3e0;         /* flagBlue: decorative only */
  --blue-text: #0077a8;    /* flagBlueText: buttons with white text */
  --link: #006a96;         /* slightly darker, AA for links on cream */
  --blue-tint: #e8f0fe;
  --danger: #c0392b;       /* dangerRed: destructive actions only */
  --gold: #c99a3e;         /* crownGold */
  --gold-text: #8a6416;    /* crownGoldText */
  --gold-tint: #f0dfae;    /* crownGoldTint */
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}
main { flex: 1; padding-block: 2rem 3rem; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1:focus { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--white); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Flag-inspired band: the one signature element, three thin stripes. */
.flag-band { height: 9px; background: linear-gradient(var(--red) 0 33.33%, var(--white) 33.33% 66.66%, var(--blue) 66.66% 100%); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { display: block; }

.lang ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.5rem;
  border-radius: 10px; color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.lang a:hover { background: var(--gold-tint); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0 0 0.75rem; padding: 0; }
.footer-links a { color: var(--ink); }

/* Home hero */
.hero { display: grid; gap: 1.5rem; align-items: center; padding-block: 1rem; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1.02; letter-spacing: 0.02em;
  margin: 0 0 1rem; color: var(--red);
}
.hero-title::after { content: ""; display: block; width: 4.5rem; height: 5px; margin-top: 1rem; background: var(--gold); border-radius: 3px; }
.hero-tagline { font-size: clamp(1.35rem, 4.2vw, 1.9rem); font-weight: 700; line-height: 1.25; margin: 0 0 0.75rem; max-width: 32ch; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin: 0; }
.hero-mascot { width: 200px; height: auto; justify-self: center; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr auto; gap: 3rem; padding-block: 2.5rem; }
  .hero-mascot { width: 280px; }
}

/* Cards and forms (password, delete account) */
.card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.narrow { max-width: 26rem; margin-inline: auto; }
.card h1, main > h1 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 0.5rem; }
.subtitle { color: var(--muted); margin: 0 0 1.5rem; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
input[type="password"], input[type="email"], input[type="text"] {
  width: 100%; padding: 0.75rem 0.9rem; margin-bottom: 1rem;
  border: 1.5px solid var(--field-border); border-radius: 10px;
  font: inherit; background: var(--white); color: var(--ink);
}
.btn {
  display: inline-block; width: 100%; padding: 0.85rem 1rem; border: 0; border-radius: 12px;
  background: var(--blue-text); color: var(--white);
  font: inherit; font-weight: 700; text-align: center; cursor: pointer;
}
.btn:hover { background: #005f87; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-link { width: auto; text-decoration: none; padding-inline: 1.5rem; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #962d22; }
.message { font-size: 0.95rem; margin: 1rem 0 0; text-align: center; }
.message.error { color: var(--danger); font-weight: 600; }

/* Readable legal pages (used from the privacy/terms step on) */
.prose { max-width: 44rem; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Home: store placeholders and sections */
.soon-label { margin: 1.75rem 0 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.stores li {
  padding: 0.55rem 1.1rem; border: 2px dashed var(--field-border); border-radius: 12px;
  color: var(--muted); font-weight: 600;
}
.section { margin-top: 3.5rem; }
.section h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1.25rem; }
.features { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.features li { border-top: 3px solid var(--gold); padding-top: 0.75rem; }
.features h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.features p { margin: 0; color: var(--muted); }
.who-body { max-width: 46rem; font-size: 1.1rem; margin: 0; }
