:root {
  --ink: #17211b;
  --muted: #6d776f;
  --line: #dfe5dc;
  --paper: #f6f8f3;
  --card: #ffffff;
  --accent: #d96c3f;
  --accent-deep: #9f4124;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 108, 63, 0.10), transparent 30rem),
    var(--paper);
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  line-height: 1.75;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 243, 0.88);
  backdrop-filter: blur(12px);
}

.nav-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

.footer-row > :last-child { justify-self: end; }

.footer-credit {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font: 700 0.68rem/1 Arial, sans-serif;
  letter-spacing: 0.06em;
}

.nav-link, .read-link {
  color: var(--accent-deep);
  font: 700 0.76rem/1.2 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-content { padding: 78px 0 110px; }

.hero { max-width: 760px; padding: 8px 0 76px; }

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent-deep);
  font: 700 0.72rem/1.3 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { margin: 0 0 17px; font-size: 2rem; font-weight: 400; }
.count { padding-bottom: 20px; color: var(--muted); font: 0.8rem Arial, sans-serif; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.post-card, .empty-state {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 14px 40px rgba(23, 33, 27, 0.04);
}

.post-card { display: flex; flex-direction: column; }
.post-card h3 { margin: 0 0 14px; font-size: 1.45rem; font-weight: 400; line-height: 1.25; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-deep); }
.post-card p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); font-size: 0.96rem; line-height: 1.65; }
.read-link { margin-top: auto; }
.read-link span { display: inline-block; margin-left: 5px; font-size: 1rem; transition: transform 150ms ease; }
.read-link:hover span { transform: translate(3px, -3px); }

.post { max-width: 790px; margin: 0 auto; }
.post-header { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.post-header h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.7rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1.08; }
.post-body { padding-top: 42px; font-size: 1.06rem; }
.post-body h2 { margin: 2.2em 0 0.5em; font-size: 1.7rem; font-weight: 400; line-height: 1.25; }
.post-body h3 { margin: 1.7em 0 0.4em; font-size: 1.25rem; }
.post-body a { color: var(--accent-deep); }
.post-body blockquote { margin: 1.5rem 0; padding: 0.5rem 1.2rem; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body li { margin: 0.35rem 0; }

.empty-state { grid-column: 1 / -1; min-height: 180px; }
.empty-state h3 { margin-top: 0; font-size: 1.4rem; font-weight: 400; }
.empty-state p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font: 0.76rem Arial, sans-serif; }
.footer-row { min-height: 88px; }
.footer-row a { color: inherit; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max-width)); }
  .page-content { padding-top: 52px; }
  .hero { padding-bottom: 54px; }
  .post-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 4.4rem); }
  .footer-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; text-align: center; }
  .footer-row > :last-child { justify-self: center; }
}
