/* Hallmark · shape: Index-First (a daily edition, /), Long Document (/story) · genre: editorial · theme: Editorial (deal 3/3, seed daily-news-publication-startup-d00c·46a2e611·2026-10-27·r0) · redesign: full · job: read today's stories
 * hero: Stage (/), Banner (/story) · nav: masthead under an ink top band · footer: colophon wordmark line on the ink · imagery: the sources' own share images (og:image) on picks and rows · signature: the day's lead story set as a condensed cover line
 * axes: light/display-condensed/chromatic-green · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: P, a feed carries no argument of its own; the masthead tagline and the lead story set as a cover line carry the voice */
/* Hallmark · dismissed 77 · a daily edition is its top band, lead story, today's picks, the full index and the colophon; more sections would pad the paper */
/* Hallmark · reworded "每天一點，走在前面。" to the masthead tagline · the h1 now carries the day's lead story */
/* Hallmark · dropped #nav, #breadcrumb, #github-count, #ph-count, the GitHub and Product Hunt views · the user asked to remove that menu and label each story by kind instead */
/* Hallmark · dropped #section-subtitle, the intro subtitle, the sidebar pitch and card insights on the index · the owner asked for a news page; insights stay in each story's detail */
/* Hallmark · answered F15 · the section grids share 96px; the 24px pair is the top band's two short notes and 40px the index row's own columns */
/* Hallmark · waive 78 · Long Document shape on /story · the report's section heads are inline at 31px under its 60px title */
/* Hallmark · waive 59 · Long Document shape on /story · the parts of one story (Benefits, Our take, At a glance) are parted by rules and 64px, not landing sections */
/* Hallmark · waive 44c · Banner posture on /story · title, standfirst and the source image lead and the report follows at once */
/* Hallmark · waive 77 · a facts table of four rows on /story · the 38% column is the at-a-glance sidebar beside the report body */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --font-display: "Bricolage Grotesque", "PingFang TC", "Noto Sans TC",
    "Hiragino Sans", ui-sans-serif, sans-serif;
  --font-body: "Source Serif 4", "Noto Serif TC", "Songti TC",
    "Hiragino Mincho ProN", ui-serif, Georgia, serif;
  --color-on-ink: var(--color-paper);
  --color-on-ink-muted: color-mix(in oklab, var(--color-paper) 78%, var(--color-ink));
  --color-backdrop: color-mix(in oklab, var(--color-ink) 45%, transparent);
  --text-wordmark: clamp(3rem, 6vw + 1rem, 6.5rem);
}
:lang(ja) {
  --font-display: "Bricolage Grotesque", "Hiragino Sans", "Noto Sans JP",
    ui-sans-serif, sans-serif;
  --font-body: "Source Serif 4", "Hiragino Mincho ProN", "Noto Serif JP",
    "Yu Mincho", ui-serif, Georgia, serif;
}

body {
  color: var(--color-ink-2);
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums;
}
h1,
h2,
h3,
h4 {
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 96;
  color: var(--color-ink);
  font-variant-numeric: lining-nums tabular-nums;
}
small,
label,
.btn,
.story-meta,
.dateline,
.lang-switch button,
.filters button,
.stories-count,
.text-button,
.toolbar select,
.toolbar input {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12;
}
a {
  text-decoration-color: var(--color-rule-2);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}
a:hover {
  text-decoration-color: var(--color-accent);
}

/* Masthead */
.masthead {
  border-bottom: var(--rule-heavy) solid var(--color-ink);
  padding-block: var(--space-md);
}
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
}
.dateline {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.dateline time {
  color: var(--color-ink);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: var(--text-wordmark);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}
.tagline {
  margin-top: var(--space-xs);
  text-align: center;
  font-size: var(--text-lead);
  color: var(--color-ink-2);
}
.lang-switch {
  justify-self: end;
  display: flex;
}
.lang-switch button {
  min-height: 44px;
  padding-inline: var(--space-sm);
  border: var(--rule-hair) solid var(--color-ink);
  background: none;
  color: var(--color-ink);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
}
.lang-switch button + button {
  border-left: 0;
}

/* Shared controls */
.btn,
.filters button,
.lang-switch button,
.bookmark,
.text-button,
.dialog-close {
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out);
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-card);
  font-size: var(--text-md);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
