@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --ink: #2a221b; --muted: #74685b; --paper: #faf5ec; --panel: #fffdf8; --line: #eadfcd;
  --navy: #cf5a2c; --navy-soft: #fbe8dc;
  --saffron: #cf5a2c; --saffron-hover: #b44a20; --saffron-soft: #fbe8dc;
  --strong: #2f7a57; --developing: #9a6b12; --needs: #b0412f;
  --radius-s: 8px; --radius-m: 14px;
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--paper); }
a { color: var(--saffron); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* brand bar */
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 28px; max-width: 1500px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand .org { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.15; display: block; }
.brand .org-sub { font-size: 14.5px; color: var(--saffron); font-weight: 600; display: block; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 14px; color: var(--muted); }
.topbar button { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 20px; padding: 5px 14px; cursor: pointer; }
.topbar button:hover { border-color: var(--saffron); color: var(--saffron); }

/* portrait, pill and headline */
.photo { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; border: 4px solid var(--panel); box-shadow: 0 6px 24px rgba(120, 70, 30, .18); background: #fff; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill { display: inline-block; background: var(--saffron); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; padding: 5px 14px; border-radius: 20px; }
.mini-hero { display: flex; align-items: center; gap: 18px; padding: 4px 28px 16px; max-width: 1500px; margin: 0 auto; }
.mini-hero .photo { width: 64px; height: 64px; border-width: 3px; box-shadow: none; flex: none; }
.mini-hero h1 { font-family: var(--serif); font-weight: 700; font-size: 30px; margin: 4px 0 0; line-height: 1.1; }
.mini-hero .pill { font-size: 11px; padding: 3px 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-s); padding: 7px 14px; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 500; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.btn.primary:hover { background: var(--saffron-hover); }
.btn.navy { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* form controls */
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
select, input[type=text], input[type=date], input[type=password], textarea {
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; padding: 7px 9px; min-width: 0;
}
textarea { resize: vertical; min-height: 60px; }
.missing textarea { border-color: var(--needs); box-shadow: 0 0 0 1px var(--needs); }

.band { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 20px; white-space: nowrap; }
.status { font-size: 13px; font-weight: 600; white-space: nowrap; }
.status.pending { color: var(--muted); }
.status.done { color: var(--strong); }
.status.diff { color: var(--needs); }
.status.unusable { color: var(--developing); }

.notice { padding: 10px 14px; border-radius: var(--radius-s); background: var(--saffron-soft); color: #7a3212; font-size: 14px; }
.error { color: var(--needs); font-size: 14px; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .topbar { padding: 12px 16px; }
  .brand .org { font-size: 16px; } .brand .org-sub { font-size: 13px; }
  .topbar .who { display: none; }
  .mini-hero { padding: 4px 16px 12px; } .mini-hero h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
