@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f5f5f;
  --border: #e6e6e6;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  -webkit-box-flex: 1;
  -webkit-flex: 1 0 auto;
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--muted);
  text-decoration-color: var(--muted);
}

.container {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  padding: 20px 0;
  text-align: center;
}

.site-nav {
  display: inline-block;
  transform: translateX(-10px);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.site-nav a,
.nav-sep {
  display: inline-block;
  margin: 0 6px;
}

.nav-sep {
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
}

.site-nav a.active::after {
  transform: scaleX(1);
}

body.nav-animate .site-nav a.active::after {
  animation: nav-underline 0.35s ease forwards;
}

@keyframes nav-underline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero {
  padding: 52px 0 8px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 36px;
}

.hero-title {
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 0 1.6em;
}

.lead {
  font-size: 1.1rem;
  max-width: 640px;
}

.lead-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.95rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: #ffffff;
}

.page-header {
  margin: 32px 0 24px;
}

.section {
  margin: 32px 0;
}

.section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.section .custom-section-spacing {
  margin-top: 20px;
}

.section .custom-section-title {
  font-size: 1.37rem;
  font-weight: 700;
}

.section p {
  margin: 0 0 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card,
.card-link {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 6px;
  background: #ffffff;
}

.card h2,
.card-link h2 {
  margin-top: 0;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-link:hover {
  color: inherit;
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111;
}

.media-placeholder {
  border: 1px dashed var(--border);
  padding: 24px;
  color: var(--muted);
}

.caption {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 8px;
}

.section figure + figure {
  margin-top: 42px;
}

.media-frame img,
.media-frame video {
  border: 1px solid #666666;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 12px;
}

.footer-title {
  display: inline-block;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  text-align: right;
}

.footer-email {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-right {
    align-items: center;
    margin-left: 0;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 701px) {
  .footer-title {
    transform: translateX(16px);
  }

  .footer-right {
    transform: translateX(-10px);
  }
}

.resume-embed {
  height: 150vh;
  min-height: 560px;
  border: 1px solid var(--border);
  position: relative;
}

.resume-embed object {
  width: 100%;
  height: 100%;
}

.resume-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 600px) {
  .resume-embed {
    height: 62vh;
    min-height: 290px;
  }
}

.not-found {
  padding: 60px 0 80px;
}

@media (min-width: 820px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
