:root {
  --primary: #3E517A;
  --primary-deep: #263a61;
  --secondary: #76777D;
  --tertiary: #787491;
  --bg: #f3faff;
  --surface-low: #ebf5fb;
  --surface: #f3faff;
  --surface-strong: #e5eff5;
  --text: #131d21;
  --muted: #44474e;
  --border: rgba(197, 198, 207, 0.35);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 6rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(243, 250, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.65rem max(1.5rem, calc((100vw - min(calc(100% - 3rem), var(--max))) / 2));
}
.site-header strong {
  font-size: 1.1rem;
  font-weight: 100;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  white-space: nowrap;
}
.site-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-wordmark:hover strong,
.site-wordmark:focus-visible strong {
  color: var(--primary);
}
.site-header .muted { display: none; }
.site-header nav { display: flex; align-items: center; gap: 2.8rem; flex-wrap: wrap; font-size: 1.02rem; font-weight: 200; letter-spacing: 0.05em; }
.site-header nav a, .site-header nav button.nav-link {
  color: var(--secondary);
  background: transparent;
  border: 0;
  padding: .1rem 0;
  min-height: 0;
  font: inherit;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, opacity .16s ease;
  border-bottom: 1px solid transparent;
}
.site-header nav a:hover, .site-header nav button.nav-link:hover, .site-header nav a:focus-visible, .site-header nav button.nav-link:focus-visible {
  color: var(--primary);
  border-bottom-color: rgba(38, 58, 97, 0.24);
}
.site-header nav form { margin: 0; }
.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.muted { color: var(--secondary); }
.empty-state-block {
  display: grid;
  gap: .5rem;
  max-width: 52ch;
}
.empty-state-message {
  margin: 0;
  color: var(--secondary);
}
.empty-state-note {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.9;
}
.error, .success, .notice, .warning {
  padding: .85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(197, 198, 207, 0.5);
  background: rgba(255,255,255,.7);
}
.error {
  background: rgba(248, 113, 113, 0.09);
  border-color: rgba(239, 68, 68, 0.22);
  color: #8f2d2d;
}
.success {
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.34);
  color: #1f6b3b;
}
.notice {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #274f8f;
}
.warning {
  background: rgba(250, 204, 21, 0.13);
  border-color: rgba(234, 179, 8, 0.24);
  color: #8a5a00;
}
label { display: block; font-weight: 500; margin-top: 1rem; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  padding: .8rem .9rem;
  box-sizing: border-box;
  border: 1px solid rgba(197, 198, 207, 0.75);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
  font-weight: 300;
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(62, 81, 122, 0.12);
  outline-offset: 1px;
  border-color: rgba(62, 81, 122, 0.32);
}
textarea { min-height: 220px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--secondary); font-weight: 500; }
.actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.actions--spread { justify-content: space-between; }
.pill { display: inline-block; padding: .18rem .52rem; border-radius: 999px; background: rgba(62, 81, 122, 0.08); margin-right: .35rem; }
.button-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .75rem 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
.button-primary { background: var(--primary-deep); color: #fff; }
.button-primary:hover { background: #1d2f52; color: #fff; }
.button-secondary { background: rgba(255,255,255,.82); color: var(--text); border-color: rgba(197, 198, 207, 0.75); }
.button-secondary:hover { background: rgba(255,255,255,.96); }
.status-pill { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.status-pill--draft { background: rgba(245, 158, 11, 0.15); color: #8a5a00; }
.status-pill--published { background: rgba(22, 101, 52, 0.12); color: #166534; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .92em; }
h1, h2, h3, .page-title, .home-title, .post-title {
  margin: 0;
  font-weight: 100;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (max-width: 800px) {
  main { width: min(calc(100% - 2rem), var(--max)); padding-top: 3rem; }
  .site-header { flex-direction: column; align-items: flex-start; padding-left: 1rem; padding-right: 1rem; }
  .site-header nav { gap: 1rem 1.4rem; }
}
