:root {
  --ink: #222c32;
  --muted: #68736f;
  --paper: #f4f1e9;
  --red: #a74a35;
  --line: #dbddd2;
  --gold: #d4b277;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
.shell {
  width: min(1200px, calc(100% - 80px));
  margin: auto;
}
.skip {
  position: absolute;
  z-index: 20;
  left: 1rem;
  top: -5rem;
  background: white;
  color: #111;
  padding: 0.7rem;
}
.skip:focus {
  top: 1rem;
}
.hero {
  height: 480px;
  color: #fff9ec;
  position: relative;
  background: #142331;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 22, 32, 0.84) 0%,
      rgba(10, 22, 32, 0.57) 39%,
      rgba(10, 22, 32, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(13, 25, 32, 0.7), transparent 28%),
    url('assets/autumn.webp') center 51% / cover;
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 31px;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.seal {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e9d1a5;
  color: #f5dfb9;
  font-family: serif;
  font-size: 20px;
  letter-spacing: 0;
}
.hero-copy {
  margin: auto 0;
  max-width: 680px;
  padding: 32px 0 48px;
}
.hero h1 {
  font-family: 'Songti SC', 'Noto Serif CJK JP', 'Yu Mincho', serif;
  font-size: clamp(54px, 7vw, 91px);
  line-height: 1.12;
  letter-spacing: 0.09em;
  font-weight: 500;
  margin: 21px 0 0;
}
.hero h1 span {
  white-space: nowrap;
}
.chinese-title {
  color: #dfcda9;
  letter-spacing: 0.25em;
  font-size: 15px;
  margin: 12px 0 22px;
}
.intro {
  font-family: 'Songti SC', 'Noto Serif CJK SC', serif;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.09em;
  margin: 0 0 7px;
}
.explore {
  display: inline-flex;
  gap: 34px;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid #d2af77;
  padding: 14px 0 8px;
  margin-top: 18px;
  color: #f0dbb6;
  font-size: 13px;
}
.explore span {
  font-size: 20px;
}
.catalog {
  padding: 50px 0 112px;
}
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}
.catalog h2 {
  font-family: 'Songti SC', 'Noto Serif CJK SC', serif;
  font-weight: 600;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: 0.07em;
  line-height: 1.3;
  margin: 0;
}
.search-area {
  width: min(100%, 390px);
}
.search-area label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #4d5956;
  margin-bottom: 9px;
}
.search-box {
  height: 54px;
  background: #fffcf6;
  border: 1px solid #ccd1c7;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
}
.search-box:focus-within {
  outline: 2px solid #a74a35;
  outline-offset: 2px;
}
.search-box svg,
.group-icon svg,
.card-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-box svg {
  width: 20px;
  flex: none;
  color: #728078;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
}
input::-webkit-search-cancel-button {
  display: none;
}
.search-box input::placeholder {
  color: #89928a;
  font-size: 13px;
}
kbd {
  white-space: nowrap;
  border: 1px solid #d8dbd3;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 10px;
  color: #89928a;
  font-family: inherit;
}
.search-box button {
  border: 0;
  background: none;
  color: #5c6860;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.group {
  margin-top: 45px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.group-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d3d5c9;
  color: var(--red);
}
.group-icon svg {
  width: 22px;
}
.group-heading h3 {
  font-family: 'Songti SC', serif;
  font-size: 25px;
  letter-spacing: 0.12em;
  margin: 0;
  line-height: 1.2;
}
.group-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
  margin-left: 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cards li {
  min-width: 0;
}
.card {
  height: 100%;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid #e2e3d9;
  padding: 23px 25px 22px;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #c69a82;
  box-shadow: 0 12px 28px #3c352314;
}
.card:focus-visible,
.explore:focus-visible,
button:focus-visible {
  outline: 3px solid #ad573c;
  outline-offset: 3px;
}
.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #f4eee3;
  color: #a4543c;
}
.card-icon svg {
  width: 23px;
  height: 23px;
}
.arrow {
  color: #ad9c85;
  font-size: 19px;
}
.card h4 {
  font-family: 'Songti SC', 'Noto Serif CJK SC', serif;
  font-size: 19px;
  line-height: 1.4;
  margin: 19px 0 8px;
  letter-spacing: 0.04em;
}
.card p {
  color: #68736d;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tags span {
  font-size: 11px;
  color: #8b604d;
  background: #f6f0e8;
  padding: 3px 8px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.empty > span {
  color: var(--red);
  font-size: 26px;
}
.empty h3 {
  font:
    24px 'Songti SC',
    serif;
  margin: 12px 0;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
}
.empty button {
  background: #943f2f;
  color: white;
  border: 0;
  padding: 10px 22px;
  cursor: pointer;
}
footer {
  background: #1d2b30;
  color: #f5ead8;
  padding: 43px 0;
}
.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner strong {
  font-family: serif;
  font-size: 20px;
  letter-spacing: 0.12em;
}
.footer-inner p {
  font-size: 12px;
  color: #b6c0b9;
  margin: 6px 0 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-top {
    align-items: start;
    flex-direction: column;
  }
  .search-area {
    width: 100%;
    max-width: none;
  }
  .hero-image {
    background-position: 58% center;
  }
}
@media (max-width: 560px) {
  .shell {
    width: calc(100% - 40px);
  }
  .hero {
    height: 420px;
  }
  .masthead {
    padding-top: 22px;
  }
  .hero-copy {
    padding: 28px 0;
  }
  .hero h1 {
    font-size: clamp(44px, 12vw, 62px);
  }
  .chinese-title {
    margin: 10px 0 19px;
  }
  .intro {
    font-size: 17px;
  }
  .catalog {
    padding: 34px 0 75px;
  }
  .catalog-top {
    gap: 20px;
    margin-bottom: 30px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 200px;
  }
  .group {
    margin-top: 35px;
  }
  .group-rule {
    margin-left: 0;
  }
  .group-heading h3 {
    font-size: 22px;
  }
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
  .search-box kbd {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
}
