@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --ctp-lavender: #7287fd;
  --ctp-text: #4c4f69;
  --ctp-subtext: #5c5f77;
  --ctp-muted: #6c6f85;
  --ctp-surface-2: #acb0be;
  --ctp-surface-1: #bcc0cc;
  --ctp-surface-0: #ccd0da;
  --ctp-base: #eff1f5;
  --ctp-mantle: #e6e9ef;
  --ctp-crust: #dce0e8;

  --background: var(--ctp-base);
  --background-soft: var(--ctp-mantle);
  --surface: color-mix(in srgb, var(--ctp-base) 80%, var(--ctp-lavender));
  --surface-strong: var(--ctp-crust);
  --border: color-mix(in srgb, var(--ctp-surface-2) 64%, transparent);
  --text: var(--ctp-text);
  --text-soft: var(--ctp-subtext);
  --muted: var(--ctp-muted);
  --accent: var(--ctp-lavender);
  --accent-contrast: #f7f8ff;
  --code-keyword: #8839ef;
  --code-title: #1e66f5;
  --code-string: #40a02b;
  --code-meta: #df8e1d;
  --code-operator: #179299;
  --code-muted: #7c7f93;
  --radius: 8px;
  --space-page: clamp(1rem, 4vw, 3rem);
  --max-page: 1120px;
  --font-sans:
    "Google Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --font-mono:
    ui-monospace,
    "SFMono-Regular",
    "SF Mono",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  --type-body-size: 14px;
  --type-body-line: 20px;
  --type-title-size: 23px;
  --type-title-line: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ctp-lavender: #b4befe;
    --ctp-text: #cdd6f4;
    --ctp-subtext: #bac2de;
    --ctp-muted: #a6adc8;
    --ctp-surface-2: #585b70;
    --ctp-surface-1: #45475a;
    --ctp-surface-0: #313244;
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-crust: #11111b;

    --background: var(--ctp-base);
    --background-soft: var(--ctp-mantle);
    --surface: color-mix(
      in srgb,
      var(--ctp-surface-0) 84%,
      var(--ctp-lavender)
    );
    --surface-strong: var(--ctp-crust);
    --border: color-mix(in srgb, var(--ctp-surface-2) 72%, transparent);
    --text: var(--ctp-text);
    --text-soft: var(--ctp-subtext);
    --muted: var(--ctp-muted);
    --accent: var(--ctp-lavender);
    --accent-contrast: #181825;
    --code-keyword: #cba6f7;
    --code-title: #89b4fa;
    --code-string: #a6e3a1;
    --code-meta: #f9e2af;
    --code-operator: #94e2d5;
    --code-muted: #9399b2;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.back-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  margin-right: 0.35rem;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.page-shell {
  width: min(calc(100% - var(--space-page) * 2), var(--max-page));
  margin-inline: auto;
}

