/* 首頁專用。資訊流列表與詳情繼續使用 field.css。配色與旁註相同。 */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/blog/assets/fonts/fraunces-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/blog/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/blog/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F3F0E7;
  --surface: #E7E1D4;
  --ink: #1F1E1B;
  --muted: #5E5A53;
  --rule: #D5CFC3;
  --yellow: #E2B122;
  --yellow-soft: #F0C94A;
  --serif-display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", "Songti TC", "Songti SC", "Noto Serif TC", "Noto Serif SC", PMingLiU, serif;
  --serif-text: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", "Songti TC", "Songti SC", "Noto Serif TC", "Noto Serif SC", PMingLiU, serif;
  --sans: "Avenir Next", "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", sans-serif;
  color-scheme: light;
}

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

html { text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}

img { max-width: 100%; }

h1, h2, h3, h4, p { overflow-wrap: break-word; }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.18;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow-soft);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  z-index: 40;
  text-decoration: none;
}

.skip:focus { transform: none; }

.thread {
  height: 6px;
  background: var(--yellow);
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.mast-row {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 0.62rem;
  height: 0.62rem;
  background: var(--yellow);
  align-self: center;
  flex: none;
}

.brand-name {
  font-family: var(--serif-display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-en {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav-desktop { display: none; }

.nav-desktop a,
.nav-mobile a {
  font-family: var(--sans);
  text-decoration: none;
  color: var(--ink);
}

.nav-desktop a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-desktop a[aria-current="page"] {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 calc(100% - 0.7rem);
}

.nav-mobile { position: relative; }

.nav-mobile summary {
  list-style: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  cursor: pointer;
}

.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% - 0.2rem);
  min-width: 9.5rem;
  padding: 0.25rem 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  z-index: 30;
}

.nav-mobile nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
}

.nav-mobile a[aria-current="page"] { background: var(--surface); }

.issue-head {
  padding: 1.6rem 0 1.25rem;
  border-bottom: 1px solid var(--ink);
}

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.issue-head h1 {
  margin: 0.35rem 0 0;
  max-width: 11em;
  font-size: clamp(2.15rem, 6.4vw, 4.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mark {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 86%;
}

.lede {
  max-width: 38rem;
  margin: 0.85rem 0 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.24rem);
}

.dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dateline a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.spread {
  display: grid;
  gap: 1.75rem;
  padding-top: 1.35rem;
}

.cover-link,
.lead,
.note-card,
.rail a,
.desk-more a {
  color: inherit;
  text-decoration: none;
}

.cover-link { display: block; min-width: 0; }

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 10;
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.is-plate {
  display: grid;
  place-items: end start;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-family: var(--serif-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cover-frame { margin-inline: -1rem; }

.cover-copy {
  position: relative;
  margin-top: -1.2rem;
  padding-top: 0.85rem;
  background: var(--paper);
}

.cover-copy h2,
.lead h3,
.note-card h3,
.rail h3,
.desk-more h3,
.lead h4,
.desk-more h4 {
  margin: 0.3rem 0 0;
}

.cover-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  letter-spacing: -0.02em;
}

.summary { margin: 0.55rem 0 0; }

.meta {
  margin: 0.55rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.clamp-4 { -webkit-line-clamp: 4; }

.rail-panel {
  background: var(--surface);
  margin-inline: -1rem;
  padding: 1.1rem 1rem 0.35rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.section-head h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.more {
  flex: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.rail,
.shelf,
.desk-more,
.channels {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail { margin-top: 0.35rem; }

.rail a,
.desk-more a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}

.rail-index {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.35rem;
}

.rail h3,
.desk-more h3,
.desk-more h4 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.band {
  padding: 2.4rem 0 0;
}

.band-rule {
  border-top: 1px solid var(--ink);
  padding-top: 1.15rem;
}

.deck {
  max-width: 36rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.quiet {
  margin: 0.8rem 0 0;
  max-width: 36rem;
}

.quiet a { text-underline-offset: 0.18em; }

.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.note-card .frame { margin-bottom: 0.75rem; }

.note-card h3 { font-size: 1.28rem; }

.desk { margin-top: 1.6rem; }

.desk-bar {
  border-top: 1px solid var(--ink);
  padding-top: 0.75rem;
}

.desk-bar h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.desk-bar a {
  text-decoration: none;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.22em;
  background-position: 0 88%;
}

.desk-body {
  display: grid;
  gap: 1rem;
  margin-top: 0.9rem;
}

.lead { display: block; min-width: 0; }

.lead-copy {
  margin-top: 0.75rem;
  border-top: 3px solid var(--yellow);
  padding-top: 0.7rem;
}

.lead h3,
.lead h4 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }

.spread > *,
.desk-body > *,
.shelf > *,
.note-card,
.lead,
.cover-link { min-width: 0; }

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin-top: 0.4rem;
}

.channels a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer {
  margin-top: 2.8rem;
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  text-decoration: none;
}

.site-footer-copy,
.site-footer-meta {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-meta {
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

@media (max-width: 479px) {
  .brand-en { display: none; }
}

@media (min-width: 720px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.1rem;
    align-items: end;
  }
  .lead-copy {
    margin-top: 0;
    border-top: 0;
    border-left: 3px solid var(--yellow);
    padding: 0.15rem 0 0.15rem 0.95rem;
  }
}

@media (min-width: 768px) {
  .wrap { width: min(72rem, calc(100% - 4rem)); }
  .nav-desktop { display: flex; gap: 1.35rem; }
  .nav-mobile { display: none; }
  .cover-frame,
  .rail-panel { margin-inline: 0; }
  .rail-panel { padding: 1.2rem 1.25rem 0.45rem; }
  .cover-link { display: grid; }
  .cover-frame,
  .cover-copy { grid-area: 1 / 1; }
  .cover-copy {
    align-self: end;
    justify-self: end;
    width: min(32rem, 76%);
    margin: 0;
    padding: 1.05rem 0 0 1.2rem;
  }
  .spread.is-solo .rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .spread:not(.is-solo) {
    grid-template-columns: minmax(0, 1.42fr) minmax(16.5rem, 0.78fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desk-body {
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.72fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .lead { display: block; }
  .lead-copy {
    margin-top: -1.8rem;
    margin-left: 1.4rem;
    border-left: 0;
    border-top: 3px solid var(--yellow);
    padding: 0.75rem 0 0 0;
    background: var(--paper);
    position: relative;
  }
}

@media (min-width: 1440px) {
  .wrap { width: min(76rem, calc(100% - 8rem)); }
}

@media (hover: hover) {
  .frame img { transition: transform 0.45s ease; }
  a:hover .frame img { transform: scale(1.035); }
  .cover-link:hover h2,
  .lead:hover h3,
  .lead:hover h4,
  .note-card:hover h3,
  .rail a:hover h3,
  .desk-more a:hover h3,
  .desk-more a:hover h4,
  .more:hover,
  .dateline a:hover,
  .channels a:hover,
  .footer-links a:hover,
  .desk-bar a:hover {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .thread, .mast, .nav-mobile, .dateline { display: none !important; }
  body { background: #fff; color: #000; }
  .rail-panel { background: transparent; }
}