.btn--primary:hover {
  background: var(--color-ink-2);
}
.btn--secondary {
  background: none;
  color: var(--color-ink);
}
.btn--secondary:hover,
.lang-switch button:hover,
.filters button:hover {
  background: var(--color-paper-2);
}
.btn:active,
.filters button:active,
.lang-switch button:active,
.bookmark:active {
  background: var(--color-paper-3);
}
.btn--primary:active {
  background: var(--color-ink);
  color: var(--color-paper-2);
}
.lang-switch button.active,
.lang-switch button.active:hover,
.filters button.selected,
.filters button.selected:hover {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Front page: the lead story beside its source image, the rest of today below */
.front {
  padding-block: var(--space-xl) var(--space-3xl);
}
.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: center;
}
.lead-story.has-visual {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--space-2xl);
}
.lead-story h1 {
  max-width: 22ch;
  font-size: var(--text-section);
  line-height: 1;
}
.lead-story.has-visual h1 {
  max-width: none;
}
.lead-image {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-paper-2);
}
.lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent);
  outline-offset: -1px;
  filter: saturate(0.9) contrast(1.04);
}
.lead-story .story-meta {
  margin-top: var(--space-md);
}
.standfirst {
  margin-top: var(--space-lg);
  max-width: 52ch;
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--color-ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.also {
  padding-bottom: var(--section-gap-s);
}
.also .container {
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-md);
}
.also h2 {
  font-size: var(--text-xl);
}
.also-list {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-columns);
}
.also-list .thumb {
  margin-bottom: var(--space-sm);
}
.also-link {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "wdth" 75, "opsz" 48;
  font-size: var(--text-lg);
  line-height: 1.15;
  color: var(--color-ink);
  text-decoration: none;
  overflow-wrap: break-word;
}
.also-link:hover,
.title-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

/* Byline row: kind, field, host, date */
.story-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-md);
  row-gap: var(--space-3xs);
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.story-meta .kind {
  color: var(--color-ink-2);
}
.story-meta .kind--accent {
  color: var(--color-accent);
}
.story-meta .today {
  color: var(--color-ink);
}

.notice {
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper-2);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink);
  font-size: var(--text-sm);
}

/* All stories */
.stories {
  padding-bottom: var(--section-gap);
}
.stories-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-lg);
}
.stories-count {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-block: var(--space-xl) var(--space-lg);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.filters button {
  min-height: 44px;
  padding-inline: var(--space-md);
  border: var(--rule-hair) solid var(--color-ink);
  background: none;
  color: var(--color-ink);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
}
.search {
  flex: 1 1 240px;
}
.toolbar input,
.toolbar select {
  min-height: 48px;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  padding-inline: var(--space-sm);
  font-size: var(--text-md);
}
.toolbar input {
  width: 100%;
}
.toolbar input::placeholder {
  color: var(--color-muted);
}
.sort {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.kind-group + .kind-group {
  margin-top: var(--space-2xl);
}
.kind-group h3 {
  max-width: none;
  font-size: var(--text-xl);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kind-group h3 + .story-list .story:first-child {
  border-top: 0;
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: var(--space-xl);
  align-items: start;
  padding-block: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  scroll-margin-top: var(--space-lg);
}
.story.has-thumb {
  grid-template-columns: 160px minmax(0, 4fr) minmax(0, 6fr) auto;
}
.story h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-title);
  letter-spacing: var(--tracking-display);
  line-height: 1.3;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: pretty;
}
.title-link {
  color: inherit;
  text-decoration: none;
}
.story-summary {
  max-width: 65ch;
  color: var(--color-ink-2);
}
.bookmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--rule-hair) solid transparent;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
}
.bookmark:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.bookmark[aria-pressed="true"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.empty {
  padding-block: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.empty p {
  margin-top: var(--space-xs);
}

/* Top band: the edition's line, schedule and disclaimer on the ink */
.topband {
  background: var(--color-ink);
  color: var(--color-on-ink-muted);
  padding-block: var(--space-sm);
}
.topband-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-md) var(--space-3xl);
  align-items: center;
}
.topband-statement {
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--color-on-ink);
}
.topband-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  font-size: var(--text-sm);
}
.text-button {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--color-on-ink);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-decoration-color: var(--color-on-ink-muted);
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.text-button:hover {
  text-decoration-color: var(--color-on-ink);
}
.topband :focus-visible,
.colophon :focus-visible {
  outline-color: var(--color-on-ink);
}

/* Today's picks: three across, each with the source's own share image */
.picks {
  padding-bottom: var(--section-gap-s);
}
.picks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-lg);
}
.picks-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.picks-list {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--gap-columns);
}
.pick h3 {
  margin-top: var(--space-xs);
  font-size: var(--text-title);
  line-height: 1.3;
  max-width: none;
}
.pick-reason {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
}
.pick-image,
.thumb {
  margin: 0;
  overflow: hidden;
  background: var(--color-paper-2);
}
.pick-image {
  aspect-ratio: 16 / 9;
  max-height: 420px;
  margin-bottom: var(--space-md);
}
.thumb {
  aspect-ratio: 16 / 9;
}
.pick-image img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent);
  outline-offset: -1px;
  filter: saturate(0.9) contrast(1.04);
}

