/*
Theme Name: 新通訊（實驗還原）
Theme URI: https://2cm.iba.works
Author: HMG restore
Description: Lookalike skeleton for 2cm.com.tw experimental restore. Not pixel-perfect.
Version: 0.1.0
Text Domain: twocm
*/

:root {
  --brand: #0b4f8a;
  --brand-dark: #072f52;
  --accent: #e85d04;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --rule: #d0dae6;
  --max: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.site-header a { color: #fff; }

.site-header__inner,
.site-footer__inner,
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.site-brand {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.site-brand span { color: var(--accent); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-nav a { font-size: 0.95rem; font-weight: 500; opacity: 0.92; }
.site-nav a:hover { opacity: 1; text-decoration: none; border-bottom: 2px solid var(--accent); }

.banner {
  background: linear-gradient(120deg, var(--brand), #1a6fb5);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 1.5rem;
}

.banner h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.banner p { margin: 0; opacity: 0.9; }

.restore-note {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #664d03;
  padding: 0.75rem 1rem;
  margin: 1rem auto;
  max-width: var(--max);
  border-radius: 6px;
  font-size: 0.9rem;
}

.article-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  padding-bottom: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__body { padding: 1rem 1.1rem 1.25rem; flex: 1; }
.card__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}
.card__title a { color: var(--ink); }
.card__excerpt { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.single-article {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
}

.single-article .entry-title {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--brand-dark);
}

.entry-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.entry-content p { margin: 0 0 1.1em; }
.entry-content h2,
.entry-content h3 {
  color: var(--brand-dark);
  margin: 1.6em 0 0.6em;
}

.site-footer {
  background: var(--brand-dark);
  color: #c9d7e6;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.site-footer a { color: #fff; }

@media (max-width: 720px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; padding: 0.85rem 1.25rem; }
  .single-article { padding: 1.25rem 1rem 1.75rem; }
  .single-article .entry-title { font-size: 1.45rem; }
}
