/* gloutons.app: the game's bistrot, its curtains, its cream cards. */
@font-face {
  font-family: "Shrikhand";
  src: url("/assets/fonts/shrikhand.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --rose: #f4b6c2;
  --rose-deep: #d9728f;
  --rose-dark: #a8566f;
  --trim-dark: #8f7aad;
  --cream: #fff6e6;
  --cream-deep: #efdfc5;
  --mustard: #f7d98b;
  --mustard-deep: #e0b45c;
  --ink: #4b2f52;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--trim-dark); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: var(--trim-dark) url("/assets/img/curtain-tall.jpg") center / cover no-repeat;
  color: var(--ink);
  font: 600 18px/1.4 "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
@media (min-aspect-ratio: 1/1) {
  body { background-image: url("/assets/img/curtain-wide.jpg"); }
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 22px 22px 26px;
  background: var(--cream);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--cream-deep), 0 18px 40px rgba(75, 47, 82, .28);
}
.card.doc { max-width: 720px; text-align: start; }

.hero { display: block; width: min(300px, 78%); height: auto; margin: -6px auto 6px; }
.hero.small { width: min(200px, 60%); }

h1, h2 {
  margin: 8px 0 12px;
  font-family: "Shrikhand", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rose-deep);
  paint-order: stroke fill;
  -webkit-text-stroke: 6px #fff;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
.doc h1 { text-align: center; }
.doc h2 { font-size: 20px; margin-top: 26px; }

p { margin: 0 0 12px; }
b { color: var(--rose-dark); }
a { color: var(--rose-dark); }

.label { margin: 14px 0 0; font-size: 16px; opacity: .75; }
.code {
  margin: 0 0 14px;
  font-size: 56px;
  letter-spacing: .14em;
  /* The spacing after the last letter, given back for the centering. */
  text-indent: .14em;
  /* Latin letters, in Arabic too: the spacing then stays on the right. */
  direction: ltr;
  color: var(--rose-deep);
  cursor: copy;
  user-select: all;
}
.code.bad { font-size: 20px; letter-spacing: 0; text-indent: 0; direction: inherit; cursor: default; }

.button {
  display: block;
  margin: 0 auto 6px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--mustard);
  box-shadow: 0 6px 0 var(--mustard-deep);
  color: var(--ink);
  font-size: 22px;
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.button:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--mustard-deep); }

.later {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px dashed var(--cream-deep);
}
.store {
  display: inline-block;
  margin: 4px 0 0;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
}

.doc p, .doc li { font-size: 16px; font-weight: 600; }
.doc ul { padding-inline-start: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc .lang { text-align: end; margin: 0; font-size: 15px; }
.doc .date { opacity: .7; font-size: 14px; }

footer { font-size: 15px; color: var(--cream); }
footer a { color: var(--cream); text-shadow: 0 1px 2px rgba(75, 47, 82, .6); }

[hidden] { display: none !important; }
