@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --ink: #1b1a17;
  --ink-2: #57534a;
  --ink-3: #8f897c;
  --rule: #e2dccd;
  --hl: #ffd84d;
  --hl-soft: #fff1b8;
  --red: #b4361d;
  --red-soft: #f9e3dc;
  --ok: #3d6b35;
  --ok-soft: #e4eedd;
  --blue: #2349a8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Geist, system-ui, sans-serif; color: var(--ink); background: var(--paper); font-size: 15px; -webkit-font-smoothing: antialiased; padding-bottom: 56px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.mono { font-family: "Geist Mono", monospace; }
.hl { background: linear-gradient(transparent 55%, var(--hl) 55%); }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.8; vertical-align: -3px; }

/* top bar used inside the app */
.bar { display: flex; align-items: center; gap: 24px; padding: 14px 28px; border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; color: var(--hl); font: 700 13px Geist; font-style: normal; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.bar nav a.on { background: var(--ink); color: var(--paper); }
.bar .sp { flex: 1; }
.bar .who { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; }
.bar .av { width: 28px; height: 28px; border-radius: 50%; background: #c9b78a; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; border: 1px solid var(--rule); background: #fff; }
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.hl { background: var(--hl); border-color: #e9c53a; }

/* prototype switcher */
.proto { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 50; display: flex; align-items: center; gap: 4px; padding: 0 14px; background: var(--ink); color: #cfc9ba; font-size: 13px; }
.proto b { font: 500 11px "Geist Mono"; letter-spacing: .14em; color: var(--hl); margin-right: 12px; }
.proto a { padding: 5px 11px; border-radius: 6px; }
.proto a:hover { background: #2b2925; }
.proto a.on { background: var(--hl); color: var(--ink); font-weight: 600; }
.proto .sp { flex: 1; }
.proto .note { color: #7d776a; }
@media (max-width: 900px) { .proto { overflow-x: auto; white-space: nowrap; } .bar nav, .bar .who { display: none; } }
