:root {
  --nf-ink: rgb(10, 10, 10);
  --nf-ink-80: rgba(10, 10, 10, 0.8);
  --nf-muted: rgb(113, 113, 130);
  --nf-hairline: rgba(0, 0, 0, 0.10);
  --nf-hairline-strong: rgba(0, 0, 0, 0.16);
  --nf-hairline-soft: rgba(0, 0, 0, 0.0408);
  --nf-divider: rgba(0, 0, 0, 0.051);
  --nf-bg: rgb(255, 255, 255);
  --nf-surface: rgb(255, 255, 255);
  --nf-surface-veil: rgba(255, 255, 255, 0.6);
  --nf-primary: rgb(3, 2, 19);
  --nf-primary-hover: rgb(20, 20, 35);
  --nf-primary-fg: rgb(255, 255, 255);
  --nf-hover-tint: rgba(0, 0, 0, 0.04);
  --nf-focus-ring: rgba(3, 2, 19, 0.35);
  --nf-shadow-md:
    0 8px 10px -6px rgba(0, 0, 0, 0.10),
    0 20px 25px -5px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.10);
  --nf-card-hover-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

:root.is-dark {
  --nf-ink: rgb(245, 245, 247);
  --nf-ink-80: rgba(245, 245, 247, 0.82);
  --nf-muted: rgb(150, 150, 165);
  --nf-hairline: rgba(255, 255, 255, 0.10);
  --nf-hairline-strong: rgba(255, 255, 255, 0.18);
  --nf-hairline-soft: rgba(255, 255, 255, 0.05);
  --nf-divider: rgba(255, 255, 255, 0.06);
  --nf-bg: rgb(10, 10, 12);
  --nf-surface: rgb(16, 16, 19);
  --nf-surface-veil: rgba(10, 10, 12, 0.6);
  --nf-primary: rgb(245, 245, 247);
  --nf-primary-hover: rgb(225, 225, 230);
  --nf-primary-fg: rgb(10, 10, 12);
  --nf-hover-tint: rgba(255, 255, 255, 0.06);
  --nf-focus-ring: rgba(245, 245, 247, 0.4);
  --nf-shadow-md:
    0 8px 10px -6px rgba(0, 0, 0, 0.50),
    0 20px 25px -5px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  --nf-card-hover-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--nf-bg);
  color: var(--nf-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--nf-focus-ring);
  outline-offset: 2px;
}

::selection {
  background: var(--nf-ink);
  color: var(--nf-bg);
}

.icon-sprite {
  display: none;
}

.nf-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.667;
}

.nf-section {
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 65px;
  border-bottom: 1px solid var(--nf-hairline-soft);
  background: var(--nf-surface-veil);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 896px;
  height: 64px;
  margin: 0 auto;
}

.monogram {
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--nf-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.949px;
  line-height: 28px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--nf-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  line-height: 20px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.site-header__link:hover {
  background: var(--nf-hover-tint);
  color: var(--nf-ink);
}

.icon-button,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nf-muted);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, opacity 150ms ease-out;
}

.icon-button:hover,
.social-link:hover {
  background: var(--nf-hover-tint);
  color: var(--nf-ink);
}

.icon-button:active,
.social-link:active,
.button:active {
  opacity: 0.92;
}

.theme-toggle {
  color: var(--nf-ink);
}

.theme-icon--sun {
  display: none;
}

:root.is-dark .theme-icon--moon {
  display: none;
}

:root.is-dark .theme-icon--sun {
  display: block;
}

.hero {
  padding-top: 96px;
}

.hero__inner,
.section-shell,
.site-footer__inner {
  max-width: 896px;
  margin: 0 auto;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.hero__text {
  min-width: 280px;
  flex: 1 1 480px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--nf-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
}

.nf-display {
  margin: 0;
  color: var(--nf-ink);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.848px;
  line-height: 48px;
}

.tagline {
  margin: 8px 0 0;
  color: var(--nf-muted);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.449px;
  line-height: 28px;
}

.hero__bio {
  max-width: 576px;
  margin: 24px 0 0;
  color: var(--nf-ink-80);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.439px;
  line-height: 29.25px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 44px;
  max-width: 100%;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, opacity 150ms ease-out;
}

.button .nf-icon {
  width: 16px;
  height: 16px;
}

.button--primary {
  background: var(--nf-primary);
  color: var(--nf-primary-fg);
}

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

.button--secondary {
  border: 1px solid var(--nf-hairline);
  background: var(--nf-surface);
  color: var(--nf-ink);
}

.button--secondary:hover {
  border-color: var(--nf-hairline-strong);
}

.hero__portrait {
  width: 224px;
  height: 224px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: url("/assets/headshot.jpg") center / cover no-repeat;
  box-shadow: var(--nf-shadow-md);
}

.products {
  padding-top: 96px;
  padding-bottom: 96px;
  scroll-margin-top: 65px;
}

.nf-h2 {
  margin: 0;
  color: var(--nf-ink);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.354px;
  line-height: 36px;
}

.section-subtitle {
  margin: 8px 0 32px;
  color: var(--nf-muted);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.439px;
  line-height: 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  min-height: 236px;
  padding: 25px;
  border: 1px solid var(--nf-hairline);
  border-radius: 14px;
  background: var(--nf-surface);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.product-card:hover {
  border-color: var(--nf-hairline-strong);
  box-shadow: var(--nf-card-hover-shadow);
}

.product-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.product-card h3 {
  margin: 0;
  color: var(--nf-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.449px;
  line-height: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid var(--nf-hairline);
  border-radius: 999px;
  color: var(--nf-ink-80);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 18px;
}

.product-card p {
  flex: 1;
  margin: 12px 0 0;
  color: var(--nf-muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.313px;
  line-height: 24px;
  text-wrap: pretty;
}

.product-card__links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--nf-divider);
}

.product-card__status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nf-ink-80);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  line-height: 20px;
}

.product-card__status-line .nf-icon {
  width: 16px;
  height: 16px;
}

.site-footer {
  border-top: 1px solid var(--nf-hairline-soft);
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__name {
  color: var(--nf-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.313px;
  line-height: 24px;
}

.site-footer__copy {
  margin-top: 4px;
  color: var(--nf-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  line-height: 20px;
}

.social-links {
  display: flex;
  gap: 4px;
}

.social-link--x {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

@media (max-width: 640px) {
  .nf-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header__link {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__inner {
    gap: 32px;
  }

  .nf-display {
    font-size: 36px;
    letter-spacing: -0.6px;
    line-height: 38px;
  }

  .nf-h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .nf-hero-portrait {
    width: 160px;
    height: 160px;
  }

  .button {
    flex: 1 1 180px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .products {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

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