:root {
  --bg: #fbfaf8;
  --text: #1c1b19;
  --muted: #6b6862;
  --line: #e4e1db;
  --accent: #2f5d50;
  --max: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --text: #ecebe7;
    --muted: #9c9890;
    --line: #2e2d2a;
    --accent: #8fc1b0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

header.site a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

main {
  padding: 4rem 0;
}

section + section {
  margin-top: 4rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.3;
  margin: 0 0 1rem;
  font-weight: 600;
}

h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

/* 日英を並べる 2カラム。スマホでは縦に積む */
.bilingual {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 48rem) {
  .bilingual {
    grid-template-columns: 1fr 1fr;
  }
}

.bilingual [lang="en"] {
  color: var(--muted);
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.works li {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

footer.site {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
