/* present.hare.quest: login page and presentation list. */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/_auth/fonts/InstrumentSerif-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/_auth/fonts/InstrumentSerif-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/_auth/fonts/Inter_24pt-Regular.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --paper: #faf8f4;
  --rule: #d9d6ce;
  --warn: #8a2c1d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0ede6;
    --ink-2: #c9c6bf;
    --ink-3: #8a8680;
    --paper: #111111;
    --rule: #2a2a2a;
    --warn: #e59a8a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

.mark { width: 56px; height: 56px; display: block; }
.mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .mark-light { display: none; }
  .mark-dark { display: block; }
}

.wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.wordmark em { font-style: italic; color: var(--ink-3); }

/* ---- Login ---------------------------------------------------------- */
.login {
  margin: auto;
  width: 100%;
  max-width: 380px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.02em; }
.login input[type=password] {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
}
.login input[type=password]:focus { outline: none; border-color: var(--ink); }

.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 12px 16px;
  text-decoration: none;
  text-align: center;
}
.btn:hover { opacity: 0.88; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); padding: 8px 14px; font-size: 0.9rem; }
.btn-quiet:hover { border-color: var(--ink); opacity: 1; }

.note { font-size: 0.9rem; color: var(--ink-3); margin: 0; min-height: 1.4em; }
.note.warn { color: var(--warn); }

/* ---- List ----------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; }
.brand .wordmark { font-size: 1.8rem; }

main.list {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px clamp(16px, 5vw, 56px) 64px;
}
.decks { list-style: none; margin: 0; padding: 0; }
.decks li { border-bottom: 1px solid var(--rule); }
.decks a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-decoration: none;
}
.decks a:hover .title, .decks a:focus .title { text-decoration: underline; text-underline-offset: 4px; }
.decks .title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
}
.decks .meta { font-size: 0.85rem; color: var(--ink-3); white-space: nowrap; }
.empty { color: var(--ink-3); }

@media (max-width: 560px) {
  .decks a { flex-direction: column; gap: 4px; }
}
