/* Duripod, page du lien d'invitation et racine (spec design/screens/09-lien-invitation.md)
   Couleurs recopiées de design/tokens.json, polices hébergées ici (la politique de sécurité n'autorise que ce site) */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Chargée seulement quand la page affiche du coréen */
@font-face {
  font-family: "Gowun Batang";
  src: url("fonts/gowun-batang-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3;
}

:root {
  color-scheme: light dark;
  --background: #F9FBF7;
  --surface: #FFFFFF;
  --text: #182315;
  --textSecondary: #5C6756;
  --title: #1D4F19;
  --action: #23551E;
  --onAction: #FFFFFF;
  --actionEdge: #153A12;
  --actionText: #23551E;
  --divider: #E6E9E2;
  --font-voice: "Fraunces", "Gowun Batang", "New York", serif;
  --font-text: -apple-system, "SF Pro Text", "Apple SD Gothic Neo", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0D110C;
    --surface: #161B15;
    --text: #ECF0E9;
    --textSecondary: #A4AF9F;
    --title: #B5E285;
    --action: #93CF5C;
    --onAction: #0D2008;
    --actionEdge: #5E9A2E;
    --actionText: #B2DF82;
    --divider: #282D27;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  color: var(--text);
  font-family: var(--font-text);
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Le script réécrit la page dans la bonne langue, rien ne s'affiche avant */
.js main { visibility: hidden; }
.js.ready main { visibility: visible; }

main {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 24px calc(34px + env(safe-area-inset-bottom));
}

.hero {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
  text-align: center;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[hidden] { display: none !important; }

/* Images */
.duri { width: 300px; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
.duri-sleep { width: 280px; }
.duri-large { width: 342px; }
.duri-dark { display: none; }
@media (prefers-color-scheme: dark) {
  /* Le câlin transparent en sombre viendra de Rive, en attendant les Duri au repos (plan de travail validé) */
  .duri-light { display: none; }
  .duri-dark { display: block; }
}

/* Textes */
h1 {
  margin: 0;
  max-width: 320px;
  font-family: var(--font-voice);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  font-size: 30px;
  line-height: 36px;
  color: var(--title);
}

.brand {
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: 46px;
  line-height: 50px;
}

.tagline {
  margin: 0;
  max-width: 300px;
  font-family: var(--font-voice);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  font-size: 20px;
  line-height: 26px;
  color: var(--text);
}

.lead {
  margin: 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 20px;
  color: var(--textSecondary);
}

.lead-narrow { max-width: 290px; }

.note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--textSecondary);
}

.badge {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--divider);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}

/* Boutons, 52 de haut en pilule, relief ou contour, et lien texte de 44 au moins */
.button {
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.button-relief {
  background: var(--action);
  color: var(--onAction);
  box-shadow: 0 4px 0 var(--actionEdge);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}

.button-relief:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--actionEdge);
}

.button-outline {
  color: var(--actionText);
  box-shadow: inset 0 0 0 2px var(--action);
}

.button-outline:active { opacity: .7; }

.text-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--actionText);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}
