/* brutalist.css — overrides for brutalist theme */

[data-theme="brutalist"] .masthead {
  border-bottom: 4px solid var(--fg);
}

[data-theme="brutalist"] .masthead-brand {
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

[data-theme="brutalist"] .navbar {
  border-top: none;
  border-bottom: 4px solid var(--fg);
  padding: 0;
}

[data-theme="brutalist"] .navbar a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 14px 18px;
  border-right: 1px solid var(--fg);
}

[data-theme="brutalist"] .navbar a:first-child {
  padding-left: 18px;
}

[data-theme="brutalist"] .navbar a:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

[data-theme="brutalist"] .section-header {
  border-bottom: 4px solid var(--fg);
  padding-bottom: 6px;
}

[data-theme="brutalist"] .section-title {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

[data-theme="brutalist"] .article-item {
  border-bottom: 1px solid var(--fg);
  padding: 12px 0;
}

[data-theme="brutalist"] .article-item:hover {
  background: var(--fg);
  color: var(--bg);
  padding: 12px 14px;
  margin: 0 -14px;
}

[data-theme="brutalist"] .article-item:hover .article-title,
[data-theme="brutalist"] .article-item:hover .article-time,
[data-theme="brutalist"] .article-item:hover .article-read {
  color: var(--bg);
}

[data-theme="brutalist"] .article-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

[data-theme="brutalist"] .article-time {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[data-theme="brutalist"] .site-footer {
  border-top: 4px solid var(--fg);
}

[data-theme="brutalist"] .page-title {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

[data-theme="brutalist"] .article-canvas h1 {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

[data-theme="brutalist"] .article-canvas h2 {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--fg);
  padding-top: 16px;
  margin-top: 32px;
}

[data-theme="brutalist"] .article-canvas h2::before {
  display: none;
}

[data-theme="brutalist"] .meta-category {
  border: 1px solid var(--accent);
  padding: 2px 8px;
}

/* === TYPOGRAPHY SCALE (brutalist homepage standard) === */
[data-theme="brutalist"] .masthead-brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 0.9;
}

[data-theme="brutalist"] .section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

[data-theme="brutalist"] .article-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

[data-theme="brutalist"] .masthead-date,
[data-theme="brutalist"] .masthead-tagline,
[data-theme="brutalist"] .article-time,
[data-theme="brutalist"] .article-read {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[data-theme="brutalist"] .section-more {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* === BODY TEXT SIZE (unified) === */
[data-theme="brutalist"] body {
  font-size: 16px;
  line-height: 1.6;
}

[data-theme="brutalist"] .article-title {
  font-size: 16px;
}

[data-theme="brutalist"] .article-canvas p,
[data-theme="brutalist"] .article-canvas li {
  font-size: 17px;
  line-height: 1.7;
}

[data-theme="brutalist"] .article-item-title {
  font-size: 16px;
}

[data-theme="brutalist"] .article-item-subtitle {
  font-size: 14px;
}

/* === ARTICLE HEADER ZONE === */
[data-theme="brutalist"] .article-canvas .article-meta {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

[data-theme="brutalist"] .article-canvas .article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 24px;
  border-bottom: 4px solid var(--fg);
}

[data-theme="brutalist"] .article-canvas .article-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-2);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

/* === SOURCES BLOCK (brutalist) === */
[data-theme="brutalist"] .article-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 4px solid var(--fg);
}

[data-theme="brutalist"] .article-sources h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--accent);
}

[data-theme="brutalist"] .source-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

[data-theme="brutalist"] .source-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

[data-theme="brutalist"] .source-item:last-child {
  border-bottom: none;
}

[data-theme="brutalist"] .source-item a {
  border-bottom: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="brutalist"] .source-item a:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 1px 4px;
  margin: -1px -4px;
}

[data-theme="brutalist"] .source-item .source-name {
  color: var(--accent);
  font-weight: 600;
}

[data-theme="brutalist"] .article-source-count {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

/* === PREMIUM REFINEMENT (spacing + hierarchy) === */

/* 首頁：section 間加大間距 */
[data-theme="brutalist"] .section {
  margin-bottom: 56px;
}

/* 首頁：section header 與列表間的呼吸 */
[data-theme="brutalist"] .section-header {
  margin-bottom: 20px;
}

/* 文章列表：行間更寬鬆 */
[data-theme="brutalist"] .article-item {
  padding: 14px 0;
}

/* masthead：品牌和 nav 之間的間距 */
[data-theme="brutalist"] .masthead {
  padding: 24px 0 0;
}

[data-theme="brutalist"] .masthead-brand {
  margin-bottom: 16px;
}

/* 文章頁：標題區上方大留白 */
[data-theme="brutalist"] .article-canvas {
  padding-top: 48px;
}

/* 文章頁：meta 和標題之間 */
[data-theme="brutalist"] .article-canvas .article-meta {
  margin-bottom: 32px;
}

/* 文章頁：段落間距加大 */
[data-theme="brutalist"] .article-canvas p {
  margin-bottom: 20px;
}

/* 文章頁：h2 章節標題——上方大留白，下方適中 */
[data-theme="brutalist"] .article-canvas h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
}

