:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --faint: #a3a3a3;
  --line: #e8e8e8;
  --hover: #f5f5f5;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.85; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--text); color: var(--bg); }

.page { max-width: 600px; margin: 0 auto; padding: 120px 24px 80px; }
.muted { color: var(--muted); }

/* stagger-in */
.page > * { animation: enter .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }

/* intro */
.intro { margin-bottom: 40px; }
h1 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: 0; }
.intro p { margin: 0; line-height: 1.6; }

/* sections */
section { margin-bottom: 64px; }
section p { margin: 0 0 1em; }
section p:last-child { margin-bottom: 0; }
h2 { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: var(--muted); }

/* text link */
.link {
  text-decoration: underline; text-decoration-color: var(--faint);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--text); }

/* works */
.works { list-style: none; margin: 0 -12px; padding: 0; }
.work {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: start;
  padding: 12px; border-radius: 12px; transition: background .2s;
}
@media (hover: hover) { .work:hover { background: var(--hover); } }
.work img {
  display: block; width: 128px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.work-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.work-title { font-weight: 500; }
.work-text .muted { font-size: 14px; line-height: 1.75; }
.ext { display: inline-block; color: var(--faint); font-size: 12px; margin-left: 2px; transition: transform .2s, color .2s; }
.work:hover .ext, .links a:hover::after { color: var(--text); transform: translate(1px, -1px); }

/* links */
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.links a {
  text-decoration: underline; text-decoration-color: var(--faint);
  text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s;
}
.links a:hover { text-decoration-color: var(--text); }
.links a::after { content: "↗"; display: inline-block; margin-left: 3px; font-size: 12px; color: var(--faint); transition: transform .2s, color .2s; text-decoration: none; }

.footer { font-size: 13px; color: var(--faint); }

@media (min-width: 1024px) {
  body { font-size: 16px; }
  h1, h2 { font-size: 16px; }
  .page { max-width: 800px; padding-top: 160px; }
  section { margin-bottom: 80px; }
  .work { grid-template-columns: 176px 1fr; gap: 24px; }
  .work img { width: 176px; }
  .work-text .muted { font-size: 15px; }
}
@media (max-width: 520px) {
  .page { padding: 72px 20px 56px; }
  .work { grid-template-columns: 1fr; gap: 12px; }
  .work img { width: 100%; }
  section { margin-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .page > * { animation: none; }
}
