/* Styles for every public page: home, blog, privacy policy and terms. */

:root {
  --bg: #000;
  --surface: #09090b;
  --border: #18181b;
  --border-strong: #27272a;
  --text: #f4f4f5;
  --text-body: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;
  --primary: hsl(158 57.7% 38%);
  --primary-bright: hsl(158 57.7% 48%);
  --button: hsl(158 57.7% 30%);
  --button-hover: hsl(158 57.7% 34%);
  --card: rgb(30 41 59 / 0.5);
  --card-border: rgb(51 65 85 / 0.5);
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --header-height: 64px;
  --content-width: 72rem;
  --gutter: clamp(20px, 4vw, 40px);
  --rule: rgb(255 255 255 / 0.13);
  --rule-strong: rgb(255 255 255 / 0.26);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-bright);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(0 0 0 / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-strong);
}

.site-header__inner {
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.back-link:hover {
  color: #fff;
  background: rgb(24 24 27 / 0.5);
}

/* Document */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.legal__eyebrow {
  margin: 0 0 12px;
  color: var(--primary-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal__updated {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.legal__summary {
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  color: #d4d4d8;
}

.legal .legal__summary p {
  margin: 0;
}

.toc {
  margin: 0 0 48px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.legal .toc h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 32px;
  font-size: 15px;
}

.legal .toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal .toc li::marker {
  color: var(--text-faint);
}

.toc a {
  color: var(--text-body);
  text-decoration: none;
}

.toc a:hover {
  color: #fff;
  text-decoration: underline;
}

.legal section + section {
  margin-top: 40px;
}

.legal h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin: 0 0 16px;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--primary);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal__caps {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.contact-card {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.legal .contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--gutter) 20px;
  color: #a1a1aa;
  font-size: 15px;
}

.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

.site-footer__top {
  display: grid;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.site-footer .site-footer__name {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.site-footer__brand p:last-child {
  max-width: 24rem;
  color: #a1a1aa;
  line-height: 1.6;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 32px;
}

.site-footer__social {
  display: flex;
  gap: 8px;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-body);
  transition: color 0.2s, border-color 0.2s;
}

.site-footer__social a:hover {
  color: #fff;
  border-color: var(--primary);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer nav a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer nav a:hover {
  color: var(--text-body);
}

.site-footer .site-footer__links a {
  color: #d4d4d8;
}

.site-footer .site-footer__links a:hover {
  color: #fff;
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
  }
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Site navigation (blog pages) */

.site-nav {
  display: none;
}

.site-nav a,
.site-nav-mobile a {
  color: #e4e4e7;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav-mobile a:hover {
  color: #fff;
  background: rgb(24 24 27 / 0.5);
}

.site-nav a[aria-current="page"],
.site-nav-mobile a[aria-current="page"] {
  color: #fff;
}

.site-nav a.nav-cta {
  margin-left: 8px;
  background: var(--button);
  color: #fff;
}

.site-nav a.nav-cta:hover {
  background: var(--button-hover);
}

.site-nav-mobile a.nav-cta {
  margin-top: 8px;
  border-bottom: 0;
  background: var(--button);
  color: #fff;
  text-align: center;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
}

.menu-toggle:hover {
  color: #fff;
  background: var(--border);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav-mobile {
  border-top: 1px solid var(--border);
  padding: 8px 16px 16px;
}

.site-nav-mobile[hidden] {
  display: none;
}

.site-nav-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  border-bottom: 1px solid rgb(24 24 27 / 0.5);
  font-size: 16px;
}

.site-nav-mobile a:last-child {
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .menu-toggle,
  .site-nav-mobile {
    display: none;
  }
}

/* Blog */

.blog {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.blog-hero {
  margin: 0 auto 40px;
  max-width: 42rem;
  text-align: center;
}

.blog-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-hero h1 span {
  color: var(--primary);
}

.blog-hero p {
  margin: 0;
  color: var(--slate-400);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.post-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover,
.post-card:focus-within {
  border-color: hsl(158 57.7% 38% / 0.5);
  box-shadow: 0 10px 15px -3px hsl(158 57.7% 38% / 0.1);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid hsl(158 57.7% 38% / 0.2);
  border-radius: 999px;
  background: hsl(158 57.7% 38% / 0.1);
  color: var(--primary-bright);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.post-card :is(h2, h3) {
  margin: 12px 0 10px;
  color: var(--slate-100);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-card :is(h2, h3) a {
  color: inherit;
  text-decoration: none;
}

/* Makes the whole card clickable while keeping one real link. */
.post-card :is(h2, h3) a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.post-card:hover :is(h2, h3) {
  color: var(--primary-bright);
}

.post-card__excerpt {
  flex-grow: 1;
  margin: 0 0 16px;
  color: var(--slate-300);
  font-size: 14px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--slate-400);
  font-size: 13px;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-bright);
  font-size: 13px;
  font-weight: 500;
  transition: gap 0.2s;
}

.post-card:hover .post-card__read {
  gap: 8px;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-empty {
  margin: 0;
  padding: 48px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--text-body);
  text-align: center;
}

.blog-count {
  margin: -16px 0 24px;
  color: var(--slate-400);
  font-size: 14px;
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.pagination ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__page,
.pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card);
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

a.pagination__page:hover,
a.pagination__step:hover {
  border-color: hsl(158 57.7% 38% / 0.5);
  color: var(--primary-bright);
}

.pagination__page[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pagination__step {
  gap: 6px;
}

.pagination__step[aria-disabled="true"] {
  opacity: 0.4;
}

.pagination__gap {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--slate-400);
}

/* On phones the arrows sit on their own row below the page numbers. */
@media (max-width: 639px) {
  .pagination ol {
    order: -1;
    width: 100%;
  }
}

/* Single post */
.preview-banner {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid hsl(45 93% 47% / 0.4);
  border-radius: 8px;
  background: hsl(45 93% 47% / 0.1);
  color: #fde68a;
  font-size: 14px;
}

.preview-banner a {
  color: #fde68a;
}

.post__body h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
}


.post {
  max-width: 46rem;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-body);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.post__header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post__header h1 {
  margin: 16px 0;
  color: #fff;
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.post__lead {
  margin: 0 0 20px;
  color: #d4d4d8;
  font-size: 1.125rem;
  line-height: 1.6;
}

.post__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.post__byline strong {
  color: var(--text);
  font-weight: 600;
}

.post__byline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post__byline svg {
  width: 14px;
  height: 14px;
}

.post__body {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post__body p {
  margin: 0 0 20px;
}

.post__body ul {
  margin: 0 0 20px;
  padding-left: 1.25rem;
}

.post__body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.post__body li::marker {
  color: var(--primary);
}

.post__body strong {
  color: var(--text);
  font-weight: 600;
}

.post__body h2 {
  margin: 40px 0 12px;
  color: var(--primary-bright);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-nav {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-nav a:hover {
  border-color: hsl(158 57.7% 38% / 0.5);
}

.post-nav small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.post-nav span {
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.post-nav__next {
  text-align: right;
}

.post-nav__next small {
  justify-content: flex-end;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 640px) {
  .blog {
    padding: 72px 24px 96px;
  }

  .post {
    padding: 56px 24px 96px;
  }

  .post-nav {
    grid-template-columns: 1fr 1fr;
  }

  .post-nav__next:only-child {
    grid-column: 2;
  }
}

@media (min-width: 640px) {
  .site-header__logo img {
    height: 48px;
  }

  .legal {
    padding: 72px 24px 96px;
  }
}

/* Home page */

.home {
  --text-body: #d4d4d8;
  --text-muted: #b4b4bc;
  --slate-300: #d4d4d8;
  --slate-400: #b4b4bc;
  --band: #0c0e12;
  --card: #171b22;
  --card-border: rgb(255 255 255 / 0.1);
  font-size: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button--primary {
  background: var(--button);
  color: #fff;
}

.button--primary:hover {
  background: var(--button-hover);
  color: #fff;
}

.button--outline {
  border-color: var(--rule-strong);
  color: #fff;
}

.button--outline:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
}

.button--light {
  background: #fff;
  color: #000;
}

.button--light:hover {
  background: #e4e4e7;
  color: #000;
}

.button--block {
  width: 100%;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary-bright);
}

:where(.home) h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
}

:where(.home) h4 {
  margin: 0;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

:where(.home) p {
  margin: 0;
}

:where(.home) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card);
}

.column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The last card takes up any small height difference so paired columns end level. */
.column > .card:last-child {
  flex-grow: 1;
}

.halves {
  display: grid;
  gap: 16px;
}

/* Hero */

.hero {
  padding: 48px var(--gutter) 44px;
  text-align: center;
}

.hero__inner,
.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__tagline {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.hero__intro {
  max-width: 44rem;
  margin: 12px auto 0;
  color: var(--text-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 56rem;
  margin: 28px auto 0;
}

.highlights li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 12px;
}

.highlights strong {
  color: var(--primary-bright);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.highlights span {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.35;
}

/* Sections */

.section {
  padding: 44px var(--gutter);
  scroll-margin-top: var(--header-height);
}

.section:nth-of-type(even) {
  background: var(--band);
}

.section__head {
  margin-bottom: 24px;
  text-align: center;
}

.section__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section__title span {
  color: var(--primary-bright);
}

.section__intro {
  max-width: 44rem;
  margin: 8px auto 0;
  color: var(--text-body);
  text-wrap: balance;
}

.section__more {
  margin-top: 20px;
  text-align: center;
}

/* About */

.prose p {
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.7;
  orphans: 2;
  widows: 2;
}

.prose p + p {
  margin-top: 14px;
}

.prose strong {
  color: #fff;
}

.prose em {
  color: #fff;
}

.experience {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.experience p {
  color: var(--text-body);
  line-height: 1.6;
}

.experience__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 18px;
}

.note {
  padding: 18px 20px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
}

.note h4 {
  margin-bottom: 6px;
}

.note p {
  font-size: 16px;
}

/* Credentials */

.credentials {
  display: grid;
  gap: 16px;
}

.rows > li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.degree p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.45;
}

.cert-grid {
  display: grid;
  gap: 8px;
}

.cert-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills li {
  padding: 6px 14px;
  border: 1px solid hsl(158 57.7% 48% / 0.45);
  border-radius: 999px;
  color: var(--primary-bright);
  font-size: 16px;
  font-weight: 500;
}

.award {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.award img {
  flex-shrink: 0;
  width: 64px;
  height: auto;
}

.award p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 16px;
}

.award--link {
  justify-content: space-between;
}

.award--link svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.award--link:hover h4,
.award--link:hover svg {
  color: var(--primary-bright);
}

.expertise {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

.expertise h3 {
  margin-bottom: 8px;
  color: var(--primary-bright);
  font-size: 1.125rem;
}

.expertise ul {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.75;
}

.research {
  display: grid;
  justify-items: start;
  gap: 8px;
}

/* Projects and books */

.entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry h3 {
  margin: 0;
  font-size: 1.375rem;
}

.entry__kicker {
  margin-top: -6px;
  color: var(--primary-bright);
  font-size: 16px;
  font-weight: 500;
}

.entry__body {
  flex-grow: 1;
  color: var(--text-body);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.35);
  color: var(--text-body);
  font-size: 15px;
}

.portfolio {
  margin-top: 16px;
  text-align: center;
}

.portfolio > p {
  max-width: 44rem;
  margin: 0 auto 16px;
  color: var(--text-body);
  line-height: 1.55;
  text-wrap: balance;
}

.portfolio__list {
  display: grid;
  gap: 8px;
}

.portfolio__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.portfolio__list .portfolio__cta {
  padding: 0;
  background: var(--button);
}

.portfolio__cta:hover {
  background: var(--button-hover);
}

.portfolio__cta a {
  width: 100%;
  padding: 12px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.availability {
  margin-top: 16px;
  text-align: center;
}

.availability h3 {
  margin-bottom: 6px;
  color: var(--primary-bright);
}

.availability p {
  color: var(--text-body);
  line-height: 1.55;
  text-wrap: balance;
}

/* Blog list */

.blog-home .post-grid {
  gap: 16px;
}

.blog-home .post-card :is(h2, h3) {
  font-size: 1.3125rem;
}

.blog-home .post-card__excerpt {
  color: var(--text-body);
  font-size: 16.5px;
}

.blog-home .post-meta,
.blog-home .post-card__read,
.blog-home .badge {
  font-size: 15px;
}

/* Contact */

.contact {
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.contact .card h3 {
  margin-bottom: 6px;
  font-size: 1.125rem;
}

.contact__email {
  color: var(--primary-bright);
  font-size: 1.125rem;
  font-weight: 600;
  word-break: break-word;
}

.contact__email:hover {
  color: #fff;
}

.contact__note {
  margin-top: 4px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.5;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.social-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.social-grid a:hover {
  color: var(--primary-bright);
}

.field-row {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary-bright);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: rgb(239 68 68 / 0.8);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
  font-size: 16px;
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-status {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 16px;
}

.form-status[data-kind="success"] {
  border-color: hsl(158 57.7% 38% / 0.5);
  background: hsl(158 57.7% 38% / 0.1);
  color: #a7f3d0;
}

.form-status[data-kind="error"] {
  border-color: rgb(239 68 68 / 0.5);
  background: rgb(239 68 68 / 0.1);
  color: #fecaca;
}

@media (min-width: 640px) {
  .highlights {
    grid-template-columns: repeat(4, 1fr);
  }

  .halves,
  .cert-grid,
  .field-row,
  .portfolio__list,
  .expertise {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .blog-home .post-grid li:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  /* Two text columns keep lines a comfortable length inside the wide card. */
  .prose {
    columns: 2;
    column-gap: 40px;
  }

  .experience {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .credentials {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact {
    grid-template-columns: 3fr 2fr;
  }
}

@media (min-width: 1024px) {
  .expertise {
    grid-template-columns: repeat(4, 1fr);
  }
}

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