/* Dungeons & Desktops — phase 1 stylesheet (landing + hall). Self-hosted fonts: see fonts.md. */

@font-face { font-family: "Cinzel"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cinzel-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/spectral-400italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }

:root {
  /* night — shell, thresholds, app bars */
  --night-deepest: #0b0e20;
  --night: #10132b;
  --night-glow: #1a2145;
  --night-panel-border: #262c52;
  --night-control-border: #2f3660;
  --night-hairline: #1c2142;
  --night-ink-heading: #f2e9d8;
  --night-ink: #e8dcc4;
  --night-ink-secondary: #a4abd0;
  --night-ink-muted: #8b93bd;
  --night-star: #c6cdf0;

  /* vellum — forms, records, the chronicle (unused on these 2 screens, reserved for screen 3) */
  --vellum: #f7f1e4;
  --vellum-raised: #fffbf2;
  --vellum-border: #ddd0b6;

  /* gold — ceremony, machine work */
  --gold: #c99a34;

  /* teal — every interactive affordance */
  --teal-night: #4ea3a0;
  --teal-night-hover: #6fc4c0;

  /* destructive */
  --destructive: #8f2010;

  --font-display: "Cinzel", serif;
  --font-prose: "Spectral", serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night-deepest);
  color: var(--night-ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-night); text-decoration: none; }
a:hover { color: var(--teal-night-hover); }
:focus-visible { outline: 1px solid var(--teal-night); outline-offset: 2px; }

/* ── Landing ── */
.landing {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 120% 90% at 50% 0%, var(--night-glow) 0%, var(--night-deepest) 62%);
  border: 1px solid var(--night-panel-border);
  position: relative;
  overflow: hidden;
}
.landing__stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--night-star); }
.star--gold { background: var(--gold); }
.star--small { width: 1px; height: 1px; }

.landing__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 40px 24px;
  position: relative;
  text-align: center;
}
.seal {
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
}
.seal__inner { width: 16px; height: 16px; border: 1px solid var(--teal-night); }

.brand { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.brand__mark-row { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.wordmark {
  font-family: var(--font-display); font-weight: 400;
  font-size: 38px; letter-spacing: .09em; line-height: 1.15;
  color: var(--night-ink-heading); margin: 0;
}
.wordmark__amp { font-size: 26px; color: var(--gold); }
.brand__subtitle { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; color: var(--night-ink-muted); text-transform: uppercase; }

.tagline { font-family: var(--font-prose); font-style: italic; font-size: 16px; color: #a9a9b6; max-width: 28em; line-height: 1.6; margin: 0; }

.auth { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.google-btn { display: inline-flex; line-height: 0; background: #131314; border: 1px solid #8E918F; border-radius: 20px; } /* placeholder look until the real asset lands; the asset's own art fully covers this once dropped in */
.google-btn img { display: block; height: 42px; width: auto; } /* aspect ratio locked by asset; do not stretch */
.auth__hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--night-ink-muted); margin: 0; }
.auth-refusal { font-family: var(--font-prose); font-size: 13px; color: #e8b4ab; max-width: 26em; margin: 0; }

.landing__footer {
  padding: 16px 26px;
  border-top: 1px solid var(--night-hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .1em; color: var(--night-ink-muted);
}

/* ── App shell (hall + every authenticated page) ── */
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--night-panel-border);
  background: linear-gradient(#141936, #0d1126);
}
.app-bar__brand { display: flex; align-items: center; gap: 14px; }
.app-bar__mark { width: 20px; height: 20px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
.app-bar__title {
  font-family: var(--font-display); font-weight: 400; font-size: 14px;
  letter-spacing: .13em; color: var(--night-ink); text-transform: uppercase; margin: 0;
}
.app-bar__right { display: flex; align-items: center; gap: 20px; }
.keeper-label { font-size: 11px; letter-spacing: .12em; color: var(--night-ink-secondary); }
.depart-form { margin: 0; }
.depart-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--night-ink-secondary);
  border: 1px solid var(--night-control-border); background: none; padding: 6px 12px; cursor: pointer;
}
.depart-btn:hover { color: var(--night-ink); border-color: #4a5280; }

/* ── Hall ── */
.hall {
  min-height: 100dvh;
  background: var(--night-deepest);
  display: flex; flex-direction: column;
}
.hall__main { padding: 34px 26px 30px; display: flex; flex-direction: column; gap: 28px; flex: 1; }
.hall__heading { display: flex; flex-direction: column; gap: 10px; }
.hall__heading h1 { font-family: var(--font-display); font-weight: 400; font-size: 25px; letter-spacing: .03em; color: var(--night-ink-heading); margin: 0; }
.hall__heading p { font-family: var(--font-prose); font-size: 15.5px; line-height: 1.6; color: #a9a9b6; max-width: 34em; margin: 0; }

.door-grid { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.door {
  width: 258px; padding: 19px;
  display: flex; flex-direction: column; gap: 13px;
  text-decoration: none; color: inherit;
}
.door--live { border: 1px solid var(--teal-night); background: rgba(78,163,160,.07); cursor: pointer; }
.door--live:hover { background: rgba(78,163,160,.14); }
.door--unbuilt { border: 1px dashed var(--night-control-border); opacity: .55; }
.door__head { display: flex; align-items: center; gap: 11px; }
.door__icon { flex: none; }
.door__icon--diamond { width: 15px; height: 15px; border: 1px solid var(--teal-night); transform: rotate(45deg); }
.door--unbuilt .door__icon--diamond { border-color: #4a5280; }
.door__icon--square { width: 14px; height: 14px; border: 1px solid #4a5280; }
.door__title {
  font-family: var(--font-display); font-weight: 400; font-size: 14px;
  letter-spacing: .1em; color: var(--night-ink); text-transform: uppercase; margin: 0;
}
.door--unbuilt .door__title { color: #b9bdd4; }
.door__desc { font-family: var(--font-prose); font-size: 13.5px; line-height: 1.6; color: #a9a9b6; margin: 0; }
.door--unbuilt .door__desc { color: var(--night-ink-secondary); }
.door__status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; }
.door--live .door__status { color: var(--teal-night); }
.door--unbuilt .door__status { color: var(--night-ink-secondary); }

.droid-line {
  border-top: 1px solid var(--night-hairline); padding-top: 18px;
  display: flex; align-items: center; gap: 13px;
}
.droid-line__icon { width: 15px; height: 15px; border: 1px solid var(--gold); flex: none; }
.droid-line__text { font-family: var(--font-prose); font-size: 13.5px; color: var(--night-ink-secondary); line-height: 1.55; margin: 0; }
