:root {
  --ink: #0d1d1a;
  --muted: #4b615c;
  --paper: #f6f8f2;
  --panel: #fffdf7;
  --line: #aac4ba;
  --teal: #06372f;
  --green: #0b4f43;
  --amber: #bd741e;
  --soft: #dceee8;
  --shadow: 0 24px 70px rgb(8 38 34 / 14%);
  --radius: 8px;
  --font: "Source Sans 3", Aptos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(90deg, rgb(11 79 67 / 7%) 1px, transparent 1px), linear-gradient(180deg, rgb(189 116 30 / 6%) 1px, transparent 1px), var(--paper);
  background-size: 58px 58px;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  padding: 11px 12px;
}
textarea { resize: vertical; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { top: 16px; }
.site-header {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(13 29 26 / 14%);
  background: rgb(250 252 247 / 94%);
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}
.brand img { width: 56px; height: 42px; object-fit: contain; }
nav { min-width: 0; display: flex; gap: 18px; color: var(--muted); font-weight: 850; }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .46fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: .8125rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { max-width: 12ch; font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }
.lede { max-width: 66ch; color: var(--muted); font-size: 1.2rem; }
.actions, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.actions { justify-content: flex-start; margin-top: 28px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 11px 16px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}
.button.primary { background: var(--teal); color: #fffdf7; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--teal); }
.button:disabled { opacity: .6; cursor: not-allowed; }
.section { padding: clamp(42px, 6vw, 78px) 0; }
.panel, .status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 253 247 / 96%);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}
.status-panel dl { margin: 0; display: grid; gap: 12px; }
.status-panel div {
  display: grid;
  grid-template-columns: .45fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.status-panel div:first-of-type { border-top: 0; }
dt { color: var(--muted); font-weight: 850; }
dd { margin: 0; font-weight: 800; }
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr);
  gap: 22px;
  align-items: start;
}
form { display: grid; gap: 14px; margin-top: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
label { display: grid; gap: 6px; font-size: .94rem; font-weight: 850; }
.wide { grid-column: 1 / -1; }
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkline input {
  width: 44px;
  min-width: 44px;
  height: 44px;
}
.note { color: var(--muted); }
.message { min-height: 1.4em; margin: 0; color: var(--green); font-weight: 900; }
.message.error { color: #9f312d; }
.dashboard-grid, .admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.dashboard-grid form, .admin-columns section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(246 248 242 / 70%);
  padding: 18px;
}
.records, .directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.record-card, .member-card, .admin-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
  overflow-wrap: anywhere;
}
.record-card p, .member-card p, .admin-card p { margin: 6px 0; color: var(--muted); overflow-wrap: anywhere; }
.tag {
  display: inline-flex;
  border: 1px solid rgb(11 79 67 / 26%);
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  padding: 3px 9px;
  font-size: .8125rem;
  font-weight: 900;
}
.admin-card .button { margin: 6px 6px 0 0; }
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 34px 0 50px;
  color: var(--muted);
}
footer img { width: 72px; }
footer p { margin: 0; }
footer a { font-weight: 900; color: var(--teal); }

@media (max-width: 980px) {
  .site-header { position: static; flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  nav { width: 100%; overflow-x: auto; }
  .hero, .grid-2, .dashboard-grid, .admin-columns { grid-template-columns: 1fr; }
  .records, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  main, footer { width: min(100% - 24px, 1180px); }
  h1 { font-size: clamp(2.5rem, 13vw, 3.7rem); }
  .form-grid, .records, .directory-grid { grid-template-columns: 1fr; }
  .actions .button, form .button { width: 100%; }
  .panel, .status-panel { padding: 18px 14px; }
  .status-panel div { grid-template-columns: 1fr; gap: 3px; }
  footer { flex-direction: column; align-items: flex-start; }
}