/* Colophon: the wordmark line on the ink */
.colophon {
  background: var(--color-ink);
  color: var(--color-on-ink-muted);
  padding-block: var(--space-xl);
}
.colophon-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  font-size: var(--text-sm);
}
.wordmark--small {
  font-size: var(--text-2xl);
  color: var(--color-on-ink);
}

/* Story page: one report set as a long document */
.masthead--compact .wordmark {
  font-size: var(--text-section);
}
.back-link {
  color: var(--color-ink);
  font-size: var(--text-sm);
}
.story-page {
  padding-bottom: var(--section-gap-s);
}
.article-head {
  padding-block: var(--space-2xl) var(--space-xl);
}
.article-head h1 {
  max-width: 24ch;
  margin-top: var(--space-md);
  font-size: var(--text-display-s);
  line-height: 1.02;
}
.article-head .standfirst {
  max-width: 60ch;
}
.btn svg {
  margin-right: var(--space-xs);
}
.article-image {
  margin: 0;
}
.article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  object-fit: cover;
  background: var(--color-paper-2);
  outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent);
  outline-offset: -1px;
  filter: saturate(0.9) contrast(1.04);
}
.article-image figcaption {
  margin-top: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: var(--space-3xl);
  padding-top: var(--space-2xl);
}
.article-facts {
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-md);
  align-self: start;
}
.article-facts h2 {
  font-size: var(--text-lg);
}
.article-facts table {
  width: 100%;
  margin-top: var(--space-sm);
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.article-facts th,
.article-facts td {
  padding-block: var(--space-xs);
  border-top: var(--rule-hair) solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}
.article-facts th {
  width: 40%;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-muted);
}
.article-facts td {
  color: var(--color-ink);
  overflow-wrap: break-word;
}
.article-body section + section {
  margin-top: var(--space-2xl);
}
.article-body h2 {
  font-size: var(--text-2xl);
  max-width: 32ch;
}
.article-body p {
  max-width: 65ch;
  margin-top: var(--space-md);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-ink-2);
}
.article-body .disclosure {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.more {
  padding-top: var(--section-gap-s);
}
.more .container {
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-lg);
}
.more .picks-list {
  margin-top: var(--space-xl);
}

/* Detail dialog */
dialog {
  width: min(720px, calc(100% - 2 * var(--space-md)));
  max-height: calc(100dvh - 2 * var(--space-xl));
  padding: var(--space-xl);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: 0;
  background: var(--color-paper);
  color: var(--color-ink-2);
}
dialog::backdrop {
  background: var(--color-backdrop);
}
#detail-content h2 {
  margin-top: var(--space-md);
  font-size: var(--text-2xl);
  max-width: none;
}
#detail-content section {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}
#detail-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}
#detail-content > p:not(.story-meta):not(.standfirst) {
  margin-top: var(--space-md);
}
#detail-content .standfirst {
  font-size: var(--text-lg);
}
.insight-detail {
  background: var(--color-paper-2);
  padding: var(--space-md);
  border-top-color: var(--color-rule-2);
}
.source-link {
  color: var(--color-ink);
}
.source-state {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  font-size: var(--text-sm);
}
.source-state li {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-sm);
  padding-block: var(--space-xs);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.dialog-close {
  float: right;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) 0 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--color-paper-2);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-lg);
  transform: translate(-50%, var(--space-2xl));
  opacity: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: var(--text-sm);
  z-index: var(--z-toast);
  transition:
    transform var(--dur-short) var(--ease-out),
    opacity var(--dur-short) var(--ease-out);
  pointer-events: none;
}
#toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 60rem) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .wordmark {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
  }
  .article-facts {
    order: 2;
  }
  .lead-story.has-visual,
  .topband-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
  }
  .also-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topband-inner {
    gap: var(--space-sm);
  }
  .picks-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .story {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-sm) var(--space-md);
  }
  .story-summary {
    grid-column: 1;
    grid-row: 2;
  }
  .bookmark {
    grid-column: 2;
    grid-row: 1;
  }
  .story.has-thumb {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }
  .story.has-thumb .thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .story.has-thumb .story-main,
  .story.has-thumb .story-summary {
    grid-column: 2;
  }
  .story.has-thumb .bookmark {
    grid-column: 3;
  }
}
@media (max-width: 40rem) {
  .also-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .topband-statement {
    font-size: var(--text-xl);
  }
  .topband-notes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
  }
  .story.has-thumb {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }
  .dateline span,
  .story-meta .host {
    display: none;
  }
  .lang-switch button {
    padding-inline: var(--space-xs);
  }
  dialog {
    padding: var(--space-lg);
  }
}
