:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-deep: #ebe6da;
  --ink: #20231f;
  --muted: #6b6c63;
  --line: #d7d2c6;
  --accent: #56614b;
  --accent-soft: #dde2d5;
  --selection: #cfd8c4;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 22%), transparent 260px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.33em;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 1px;
}

.page {
  width: min(100% - 48px, 680px);
  margin: 0 auto;
  padding: 112px 0 58px;
}

.intro {
  padding-bottom: 74px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.intro h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 3.3rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.works {
  border-top: 1px solid var(--line);
}

.work {
  position: relative;
  padding: 37px 0 40px;
  border-bottom: 1px solid var(--line);
}

.work--live::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.work-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.work h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.status {
  flex: 0 0 auto;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.status--quiet {
  background: var(--paper-deep);
  color: var(--muted);
}

.work p {
  max-width: 38rem;
  margin: 0 0 17px;
  color: var(--muted);
  line-height: 1.8;
}

.work a {
  display: inline-block;
  font-size: 0.91rem;
  font-weight: 600;
}

.work a span {
  display: inline-block;
  margin-left: 0.22em;
  transition: transform 150ms ease;
}

.work a:hover span {
  transform: translateX(3px);
}

.work--placeholder {
  opacity: 0.7;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 67px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

footer p {
  margin: 0;
}

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

@media (max-width: 560px) {
  .page {
    width: min(100% - 36px, 680px);
    padding: 70px 0 38px;
  }

  .intro {
    padding-bottom: 52px;
  }

  .kicker {
    margin-bottom: 17px;
  }

  .intro h1 {
    margin-bottom: 19px;
  }

  .work {
    padding: 30px 0 33px;
  }

  .work-heading {
    align-items: flex-start;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work a span {
    transition: none;
  }
}
