/* Hallmark · shape: one maintenance screen (key art, the title, a caution tape) · genre: playful · theme: custom (Night Camp Brand Visual, locked) · job: join · idea: "server maintenance: the camp is closed for repair work and is coming back soon" · vibe: "night camp, warm fire, hopeful wait"
 * paper: #0A0B1F · accent: #F2C45A · display: Lilita One · body: Mitr · hero: full-screen key art, the title in gold on the calm dark left · nav: none, the logo and a language switch · footer: none, the caution tape ends the screen · imagery: the game's own art and one generated key visual in its style · signature: the gold caution tape that runs SERVER MAINTENANCE and COMING BACK SOON under the camp's barricade
 * axes: dark/rounded display/gold · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E, one moving thing only (the tape), so the art carries the page */
/* fast mode (the owner: simple, urgent): Finish tier skipped */
/* Hallmark · waive 2b · the title's vertical gold gradient · the Night Camp Brand Visual guide sets it for every head (light top, deep bottom) */
/* Hallmark · waive 26b · no disabled state · the page has two links and a language switch, none can be disabled */
@import url("./tokens.css");
@import url("./base.css");

/* two languages in one page: only the chosen one shows */
html[data-lang="th"] .t[lang="en"],
html[data-lang="en"] .t[lang="th"] { display: none; }

/* ---------- hero: the whole maintenance screen ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; background: var(--color-paper); color: var(--color-ink); }
/* the art fills the right 70%; the left is the night colour, so the title never sits on a character */
.hero-art { position: absolute; inset: 0 0 0 30%; z-index: -2; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-paper) 0%, var(--color-paper) 30%, color-mix(in oklab, var(--color-paper) 62%, transparent) 40%, transparent 54%),
    linear-gradient(0deg, color-mix(in oklab, var(--color-paper) 78%, transparent) 0%, transparent 22%);
}
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); padding-block: var(--space-lg) var(--space-2xl); }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.logo { width: clamp(132px, 13vw, 200px); height: auto; }
.hero-copy { max-width: 30rem; display: grid; gap: var(--space-lg); }

.title { display: grid; gap: var(--space-xs); font-weight: 400; }
.title-line {
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-display); line-height: 1.12; padding-block: 0.08em;
  background: linear-gradient(180deg, var(--color-gold-hi) 8%, var(--color-accent) 52%, var(--color-gold-lo) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(var(--shadow-head));
}
.title-line[lang="en"] { font-family: var(--font-display); font-weight: 400; font-size: calc(var(--text-display) * 0.86); line-height: 0.95; }
.title-line.soon { font-family: var(--font-display); font-weight: 400; font-size: var(--text-soon); line-height: 1; white-space: nowrap; }
.lede { font-size: var(--text-lead); line-height: 1.65; color: var(--color-ink); max-width: 31rem; }
.nb { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--space-sm) var(--space-xl); white-space: nowrap;
  font-weight: 600; font-size: var(--text-lg); line-height: 1.2; text-decoration: none; color: var(--color-accent-ink); text-align: center;
  background: linear-gradient(180deg, var(--color-gold-hi) 0%, var(--color-accent) 46%, var(--color-gold-lo) 100%);
  border: 1.5px solid var(--color-gold-edge); border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 0 color-mix(in oklab, var(--color-gold-hi) 80%, transparent), 0 10px 26px color-mix(in oklab, var(--color-paper) 70%, transparent);
  transition: transform var(--dur-micro) var(--ease-out), filter var(--dur-micro) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); filter: brightness(0.96); }
.btn:focus-visible { outline-offset: 4px; }

.link { font-weight: 500; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; transition: color var(--dur-micro) var(--ease-out); }
.link:hover { color: var(--color-accent); }
.link:active { color: var(--color-gold-lo); }

/* the caution tape along the foot of the screen: decoration, the title says the same words */
.tape { overflow: hidden; background: var(--color-accent); color: var(--color-accent-ink); border-block: 3px solid var(--color-accent-ink); }
.tape-run { display: flex; align-items: center; gap: var(--space-lg); width: max-content; padding-block: var(--space-sm); animation: tape 48s linear infinite; }
.tape span { font-family: var(--font-display); font-size: var(--text-xl); white-space: nowrap; }
.tape i { flex: none; width: 72px; height: 22px; background: repeating-linear-gradient(-45deg, var(--color-accent-ink) 0 10px, transparent 10px 20px); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-run { animation: none; } }

/* language switch: shown only when the script that drives it has run */
.lang { display: none; padding: var(--space-2xs); gap: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-paper) 72%, transparent); }
.js .lang { display: inline-flex; }
.lang button { min-height: 36px; padding: var(--space-2xs) var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.lang button:hover { color: var(--color-ink); background: color-mix(in oklab, var(--color-ink) 10%, transparent); }
.lang button:active { background: color-mix(in oklab, var(--color-ink) 18%, transparent); }
.lang button[aria-pressed="true"] { background: color-mix(in oklab, var(--color-ink) 20%, transparent); color: var(--color-ink); font-weight: 600; }

/* ---------- phone: the art on top, the words under it ---------- */
@media (max-width: 40rem) {
  .hero-art { inset: 0 0 auto 0; height: 52%; }
  .hero-art img { object-position: 50% 30%; }
  .hero::before { background: linear-gradient(0deg, var(--color-paper) 0%, var(--color-paper) 46%, color-mix(in oklab, var(--color-paper) 72%, transparent) 56%, transparent 72%), linear-gradient(180deg, color-mix(in oklab, var(--color-paper) 72%, transparent) 0%, transparent 15%); }
  .hero-in { padding-block: var(--space-md) var(--space-lg); }
  .hero-copy { gap: var(--space-md); }
  .btn { width: 100%; }
  .actions { justify-content: center; }
  .tape span { font-size: var(--text-lg); }
}
