:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --bg-panel: #ffffff;
  --text: #23211e;
  --text-soft: #57534d;
  --text-faint: #86807a;
  --line: #e6e1d9;
  --accent: #a8701a;
  --accent-soft: #f5ead6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --bg-panel: #1d1c19;
    --text: #eeebe5;
    --text-soft: #b3aca2;
    --text-faint: #8a837a;
    --line: #2e2c27;
    --accent: #e0a63a;
    --accent-soft: #2a2418;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 24px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 640px; margin: 0 auto; padding: 88px 0 96px; }

/* ---- hero ---- */
.name {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.name::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.role {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.lede {
  margin: 28px 0 0;
  font-size: 17px;
  color: var(--text);
}
.lede + .lede { margin-top: 14px; color: var(--text-soft); font-size: 15.5px; }

/* ---- sections ---- */
section { margin-top: 72px; }
h2 {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- works ---- */
.work {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.work + .work { margin-top: 14px; }
.work:hover, .work:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.work_head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.work_name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.work_host { font-size: 13px; color: var(--text-faint); }
.work_desc { margin: 8px 0 0; color: var(--text-soft); font-size: 15px; }
.work_stack {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ---- stack ---- */
.stack { margin: 0; padding: 0; list-style: none; }
.stack li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.stack li:last-child { border-bottom: 1px solid var(--line); }
.stack dt, .stack .k {
  flex: 0 0 92px;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.stack .v { color: var(--text-soft); }

/* ---- contact ---- */
.links { margin: 0; padding: 0; list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: 15px;
}
.links a:hover, .links a:focus-visible { border-bottom-color: var(--accent); }

footer {
  margin-top: 80px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
}

@media (max-width: 520px) {
  main { padding: 56px 0 64px; }
  .name { font-size: 32px; }
  section { margin-top: 56px; }
  .stack li { flex-direction: column; gap: 2px; }
  .stack .k { flex: none; }
}
