:root {
  color-scheme: dark;
  --bg: #111315;
  --ink: #e3e0d8;
  --muted: #a7ada7;
  --gold: #c5b18b;
  --line: #414642;
  --panel: #191c1d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: min(1260px, 100%);
  margin-inline: auto;
}
.content { width: min(100% - 48px, 850px); margin: 0 auto; padding: 90px 0 48px; }
.landing { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 64px; }
.landing h1, .wordmark { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.landing h1 { font-size: clamp(51px, 9vw, 105px); line-height: 1.04; letter-spacing: -.035em; }
em { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 20px;
  background: var(--panel);
  color: var(--ink);
}
.button:hover { border-color: var(--gold); color: var(--ink); }
.primary { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.primary:hover { background: #e0cfad; color: var(--bg); }
.wordmark { display: inline-block; font-size: 24px; }
.login, .register, .invites, .logout { max-width: 400px; }
.login h1, .register h1, .invites h1, .logout h1 { margin: 25px 0 12px; font-size: 30px; }
.account-form { display: grid; gap: 14px; margin-top: 22px; }
.account-form label { display: grid; gap: 6px; }
.account-form input, .account-form select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--panel);
}
.account-form .button { justify-self: start; margin-top: 4px; }
.hint, .switch { color: var(--muted); font-size: 13px; }
.account-form .hint { margin-top: -9px; }
.switch { margin-top: 22px; }
.switch a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.error { color: #f0aeaa; }
.invite-code { margin-top: 24px; border: 1px solid var(--line); border-radius: 5px; padding: 16px; background: var(--panel); }
.invite-code code { display: block; margin-block: 6px; color: var(--gold); overflow-wrap: anywhere; user-select: all; }
.workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.quiet { border: 0; padding: 6px; background: transparent; color: var(--muted); }
.quiet:hover { color: var(--gold); }
.role { margin-top: 30px; color: var(--gold); font-size: 13px; }
.workspace h1 { margin: 6px 0 26px; overflow-wrap: anywhere; font-size: clamp(26px, 5vw, 42px); }
.workspace h2 { font-size: 17px; }
.projects { display: grid; gap: 10px; list-style: none; padding: 0; }
.projects a, .project-pending {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  background: var(--panel);
}
.projects a:hover { border-color: var(--gold); }
.projects small { grid-row: 2; color: var(--muted); }
.projects span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--gold); }
footer { margin-top: auto; padding: 16px 24px; color: var(--muted); font-size: 11px; text-align: right; }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.egg { position: absolute; display: block; opacity: .55; }
.egg svg { width: 100%; height: 100%; overflow: visible; }
.mondrian { width: 58px; height: 67px; right: 14%; top: 16%; rotate: 5deg; }
.prism { width: 124px; height: 76px; right: 11%; top: 62%; rotate: -7deg; }
.pyramid { width: 69px; height: 80px; right: 25%; top: 33%; rotate: 9deg; }
.record { width: 42px; height: 42px; left: 8%; bottom: 13%; rotate: -18deg; }
.portals { width: 70px; height: 62px; right: 30%; bottom: 12%; rotate: -8deg; }
.pale-dot { width: 190px; height: 110px; right: 30%; top: 9%; }
@media (prefers-reduced-motion: no-preference) {
  .prism, .pale-dot { animation: drift 12s ease-in-out 2 alternate; }
  .pale-dot { animation-delay: -4s; }
  @keyframes drift { from { translate: 0 -4px; } to { translate: 0 7px; } }
}
@media (max-width: 680px) {
  .content { padding-top: 50px; }
  .landing { padding-block: 50px; }
  .mondrian { right: 11%; top: 13%; width: 36px; height: 42px; }
  .pyramid { right: 16%; top: 28%; width: 43px; height: 50px; }
  .prism { right: 9%; top: 70%; width: 90px; height: 56px; }
  .record { width: 29px; height: 29px; }
  .pale-dot { width: 125px; height: 75px; }
  .portals { display: none; }
}
