@font-face {
  font-family: "Satoshi-Variable";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi-Variable Fallback";
  src: local("Arial");
  font-weight: 300 900;
  font-style: normal;
  ascent-override: 92.36%;
  descent-override: 21.95%;
  line-gap-override: 9.14%;
  size-adjust: 109.35%;
}

@font-face {
  font-family: "Hack";
  src: url("/fonts/hack-regular-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  color-scheme: dark;
}

body {
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  word-wrap: break-word;
  width: 100%;
  margin: 0;
  padding: 1.25rem;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  font-family: "Satoshi-Variable", "Satoshi-Variable Fallback", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #171717; /* neutral-900 */
  color: #d4d4d4; /* neutral-300 */
  line-height: 1.6;
}

h1 { font-weight: 900; font-size: 2.25rem; color: #f5f5f5; }
h2 { font-weight: 800; font-size: 1.5rem; color: #f5f5f5; }
h3 { font-weight: 700; font-size: 1.25rem; color: #f5f5f5; }

p { font-size: 1.125rem; color: #d4d4d4; }
b { font-weight: 500; color: #f5f5f5; }

a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

header,
footer {
  border-color: #404040;
  border-style: solid;
  border-width: 0 0 1px 0;
  padding: 1rem;
  text-align: center;
}
footer { border-width: 1px 0 0 0; font-size: 0.875rem; }

#projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

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

#projects div {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: #262626;
  border: 1px solid #404040;
  transition: box-shadow 0.2s ease;
  box-sizing: border-box;
}

#projects div:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.icon-inline {
  vertical-align: middle;
  margin-right: 4px;
}
