/* Layout: two calm columns — the course title on the left, a single paper card for signing in on the right. */
:root {
  --bg: #EDEBE6; --paper: #F6F5F1; --ink: #272622; --ink-2: #57544C; --ink-3: #8B877D; --line: #D4D0C7; --line-2: #B9B4A8;
  --olive: #5E6037; --olive-soft: #DEDFCB; --bad: #94473A;
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-ui: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1B1A18; --paper: #22211E; --ink: #ECE9E2; --ink-2: #BDB8AD; --ink-3: #8B867B; --line: #36342E; --line-2: #4B4840; --olive: #B4B585; --olive-soft: #34352A; --bad: #D8998A; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1000px; min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 64px; align-items: center;
  padding-block: max(40px, env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 9vw, 100px); line-height: .92; margin: 16px 0 0; letter-spacing: -.02em; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.sub { font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 3vw, 28px); color: var(--ink-2); margin: 12px 0 0; animation: fade 1.2s ease .4s both; }
.mark { width: 120px; margin-top: 40px; }
.mark .o { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; transform-origin: center; animation: spin 60s linear infinite; }
.mark .a { fill: var(--olive); }
.mark .b { fill: var(--ink); }
.card { background: var(--paper); border: 1px solid var(--ink); padding: 34px 32px 30px; position: relative; animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
.card::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
h2 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 0 0 18px; line-height: 1.1; }
form { display: grid; gap: 18px; position: relative; }
label { display: grid; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
input { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 400 19px var(--f-ui); letter-spacing: 0; text-transform: none; border-radius: 0; }
input:focus { outline: none; border-bottom-color: var(--ink); }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--ink-3); }
.err { margin: 0; color: var(--bad); font-size: 14px; min-height: 1em; }
.err:empty { display: none; }
.btn { justify-self: start; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 13px 26px; font: 600 11.5px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: wait; }
.people { display: grid; gap: 10px; margin-bottom: 18px; position: relative; }
.person { text-align: left; border: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 14px 18px; font: 400 26px var(--f-display); text-transform: capitalize; cursor: pointer; transition: border-color .2s, background .2s, padding .25s; }
.person::after { content: "→"; float: right; color: var(--ink-3); font-family: var(--f-ui); font-size: 18px; transition: transform .25s; }
.person:hover { border-color: var(--ink); background: var(--olive-soft); padding-left: 24px; }
.person:hover::after { transform: translateX(4px); color: var(--ink); }
.person[disabled] { opacity: .5; cursor: wait; }
.newuser { position: relative; background: none; border: 0; padding: 4px 0; color: var(--ink-2); font: 600 11.5px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.newuser:hover { color: var(--ink); border-bottom-color: var(--ink); }
#create { margin-top: 8px; }
#pick .err { margin-top: 12px; position: relative; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .wrap { grid-template-columns: 1fr; gap: 32px; align-items: start; } .mark { display: none; } h1 { font-size: 56px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
