:root {
  color-scheme: light;
  --paper: #f3f0ea;
  --paper-deep: #e9e3d8;
  --ink: #2d2d2a;
  --soft: #696b66;
  --quiet: #97978d;
  --line: #d8d1c5;
  --bluegray: #66747c;
  --wood: #7b6b58;
  --font-body: "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-ui: Arial, Helvetica, "Helvetica Neue", sans-serif;
  --font-meta: "BIZ UDPGothic", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.12;
  letter-spacing: .01em;
  line-break: strict;
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration-color: rgba(102,116,124,.45); text-underline-offset: .28em; }
a:hover { text-decoration-color: rgba(102,116,124,.8); }

img { display: block; max-width: 100%; height: auto; }

.site-header,
.site-footer,
.home,
.article,
.quiet-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.site-header { padding-top: 9vh; padding-bottom: 8vh; }
.brand {
  margin: 0 0 2.4rem;
  color: #3d3d39;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand a { text-decoration-thickness: 1px; text-decoration-color: rgba(61,61,57,.42); }
.site-title { margin: 0; font-size: 1.58rem; font-weight: 400; line-height: 1.96; }
.site-lead { width: min(100%, 520px); margin: 2.8rem 0 0; color: var(--soft); font-size: .95rem; }

.home { padding-bottom: 12vh; }
.shelf-section { margin-top: 2rem; padding-top: 3.2rem; border-top: 1px solid rgba(216,209,197,.7); }
.section-kicker { margin: 0 0 .7rem; color: var(--quiet); font-family: var(--font-meta); font-size: .7rem; letter-spacing: .03em; }
.shelf-section h2 { margin: 0; color: #383934; font-size: 1.02rem; font-weight: 400; line-height: 1.95; }
.shelf-lead { width: min(100%, 540px); margin: 1.2rem 0 0; color: var(--soft); font-size: .9rem; }
.shelf-list { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
.shelf-card { padding-top: 1.2rem; border-top: 1px solid rgba(216,209,197,.62); }
.shelf-card p { margin: .55rem 0 0; color: var(--soft); font-size: .88rem; line-height: 1.95; }
.shelf-name { margin-top: 0 !important; color: #3d3e39 !important; font-size: .96rem !important; }
.shelf-current { margin-top: 1rem !important; color: var(--quiet) !important; font-family: var(--font-meta); font-size: .7rem !important; line-height: 1.65 !important; letter-spacing: 0 !important; }
.shelf-links { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin-top: .75rem; }
.shelf-links a { color: var(--bluegray); font-size: .84rem; }
.shelf-note { color: var(--quiet) !important; font-size: .8rem !important; }
.home-list-section { margin-top: 5rem; padding-top: 3.2rem; border-top: 1px solid rgba(216,209,197,.7); }
.home-list-section h2 { margin: 0; color: #383934; font-size: 1.02rem; font-weight: 400; line-height: 1.95; }
.home-list-lead { width: min(100%, 540px); margin: 1.2rem 0 0; color: var(--soft); font-size: .9rem; }
.home-list { display: grid; gap: 3.6rem; margin-top: 3.2rem; }
.home-card { display: grid; gap: 1.2rem; }
.home-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.86) contrast(.96); }
.home-card h2 { margin: 0; font-size: 1.04rem; font-weight: 400; line-height: 1.9; }
.home-card p { margin: 0; color: var(--soft); font-size: .92rem; }
.meta { margin: 0 0 2rem; color: var(--quiet); font-family: var(--font-meta); font-size: .74rem; line-height: 1.75; letter-spacing: 0; }
.home > .meta,
.quiet-page > .meta {
  font-family: var(--font-ui);
  font-size: .7rem;
  line-height: 1.65;
  letter-spacing: .055em;
}

.article { padding-bottom: 12vh; }
.article-header { margin-bottom: 4rem; }
.article h1 { margin: 0; font-size: 1.5rem; font-weight: 400; line-height: 1.96; }
.restore-note { margin: 2.4rem 0 0; color: var(--quiet); font-size: .82rem; line-height: 2; }
.article-body { width: min(100%, 640px); }
.article-body h2 { margin: 4.8rem 0 1rem; color: #3f403b; font-size: 1rem; font-weight: 400; line-height: 2; }
.article-body h3 { margin: 3.5rem 0 .95rem; color: #4b4c46; font-size: .92rem; font-weight: 400; line-height: 2; }
.article-body p { margin: 1.4rem 0 0; color: var(--soft); line-height: 2.16; }
.article-body figure { margin: 3.2rem 0; }
.article-body figure img { width: 100%; background: var(--paper-deep); filter: saturate(.82) contrast(.96); }
.article-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 5rem; padding-top: 1.4rem; border-top: 1px solid rgba(216,209,197,.7); }
.article-nav p { flex-basis: 100%; margin: 0 0 .2rem; color: var(--quiet); font-family: var(--font-meta); font-size: .7rem; line-height: 1.7; letter-spacing: 0; }
.article-nav a { color: var(--bluegray); font-size: .84rem; }

.site-footer { padding-bottom: 7vh; color: var(--quiet); font-family: var(--font-ui); font-size: .72rem; line-height: 1.7; letter-spacing: .035em; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--bluegray); }

.quiet-page { padding-bottom: 12vh; }
.quiet-page h1 { margin: 0; font-size: 1.42rem; font-weight: 400; line-height: 1.96; }
.quiet-page p { width: min(100%, 600px); margin: 1.35rem 0 0; color: var(--soft); }
.quiet-page .quiet-link { margin-top: 3rem; font-size: .86rem; }

@media (max-width: 560px) {
  body { font-size: 15px; line-height: 2.08; }
  .site-header { padding-top: 7vh; padding-bottom: 6vh; }
  .site-title, .article h1, .quiet-page h1 { font-size: 1.3rem; }
  .restore-note { max-width: 20rem; }
  .shelf-section { margin-top: 1.5rem; padding-top: 2.6rem; }
  .shelf-list { gap: 1.35rem; }
  .home-list-section { margin-top: 4rem; padding-top: 2.6rem; }
  .article-body h2 { margin-top: 3.6rem; }
}
