:root {
  --bg: #f6f7f9;
  --text: #1c1c1c;
  --sub: #667085;
  --ink: #1b2230;
  --line: rgba(27, 34, 48, 0.12);
  --accent: #2f6fed;
  --ember: #c97b48;
  --font-ja: "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-latin: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  line-height: 2.04;
  letter-spacing: 0.015em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.45s ease, opacity 0.45s ease, text-decoration-color 0.45s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.35em;
  text-decoration-color: rgba(47, 111, 237, 0.28);
}

.site {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
  padding: 88px 0 96px;
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home .site {
  padding-top: 64px;
}

.site-title,
.quiet-meta,
.old-source,
.shelf-name,
.small-nav,
.header-nav,
.site-footer {
  font-family: var(--font-latin);
}

.site-header {
  margin: 0 0 56px;
}

.site-title {
  margin: 0;
  color: var(--sub);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: var(--sub);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.header-nav a,
.site-footer a {
  text-decoration: none;
}

.header-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.86;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.03em;
}

.lead {
  margin: 36px 0 0;
  max-width: 34rem;
  color: var(--sub);
  font-size: 1rem;
  line-height: 2.1;
}

.shelf-links,
.entry-list,
.small-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 56px 0 0;
}

.shelf-links a,
.entry-link,
.small-nav a {
  color: var(--sub);
  font-size: 0.94rem;
}

.entry-list {
  gap: 34px;
}

.entry-link {
  display: block;
}

.entry-title {
  display: block;
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.8;
}

.entry-note {
  display: block;
  margin-top: 6px;
  color: var(--sub);
  font-size: 0.92rem;
  line-height: 1.8;
}

.quiet-meta,
.old-source {
  color: var(--sub);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}

.old-source {
  margin: 26px 0 0;
  line-height: 1.9;
}

.article-body {
  margin-top: 64px;
}

.article-body p {
  margin: 0 0 1.55em;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 2.15;
}

.article-body blockquote {
  margin: 44px 0;
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(201, 123, 72, 0.45);
  color: var(--ink);
}

.article-body blockquote p {
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 2;
}

.current-note {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--sub);
}

.current-note h2 {
  margin: 0 0 18px;
  color: var(--sub);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.current-note p {
  margin: 0 0 1.2em;
  font-size: 0.96rem;
  line-height: 2;
}

.about-body {
  max-width: 34rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 84px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
  opacity: 0.68;
}

.footer-title {
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .site {
    width: min(100% - 32px, 720px);
    padding: 64px 0 76px;
  }

  .site-title {
    margin-bottom: 0;
  }

  .site-header {
    margin-bottom: 42px;
  }

  .article-body {
    margin-top: 48px;
  }
}
