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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,
em, img, small, strong, table, tr, th, td, article, aside, footer,
header, nav, section, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article, aside, footer, header, nav, section {
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

b, strong {
  font-weight: bold;
}

html, body {
  height: 100%;
  background: #eee;
  color: #424242;
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  margin-top: 60px;
  margin-bottom: 30px;
}
h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-top: 40px;
  margin-bottom: 20px;
}
h1 a, h2 a, h3 a {
  color: #424242;
  text-decoration: none;
}
h1 a:hover, h2 a:hover, h3 a:hover {
  color: #F73859;
}
p {
  margin-bottom: 16px;
}
a {
  text-decoration: underline;
  color: #424242;
}
a:hover {
  color: #F73859;
}

.site-nav {
  background-color: #f9f9f9;
  border-bottom: 1px solid #e8e8e8;
}
.site-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-brand {
  font-size: 18px;
  font-weight: 700;
  color: #424242;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}
.site-brand::after {
  content: '.';
  color: #F73859;
}
.site-brand:hover {
  color: #F73859;
}

.site-nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  list-style: none;
}
.site-nav-links li {
  list-style: none;
}
.site-nav-links a {
  display: inline-flex;
  align-items: center;
  color: #424242;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  transition: color 150ms ease;
}
.site-nav-links a:hover {
  color: #F73859;
}
.site-nav-links a svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-search-wrap {
  position: relative;
}
.site-search-icon-link {
  display: none;
}
.site-search {
  margin: 0;
}
.site-search input {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  background: #fff;
  width: 180px;
  outline: none;
  transition: border-color 150ms ease, width 150ms ease;
}
.site-search input:focus {
  border-color: #F73859;
  width: 240px;
}
.site-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 320px;
  max-width: 420px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 100;
}
.site-search-dropdown li {
  list-style: none;
  margin: 0;
}
.site-search-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  color: #424242;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.site-search-dropdown li a:hover,
.site-search-dropdown li.active a {
  background: #f4f4f4;
  color: #F73859;
}
.site-search-dropdown .search-result-type {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: 10px;
  background: #eef;
  color: #335;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-search-dropdown .site-search-more a {
  border-top: 1px solid #eee;
  font-style: italic;
  color: #888;
  justify-content: flex-start;
}

.page-end {
  max-width: 1120px;
  margin: 64px auto 0;
  padding-bottom: 48px;
  border-top: 1px solid #cfcfcf;
}
@media (max-width: 720px) {
  .page-end {
    margin: 40px 20px 0;
    padding-bottom: 32px;
  }
}
.site-fortune {
  margin: 16px 32px 0;
  font-size: 14px;
  font-style: italic;
  color: #888;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
}
.site-fortune-author {
  font-style: normal;
  white-space: nowrap;
  opacity: 0.85;
}
.category-chips {
  max-width: 1120px;
  margin: -24px auto 32px auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-chips .chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background-color: #fff;
  color: #424242;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  text-decoration: none;
  transition: all 150ms ease;
}
.category-chips .chip:hover {
  border-color: #F73859;
  color: #F73859;
}
.category-chips .chip.is-active {
  background-color: #F73859;
  border-color: #F73859;
  color: #fff;
}

header {
  padding: 32px 0 40px 0;
  background-color: #f9f9f9;
  margin-bottom: 48px;
}

header .container {
  padding-left: 32px;
  display: flex;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: auto;
  align-items: flex-start;
}

header .container h1 {
  flex: 1 1 50%;
  max-width: 320px;
  min-width: 160px;
  text-align: left;
  margin: 0;
  padding: 0 32px 0 0;
  font-size: 64px;
  line-height: 60px;
}

header .container h1 span {
  display: block;
  font-weight: bold;
}

header .container article {
  flex: 1 1 50%;
  padding-right: 32px;
  font-size: 24px;
}

header .container.hero-full h1 {
  flex: 1 1 100%;
  max-width: none;
}

section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto 64px auto;
  padding: 0 32px;
}
.thumb {
  flex: 1 1 50%;
  max-width: 320px;
  min-width: 160px;
  aspect-ratio: 4 / 3;
  order: 1;
  display: block;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.section-article {
  flex: 1 1 50%;
  padding-left: 20px;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
}
section article h2 {
  margin-top: 0;
  margin-bottom: 8px;
}


.project {
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    max-width: 1120px;
    width: calc(100% - 64px);
}

.hero-github {
  margin: 16px 0 0 0;
  text-align: right;
  font-size: 14px;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  color: #424242;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  text-decoration: none;
  transition: all 150ms ease;
}
.github-link:hover {
  border-color: #F73859;
  color: #F73859;
}
.github-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-nav-inner {
    padding: 10px 20px;
  }
  .site-nav-links {
    gap: 20px;
  }
  .site-search-wrap {
    display: none;
  }
  .site-search-icon-link {
    display: list-item;
  }
  .category-chips {
    margin: -16px auto 24px auto;
    padding: 0 20px;
  }

  section {
    padding: 0 20px;
  }

  header {
    padding: 24px 0 28px 0;
  }

  header .container {
    margin: 0 auto;
    padding-left: 20px;
  }

  header .container article {
    padding: 0;
  }
  .section-article {
    padding-left: 0;
  }

  header .container h1, header .container article, .section-article {
    flex-basis: 100%;
  }

  .project {
    margin-left: 20px;
    margin-right: 20px;
    padding: 0;
    width: calc(100% - 40px);
  }

  .about {
    padding: 0 20px;
  }
  .about-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }

}

.about {
  max-width: 1120px;
  margin: 0 auto 64px auto;
  padding: 0 32px;
}
.about-bio {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.about-photo {
  flex: 0 0 280px;
  width: 280px;
  height: auto;
  border-radius: 4px;
}
.about-text {
  flex: 1 1 360px;
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e8;
}
.about-meta-item h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}
.about-meta-item p {
  margin-bottom: 12px;
}
.about-meta-item audio {
  width: 100%;
  max-width: 320px;
}
.about-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.about-social a {
  display: inline-flex;
  align-items: center;
  color: #424242;
  transition: color 150ms ease;
}
.about-social a:hover {
  color: #F73859;
}
.about-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
