/* Creator Archive — paper, ink, vermilion. */
:root {
  --color-bg: #f5f4ef;
  --color-bg-elevated: #fffefa;
  --color-bg-subtle: #eeede6;
  --color-bg-hover: #eeede6;
  --color-card: #fffefa;
  --color-card-hover: #f8f7f2;
  --color-border: #e4e3da;
  --color-border-subtle: #cbcabe;
  --color-primary: #c94133;
  --color-primary-hover: #aa3025;
  --color-primary-muted: #f9e7e1;
  --color-accent: #52766d;
  --color-text: #252d2a;
  --color-text-sec: #6a716a;
  --color-text-muted: #74796f;
  --color-metric-bg: transparent;
  --font-family: 'Avenir Next', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Avenir Next', 'PingFang SC', sans-serif;
  --font-editorial: 'Songti SC', 'STSong', 'Noto Serif CJK SC', serif;
  --max-width: 1240px;
  --nav-height: 84px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --shadow-card: none;
}
body { padding-bottom: 0; }
.nav {
  padding: 0 max(32px, calc((100vw - 1240px) / 2 + 24px));
  background: #f5f4eff5;
  backdrop-filter: blur(18px);
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--color-text); flex-shrink: 0; }
.brand-mark { width: 38px; height: 42px; display: grid; place-items: center; background: var(--color-primary); color: #fffaf0; border-radius: 3px; font: 25px var(--font-editorial); transform: rotate(-3deg); }
.brand-word { font-size: 17px; font-weight: 650; letter-spacing: .08em; line-height: 1.45; }
.brand-word small { display: block; font-size: 8px; letter-spacing: .17em; color: var(--color-text-sec); }
.nav-title { display: none; }
.nav-tabs-desktop { margin: 0 auto; gap: 6px; }
.nav-tab { padding: 10px 14px; border-radius: 4px; font-size: 13px; }
.nav-tab.active { background: none; color: var(--color-primary); position: relative; }
.nav-tab.active::after { content: ''; position: absolute; width: 18px; height: 2px; background: currentColor; bottom: 2px; left: calc(50% - 9px); }
.collector-pill { display: flex; align-items: center; gap: 7px; color: var(--color-text-sec); font-size: 11px; white-space: nowrap; }
.collector-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a48d52; }
.collector-pill.is-healthy::before { background: #52766d; box-shadow: 0 0 0 4px #52766d12; }
.collector-pill.is-warning::before { background: var(--color-primary); }
.container { padding: 32px 24px 48px; }
.archive-hero { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 348px; padding: 40px 48px; margin-bottom: 24px; position: relative; overflow: hidden; background: #263b34; color: #f4f3e9; border-radius: 10px; }
.archive-hero::after { content: ''; position: absolute; width: 340px; height: 340px; right: -160px; top: -170px; border: 1px solid #f6f2de20; border-radius: 50%; box-shadow: 0 0 0 36px #f6f2de06, 0 0 0 72px #f6f2de04; pointer-events: none; }
.eyebrow { font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.hero-copy > .eyebrow { color: #b9c8bd; display: flex; align-items: center; gap: 22px; }
.hero-copy > .eyebrow span { font-size: 10px; font-weight: 400; letter-spacing: .05em; color: #9cb2a5; }
.hero-copy h1 { font: 500 43px/1.35 var(--font-editorial); letter-spacing: .01em; margin: 23px 0 14px; }
.hero-copy p { color: #bdc9bf; font-size: 12px; line-height: 1.9; }
.red-period { color: #e9765c; }
.archive-button { display: inline-flex; gap: 38px; align-items: center; margin-top: 24px; padding: 10px 16px; font-size: 12px; background: #f2f1e5; color: #263b34; border-radius: 3px; transition: background .2s, transform .2s; }
.archive-button:hover { background: #fffaf0; color: #263b34; transform: translateY(-2px); }
.archive-button span { font-size: 20px; line-height: 1; }
.hero-archive-count { align-self: center; border-left: 1px solid #f6f2de2b; padding-left: 46px; padding-top: 15px; }
.hero-archive-count .eyebrow { color: #bdc9bf; font-size: 11px; letter-spacing: .1em; }
.archive-big-number { display: flex; align-items: baseline; gap: 14px; margin: 8px 0; }
.archive-big-number > span { font: 400 102px/1.25 'DIN Alternate', 'Avenir Next', sans-serif; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.archive-big-number small { color: #a8baad; font: 16px var(--font-editorial); }
.hero-count-foot { display: flex; justify-content: space-between; align-items: center; color: #9eb5a7; font-size: 10px; letter-spacing: .1em; padding-right: 18px; }
.archive-seal { font: 29px var(--font-editorial); color: #d47b65; border: 1px solid #d47b6570; padding: 1px 8px; transform: rotate(7deg); border-radius: 3px; }
.collection-banner { background: #eeede5; border: 1px solid var(--color-border); border-radius: 8px; padding: 18px 22px; display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap: 26px; margin-bottom: 40px; }
.collection-banner > div:not(:first-child) { border-left: 1px solid #d9d9ce; padding-left: 24px; }
.collection-banner span:not(.live-dot) { display: block; color: var(--color-text-sec); font-size: 10px; margin-bottom: 4px; }
.collection-banner strong { font-size: 13px; font-weight: 550; }
.collection-overview { display: flex; align-items: center; gap: 12px; }
.collection-overview small { display: block; color: var(--color-text-sec); font-size: 10px; margin-top: 4px; }
.live-dot { flex: 0 0 7px; width: 7px; height: 7px; background: #52766d; border-radius: 50%; box-shadow: 0 0 0 5px #52766d12; }
[data-health=warning] .live-dot { background: #c94133; box-shadow: 0 0 0 5px #c9413312; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 18px; }
.section-heading .eyebrow { color: #858a7e; font-size: 8px; }
.section-heading h2 { font: 500 25px var(--font-editorial); margin-top: 5px; }
.section-heading > p { font-size: 10px; color: var(--color-text-sec); }
.overview-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.overview-layout > .card { min-width: 0; }
.card { padding: 24px; margin-bottom: 18px; box-shadow: none; }
.card-title { font-weight: 550; font-size: 14px; margin-bottom: 20px; }
.performance-card .card-title { display: none; }
.metric-card { border: 0; border-radius: 0; text-align: left; padding: 12px 4px; min-width: 0; }
.metric-card:hover { box-shadow: none; }
.metric-label { font-size: 11px; font-weight: 400; margin-bottom: 9px; color: var(--color-text-sec); letter-spacing: 0; }
.metric-value { font-size: 29px; line-height: 1.2; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-ratio { font-size: 10px; margin-top: 6px; }
.metric-ratio.up { color: #52766d; }
.metrics-grid { gap: 18px; }
.trend-card .chart-wrap { height: 205px !important; }
.site-footer { max-width: var(--max-width); margin: 0 auto; padding: 22px 24px 32px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; color: #92968a; font-size: 10px; letter-spacing: .05em; }
.link-card { background: #263b34; color: #f4f3e9; padding: 26px; }
.link-card .link-card-count { color: #afc2b6; }
.link-card:hover { color: #fff; background: #304b41; }
.link-card-mini { border-radius: 8px; box-shadow: none; }
.link-card-grid { gap: 18px; }
.snapshot-pill { border-radius: 4px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 17px 0 32px; margin-bottom: 25px; border-bottom: 1px solid var(--color-border); }
.page-heading .eyebrow { color: var(--color-primary); }
.page-heading h1 { font: 500 36px/1.45 var(--font-editorial); margin: 16px 0 9px; }
.page-heading p { font-size: 12px; color: var(--color-text-sec); }
.text-link { font-size: 12px; white-space: nowrap; }
.sort-bar { gap: 12px; align-items: center; margin-bottom: 22px; }
.notes-summary { color: var(--color-text-sec); font-size: 12px; }
.sort-select, .note-search { border: 1px solid var(--color-border); background: var(--color-card); padding: 10px 12px; border-radius: 5px; color: var(--color-text); font-family: inherit; font-size: 12px; }
.note-search { width: 210px; }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.note-table-wrap { border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-card); }
.note-table th { background: #eeede6; font-size: 11px; font-weight: 500; color: var(--color-text-sec); padding: 15px 16px; }
.note-table td { padding: 17px 16px; font-size: 12px; }
.note-table a { color: #34483d; font-weight: 500; }
.note-table tbody tr:hover { background: #f7f6ef; }
.note-card { box-shadow: none; border-radius: 8px; }
.note-card-meta, .detail-meta { flex-wrap: wrap; }
.note-card-title { font-weight: 550; }
.note-card[hidden], tr[hidden] { display: none !important; }
.detail-header { padding: 18px 0 30px; }
.detail-title { font: 500 32px/1.5 var(--font-editorial); }
.detail-meta { margin-top: 12px; font-size: 11px; }
.genre-badge { border-radius: 3px; color: #62705f; background: #e9ede2; font-weight: 400; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
@media (min-width: 1024px) {
  #cumulativeGrid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  #cumulativeGrid .metric-value { font-size: 25px; }
}
@media (max-width: 1023px) {
  .collector-pill { display: none; }
  .nav { padding: 0 24px; }
  .nav-tabs-desktop { margin: 0 0 0 auto; }
  .archive-hero { padding: 32px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-archive-count { padding-left: 30px; }
  .archive-big-number > span { font-size: 82px; }
  .collection-banner { gap: 15px; }
  .collection-banner > div:not(:first-child) { padding-left: 16px; }
}
@media (max-width: 767px) {
  :root { --nav-height: 70px; }
  body { padding-bottom: 68px; }
  .nav { padding: 0 20px; gap: 8px; }
  .brand-mark { width: 32px; height: 35px; font-size: 22px; }
  .brand-word { font-size: 16px; }
  .brand-word small { font-size: 7px; }
  .collector-pill { display: flex; margin-left: auto; font-size: 10px; }
  .container { padding: 20px 16px 26px; }
  .archive-hero { grid-template-columns: 1fr; min-height: 0; padding: 26px; margin-bottom: 16px; border-radius: 8px; }
  .hero-copy > .eyebrow { font-size: 7px; gap: 12px; }
  .hero-copy > .eyebrow span { font-size: 8px; }
  .hero-copy h1 { font-size: 32px; margin-top: 23px; }
  .hero-copy p { font-size: 11px; }
  .archive-button { margin-top: 20px; }
  .hero-archive-count { border-left: 0; border-top: 1px solid #f6f2de2b; margin-top: 28px; padding: 19px 0 0; position: relative; }
  .archive-big-number { margin: 0; }
  .archive-big-number > span { font-size: 68px; }
  .hero-count-foot { position: absolute; right: 0; bottom: 14px; padding: 0; flex-direction: column-reverse; gap: 13px; font-size: 9px; }
  .archive-seal { font-size: 24px; padding: 0 6px; }
  .collection-banner { grid-template-columns: 1fr 1fr; padding: 18px; gap: 22px 16px; margin-bottom: 30px; }
  .collection-overview { grid-column: 1 / -1; }
  .collection-banner > div:not(:first-child) { border: 0; padding: 0; }
  .collection-banner > div:last-child { display: none; }
  .collection-banner strong { font-size: 12px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading > p { max-width: 155px; text-align: right; font-size: 9px; }
  .overview-layout { display: block; }
  .card { padding: 20px; border-radius: 8px; }
  .metrics-grid { gap: 14px 20px; }
  .metric-value { font-size: 29px; }
  .metric-card { padding: 9px 0; }
  .bottom-nav { background: #fffefa; border-top: 1px solid var(--color-border); padding-bottom: env(safe-area-inset-bottom); height: calc(62px + env(safe-area-inset-bottom)); }
  .bottom-nav-item.active { color: var(--color-primary); }
  .site-footer { margin: 0 16px; padding: 20px 0 26px; font-size: 9px; }
  .page-heading { padding: 8px 0 24px; margin-bottom: 20px; display: block; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 11px; line-height: 1.8; }
  .page-heading > a { display: inline-block; margin-top: 15px; font-size: 11px; }
  .sort-bar { flex-wrap: wrap; gap: 10px; }
  .notes-summary { flex: 1 1 100%; font-size: 11px; }
  .note-search { flex: 1; width: 100px; min-width: 0; }
  .sort-bar > label:not(.search-label) { display: none; }
  .sort-select { max-width: 110px; }
  .note-card { padding: 20px; }
  .detail-title { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