.site-header {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand,
.site-nav,
.footer-nav,
.link-row,
.meta-list {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  justify-content: flex-end;
  gap: clamp(0.35rem, 2vw, 1.25rem);
  color: var(--text-soft);
}

.site-nav a,
.footer-nav a,
.text-link,
.back-link {
  color: inherit;
  text-decoration: none;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-active,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.text-link,
.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.site-nav .is-active {
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 740px);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.about-hero {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.hero-copy {
  max-width: 680px;
}

.soft-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-size: var(--type-title-size);
  font-weight: 500;
  line-height: var(--type-title-line);
  letter-spacing: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
}

h2,
h3 {
  margin-bottom: 0.7rem;
}

.hero-copy > p:not(.soft-label),
.section-heading p,
.about-hero p,
.about-grid p,
.site-footer p {
  max-width: 62ch;
  color: var(--text-soft);
}

.hero-copy > p:not(.soft-label) {
  max-width: 46ch;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button {
  padding: 0.6rem 0.9rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.button.secondary {
  background: color-mix(in srgb, var(--background) 76%, var(--accent));
  color: var(--text);
}

.compact-button {
  align-self: start;
}

.section-stack {
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

.listing {
  padding-block: clamp(1.75rem, 5vw, 3.5rem);
}

.about-grid {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-heading {
  max-width: 680px;
  margin-bottom: clamp(0.9rem, 3vw, 1.4rem);
}

.feature-pair,
.post-strip,
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.content-widget,
.post-widget,
.inline-widget,
.about-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--background) 82%, var(--surface));
}

.content-widget,
.post-widget,
.about-grid article {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.content-widget:nth-child(2),
.post-widget:nth-child(2) {
  background: color-mix(in srgb, var(--accent) 10%, var(--background));
}

.post-widget:nth-child(3),
.about-grid article:nth-child(2) {
  background: var(--background-soft);
}

.about-hero h1,
.article-header h1 {
  max-width: 18ch;
}

.listing {
  display: grid;
  gap: 1rem;
}

.inline-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.member-widget {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.member-avatar {
  width: 5rem;
  height: 5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: cover;
}

.member-avatar.large {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
}

.widget-main h2 {
  margin-bottom: 0.35rem;
}

.widget-main h2 a,
.content-widget h3 a,
.post-widget h3 a {
  text-decoration-color: transparent;
}

.widget-main h2 a:hover,
.widget-main h2 a:focus-visible,
.content-widget h3 a:hover,
.content-widget h3 a:focus-visible,
.post-widget h3 a:hover,
.post-widget h3 a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.meta-list {
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  color: var(--muted);
}

.meta-list span:not(:last-child)::after {
  content: ",";
}

.position,
.article-date,
.project-description {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-weight: 500;
}

.project-description {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--text-soft);
  font-weight: 400;
}

.prose {
  color: var(--text-soft);
}

.prose :where(p, ul, ol) {
  max-width: 68ch;
  margin-bottom: 1rem;
}

.prose :where(p:last-child, ul:last-child, ol:last-child) {
  margin-bottom: 0;
}

.prose :where(strong, a) {
  color: var(--text);
}

.prose a {
  text-decoration-color: var(--accent);
}

.prose :where(p, li) code {
  padding: 0.03rem 0.22rem;
  border: 1px solid var(--border);
  background: var(--background-soft);
  color: var(--text);
  line-height: 1;
}

.prose :where(figure) {
  max-width: 760px;
  margin: 0 0 1.5rem;
}

.prose :where(img) {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.prose :where(figcaption) {
  margin-top: 0.55rem;
  color: var(--muted);
}

.prose :where(pre) {
  max-width: 760px;
  overflow-x: auto;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--background-soft);
}

.prose :where(pre code) {
  font-size: 13px;
  line-height: 19px;
}

.prose :where(.hljs-keyword, .hljs-built_in) {
  color: var(--code-keyword);
}

.prose :where(.hljs-title, .hljs-title.class_, .hljs-title.function_, .hljs-type) {
  color: var(--code-title);
}

.prose :where(.hljs-string, .hljs-number, .hljs-literal) {
  color: var(--code-string);
}

.prose :where(.hljs-meta, .hljs-annotation) {
  color: var(--code-meta);
}

.prose :where(.hljs-annotation-name) {
  color: var(--code-meta);
}

.prose :where(.hljs-annotation-key) {
  color: var(--code-title);
}

.prose :where(.hljs-annotation-value) {
  color: var(--code-string);
}

.prose :where(.hljs-variable, .hljs-params) {
  color: var(--text-soft);
}

.prose :where(.hljs-operator) {
  color: var(--code-operator);
}

.prose :where(.hljs-comment) {
  color: var(--code-muted);
}

.compact {
  margin-top: 0.8rem;
}

.quote {
  max-width: 54ch;
  margin: 0;
  color: var(--text-soft);
  font-style: italic;
}

.quote::before {
  content: "\201c";
  color: var(--accent);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 700;
  line-height: 0;
  margin-right: 0.08rem;
}

.quote::after {
  content: "\201d";
  color: var(--accent);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 700;
  line-height: 0;
  margin-left: 0.08rem;
}

.quote p {
  display: inline;
}

.link-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-link {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 160ms ease;
}

.platform-link:hover,
.platform-link:focus-visible {
  color: var(--accent);
}

.link-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
  vertical-align: middle;
}

.link-icon.lucide {
  fill: none;
}

.external-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  vertical-align: -0.14em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.article-shell {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--text-soft);
}

.article-header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-links {
  margin-bottom: 2rem;
}

.full-link-list {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.full-link-list a {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--text);
  text-decoration-color: transparent;
}

.full-link-list a:hover,
.full-link-list a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.full-link-list a span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.article-body {
  max-width: 760px;
}

.article-body :where(h2, h3) {
  margin-top: 2.2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.empty-state {
  margin: 0;
  color: var(--text-soft);
}

.footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero,
  .inline-widget,
  .member-widget {
    grid-template-columns: 1fr;
  }

  .site-header {
    min-height: auto;
    align-items: start;
    padding-block: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .member-widget .link-row,
  .inline-widget .link-row {
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .page-shell {
    width: min(calc(100% - 2rem), var(--max-page));
  }

  .button {
    width: 100%;
  }
}
