@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/spacegrotesk-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/ibmplexsans-variable.woff2') format('woff2');
}

:root {
  --bg: #121113;
  --card-bg: #17161a;
  --ink: #edeae6;
  --ink-strong: #f5f3f0;
  --muted: #b7b3ae;
  --faint: #858179;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --accent: #bd5fff;
  --accent-ink: #16151a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

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

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink-strong);
}

.nav,
.hero,
.section,
.site-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 28px;
  padding-bottom: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link[aria-current="page"] {
  color: var(--ink-strong);
}

.nav-link--cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.nav-link--cta:hover {
  color: var(--accent-ink);
  opacity: 0.88;
}

.hero {
  padding-top: 96px;
  padding-bottom: 88px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow--accent {
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  margin: 0 0 24px;
  font-weight: 700;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 580px;
}

.now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: -16px 0 36px;
  font-size: 14px;
  color: var(--muted);
}

.now-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* Header for the smaller pages (notes, homelab) */
.hero--page {
  padding-top: 56px;
  padding-bottom: 32px;
}

.hero--page h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.hero--page .hero-sub {
  margin-bottom: 0;
}

.note-date {
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 20px;
}

.prose {
  max-width: 680px;
}

.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 20px;
}

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

.prose a:hover {
  text-decoration: underline;
}

.section.section--tight {
  padding-top: 24px;
  padding-bottom: 56px;
}

.section.section--tight h2 {
  margin-bottom: 16px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.chip {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #c9c5c0;
  background: rgba(255, 255, 255, 0.03);
}

.chips-label {
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 10px;
}

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

.note-card {
  display: block;
  padding: 24px;
}

.note-card .card-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.note-card .note-date {
  margin-bottom: 6px;
}

.note-card:hover .card-title {
  color: var(--accent);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding-top: 40px;
  padding-bottom: 100px;
}

.section h2 {
  font-size: 30px;
  margin: 0 0 40px;
}

.section--narrow > * {
  max-width: 700px;
}

.section-sub {
  font-size: 15px;
  color: #918d87;
  margin: -28px 0 32px;
  max-width: 600px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  background: var(--card-bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-hover);
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-card:hover {
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.card-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-strong);
}

.card-meta {
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}

.card-meta--link:hover {
  color: var(--accent);
}

/* Screenshot sits above the text on phones, beside it from 880px up */
.work-card--media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-shot {
  order: -1;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.work-shot:hover {
  border-color: var(--accent);
}

/* dKiosk's shot is a phone screen, so it gets a thin bezel instead of the hover outline */
.work-shot--device,
.work-shot--device:hover {
  border: 6px solid #2a2830;
  border-radius: 16px;
}

.work-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 880px) {
  .work-card--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 32px;
    align-items: start;
  }

  .work-shot {
    order: 0;
  }
}

.card-body {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
}

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

.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9c5c0;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.card-links {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.card-links--sm {
  gap: 0 20px;
}

.tags + .card-links {
  margin-top: 18px;
}

.card-link--quiet {
  color: var(--muted);
  font-weight: 500;
}

.card-link--quiet:hover {
  color: var(--accent);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lab-card {
  padding: 22px;
  border-radius: 12px;
}

.card-title--sm {
  font-size: 16px;
  margin-bottom: 8px;
}

.card-body--sm {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  max-width: none;
}

/* An odd card out at the end of the Lab grid spans the full row instead of sitting alone in one column */
.lab-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.lab-card:last-child:nth-child(odd) .card-body--sm {
  max-width: 720px;
  text-wrap: pretty;
}

.card-tags-inline {
  font-size: 12px;
  color: var(--faint);
}

.card-link--sm {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

.about-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.site-footer h2 {
  font-size: 26px;
  margin: 0;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill-link {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

.pill-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero--page h1 {
    font-size: 34px;
  }

  .nav-links {
    gap: 12px 16px;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }
}
