@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --ink: #20251f;
  --muted: #646b60;
  --green: #35533a;
  --line: #d4d8cd;
  --hover: #e9ede3;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #91998a var(--paper); scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
a:focus-visible, main:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
::selection { background: #c5d5bc; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.shell { width: min(100% - 80px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; inset: 12px auto auto 16px; z-index: 10; padding: 10px 16px; background: var(--green); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 4px; font-size: 15px; }
.main-nav a:hover { color: var(--green); text-decoration: underline; }
.intro { padding-block: 64px 56px; }
h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.intro p { max-width: 68ch; margin-top: 20px; color: var(--muted); line-height: 1.9; }
.directory-link { display: inline-flex; align-items: center; gap: 22px; min-height: 46px; margin-top: 20px; padding: 8px 16px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; }
.directory-link:hover { background: #203d28; }
.arrow { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
h2 { font-size: 24px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.section-heading p { font-size: 14px; color: var(--muted); }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); column-gap: 40px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.topic-heading { padding-top: 10px; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; overflow-wrap: anywhere; }
.topic-heading p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.note-list { min-width: 0; margin: 0; padding: 0; list-style: none; }
.note-list li + li { margin-top: 4px; }
.note-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 12px; margin-inline: -12px; transition: background-color .16s ease-out; }
.note-link > span { min-width: 0; }
.note-title { display: block; font-size: 18px; font-weight: 550; line-height: 1.6; }
.note-description { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.note-link .arrow, .compact-link .arrow { color: var(--green); }
.note-link:hover, .compact-link:hover { background: var(--hover); }
.note-link:hover .note-title, .compact-link:hover { color: var(--green); }
.compact-link { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; min-height: 48px; margin-inline: -12px; padding: 10px 12px; transition: background-color .16s ease-out; }
.compact-link > span { color: var(--muted); font-size: 14px; }
.compact-link .arrow { margin-left: auto; align-self: center; }
.directory-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.directory-note a, .game > a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--green); }
.directory-note a:hover, .game > a:hover { text-decoration: underline; }
.game { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--line); }
.game h2 { font-size: 21px; }
.game p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.game > a { flex-shrink: 0; font-size: 15px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; min-height: 88px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 48px); }
  .site-header { min-height: 76px; }
  .main-nav { gap: 16px; }
  .intro { padding-block: 44px 40px; }
  .topic { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 24px; }
  .topic-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-top: 0; }
  .topic-heading p { margin: 0; }
  .note-link { gap: 16px; }
  .section-heading p { display: none; }
  .game { margin-top: 40px; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 40px); }
  .wordmark { font-size: 20px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 14px; }
  .wide-break { display: none; }
  .intro p { font-size: 15px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
  .note-title { font-size: 17px; }
  .game { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 32px); }
  .site-header { gap: 12px; }
  .wordmark { font-size: 18px; }
  .main-nav { gap: 6px; }
  .main-nav a { padding-inline: 3px; }
  h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .note-link, .compact-link { transition: none; }
}
