:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --surface: #fffefa;
  --ink: #18251f;
  --muted: #57645c;
  --faint: #7c887f;
  --line: #cfd5ca;
  --wash: #e6eddf;
  --forest: #285440;
  --forest-dark: #19392b;
  --danger: #8c3b32;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }

.topline { background: var(--ink); color: #f0f0e8; padding: 10px 5vw; font-size: 11px; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 20px; }
.shell { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
.mast { min-height: 88px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-size: 24px; font-weight: 750; letter-spacing: -.06em; }
.brand span { margin-left: 13px; font-size: 11px; letter-spacing: .28em; font-weight: 600; }
.market-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.market-nav a { text-decoration: none; color: var(--muted); padding: 12px 0; }
.market-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--forest); }
.edition { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 0; color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.hero { padding: 25px 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.hero h1 { max-width: 680px; margin: 0; font: 400 clamp(42px, 6vw, 78px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.07em; }
.hero h1 em { color: var(--forest); }
.hero p { max-width: 285px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.status { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.status-dot.is-error { background: var(--danger); }
.status-dot.is-loading { background: #a18b3b; }

.reader-grid { display: grid; grid-template-columns: 204px minmax(0, 1fr); gap: 56px; padding: 40px 0 80px; }
.rail { align-self: start; position: sticky; top: 20px; }
.rail h2 { margin: 0 0 18px; font-size: 11px; letter-spacing: .18em; }
.search { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid #869288; color: var(--muted); }
.search input { width: 100%; border: 0; background: transparent; padding: 10px 0 11px; color: var(--ink); outline: 0; font-size: 13px; }
.stock-list { display: grid; gap: 4px; }
.stock-button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 13px 10px; border: 0; border-left: 3px solid transparent; color: var(--ink); background: transparent; text-align: left; font-size: 13px; }
.stock-button:hover { background: #edf0e8; }
.stock-button[aria-current="true"] { border-left-color: var(--forest); background: var(--wash); font-weight: 700; }
.stock-button small { color: var(--muted); font: 11px ui-monospace, monospace; }
.rail-note { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.mobile-picker { display: none; }

.company-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.crumb { margin: 0 0 13px; color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.company-header h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.company-header .symbol { margin-top: 10px; color: var(--forest); font: 12px ui-monospace, monospace; }
.company-header p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.data-meta { color: var(--muted); text-align: right; font-size: 12px; line-height: 1.7; }
.filters { display: flex; align-items: center; gap: 8px; margin: 28px 0 24px; }
.filter { border: 1px solid #89958b; border-radius: 2px; background: transparent; color: var(--muted); padding: 9px 14px; font-size: 12px; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.result-count { margin-left: auto; color: var(--muted); font: 11px ui-monospace, monospace; }
.update-banner { display: none; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 12px 14px; border: 1px solid #9bb39f; background: var(--wash); color: var(--forest-dark); font-size: 12px; }
.update-banner.is-visible { display: flex; }
.update-banner button { border: 0; background: var(--forest); color: white; padding: 8px 12px; font-size: 12px; }
.date-rule { display: flex; align-items: center; gap: 17px; margin: 0 0 28px; color: var(--muted); font: 11px ui-monospace, monospace; letter-spacing: .14em; }
.date-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.date-rule span { letter-spacing: 0; }
.story { margin: 0 0 30px; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 35%); grid-template-areas: "meta meta" "title image" "excerpt image" "footer footer"; column-gap: 28px; row-gap: 0; }
.story-meta { grid-area: meta; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.story-meta .source { color: var(--forest); font-weight: 700; }
.story-meta time { margin-left: auto; }
.story h3 { grid-area: title; margin: 15px 0 12px; max-width: 720px; font-size: clamp(24px, 3vw, 35px); line-height: 1.35; letter-spacing: -.045em; }
.story:not(.lead) h3 { font-size: clamp(21px, 2.5vw, 28px); }
.story-excerpt { grid-area: excerpt; max-width: 700px; margin: 0 0 20px; color: #435149; font-size: 16px; line-height: 1.9; }
.story-footer { grid-area: footer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.story-tags { color: var(--muted); font: 11px ui-monospace, monospace; }
.read-link { color: var(--forest); font-weight: 700; }
.story-media { grid-area: image; align-self: start; margin: 18px 0 20px; }
.story-media img { display: block; width: 100%; height: auto; max-height: 270px; border-radius: 2px; background: #e8e9e1; object-fit: cover; }
.story-media figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.story-media.is-hidden { display: none; }
.story.is-text-only .story-grid { display: block; }
.story.is-text-only .story-meta { display: flex; }
.story.is-text-only h3, .story.is-text-only .story-excerpt { max-width: 820px; }
.empty, .error-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; color: var(--muted); line-height: 1.8; }
.error-box { color: var(--danger); }
.skeletons { display: grid; gap: 28px; }
.skeleton { min-height: 130px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.58) 50%, transparent 75%) 0 0/240% 100% #ebece5; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -240% 0; } }
.footer { padding: 25px 0 36px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer strong { color: var(--ink); }
.disclaimer { margin: -55px 0 45px; color: var(--faint); font-size: 11px; line-height: 1.7; }

@media (max-width: 980px) {
  .shell { width: min(100% - 48px, 760px); }
  .reader-grid { grid-template-columns: 165px minmax(0, 1fr); gap: 28px; }
  .story-grid { display: block; }
  .story-media { max-width: 560px; margin: 18px 0; }
  .story-media img { max-height: none; }
}
@media (max-width: 620px) {
  .topline { padding: 9px 20px; font-size: 9px; }
  .topline span:last-child { display: none; }
  .shell { width: calc(100% - 40px); }
  .mast { min-height: 70px; gap: 14px; }
  .brand { font-size: 20px; }
  .brand span { margin-left: 8px; font-size: 9px; }
  .market-nav { gap: 12px; font-size: 12px; }
  .edition { font-size: 10px; letter-spacing: .06em; }
  .hero { padding: 24px 0 28px; display: block; }
  .hero h1 { font-size: 42px; }
  .hero p { display: none; }
  .reader-grid { display: block; padding: 24px 0 56px; }
  .rail { display: none; }
  .mobile-picker { display: inline-flex; align-items: center; border: 1px solid #89958b; border-radius: 2px; background: transparent; color: var(--ink); padding: 10px 12px; font-size: 12px; }
  .company-header { align-items: start; }
  .company-header h2 { font-size: 32px; }
  .data-meta { display: none; }
  .filters { margin-top: 22px; }
  .filter { padding: 8px 11px; }
  .result-count { font-size: 10px; }
  .story-meta { font-size: 11px; }
  .story-meta time { max-width: 145px; text-align: right; }
  .story h3, .story:not(.lead) h3 { font-size: 23px; line-height: 1.48; }
  .story-excerpt { font-size: 16px; line-height: 1.85; }
  .story-media { margin: 16px 0 18px; }
  .story-footer { align-items: end; }
  .update-banner { align-items: start; flex-direction: column; }
  .footer { flex-direction: column; gap: 10px; }
  .disclaimer { margin: -32px 0 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .skeleton { animation: none; } }
