:root {
  color-scheme: light;
  --page-background: #f5f5f5;
  --page-text: #1a1a1a;
  --page-link: #1a1a1a;
  --page-muted: rgba(26, 26, 26, 0.58);
  --page-rule: rgba(26, 26, 26, 0.12);
}

html {
  background: var(--page-background);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  padding: 0 24px;
  background: var(--page-background);
  color: var(--page-text);
  font-family: "Geist", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#maincontent {
  flex: 0 0 auto;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 82px 0 24px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

html:not(.fonts-loading) #maincontent {
  opacity: 1;
  transform: none;
}

h1 {
  margin: 0 0 0.4rem;
  color: #02338a;
  font-family: "EB Garamond", "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 2.9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1.25rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.tagline {
  margin: 0 0 2rem;
}

.section-tight {
  margin-bottom: 0.2rem;
}

.roles {
  margin: 0;
  padding-left: 1.15rem;
}

.roles li + li {
  margin-top: 0.3rem;
}

.after-list {
  margin-top: 1.25rem;
}

.secondary-action {
  margin-top: 1.1rem;
}

.secondary-rule {
  width: 100%;
  height: 1px;
  margin: 1.9rem 0 0;
  border: 0;
  background: var(--page-rule);
}

.disclosure-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--page-muted);
  font: inherit;
  cursor: pointer;
}

.disclosure-trigger:hover {
  color: var(--page-text);
}

.disclosure-trigger::before {
  content: "+ ";
  text-decoration: none;
}

.disclosure-trigger[aria-expanded="true"]::before {
  content: "- ";
}

[data-disclosure-content] {
  color: var(--page-muted);
}

[data-disclosure-content] a {
  color: inherit;
}

.copy-wrap {
  position: relative;
  display: inline-block;
}

.copy-email {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: var(--page-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font: inherit;
  cursor: pointer;
}

.copy-email:hover {
  text-decoration-thickness: 2px;
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0;
  background: none;
  color: rgba(26, 26, 26, 0.58);
  font-family: "Geist", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.copy-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 18px 0 22px;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer-inner {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

a {
  color: var(--page-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--page-text);
  color: var(--page-background);
}

::-moz-selection {
  background: var(--page-text);
  color: var(--page-background);
}

@media (max-width: 768px) {
  body {
    padding: 0 18px;
    font-size: 15px;
  }

  #maincontent {
    padding: 62px 0 24px;
  }

  h1 {
    margin-bottom: 0.35rem;
  }

  .tagline {
    margin-bottom: 1.6rem;
  }

  .site-footer {
    padding: 14px 0 18px;
    font-size: 12px;
  }

  .site-footer-inner {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #maincontent {
    transition: none;
  }
}