/* 層級：muted 色更淡，拉開主次 */
[data-theme="brutalist"] .article-time,
[data-theme="brutalist"] .article-read,
[data-theme="brutalist"] .meta-date,
[data-theme="brutalist"] .meta-reading-time {
  color: var(--muted);
  font-weight: 400;
}

/* 標題列表：hover 更微妙（不要全黑反白，改 accent underline） */
[data-theme="brutalist"] .article-item:hover {
  background: transparent;
  padding: 14px 0;
  margin: 0;
}

[data-theme="brutalist"] .article-item:hover .article-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

[data-theme="brutalist"] .article-item:hover .article-time,
[data-theme="brutalist"] .article-item:hover .article-read {
  color: var(--muted);
}

/* footer 更輕 */
[data-theme="brutalist"] .site-footer {
  margin-top: 64px;
  padding: 32px;
}

/* === VRT NWS STYLE: HERO + NEWS LIST === */

[data-theme="brutalist"] .hero-block {
  padding: 32px 0;
  border-bottom: 4px solid var(--fg);
  margin-bottom: 32px;
}

[data-theme="brutalist"] .hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

[data-theme="brutalist"] .hero-link:hover .hero-title {
  color: var(--accent);
}

[data-theme="brutalist"] .hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

[data-theme="brutalist"] .hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: color 0.15s;
}

[data-theme="brutalist"] .hero-deck {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-2);
  margin-bottom: 12px;
  max-width: 60ch;
}

[data-theme="brutalist"] .hero-time {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* News section */
[data-theme="brutalist"] .news-section {
  margin-bottom: 40px;
}

[data-theme="brutalist"] .news-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fg);
  margin-bottom: 0;
}

[data-theme="brutalist"] .news-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

[data-theme="brutalist"] .news-section-more {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}

[data-theme="brutalist"] .news-section-more:hover {
  text-decoration: underline;
}

/* News list */
[data-theme="brutalist"] .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-theme="brutalist"] .news-item {
  border-bottom: 1px solid var(--border-soft);
}

[data-theme="brutalist"] .news-item a {
  display: grid;
  grid-template-columns: minmax(7ch, max-content) minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

[data-theme="brutalist"] .news-item a:hover {
  background: transparent;
}

[data-theme="brutalist"] .news-item a:hover .news-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

[data-theme="brutalist"] .news-tag {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  min-width: 7ch;
}

[data-theme="brutalist"] .news-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.4;
  min-width: 0;
  transition: color 0.1s;
}

[data-theme="brutalist"] .news-time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 768px) {
  [data-theme="brutalist"] .news-item a {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  [data-theme="brutalist"] .news-tag {
    width: 100%;
  }
  [data-theme="brutalist"] .news-time {
    width: 100%;
    margin-top: 4px;
  }
}

/* === NEWS EXCERPT === */
[data-theme="brutalist"] .news-excerpt {
  display: block;
  grid-column: 2 / 4;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0;
}


/* === FEATURE / 專欄 BLOCK === */
[data-theme="brutalist"] .feature-block {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 4px solid var(--fg);
}

[data-theme="brutalist"] .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

[data-theme="brutalist"] .feature-card {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

[data-theme="brutalist"] .feature-card:hover {
  background: var(--surface-warm);
}

[data-theme="brutalist"] .feature-card:hover .feature-card-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

[data-theme="brutalist"] .feature-card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color 0.1s;
}

[data-theme="brutalist"] .feature-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="brutalist"] .feature-card-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: auto;
}

@media (max-width: 768px) {
  [data-theme="brutalist"] .feature-grid {
    grid-template-columns: 1fr;
  }
  [data-theme="brutalist"] .feature-card {
    border-right: none;
  }
}


/* === ARTICLE BACK LINK === */
[data-theme="brutalist"] .article-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s;
}

[data-theme="brutalist"] .article-back:hover {
  color: var(--accent);
}


/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0;
}

.skip-link:focus {
  top: 8px;
}

/* === THEME TOGGLE === */
[data-theme="brutalist"] .theme-toggle {
  background: none;
  border: 2px solid var(--border-soft);
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}

[data-theme="brutalist"] .theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

[data-theme="brutalist"] .masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* === NAVBAR ACTIVE === */
[data-theme="brutalist"] .navbar a.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  margin-bottom: -1px;
}


/* === PAGINATION NUMBERS === */
[data-theme="brutalist"] .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid var(--fg);
  flex-wrap: wrap;
}

[data-theme="brutalist"] .pagination a,
[data-theme="brutalist"] .pagination span {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--fg-2);
}

[data-theme="brutalist"] .pagination a:hover {
  background: var(--fg);
  color: var(--bg);
}

[data-theme="brutalist"] .pagination .current {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

[data-theme="brutalist"] .pagination .disabled {
  color: var(--border-soft);
  pointer-events: none;
}

[data-theme="brutalist"] .pagination .ellipsis {
  color: var(--muted);
  padding: 6px 4px;
}
