:root {
  color-scheme: light;
  --brand: #50377e;
  --brand-strong: #3f286d;
  --brand-soft: #eee8f7;
  --accent: #176b4d;
  --text: #17151c;
  --text-muted: #5c5864;
  --border: #dedce3;
  --surface: #ffffff;
  --background: #f7f7f8;
  --error: #a43232;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-nav {
  width: min(calc(100% - 40px), 1080px);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
}

.site-links {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.site-links a {
  min-height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 3px 1px 0;
  border-bottom: 3px solid transparent;
  color: #4d4657;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-links a:hover,
.site-links a:focus-visible {
  color: var(--brand);
}

.site-links a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 800;
}

.page {
  width: min(calc(100% - 40px), 760px);
  min-height: calc(100vh - 166px);
  margin: 0 auto;
  padding: 56px 0 64px;
}

.page-wide {
  width: min(calc(100% - 40px), 1080px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.1;
}

.lead {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 18px;
}

.long-form h1 {
  margin-bottom: 22px;
}

.long-form h2 {
  margin: 42px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 22px;
  line-height: 1.25;
}

.long-form h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.long-form p {
  margin: 12px 0;
}

.long-form ul,
.long-form ol {
  padding-left: 24px;
}

.info-panel {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.info-panel > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.info-panel > :last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.button.secondary {
  color: #342f3b;
  border-color: #aaa5b1;
  background: transparent;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-inner {
  width: min(calc(100% - 40px), 1080px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #6b6670;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: #4d4657;
}

@media (max-width: 720px) {
  .site-nav {
    min-height: 0;
    padding-top: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .site-links {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--border);
  }

  .site-links a {
    min-height: 42px;
    flex: 1 1 30%;
    justify-content: center;
    padding: 9px 4px 6px;
    font-size: 12px;
    text-align: center;
  }

  .page {
    min-height: calc(100vh - 142px);
    padding: 40px 0 48px;
  }

  .site-footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .actions .button {
    width: 100%;
  }
}
