:root {
  --ghh-canvas: #F7F6FA;
  --ghh-surface: #FFFFFF;
  --ghh-surface-alt: #EEEBF6;
  --ghh-surface-warm: #FAF6EA;
  --ghh-ink: #16142B;
  --ghh-ink-muted: #4B476B;
  --ghh-primary: #3D3199;
  --ghh-primary-deep: #292070;
  --ghh-primary-soft: #ECE9FA;
  --ghh-brass: #C99D14;
  --ghh-brass-ink: #7A5C00;
  --ghh-brass-bright: #F2CB52;
  --ghh-cabinet: #141229;
  --ghh-cabinet-mid: #1F1B3D;
  --ghh-rule: #D7D3E6;
  --ghh-rule-strong: #B9B2D4;
  --ghh-ok: #1D6E48;
  --ghh-ok-bg: #E7F5EE;
  --ghh-warn: #9A4A10;
  --ghh-warn-bg: #FDF1E6;
  --ghh-danger: #9C2434;
  --ghh-danger-bg: #FBECEF;
  --ghh-radius-sm: 6px;
  --ghh-radius-md: 10px;
  --ghh-radius-lg: 16px;
  --ghh-radius-pill: 999px;
  --ghh-container: 1220px;
  --ghh-font-display: 'Young Serif', Georgia, serif;
  --ghh-font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ghh-shadow-pill: 0 10px 28px rgba(22, 20, 43, 0.08);
  --ghh-shadow-card: 0 2px 10px rgba(22, 20, 43, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ghh-font-body);
  color: var(--ghh-ink);
  background: var(--ghh-canvas);
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ghh-primary); text-underline-offset: 3px; }
a:hover { color: var(--ghh-primary-deep); }

h1, h2, h3, h4 {
  font-family: var(--ghh-font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ghh-ink);
  margin: 0 0 0.65rem;
}
h1 { font-size: clamp(1.95rem, 3.6vw, 2.95rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.38rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--ghh-surface-alt);
  color: var(--ghh-primary-deep);
  padding: 0.12em 0.42em;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--ghh-brass);
  outline-offset: 2px;
}

.ghh-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ghh-primary);
  color: #FFFFFF;
  padding: 0.75rem 1.2rem;
  z-index: 2000;
  border-radius: var(--ghh-radius-sm);
  font-weight: 600;
}
.ghh-skip-link:focus { left: 1rem; top: 1rem; }

.ghh-container {
  width: min(100% - 2rem, var(--ghh-container));
  margin-inline: auto;
}
.ghh-muted { color: var(--ghh-ink-muted); }
.ghh-small { font-size: 0.88rem; color: var(--ghh-ink-muted); }
.ghh-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ghh-brass-ink);
  margin-bottom: 0.5rem;
}
.ghh-plate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.58rem;
  border-radius: var(--ghh-radius-sm);
  border: 1px solid var(--ghh-rule);
  background: var(--ghh-surface);
  color: var(--ghh-ink-muted);
}
.ghh-plate-tag.is-open { background: var(--ghh-ok-bg); color: var(--ghh-ok); border-color: #B4DFCA; }
.ghh-plate-tag.is-pass { background: var(--ghh-surface-warm); color: var(--ghh-brass-ink); border-color: #E3CE8B; }
.ghh-plate-tag.is-member { background: var(--ghh-primary-soft); color: var(--ghh-primary); border-color: #CBC4F0; }

.ghh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.62rem 1.2rem;
  border-radius: var(--ghh-radius-md);
  border: 1px solid transparent;
  font-family: var(--ghh-font-body);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.ghh-btn:active { transform: translateY(1px); }
.ghh-btn-sm { min-height: 40px; padding: 0.42rem 0.9rem; font-size: 0.86rem; }
.ghh-btn-indigo { background: var(--ghh-primary); color: #FFFFFF; border-color: var(--ghh-primary); }
.ghh-btn-indigo:hover { background: var(--ghh-primary-deep); color: #FFFFFF; }
.ghh-btn-brass { background: var(--ghh-brass-bright); color: var(--ghh-ink); border-color: var(--ghh-brass); }
.ghh-btn-brass:hover { background: #E4BD3E; color: var(--ghh-ink); }
.ghh-btn-outline { background: var(--ghh-surface); color: var(--ghh-ink); border-color: var(--ghh-rule-strong); }
.ghh-btn-outline:hover { background: var(--ghh-surface-alt); border-color: var(--ghh-primary); color: var(--ghh-primary-deep); }
.ghh-btn-quiet { background: var(--ghh-surface-alt); color: var(--ghh-ink); border-color: transparent; }
.ghh-btn-quiet:hover { background: #E1DCF2; color: var(--ghh-primary-deep); }
.ghh-btn-danger { background: var(--ghh-danger-bg); color: var(--ghh-danger); border-color: #E2B4BC; }
.ghh-btn-danger:hover { background: #F5D7DD; }
.ghh-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.ghh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--ghh-radius-pill);
  border: 1px solid var(--ghh-rule);
  background: var(--ghh-surface);
  color: var(--ghh-ink);
  cursor: pointer;
  font-size: 1.2rem;
}
.ghh-icon-btn:hover { background: var(--ghh-surface-alt); border-color: var(--ghh-primary); }
.ghh-icon-btn[aria-pressed="false"] { opacity: 0.62; }

.ghh-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.ghh-field label { font-weight: 600; font-size: 0.9rem; color: var(--ghh-ink); }
.ghh-input, .ghh-select, .ghh-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--ghh-rule-strong);
  border-radius: var(--ghh-radius-sm);
  background: var(--ghh-surface);
  color: var(--ghh-ink);
  font-family: var(--ghh-font-body);
  font-size: 0.95rem;
}
.ghh-textarea { min-height: 120px; resize: vertical; }
.ghh-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}
.ghh-check-row input { margin-top: 0.25rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ghh-primary); }
.ghh-error-text { color: var(--ghh-danger); font-size: 0.85rem; font-weight: 600; }
.ghh-notice {
  padding: 0.95rem 1.15rem;
  border-radius: var(--ghh-radius-md);
  border: 1px solid var(--ghh-rule);
  background: var(--ghh-surface-alt);
  margin-bottom: 1.1rem;
}
.ghh-notice.is-ok { background: var(--ghh-ok-bg); border-color: #B4DFCA; color: var(--ghh-ok); }
.ghh-notice.is-warn { background: var(--ghh-warn-bg); border-color: #EBC9A6; color: var(--ghh-warn); }
.ghh-notice.is-danger { background: var(--ghh-danger-bg); border-color: #E2B4BC; color: var(--ghh-danger); }

.ghh-table-wrap { overflow-x: auto; border: 1px solid var(--ghh-rule); border-radius: var(--ghh-radius-md); background: var(--ghh-surface); }
.ghh-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ghh-table th, .ghh-table td { padding: 0.78rem 0.95rem; text-align: left; border-bottom: 1px solid var(--ghh-rule); vertical-align: top; }
.ghh-table th { background: var(--ghh-surface-alt); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ghh-ink-muted); }
.ghh-table tr:last-child td { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body.ghh-reduced-motion *, body.ghh-reduced-motion *::before, body.ghh-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
