@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5f5f5f;
  --border: #d8d8d8;
  --link: #0f62fe;
}

body.dark {
  --bg: #0d0d0d;
  --surface: #111111;
  --text: #f3f3f3;
  --muted: #b8b8b8;
  --border: #2c2c2c;
  --link: #78a9ff;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.site-header,
.content,
.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: block;
  padding-top: 1.5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-name {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.site-name:hover {
  text-decoration: underline;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: inline-flex;
}

body.dark .icon-sun {
  display: inline-flex;
}

body.dark .icon-moon {
  display: none;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.35rem;
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.35;
}

.hero-meta {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-text {
  margin-bottom: 0;
  font-size: 1rem;
}

a {
  color: var(--link);
}

.content {
  padding-top: 1.75rem;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.focus-list {
  margin: 0;
  padding-left: 1.2rem;
}

.focus-list li + li {
  margin-top: 0.6rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.contact-item:hover {
  text-decoration: underline;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--text);
  flex-shrink: 0;
}

.contact-icon svg,
.contact-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-icon-text {
  font-size: 1rem;
  font-weight: 500;
}

.hf-icon img {
  filter: none;
}

body.dark .hf-icon img {
  filter: brightness(0) invert(1);
}

.linkedin-icon {
  width: 1.5rem;
  height: 1.4rem;
  flex: 0 0 1.5rem;
  background-image: url("assets/icons/InBug-Black.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.dark .linkedin-icon {
  background-image: url("assets/icons/InBug-White.png");
}

.site-footer {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .site-header,
  .content,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero,
  .content-section {
    padding: 1rem;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.75rem;
  }
}