@import url('https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f1eadc;
  --card: #fbf7ee;
  --ink: #26362f;
  --muted: #72786a;
  --line: #d9d2c1;
  --copper: #9f542f;
  --sea: #d9e4dc;
  --danger: #a43d2c;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-image: radial-gradient(#5f61470c .65px, transparent .65px); background-size: 5px 5px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #ba6b3e; outline-offset: 4px; }
a { color: var(--copper); text-underline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.2; letter-spacing: -.05em; }
h2 { font-size: 1.5rem; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; }
small { color: var(--muted); }
.shell { max-width: 1440px; margin: auto; padding: 0 5vw 48px; }
.masthead { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand-mark { border: 1px solid var(--ink); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-size: 25px; }
.brand-name { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle, .eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.masthead-right { display: flex; gap: 18px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .73rem; color: var(--muted); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #617c5a; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--ink); border-radius: 3px; padding: 10px 19px; background: var(--ink); color: var(--card); font-weight: 700; font-size: .85rem; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { background: #415246; transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover:not(:disabled) { background: #e5decf; }
.button.quiet { border-color: transparent; background: transparent; color: var(--muted); padding: 8px 0; font-size: .75rem; min-height: 44px; }
.button.quiet:hover:not(:disabled) { background: transparent; color: var(--ink); }
.intro { padding: 38px 0 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.intro .eyebrow { margin-bottom: 10px; color: var(--copper); }
.intro p { margin-top: 12px; max-width: 52ch; color: var(--muted); }
.panel { border: 1px solid var(--line); background: var(--card); border-radius: 4px; }
.panel-header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.panel-body { padding: 24px; }
.panel-label { font-size: .7rem; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: .85rem; }
.error { border-left: 3px solid var(--danger); padding: 12px 16px; background: #a43d2c0a; color: var(--danger); margin: 18px 0; overflow-wrap: anywhere; }
.notice { padding: 12px 16px; background: #6b7b5c12; border-left: 3px solid #75866a; color: #526348; margin: 18px 0; }
.form-field { display: grid; gap: 7px; margin-bottom: 19px; }
.form-field label { font-size: .8rem; font-weight: 700; }
.form-field input { min-height: 46px; border: 1px solid #c8c2b1; border-radius: 3px; padding: 10px 13px; color: var(--ink); background: #fffdf7; width: 100%; }
.form-field input::placeholder { color: #999c8e; }
.login-card { max-width: 480px; margin: 64px auto; padding: 34px; }
.login-card h1 { font-size: 2.15rem; margin: 12px 0 16px; }
.login-card > p { color: var(--muted); margin-bottom: 24px; }
.login-card .button { width: 100%; }
.login-card small { display: block; margin-top: 16px; }
.footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: .68rem; letter-spacing: .05em; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { white-space: pre-wrap; word-break: break-word; font-size: .75rem; }
@media (max-width: 650px) {
  .shell { padding-left: 5vw; padding-right: 5vw; }
  .masthead { min-height: 80px; gap: 12px; }
  .brand-subtitle { font-size: .56rem; }
  .brand-name { font-size: .83rem; }
  .brand-mark { width: 34px; height: 34px; }
  .masthead-right { gap: 10px; }
  .badge { display: none; }
  .intro { padding-top: 28px; align-items: start; flex-direction: column; }
  .panel-header { padding: 16px 18px; }
  .panel-body { padding: 18px; }
  .login-card { margin: 35px auto; padding: 24px; }
  .footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
