:root {
  --background: #ffffff;
  --foreground: #252525;
  --muted-foreground: #6b6b6b;
  --card: #ffffff;
  --card-foreground: #252525;
  --border: #ebebeb;
  --accent: #f5f5f5;
  --ring: #b5b5b5;
  --radius: 0.625rem;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --muted-foreground: #a1a1a1;
    --card: #1a1a1a;
    --card-foreground: #fafafa;
    --border: #2a2a2a;
    --accent: #222222;
    --ring: #8f8f8f;
  }
}

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

html {
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
}

/* Layout ------------------------------------------------------------------ */
.page {
  margin-inline: auto;
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 56rem;
  flex-direction: column;
  gap: 4rem;
  padding: 5rem 1.5rem;
}

@media (min-width: 640px) {
  .page {
    padding-block: 7rem;
  }
}

/* About ------------------------------------------------------------------- */
.about {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .about__title {
    font-size: 2.25rem;
  }
}

.about__desc {
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
  text-wrap: pretty;
}

/* Services ---------------------------------------------------------------- */
.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.services__empty {
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.services__empty code {
  font-family: var(--font-mono);
  color: var(--foreground);
}

.services__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

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

/* Card -------------------------------------------------------------------- */
.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--foreground) 25%, transparent);
  background-color: var(--accent);
}

.card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--card-foreground);
}

.card__arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.15s ease, color 0.15s ease;
}

.card:hover .card__arrow {
  transform: translate(0.125rem, -0.125rem);
  color: var(--foreground);
}

.card__host {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card__desc {
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Footer ------------------------------------------------------------------ */
.footer {
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
