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

:root {
  --paper: #f7f5ef;
  --ink: #1c1c1a;
  --ink-soft: #54514a;
  --muted: #8a857a;
  --line: #ddd6c6;
  --line-strong: #1c1c1a;
  --cinnabar: #c8401f;
  --mono: 'DM Mono', monospace;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }

.g-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 16px 4vw; background: rgba(247,245,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.g-brand { display: inline-flex; width: 168px; }
.g-brand img { display: block; width: 100%; height: auto; }
.g-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 13.5px; }
.g-nav a { color: var(--ink-soft); text-decoration: none; transition: color .2s ease; }
.g-nav a:hover { color: var(--ink); }
.g-nav .g-nav-buy { color: var(--cinnabar); border-bottom: 1px solid var(--cinnabar); padding-bottom: 2px; }

.g-wrap { width: min(760px, 90vw); margin: 0 auto; }
.g-wrap-wide { width: min(1000px, 90vw); margin: 0 auto; }

.g-crumb { padding: 26px 0 0; font: 10.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
.g-crumb a { text-decoration: none; }
.g-crumb a:hover { color: var(--cinnabar); }

.g-article { padding: 14px 0 0; }
.g-article h1 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
.g-lede { margin: 22px 0 0; font-size: 16px; line-height: 2; color: var(--ink-soft); }
.g-meta { margin: 20px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); font: 10.5px var(--mono); letter-spacing: .1em; color: var(--muted); }

.g-article h2 { margin: 56px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; line-height: 1.45; }
.g-article h3 { margin: 34px 0 0; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.g-article p { margin: 18px 0 0; }
.g-article ul, .g-article ol { margin: 18px 0 0; padding-left: 1.3em; }
.g-article li { margin-top: 9px; }
.g-article strong { font-weight: 700; }
.g-article em { font-style: normal; color: var(--cinnabar); font-weight: 500; }
.g-article a { color: var(--cinnabar); border-bottom: 1px solid rgba(200,64,31,.4); text-decoration: none; }
.g-article a:hover { border-bottom-color: var(--cinnabar); }

.g-note { margin: 26px 0 0; padding: 16px 20px; border-left: 2px solid var(--cinnabar); background: rgba(200,64,31,.04); font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.g-note strong { color: var(--ink); }

.g-table-wrap { margin: 26px 0 0; overflow-x: auto; }
table.g-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
table.g-table caption { caption-side: top; text-align: left; padding-bottom: 10px; font: 10.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
table.g-table th, table.g-table td { border-bottom: 1px solid var(--line); padding: 11px 12px 11px 0; text-align: left; vertical-align: top; }
table.g-table th { border-bottom: 1px solid var(--line-strong); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
table.g-table td:first-child { white-space: nowrap; font-weight: 500; }
table.g-table td.g-nowrap { white-space: nowrap; }
table.g-table tr td em { color: var(--cinnabar); }

.g-rank { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-rank li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.g-rank .g-rank-n { font: 10.5px var(--mono); color: var(--muted); letter-spacing: .08em; }
.g-rank .g-rank-b { font-weight: 500; }

.g-cta { margin: 64px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line-strong); }
.g-cta-grid { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.g-cta img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.g-cta h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.g-cta p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.g-cta-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 18px; }
.g-cta-actions a { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: opacity .2s ease; }
.g-cta-actions a:hover { opacity: .65; }
.g-cta-actions .g-buy { color: var(--cinnabar); border-color: var(--cinnabar); }
.g-qr { margin: 34px 0 0; }
.g-qr img { display: block; width: 132px; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.g-qr figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }

.g-related { margin: 56px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.g-related h2 { margin: 0 0 4px; font: 10.5px var(--mono); letter-spacing: .14em; color: var(--muted); }
.g-related ul { margin: 0; padding: 0; list-style: none; }
.g-related li { border-bottom: 1px solid var(--line); }
.g-related li a { display: block; padding: 15px 0; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.g-related li a:hover { color: var(--cinnabar); }

.g-footer { margin: 72px 0 0; padding: 16px 4vw 40px; border-top: 1px solid var(--line); }
.g-footer-inner { width: min(760px, 90vw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 10.5px var(--mono); letter-spacing: .04em; color: var(--muted); }
.g-footer-inner a { text-decoration: none; }
.g-footer-inner a:hover { color: var(--cinnabar); }

@media (max-width: 800px) {
  .g-header { padding: 13px 5vw; }
  .g-brand { width: 140px; }
  .g-nav { font-size: 12.5px; gap: 16px; }
  .g-nav .g-nav-hide { display: none; }
  body { font-size: 15.5px; }
  .g-cta-grid { grid-template-columns: 1fr; gap: 20px; }
  .g-cta img { aspect-ratio: 3 / 2; }
  .g-article h2 { margin-top: 46px; }
}
