/* Chronicle public pages for Fort Horizon: dark olive ground, khaki accent, same look as the bot's banners. */
:root {
  --bg: #12110a;
  --text: #f1ead2;
  --muted: #b9b49c;
  --faint: #8a866f;
  --accent: #b3a272;
  --accent-2: #d4c48c;
  --olive: #7e8c4a;
  --rule: rgba(179, 162, 114, 0.2);
  --rule-strong: rgba(179, 162, 114, 0.4);
  --red: #d9776a;
  --live: #8fbf86;
  --font: "Poppins", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Backdrop: the banner look. Dark ground, warm glow, faint contour map. */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 82% 28%, rgba(96, 84, 46, 0.34) 0%, rgba(96, 84, 46, 0) 70%),
    var(--bg);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/topo.png") center / cover no-repeat;
  opacity: 0.32;
}

.label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font: 500 15px/1.2 var(--font);
  color: #15140c;
  background: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:focus-visible, .link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.arrow { width: 16px; height: 16px; }

.link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--accent); color: var(--text); }
.link:hover { border-color: transparent; }

/* Landing */
.page { position: relative; z-index: 1; width: min(920px, 100% - 48px); margin: 0 auto; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.brand img { width: 24px; height: auto; }

.hero { padding: 88px 0 80px; }

.hero h1 {
  margin: 14px 0 0;
  font-weight: 600;
  font-size: clamp(52px, 11vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead { max-width: 34rem; margin: 22px 0 0; font-size: 18px; color: var(--muted); }
.tick { width: 56px; height: 4px; margin-top: 28px; border-radius: 2px; background: var(--accent); }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.checking #cta, .checking #navRight { visibility: hidden; }

.status-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.status-pill[hidden] { display: none; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 2.4s infinite; }
.status-pill.down .dot-live { background: var(--red); animation: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(143,191,134,.5); } 50% { box-shadow: 0 0 0 6px rgba(143,191,134,0); } }

.welcome { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.welcome-text b { color: var(--text); font-weight: 500; }
.welcome-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--accent); color: #15140c; font-weight: 600; font-size: 12px; }

.block { padding: 8px 0 56px; }
.block > .label { padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }

.systems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.systems li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.systems b { display: block; font-weight: 600; font-size: 16px; }
.systems span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }

.news[hidden] { display: none; }
.news-card { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.news-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.news-head b { font-weight: 600; }
.news-head span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.news-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0 0;
  padding: 22px 0 36px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot b { font-weight: 500; letter-spacing: 0.34em; color: var(--accent); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Sign in: no card. A big title on the left, the logo mark cropped off the right edge. */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1120px, 100% - 56px);
  margin: 0 auto;
}

.login-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; }
.login-bar .home { font-size: 14px; color: var(--muted); text-decoration: none; }
.login-bar .home:hover { color: var(--text); }

.mark {
  position: fixed;
  z-index: 0;
  top: 50%;
  right: -9vw;
  width: min(46vw, 640px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.signin { align-self: center; max-width: 600px; padding: 36px 0 64px; }

.signin h1 {
  margin: 16px 0 0;
  font-weight: 600;
  font-size: clamp(54px, 10vw, 104px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.signin .lead { margin-top: 22px; }

.alert {
  display: none;
  max-width: 34rem;
  margin: 26px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--red);
  background: rgba(217, 119, 106, 0.1);
  color: #efb3a8;
  font-size: 14px;
}

.alert.show { display: block; }

.btn.wide { margin-top: 30px; padding: 16px 28px; border-radius: 8px; font-size: 16px; }
.alert.show + .btn.wide { margin-top: 20px; }

.notes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 26px;
  margin: 52px 0 0;
  padding: 0;
}

.notes li { padding-top: 14px; border-top: 1px solid var(--rule-strong); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.notes b { display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 500; color: var(--text); }

.login-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 0 30px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.login-foot b { font-weight: 500; letter-spacing: 0.34em; color: var(--accent); }

/* Footer links */
.foot a, .login-foot a { color: inherit; text-decoration: none; }
.foot a:hover, .login-foot a:hover { color: var(--text); }
.foot-links { display: inline-flex; gap: 20px; }

/* Privacy and terms */
.doc { max-width: 720px; padding: 32px 0 72px; }
.doc h1 { margin: 14px 0 0; font-weight: 600; font-size: clamp(44px, 9vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.doc .updated { margin: 16px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); }
.doc h2 { margin: 44px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-strong); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc p { margin: 10px 0 0; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin-top: 8px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--accent-2); text-underline-offset: 3px; }
.doc code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); }

/* Result page after the Roblox sign-in */
.alert.ok { border-left-color: var(--live); background: rgba(143, 191, 134, 0.1); color: #c4e0bd; }
.signin .steps { margin: 26px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.signin .steps li { margin-top: 6px; }

@media (max-width: 720px) {
  .hero { padding: 48px 0 48px; }
  .systems { grid-template-columns: 1fr; }
  .login-shell { width: calc(100% - 32px); }
  .signin { padding: 12px 0 40px; }
  .notes { grid-template-columns: 1fr; gap: 14px 0; margin-top: 40px; }
  .btn.wide { width: 100%; }
  .mark { right: -22vw; width: 86vw; opacity: 0.06; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
}
