/* vojtah.cz: one static page, one card. Same dark tokens and the Saira brand face as the app
   (SIL OFL 1.1, fonts/OFL-saira.txt). No JavaScript is needed (login.js adds the optional sign-in). */
@font-face { font-family: "Saira"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/saira-latin-wght-normal.woff2") format("woff2"); }
:root {
  --page: #0f0f0e; --card: #1a1a19; --ink: #f0efec; --ink-2: #c8c7bf; --muted: #9c9b93;
  --ring: rgba(255, 255, 255, 0.10); --brand-red: #ff2a55; --focus: #5598e7; --good: #2fb52f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; min-height: 100vh; font: 16px/1.5 var(--font); color: var(--ink); background: var(--page); }
main { max-width: 640px; margin: 0 auto; padding: 56px 16px 48px; }
.site { margin: 0 0 28px; font: 600 15px/1 "Saira", var(--font); letter-spacing: .04em; color: var(--muted); }
.site span { color: var(--brand-red); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card { position: relative; display: block; padding: 22px 24px 20px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--ring); color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand-red); transform: translateY(-1px); }
.card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.brand { display: inline-flex; gap: .25em; font: 500 26px/1.1 "Saira", "Arial Narrow", system-ui, sans-serif;
  letter-spacing: -0.005em; color: var(--brand-red); }
.brand b { font-weight: 800; }
.card p { margin: 10px 0 0; color: var(--ink-2); }
.name { display: block; font: 800 26px/1.1 "Saira", "Arial Narrow", system-ui, sans-serif; letter-spacing: .02em; color: var(--ink); }
.name .group { font-size: .6em; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); }
.pill { display: inline-block; margin: 0 0 12px; padding: 1px 9px; border-radius: 999px; font: 600 11px/1.6 var(--font);
  letter-spacing: .06em; text-transform: uppercase; color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--tone) 42%, var(--card)); }
.card .pill { display: block; width: fit-content; }
/* The label sits in the top right corner of a card; on a narrow screen it goes back above the name. */
@media (min-width: 441px) {
  .card .pill { position: absolute; top: 20px; right: 20px; margin: 0; }
  .card .name, .card .brand { padding-right: 130px; }
}
.card .brand { display: flex; }
.pill.public { --tone: #2fb52f; }
.pill.semi { --tone: #e3a33c; }
.pill.private { --tone: #f08a84; }
.pill.request { --tone: #e879b9; }
.card.static:hover { border-color: var(--ring); transform: none; }
.site a { color: inherit; text-decoration: none; }
.mail { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.mail:hover { color: var(--brand-red); }
.back { margin: 18px 0 0; font-size: 14px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--ink); }
.legend { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--ring); color: var(--muted); font-size: 14px; }
.legend p { margin: 8px 0; }
.legend .pill { margin: 0 8px 0 0; }
.go { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--ink); }
.card:hover .go { color: var(--brand-red); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.foot { margin-top: 28px; font-size: 13px; color: var(--muted); }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }
.warm { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.warm[hidden], #project[hidden], #p-summary[hidden] { display: none; }
.waiting { border-color: var(--brand-red); cursor: progress; }
.waiting .go { color: var(--muted); }
.waiting .warm::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px;
  border: 2px solid var(--muted); border-top-color: var(--brand-red); border-radius: 50%;
  vertical-align: -1px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .waiting .warm::before { animation: none; } }

/* Optional sign-in (login.js). Hidden until the script runs; the static page needs none of this. */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 28px; }
.top .site { margin: 0; }
.account { font-size: 14px; color: var(--muted); }
.account[hidden], #whoami[hidden], #extra-cards[hidden], .err[hidden] { display: none; }
.linkbtn { font: inherit; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.linkbtn:focus-visible, .btn:focus-visible, dialog input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#account-status { margin: -14px 0 18px; }
#extra-cards { margin-top: 14px; }
.warm.waiting-note::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px;
  border: 2px solid var(--muted); border-top-color: var(--brand-red); border-radius: 50%;
  vertical-align: -1px; animation: spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .warm.waiting-note::before { animation: none; } }
dialog { width: min(360px, calc(100vw - 32px)); padding: 22px 24px 20px; border-radius: 14px; background: var(--card);
  color: var(--ink); border: 1px solid var(--ring); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { margin: 0 0 14px; font: 600 20px/1.2 "Saira", var(--font); }
dialog label { display: block; margin: 12px 0 4px; font-size: 13px; color: var(--muted); }
dialog input { width: 100%; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--page);
  border: 1px solid var(--ring); border-radius: 8px; }
.err { margin: 12px 0 0; font-size: 14px; color: #f08a84; }
.actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.btn { font: 600 14px var(--font); padding: 8px 18px; border-radius: 8px; border: 0; cursor: pointer;
  color: #0f0f0e; background: var(--brand-red); }
.btn:disabled { opacity: .6; cursor: progress; }
/* Change password (login.js): the admin-set hint, the dialog's rules line, the account-manager-only username field. */
.hint { margin: -14px 0 18px; font-size: 14px; color: var(--ink-2); }
#pw-hint[hidden] { display: none; }
.rules { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.rules p { margin: 0; }
.rules ul { margin: 4px 0 0; padding: 0; list-style: none; }
.rules[hidden] { display: none; }
/* pwfields.js: the eye button inside every password field, the live ✓ per met rule. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle { position: absolute; top: 0; bottom: 0; right: 2px; display: flex; align-items: center; padding: 0 8px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pw-mark { display: inline-block; width: 1.4em; }
.pw-ok { color: var(--good); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* The signed-in user: a box with an icon, the name and a drop-down menu (Change password, Sign out). */
.usermenu { position: relative; }
.userbtn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 9px;
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--ring);
  border-radius: 999px; cursor: pointer; }
.userbtn:hover, .userbtn[aria-expanded="true"] { border-color: var(--brand-red); }
.userbtn[hidden] { display: none; }
.userbtn:focus-visible, .menuitem:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.usericon { width: 18px; height: 18px; flex: none; fill: currentColor; color: var(--ink-2); }
.chev { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform .15s; }
.userbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
#who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 100%; width: max-content;
  padding: 6px; background: var(--card); border: 1px solid var(--ring); border-radius: 12px; }
.menu[hidden] { display: none; }
.menuitem { display: block; width: 100%; padding: 8px 12px; font: inherit; text-align: left; color: var(--ink-2);
  background: none; border: 0; border-radius: 8px; cursor: pointer; }
.menuitem:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, var(--card)); }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
