* {
  box-sizing: border-box;
}

:root {
  --paper: #f7f4ed;
  --ink: #25231f;
  --muted: #817b72;
  --line: #ddd7cc;
  --accent: #875043;

  --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC",
    "Noto Serif CJK TC", "PMingLiU", serif;

  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang TC", "Noto Sans TC", sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.95;
}

.site-header {
  max-width: 1180px;
  margin: auto;
  padding: 34px 52px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.site-brand a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  font-size: 34px;
  font-weight: 600;
}

.brand-dot {
  font-size: 24px;
  margin-left: 5px;
  color: var(--muted);
}

.slogan {
  display: block;
  color: var(--muted);
  font: 12px/1.4 var(--sans);
  letter-spacing: .12em;
}

.site-header nav {
  display: flex;
  gap: 26px;
  font: 14px/1.4 var(--sans);
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:hover,
.read-more:hover {
  color: var(--accent);
}

.main-content {
  max-width: 980px;
  margin: auto;
  padding: 72px 52px 100px;
}

.hero {
  padding: 18px 0 72px;
}

.eyebrow,
.page-header span,
.section-heading span {
  font: 12px/1.4 var(--sans);
  letter-spacing: .16em;
  color: var(--muted);
}

.hero h1 {
  margin: 10px 0 25px;
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 500;
  line-height: 1.15;
}

.hero h1 i {
  font-style: normal;
  font-size: .55em;
  margin-left: 8px;
  color: var(--muted);
}

.intro {
  max-width: 680px;
  margin: 0;
  color: #4b4741;
  font-size: 21px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.post-card {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.post-meta {
  color: var(--muted);
  font: 12px/1.5 var(--sans);
}

.post-card h3 {
  margin: 8px 0;
  font-size: 27px;
  font-weight: 500;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card p {
  max-width: 720px;
  color: #5e5951;
  margin: 0 0 12px;
}

.read-more {
  font: 13px/1.5 var(--sans);
  color: var(--accent);
  text-decoration: none;
}

/* 文章分類 */

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.category-card {
  display: block;
  padding: 26px 28px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  transition: border-color .2s ease, transform .2s ease;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}

.category-card span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-block {
  max-width: 720px;
  padding: 85px 0;
}

.about-block h2 {
  font-size: 32px;
  font-weight: 500;
}

.manifesto {
  padding: 75px 0 25px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.manifesto p {
  font-size: 28px;
  line-height: 1.8;
}

.page-header {
  padding-bottom: 35px;
  margin-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 10px 0 0;
  font-size: 48px;
  font-weight: 500;
}

.main-content p {
  max-width: 760px;
}

.post {
  max-width: 760px;
  margin: auto;
}

.post-header {
  padding-bottom: 30px;
  margin-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  margin: 8px 0;
  font-size: 48px;
  font-weight: 500;
}

.post-category,
.post-header time {
  color: var(--muted);
  font: 12px/1.5 var(--sans);
}

.post-content p {
  margin: 0 0 1.6em;
}

/* 文章圖片 */

.post-content img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 30px auto 12px;
}

/* YouTube 橫向播放器 */

.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  margin: 45px auto;
  overflow: hidden;
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.back-link {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font: 13px/1.5 var(--sans);
}

.back-link a {
  color: var(--accent);
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.notice-list li {
  display: flex;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.notice-list span {
  color: var(--muted);
  font: 12px/1.5 var(--sans);
}


/* =========================================================
   Footer
   ========================================================= */

footer {
  max-width: 1180px;
  margin: auto;
  padding: 25px 52px 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.5 var(--sans);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  white-space: nowrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16px;
  height: 16px;

  color: var(--muted);
  text-decoration: none;

  transition:
    color .2s ease,
    transform .2s ease;
}

.social-link svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

a {
  color: var(--accent);
}

.empty {
  color: var(--muted);
}


/* =========================================================
   手機版
   ========================================================= */

@media (max-width: 700px) {

  body {
    font-size: 17px;
    font-family: var(--serif);
  }

  .site-header {
    display: block;
    padding: 24px 22px 18px;
  }

  .brand-name {
    font-size: 30px;
  }

  .site-header nav {
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .main-content {
    padding: 48px 22px 70px;
  }

  .hero {
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .intro {
    font-size: 19px;
  }

  .page-header h1,
  .post-header h1 {
    font-size: 38px;
  }

  .section-heading {
    display: block;
  }

  .section-heading span {
    display: block;
    margin-top: 6px;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 22px;
  }

  .category-card strong {
    font-size: 18px;
  }

  .manifesto p {
    font-size: 23px;
  }

  /* 手機圖片 */

  .post-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 25px auto 10px;
  }

  /* 手機 YouTube 播放器 */

  .youtube-embed {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 35px auto;
  }

  .youtube-embed iframe {
    width: 100%;
    height: 100%;
  }

  /* 手機 Footer */

  footer {
    padding: 22px 22px 40px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
/* =========================================================
   索引 / Index
   ========================================================= */

.index-section {
  margin-top: 55px;
}

.index-section:first-of-type {
  margin-top: 0;
}

.tag-list,
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tag-item,
.archive-item {
  border-bottom: 1px solid var(--line);
}

.tag-item a,
.archive-item a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
}

.tag-item a:hover,
.archive-item a:hover {
  color: var(--accent);
}

.tag-name {
  font-size: 18px;
}

.tag-count {
  flex-shrink: 0;
  color: var(--muted);
  font: 12px/1.5 var(--sans);
}

.archive-year {
  font-size: 20px;
  font-weight: 500;
}

.index-note {
  margin: 20px 0 0;
  color: var(--muted);
  font: 13px/1.8 var(--sans);
}

.archive-year-group {
  margin-bottom: 55px;
}

.archive-year-group h2 {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 500;
}

.archive-year-group .post-card:first-child {
  padding-top: 30px;
}

.tag-result-header {
  padding-bottom: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tag-result-header h1 {
  margin: 8px 0;
  font-size: 42px;
  font-weight: 500;
}

.tag-result-header span {
  color: var(--muted);
  font: 12px/1.5 var(--sans);
  letter-spacing: .14em;
}

.index-empty {
  color: var(--muted);
  padding: 25px 0;
}

@media (max-width: 700px) {

  .index-section {
    margin-top: 45px;
  }

  .tag-item a,
  .archive-item a {
    padding: 14px 0;
  }

  .tag-name {
    font-size: 17px;
  }

  .archive-year {
    font-size: 18px;
  }

  .tag-result-header h1 {
    font-size: 36px;
  }
}
  .social-links {
    gap: 13px;
  }
}
