
:root {
  --paper: #f2ead8;
  --paper-light: #faf6ec;
  --ink: #33291f;
  --muted: #766653;
  --line: rgba(120, 83, 43, .24);
  --gold: #a87933;
  --gold-dark: #76501f;
  --header: rgba(250, 246, 236, .93);
  --shadow: 0 18px 45px rgba(61, 44, 26, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(168,121,51,.10), transparent 25rem),
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)),
    var(--paper);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--gold-dark); border-color: currentColor; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.hero {
  text-align: center;
  padding: clamp(64px, 10vw, 118px) 0 44px;
}
.hero-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  color: var(--gold-dark);
  background: rgba(255,255,255,.22);
}
.hero-mark span { transform: rotate(-45deg); font-size: 26px; line-height: 1; }
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.25;
  letter-spacing: .16em;
  text-indent: .16em;
  font-weight: 700;
}
.hero p { margin: 18px auto 0; color: var(--muted); font-size: 16px; max-width: 36em; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 80px;
}
.card {
  position: relative;
  min-height: 148px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: rgba(250,246,236,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(61,44,26,.05);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(168,121,51,.16);
  border-radius: 50%;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(168,121,51,.55);
  outline: none;
}
.card-index {
  color: var(--gold);
  font-family: ui-serif, Georgia, serif;
  font-size: 14px;
  letter-spacing: .14em;
}
.card h2 { margin: 18px 0 0; font-size: clamp(21px, 3vw, 27px); line-height: 1.45; font-weight: 650; }
.card-arrow { margin-top: 24px; color: var(--muted); font-size: 14px; }

.article-wrap { width: min(920px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 72px; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }
.article {
  background: rgba(250,246,236,.86);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.article-head {
  padding: clamp(34px, 7vw, 68px) clamp(22px, 6vw, 68px) clamp(30px, 6vw, 56px);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(168,121,51,.08), rgba(255,255,255,.08));
}
.article-no { color: var(--gold); font-size: 13px; letter-spacing: .24em; }
.article-head h1 { margin: 12px 0 0; font-size: clamp(29px, 5vw, 48px); line-height: 1.35; letter-spacing: .04em; }
.article-body { padding: clamp(28px, 6vw, 68px); font-size: clamp(17px, 1.9vw, 19px); }
.article-body p { margin: 0 0 1.35em; text-align: justify; text-justify: inter-ideograph; }
.article-body p:last-child { margin-bottom: 0; }
.section-title {
  margin: 0 0 1.2em;
  padding-bottom: .55em;
  font-size: clamp(24px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}
.section-block + .section-block { margin-top: 3.5em; padding-top: 3em; border-top: 1px dashed var(--line); }

.external-action { margin-top: 36px; text-align: center; }
.external-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  color: #fffaf0;
  background: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(90,61,27,.18);
  transition: transform .18s ease, background .18s ease;
}
.external-btn:hover, .external-btn:focus-visible { background: #5f3f18; transform: translateY(-2px); outline: none; }
.external-note { margin-top: 10px; color: var(--muted); font-size: 13px; }

.poem {
  margin: 0 auto;
  padding: 8px 0 16px;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 2.1;
}
.poem p { margin: 0; text-align: left; white-space: nowrap; }
.translation-title { margin-top: 3em; }

.pager {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pager a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(250,246,236,.76);
}
.pager a:hover, .pager a:focus-visible { border-color: var(--gold); color: var(--gold-dark); outline: none; }

.site-footer {
  padding: 28px 16px 38px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250,246,236,.94);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(61,44,26,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; }

@media (min-width: 680px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pager { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .brand { font-size: 17px; letter-spacing: .08em; }
  .nav-link { font-size: 14px; }
  .hero h1 { letter-spacing: .08em; text-indent: .08em; }
  .article-body { text-align: left; }
  .article-body p { text-align: left; }
  .poem { width: 100%; font-size: 17px; }
  .poem p { white-space: normal; }
  .external-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header, .pager, .back-top, .site-footer { display: none !important; }
  body { background: white; }
  .article-wrap { width: 100%; padding: 0; }
  .article { box-shadow: none; border: 0; }
}
