.editorial-page {
  --ed-ink: var(--gb-ink);
  --ed-muted: var(--gb-muted);
  --ed-page: var(--gb-page);
  --ed-surface: var(--gb-surface);
  --ed-border: var(--gb-border);
  --ed-border-light: var(--gb-border-light);
  --ed-brand: var(--gb-brand);
  --ed-brand-secondary: var(--gb-brand-secondary);
  --ed-accent: var(--gb-accent);
  --ed-radius: 0.625rem;
  --ed-shadow-sm: 0 1px 2px rgba(38, 35, 42, 0.06);
  --ed-shadow-md: 0 4px 12px rgba(38, 35, 42, 0.08);

  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ed-ink);
  line-height: 1.8;
}

.editorial-page .editorial-shell {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.editorial-page .editorial-prose {
  max-width: 72ch;
  margin-inline: auto;
}

.editorial-page .editorial-header {
  margin-bottom: 2rem;
}

.editorial-page .editorial-header p {
  color: var(--ed-muted);
  margin: 0.5rem 0 0;
}

.editorial-page h1 {
  font-size: clamp(2rem, 1.75rem + 1vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.editorial-page h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 2rem 0 0.75rem;
}

.editorial-page h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem;
}

.editorial-page blockquote p:last-child {
  margin-bottom: 0;
}

/* biome-ignore lint/style/noDescendingSpecificity: child paragraph overrides generic paragraph spacing inside blockquote. */
.editorial-page blockquote p {
  color: var(--ed-muted);
  margin: 0 0 0.75rem;
}

.editorial-page blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--ed-surface);
  border-left: 4px solid var(--ed-brand-secondary);
  border-radius: 0 var(--ed-radius) var(--ed-radius) 0;
}

/* biome-ignore lint/style/noDescendingSpecificity: base paragraph style intentionally follows more specific blockquote paragraph. */
.editorial-page p {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.editorial-page a {
  color: var(--ed-brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
}

.editorial-page a:hover,
.editorial-page a:focus-visible {
  color: var(--ed-brand-secondary);
}

.editorial-page a:focus-visible {
  outline: 0.2rem solid var(--ed-brand);
  outline-offset: 0.15rem;
}

.editorial-page ul,
.editorial-page ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.editorial-page li {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.editorial-page li > ul,
.editorial-page li > ol {
  margin-top: 0.5rem;
}

.editorial-page hr {
  border: 0;
  border-top: 1px solid var(--ed-border);
  margin: 2rem 0;
}

.editorial-page figure {
  margin: 1.5rem 0;
}

.editorial-page figcaption {
  font-size: 0.875rem;
  color: var(--ed-muted);
  margin-top: 0.5rem;
}

.editorial-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.editorial-page .editorial-index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-page .editorial-index-card {
  position: relative;
  background-color: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.25rem;
  box-shadow: var(--ed-shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.editorial-page .editorial-index-card:hover {
  border-color: var(--ed-border-light);
  box-shadow: var(--ed-shadow-md);
}

.editorial-page .editorial-index-card h2 {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  margin: 0 0 0.5rem;
}

.editorial-page .editorial-index-card h2 a {
  text-decoration: none;
}

.editorial-page .editorial-index-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ed-radius);
}

.editorial-page .editorial-index-card p {
  margin: 0 0 0.75rem;
  color: var(--ed-muted);
}

.editorial-page .editorial-index-card time {
  font-size: 0.875rem;
  color: var(--ed-muted);
}

@media (max-width: 575.98px) {
  .editorial-page .editorial-shell {
    padding-inline: clamp(0.875rem, 3.5vw, 1.25rem);
    padding-block: 1.5rem;
  }

  .editorial-page h1 {
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2rem);
  }

  .editorial-page h2 {
    font-size: 1.125rem;
  }

  .editorial-page .editorial-index-card {
    padding: 1rem;
  }
}

@media (max-width: 389.98px) {
  .editorial-page .editorial-shell {
    padding-inline: 0.75rem;
  }

  .editorial-page h1 {
    font-size: 1.625rem;
  }
}
