@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

:root {
  --ink: #272b27;
  --muted: #69675e;
  --paper: #f7f1e4;
  --rule: #c8bda8;
  --vermilion: #a94737;
  --jade: #526e69;
  --yellow: #f2eadb;
  --green: #e9ece3;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: #ded8c9;
  background-image: radial-gradient(circle at 8% 16%, rgba(255,255,255,.5), transparent 35%),
                    radial-gradient(circle at 88% 90%, rgba(124,116,92,.15), transparent 37%);
  color: var(--ink);
  font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.page {
  width: min(1440px, calc(100% - 44px));
  margin: 22px auto;
  overflow: hidden;
  border: 1px solid #b8ad99;
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(43,38,28,.12);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px clamp(22px,4vw,64px);
  border-bottom: 1px solid var(--rule);
  background: rgba(250,247,239,.94);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand:hover { color: var(--vermilion); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #8d3229;
  background: var(--vermilion);
  color: #fff8e9;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  color: #6b675d;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.back:hover { color: var(--vermilion); }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(430px,40vw,565px);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #b8ad99;
  background: #e8dfcb;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(247,241,228,.95) 0%, rgba(247,241,228,.82) 27%, rgba(247,241,228,.28) 49%, transparent 72%);
}
.hero-copy {
  width: min(61%, 810px);
  padding: 42px 0 55px clamp(34px,6.2vw,92px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 19px;
  color: #665c4c;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow::before {
  width: 30px;
  height: 1px;
  background: var(--vermilion);
  content: "";
}
h1 {
  font-family: var(--serif);
  font-size: clamp(45px,4.9vw,72px);
  font-weight: 900;
  line-height: 1.36;
  letter-spacing: .02em;
  text-shadow: 0 2px 16px rgba(247,241,228,.6);
}
h1 em { color: var(--vermilion); font-style: normal; }
.lead {
  max-width: 510px;
  margin-top: 19px;
  color: #474741;
  font-family: var(--serif);
  font-size: clamp(14px,1.25vw,17px);
  line-height: 1.85;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  padding: 12px 19px 13px;
  border: 1px solid #7f3a2f;
  background: var(--vermilion);
  color: #fff7e8;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: transform .2s, background .2s;
}
.hero-link:hover { transform: translateY(-3px); background: #853a2e; }
.hero-link span { font-family: var(--sans); font-size: 18px; line-height: 1; }

.catalog-content {
  padding: 0 clamp(24px,5.2vw,76px) 85px;
}
.jump-nav {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-top: 31px;
  scroll-margin-top: 20px;
}
.jump-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 23px;
  border: 1px solid #bfb3a0;
  background: #ede8db;
  font-family: var(--serif);
  transition: border-color .2s, transform .2s;
}
.jump-nav a:last-child { background: #e7eae1; }
.jump-nav a:hover { border-color: var(--vermilion); transform: translateY(-2px); }
.jump-nav b { font-size: 20px; letter-spacing: .06em; }
.jump-nav span { color: var(--vermilion); font-size: 12px; font-weight: 700; letter-spacing: .12em; }

.catalog-section { margin-top: 66px; scroll-margin-top: 24px; }
.catalog-section + .catalog-section { margin-top: 84px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(220px,31%) minmax(0,1fr);
  gap: clamp(25px,3.5vw,48px);
  align-items: center;
  min-height: 235px;
  padding: 15px clamp(23px,3vw,40px) 15px 15px;
  border: 1px solid var(--rule);
  background: #eae5d8;
}
.catalog-section:nth-of-type(2) .section-head { background: #e7e9e0; }
.section-art {
  width: 100%;
  height: 205px;
  border: 1px solid #bfb29d;
  object-fit: cover;
  object-position: center;
}
.section-head .section-index {
  display: block;
  margin-bottom: 10px;
  color: var(--vermilion);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(30px,3vw,44px);
  font-weight: 900;
  line-height: 1.35;
}
.section-head p {
  max-width: 610px;
  margin-top: 14px;
  color: #5d5a51;
  font-size: 14px;
  line-height: 1.8;
}
.poems {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
  margin-top: 16px;
}
.poem {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 222px;
  overflow: hidden;
  padding: 23px 26px 25px;
  border: 1px solid #c9bda9;
  background: var(--card);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.poem::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--vermilion);
  content: "";
  opacity: .72;
}
.catalog-section:nth-of-type(2) .poem::before { background: var(--jade); }
.poem::after {
  position: absolute;
  right: 18px;
  bottom: -21px;
  color: rgba(78,83,76,.085);
  content: attr(data-mark);
  font-family: var(--serif);
  font-size: 137px;
  font-weight: 900;
  line-height: 1;
}
.poem > * { position: relative; z-index: 1; }
.poem:hover, .poem:focus-visible {
  transform: translateY(-4px);
  border-color: var(--vermilion);
  box-shadow: 0 12px 28px rgba(48,42,30,.12);
}
.poem-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.lesson {
  color: var(--vermilion);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.key {
  padding: 3px 6px;
  border: 1px solid #c9bda9;
  background: rgba(255,253,247,.63);
  color: #635f54;
  font-size: 10px;
  line-height: 1.3;
}
.poem h3 {
  max-width: 440px;
  margin: 29px 0 8px;
  font-family: var(--serif);
  font-size: clamp(25px,2.3vw,34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .02em;
}
.poem .meta {
  color: #5d5a51;
  font-family: var(--serif);
  font-size: 13px;
}
.open-note {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid var(--vermilion);
  padding-bottom: 4px;
  color: var(--vermilion);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}
footer {
  padding: 23px clamp(24px,5.2vw,76px);
  border-top: 1px solid var(--rule);
  color: #746e61;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .08em;
}
@media (max-width: 900px) {
  .hero-copy { width: 68%; }
  .poem-top { display: block; }
  .keys { justify-content: flex-start; margin-top: 10px; }
}
@media (max-width: 700px) {
  .page { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .topbar { min-height: 58px; padding: 10px 19px; }
  .brand { font-size: 15px; gap: 9px; }
  .back { font-size: 11px; }
  .hero { display: block; min-height: 0; }
  .hero-art { position: relative; z-index: auto; width: 100%; height: 270px; object-position: 72% center; }
  .hero::before { display: none; }
  .hero-copy { width: auto; padding: 25px 23px 39px; }
  .eyebrow { margin-bottom: 12px; font-size: 11px; }
  h1 { font-size: clamp(42px,9.5vw,62px); line-height: 1.32; }
  .lead { margin-top: 13px; font-size: 14px; }
  .hero-link { margin-top: 20px; }
  .catalog-content { padding: 0 19px 60px; }
  .jump-nav { gap: 8px; margin-top: 19px; }
  .jump-nav a { display: block; padding: 13px 12px; }
  .jump-nav b { display: block; font-size: 15px; }
  .jump-nav span { display: block; margin-top: 3px; font-size: 10px; }
  .catalog-section { margin-top: 49px; }
  .catalog-section + .catalog-section { margin-top: 62px; }
  .section-head { display: block; min-height: 0; padding: 12px 12px 22px; }
  .section-art { height: 205px; }
  .section-heading { padding: 21px 10px 0; }
  .section-head h2 { font-size: 31px; }
  .section-head p { margin-top: 8px; font-size: 13px; }
  .poems { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .poem { min-height: 204px; padding: 20px 22px 23px; }
  .poem h3 { margin-top: 21px; font-size: 27px; }
  .open-note { margin-top: 17px; }
}
@media (max-width: 390px) {
  .hero-art { height: 240px; }
  .back { max-width: 100px; }
  .poem h3 { font-size: 25px; }
}
@media (max-width: 350px) {
  h1 { font-size: 34px; letter-spacing: -.03em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-link, .jump-nav a, .poem { transition: none; }
}
