/* One stylesheet for both halves. Dark by default, because everything else here is,
   and it follows the reader's setting rather than insisting. */
:root {
  color-scheme: dark light;
  --bg: #10201f;
  --panel: #16292800;
  --fg: #e6efee;
  --muted: #9db3b1;
  --accent: #3fa38b;
  --line: #24403e;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f8f8; --fg: #16221f; --muted: #5a6b68; --line: #dbe4e2; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 46rem; margin: 0 auto; padding: 4.5rem 1.5rem 3rem; }
.brand__name {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.brand__full { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; letter-spacing: 0.01em; }
.lede { margin: 2.5rem 0 0; font-size: 1.08rem; }
.lede p { margin: 0; }
.what { margin: 2.5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.what h2 { margin: 0 0 0.9rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 600; }
.what ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.what li { padding-left: 1rem; position: relative; }
.what li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.what__note { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.9rem; }
.foot { margin: 3rem 0 0; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.foot__admin { color: var(--muted); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.foot__admin:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* The key page, and the admin shell. */
.gate { display: grid; place-items: center; min-height: 100dvh; padding: 1.5rem; }
.gate__box { width: min(24rem, 100%); text-align: center; }
.gate__box h1 { margin: 0; font-size: 2.4rem; color: var(--accent); font-weight: 650; }
.gate__note { color: var(--muted); margin: 0.35rem 0 1.5rem; font-size: 0.95rem; }
.gate__bad { color: #e08a7a; margin: 0 0 1rem; font-size: 0.9rem; }
/* A placeholder is not a label: it vanishes the moment you type, and on first sight it
   is easy to read the box as decoration rather than the thing to fill in. Padre asked
   "where do I type it" in front of a page that had only a placeholder. */
.gate form { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; }
.gate__label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.gate__row { display: flex; gap: 0.5rem; }
.gate input, .gate button {
  font: inherit;
  padding: 0.55rem 0.8rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
}
.gate input { flex: 1; min-width: 0; }
.gate input:focus, .gate button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate button { cursor: pointer; color: var(--accent); }
.gate button:hover { border-color: var(--accent); }
.gate__back { margin: 1.5rem 0 0; font-size: 0.85rem; }
.gate__back a { color: var(--muted); }

.admin__head { display: flex; align-items: baseline; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.admin__head h1 { margin: 0; font-size: 1.5rem; color: var(--accent); font-weight: 650; }
.admin__head span { color: var(--muted); font-size: 0.85rem; }
/* Pushed to the right so the two ways out of here sit together, away from the title. */
.admin__links { margin-left: auto; display: flex; gap: 1rem; }
.admin__links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; border-bottom: 1px solid transparent; }
.admin__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.apps { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.apps a {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
}
.apps a:hover { border-color: var(--accent); color: var(--accent); }
.apps small { display: block; color: var(--muted); font-size: 0.78rem; }
