:root {
  color-scheme: dark;
  --bg: #1f1f1f; --bg-deep: #141414; --raised: #282828; --raised-2: #333333; --raised-3: #3d3d3d;
  --text: #e5e5e5; --soft: #bdbdbd; --dim: #9a9a9a;
  --gold: #e5a00d; --gold-hover: #cc7b19; --on-gold: #1a1a1a;
  --dd-bg: #1c1d1f; --dd-hover: rgba(255, 255, 255, .06);
  --radius: 3px; --head: 56px;
  --edge: clamp(20px, 6vw, 150px);
  /* size of the big wordmark; its left edge sits at --mark-x */
  --mark: min(40vw, 80vh);
  --mark-x: 40vw;
}
* { box-sizing: border-box; }
html { background: var(--bg-deep); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 16px/1.55 "Open Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--on-gold); }

header { position: relative; z-index: 30; flex: none; height: var(--head); display: flex; align-items: center; padding: 0 var(--edge); background: var(--bg-deep); }
.brand { font-weight: 800; letter-spacing: .02em; font-size: 19px; line-height: 1; white-space: nowrap; }
.brand span { color: var(--gold); }

main { flex: 1; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  padding: 48px var(--edge); }
.intro { max-width: min(30rem, 52vw); }
h1 { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 52px); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 28px; color: var(--soft); max-width: 46ch; }
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); background: var(--gold-hover); color: var(--on-gold);
  font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .15s ease; }
.btn:hover { background: var(--gold); }
.btn:focus-visible, .links a:focus-visible, .who:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* the rows on the signed-in page: one step lighter than the wordmark they can overlap */
.links { display: grid; gap: 10px; width: 24rem; max-width: 100%; margin-top: 22px; }
.links a { display: block; padding: 14px 20px; border-radius: var(--radius); background: var(--raised-2); color: var(--text); text-decoration: none;
  line-height: 1.35; transition: background-color .15s ease, color .15s ease; }
.links strong { display: block; font-size: 20px; font-weight: 700; }
.links span { display: block; font-size: 14px; color: var(--soft); }
.links a:hover { background: var(--raised-3); color: var(--gold); }

/* account menu */
.who { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--on-gold);
  display: grid; place-items: center; font-weight: 800; font-size: 16px; line-height: 1; text-transform: uppercase; }
.who.big { width: 96px; height: 96px; font-size: 40px; }
.usermenu { margin-left: auto; position: relative; }
.usermenu summary { list-style: none; cursor: pointer; user-select: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu[open] summary, .usermenu summary:hover { box-shadow: 0 0 0 2px var(--gold); }
.um-panel { position: absolute; right: 0; top: 46px; width: 290px; max-width: calc(100vw - 16px); z-index: 40; padding: 0 0 8px;
  display: flex; flex-direction: column; background: var(--dd-bg); border-radius: 10px; box-shadow: 0 14px 36px rgba(0, 0, 0, .75);
  max-height: min(calc(100vh - 66px), 640px); overflow: hidden auto; scrollbar-width: thin; scrollbar-color: #4a4a4a transparent; }
.um-head { flex: none; background: #34373c; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px 18px; margin-bottom: 8px; }
.um-name { color: var(--soft); font-size: 15px; line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.um-panel > a { flex: none; padding: 13px 24px; font-size: 16px; line-height: 1.3; color: var(--text); text-decoration: none; }
.um-panel > a:hover { background: var(--dd-hover); color: var(--gold); }
.um-panel > a:focus-visible { outline: 2px solid var(--text); outline-offset: -3px; }
.um-sep { flex: none; height: 1px; background: #3a3b3e; margin: 8px 0; }

/* the big wordmark runs off the right and bottom edges; only the 2 is lit */
.mark { position: absolute; z-index: -1; left: var(--mark-x); bottom: -.1em; font-size: var(--mark); font-weight: 800; line-height: 1;
  letter-spacing: -.02em; white-space: nowrap; color: var(--raised); user-select: none; pointer-events: none; }
.mark span { position: relative; color: var(--gold); }
.mark span::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 2.4em; height: 2.4em; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(229, 160, 13, .2), rgba(229, 160, 13, .07) 45%, transparent);
  animation: warm 1.8s ease-out; }
@keyframes warm { from { opacity: .35; } to { opacity: 1; } }

/* narrow and tall: the words on top, the wordmark in its own space below */
@media (max-width: 760px) and (orientation: portrait) {
  :root { --mark: 72vw; --mark-x: -.12em; }
  main { align-items: flex-start; padding-block: 44px 74vw; }
  .intro { width: 100%; max-width: 34rem; }
  .links { width: auto; }
}
@media (max-height: 460px) {
  main { padding-block: 24px; }
  p { margin-bottom: 18px; }
  .links { margin-top: 14px; }
  .links a { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mark span::before { animation: none; } .btn, .links a { transition: none; } }
