:root {
  color-scheme: dark;
  --bg: #1e1a16;
  --text: #ece4d8;
  --muted: #b2aa9e;
  --border: #4a433b;
  --accent: #9bf4b1;
  --surface: #29241e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.7 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Hiragino Kaku Gothic ProN',
    'Yu Gothic UI',
    Meiryo,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  width: min(100%, 1060px);
  margin-inline: auto;
  padding-inline: 36px;
}
.demo {
  padding: 7px 16px;
  background: #293b2b;
  color: #b7dfba;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}
.header {
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current] {
  color: var(--text);
}
.header-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
}
.header-icon svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.main {
  min-height: calc(100vh - 220px);
}
h1 {
  margin: 48px 0 26px;
  font-size: clamp(32px, 4.6vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.section-line {
  height: 41px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.section-line span {
  display: inline-block;
  height: 41px;
  padding: 0 5px;
  border-bottom: 2px solid #73ea93;
}
.projects {
  margin-top: 18px;
}
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  column-gap: 32px;
  align-items: start;
  padding: 26px 16px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.18s ease;
}
.project:first-child {
  border-top: 1px solid var(--border);
}
.project:has(a):hover,
.project:has(a:focus-visible) {
  background: rgba(115, 234, 147, 0.055);
}
.project:has(a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.project.no-image {
  grid-template-columns: minmax(0, 1fr);
}
.project-content {
  min-width: 0;
}
.project-title {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.project-title a::after {
  position: absolute;
  inset: 0;
  content: '';
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.tag {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid #5c554b;
  border-radius: 999px;
  color: #c7bfb3;
  font-size: 11px;
  line-height: 1.5;
}
.tag.sample {
  border-color: #687465;
  color: #bacbb7;
}
.description {
  max-width: 58ch;
  margin: 0;
  color: #c4bcb0;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.project-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #4a5145;
  border-radius: 5px;
  background: #242c22;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer {
  margin-top: 70px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 11px;
}
.footer::before {
  display: block;
  content: '';
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
@media (max-width: 620px) {
  .shell {
    padding-inline: 18px;
  }
  .header-inner {
    min-height: 56px;
  }
  h1 {
    margin: 32px 0 19px;
    font-size: 32px;
  }
  .projects {
    margin-top: 12px;
  }
  .project {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    padding: 20px 5px;
  }
  .project-title {
    font-size: 16px;
    margin-bottom: 7px;
  }
  .tag {
    font-size: 10px;
    padding-inline: 7px;
  }
  .tags {
    margin-bottom: 8px;
  }
  .description {
    font-size: 12px;
    line-height: 1.7;
  }
  .footer {
    margin-top: 50px;
  }
}
@media (max-width: 360px) {
  .project {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 9px;
  }
  .project-title {
    font-size: 15px;
  }
}
