:root {
  --paper: #faf8f3;
  --ink: #352f2b;
  --muted: #746a61;
  --red: #7d1117;
  --gold: #a98a4e;
  --line: rgba(108, 76, 57, 0.18);
  --display: "STKaiti", "Kaiti SC", KaiTi, "FZKai-Z03", "BiauKai", cursive;
  --headline: "STXingkai", "FZXingKai-S04S", "DFKai-SB", "STKaiti", "Kaiti SC", KaiTi, cursive;
  --latin: Didot, "Bodoni 72", Baskerville, Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }

.entry-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--paper); transition: opacity 720ms ease, visibility 0s linear 720ms;
}
.entry-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-copy { display: grid; justify-items: center; gap: 9px; color: var(--red); animation: entry-breathe 1.25s ease-in-out infinite; }
.entry-copy strong { font: 600 clamp(34px, 4vw, 52px)/1 var(--latin); letter-spacing: -0.05em; }
.entry-copy span { color: var(--gold); font: 16px/1 var(--display); letter-spacing: 0.16em; }
.entry-copy i { color: var(--gold); font: normal 18px/1 var(--latin); letter-spacing: 0.24em; animation: entry-dots 1.1s steps(3, end) infinite; }

.site-header, .hero, .directory, .about, footer { width: min(1360px, calc(100% - 72px)); margin-inline: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: grid; gap: 3px; }
.brand strong { color: var(--red); font: 600 clamp(31px, 3vw, 44px)/0.95 var(--latin); letter-spacing: -0.045em; }
.brand span { color: var(--muted); font: 16px/1.2 var(--display); letter-spacing: 0.1em; }
nav { display: flex; gap: 40px; font: 19px/1 var(--display); }
nav a { padding: 11px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible { color: var(--red); border-color: var(--red); }

.hero { min-height: 565px; position: relative; isolation: isolate; overflow: hidden; }
.hero-copy { max-width: 940px; position: relative; z-index: 1; padding: clamp(76px, 10vw, 142px) 0 156px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .domain { margin: 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; }
.hero h1 { margin: 20px 0 0; color: var(--red); font: 600 clamp(50px, 5.2vw, 78px)/1.12 var(--headline); letter-spacing: 0.075em; text-shadow: 0 1px 0 rgba(125, 17, 23, 0.08); }
.hero h1 span { color: var(--gold); font-size: 1.08em; letter-spacing: 0.045em; }
.hero-lead { margin: 24px 0 0; color: var(--muted); font: 23px/1.55 var(--display); letter-spacing: 0.09em; }
.primary-link { width: fit-content; margin-top: 34px; padding: 16px 24px; color: #fffdf8; background: var(--red); border-radius: 5px; font: 19px/1 var(--display); letter-spacing: 0.08em; transition: transform 180ms ease, background 180ms ease; }
.primary-link:hover, .primary-link:focus-visible { transform: translateY(-2px); background: #9a1d23; }
.primary-link span, .card-link span { margin-left: 12px; }
.hero-visual { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.94; }
.site-ready .hero-copy { animation: copy-reveal 760ms cubic-bezier(.2, .8, .2, 1) both; }
.site-ready .hero-visual img { animation: artwork-reveal 1.1s ease-out both; }

.directory { position: relative; z-index: 2; margin-top: -82px; padding: 0 0 84px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.site-card { min-height: 252px; padding: 30px; border: 1px solid var(--line); background: #fffdf9; display: flex; flex-direction: column; justify-content: space-between; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.site-card:hover, .site-card:focus-within { transform: translateY(-4px); border-color: rgba(125, 17, 23, 0.38); box-shadow: 0 18px 38px rgba(63, 39, 27, 0.08); }
.site-card h2 { margin: 12px 0 0; color: var(--red); font: 600 clamp(28px, 2.5vw, 38px)/1 var(--display); letter-spacing: 0.04em; }
.description { margin: 22px 0 0; color: var(--muted); font: 18px/1.65 var(--display); letter-spacing: 0.045em; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 9px; border: 1px solid rgba(169, 138, 78, 0.25); color: var(--muted); font-size: 12px; }
.card-link { flex: 0 0 auto; color: var(--red); font: 16px/1 var(--display); white-space: nowrap; }
.card-link:hover, .card-link:focus-visible { color: var(--gold); }
.future-card { background: #f7f2e8; }
.quiet-arrow { color: var(--gold); font-size: 24px; }
.about { padding: 34px 0 46px; border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-heading { margin: 0; }
.faq-trigger { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 34px; align-items: center; gap: 14px; padding: 21px 2px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.faq-number { color: var(--gold); font: 15px/1 var(--latin); letter-spacing: 0.09em; }
.faq-question { font: 500 clamp(20px, 1.7vw, 26px)/1.25 var(--display); letter-spacing: 0.04em; }
.faq-toggle { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(169, 138, 78, 0.6); border-radius: 50%; color: var(--gold); font: normal 20px/1 var(--latin); transition: transform 220ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease; }
.faq-trigger:hover .faq-question, .faq-trigger:focus-visible .faq-question, .faq-item.is-open .faq-question { color: var(--red); }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); border-color: var(--red); background: var(--red); color: #fffdf8; }
.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 300ms ease, opacity 180ms ease; }
.faq-answer > div { overflow: hidden; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-answer p { max-width: 800px; margin: 0; padding: 0 48px 23px 68px; color: var(--muted); font: 17px/1.8 var(--display); letter-spacing: 0.04em; }
.faq-answer p a { color: var(--red); border-bottom: 1px solid rgba(125, 17, 23, 0.48); }
.faq-answer p a:hover, .faq-answer p a:focus-visible { color: var(--gold); border-color: var(--gold); }
footer { padding: 24px 0 31px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: 0.05em; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.footer-credit { text-align: center; line-height: 1.6; }
.footer-icon { height: 1.6em; width: auto; vertical-align: middle; margin: 0 4px; }
.footer-logo { height: .8em; width: auto; vertical-align: middle; margin: 0 4px 2px 4px }

@keyframes entry-breathe { 0%, 100% { opacity: 0.58; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes entry-dots { 0%, 20% { clip-path: inset(0 100% 0 0); } 55% { clip-path: inset(0 45% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes copy-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes artwork-reveal { from { opacity: 0; transform: scale(1.012); } to { opacity: 0.94; transform: scale(1); } }

@media (max-width: 860px) {
  .site-header, .hero, .directory, .about, footer { width: min(100% - 40px, 700px); }
  .hero { min-height: auto; display: flex; flex-direction: column; overflow: hidden; }
  .hero-copy { order: 1; max-width: none; padding: 72px 0 28px; }
  .hero-visual { order: 2; position: relative; inset: auto; min-height: 330px; }
  .directory { margin-top: -24px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-card { min-height: 210px; }
}
@media (max-width: 560px) {
  .site-header { min-height: auto; padding: 24px 0; align-items: start; }
  .brand strong { font-size: 31px; }
  .brand span { font-size: 11px; letter-spacing: 0.06em; }
  nav { gap: 16px; padding-top: 7px; font-size: 14px; white-space: nowrap; }
  .hero-copy { padding-top: 55px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .directory { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .site-card { padding: 25px; }
  .faq-trigger { grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 8px; padding: 18px 0; }
  .faq-number { font-size: 13px; }
  .faq-question { font-size: 20px; }
  .faq-toggle { width: 24px; height: 24px; font-size: 17px; }
  .faq-answer p { padding: 0 28px 19px 44px; font-size: 16px; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-credit { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
