@font-face {
  font-family: "Dawn Song";
  src: url("headings.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f3eb;
  --ink: #3f322b;
  --muted: #6b5a4e;
  --red: #8b4f39;
  --red-hover: #6f3e2d;
  --line: #e3d9ca;
  --panel: #fffcf7;
  --serif: "Dawn Song", "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", serif;
  --body: "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.75 var(--body);
}
h1, h2, h3, figure, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.38; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none; }
section[id] { scroll-margin-top: 1.5rem; }
.frame { width: min(100% - 6rem, 71.5rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 2; transform: translateY(-150%); background: var(--paper); padding: .5rem; }
.skip:focus { transform: none; }

.masthead {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
}
.logo-mark { width: 3rem; height: 1.7rem; flex: none; }
.brand-type {
  font: 700 1.2rem/1.35 var(--serif);
  letter-spacing: .07em;
}
.brand-type span {
  font: 400 .72rem/1.2 var(--body);
  letter-spacing: .3em;
  margin-left: .35rem;
  color: var(--muted);
  white-space: nowrap;
}
.masthead nav { display: flex; align-items: center; gap: clamp(.9rem, 4vw, 2.25rem); }
.masthead nav a, .footer a { font-size: .9rem; text-decoration: none; }
.masthead nav a { min-height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap; }
.masthead nav a:hover, .footer a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .3em; }

.hero {
  display: grid;
  grid-template-columns: .91fr 1.09fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
  padding-block: clamp(3rem, 5vw, 4.7rem) clamp(2.9rem, 6vw, 5.1rem);
}
.hero h1 {
  font-size: clamp(3rem, 6.1vw, 5.35rem);
  letter-spacing: .025em;
  line-height: 1.23;
}
.hero h1 span { color: var(--red); }
.hero-copy p { color: var(--muted); margin-block: 1.35rem 1.55rem; font-size: clamp(1rem, 1.55vw, 1.18rem); line-height: 1.8; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .55rem 1.35rem;
  border-radius: .25rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .08em;
}
.primary { background: var(--red); }
.primary:hover { background: var(--red-hover); }
.hero-art { position: relative; }
.hero-art img {
  aspect-ratio: 1.52;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: .4rem .4rem 5rem .4rem;
}
.hero-art figcaption {
  position: absolute;
  right: .25rem;
  bottom: -1.65rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .13em;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.45rem;
}
.section-rule::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); }
.section-rule h2, .about h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.works, .about { max-width: 60rem; margin-inline: auto; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.entry {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1rem, 2.6vw, 1.9rem);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel);
}
.entry-no { align-self: start; color: var(--red); font: 700 1.6rem/1.3 var(--serif); }
.entry-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.entry h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.kind { color: var(--red); font-size: .85rem; font-weight: 600; letter-spacing: .065em; }
.entry-desc { color: var(--muted); }
.entry .button { margin-top: .35rem; }
.cover-link {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: .45rem;
  overflow: hidden;
  cursor: pointer;
}
.cover-link img { aspect-ratio: 1.55; object-fit: cover; transition: transform .25s ease; }
.cover-link:hover img { transform: scale(1.035); }
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .31em;
}
.text-button:hover { color: var(--red-hover); }
.about {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5.5vw, 4.5rem);
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 1rem 2rem;
}
.about p { color: var(--muted); line-height: 1.95; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  min-height: 5rem;
  font-size: .88rem;
  color: var(--muted);
}

dialog {
  width: min(44rem, 100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
  overflow: auto;
}
dialog::backdrop { background: #3f322ba8; }
.dialog-actions {
  display: flex;
  justify-content: end;
  background: var(--paper);
  padding-inline: 1.35rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.dialog-content { padding: clamp(1rem, 4vw, 2rem); }
.dialog-content h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: .85rem; }
.dialog-content img { border-radius: .3rem; }
.dialog-content p { margin-top: .85rem; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 780px) {
  .frame { width: min(100% - 2.5rem, 42rem); }
  .masthead { min-height: 4.2rem; }
  .hero { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.2rem 3.8rem; }
  .hero h1 { font-size: clamp(2.75rem, 9.5vw, 4.4rem); }
  .hero-copy p { margin-block: .8rem 1.15rem; }
  .hero-art img { aspect-ratio: 1.85; border-bottom-right-radius: 3rem; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .frame { width: calc(100% - 2rem); }
  .masthead { gap: .6rem; }
  .wordmark { gap: .45rem; }
  .logo-mark { width: 2.4rem; height: 1.36rem; }
  .brand-type { font-size: 1rem; }
  .brand-type span { display: block; margin: .12rem 0 0; font-size: .62rem; }
  .masthead nav { gap: 1rem; }
  .masthead nav a { font-size: .86rem; }
  .hero { padding-top: 1.8rem; }
}

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

/* 頁首 Logo：紅陶暖陽・單色橫幅版 */
.masthead { min-height: 6rem; padding-block: .75rem; }
.wordmark { gap: 1rem; }
.logo-mark { width: 4.25rem; height: 2.41rem; flex: none; }
.brand-type { display: flex; align-items: center; gap: .8rem; color: #8b4f39; font-size: 1.6rem; letter-spacing: .04em; white-space: nowrap; }
.brand-type span { display: block; margin: 0; font: 400 1.1rem/1.2 var(--body); letter-spacing: .12em; color: #8b4f39; }
@media (max-width: 640px) {
  .masthead { min-height: 5rem; }
  .wordmark { gap: .55rem; }
  .logo-mark { width: 2.9rem; height: 1.64rem; }
  .brand-type { display: block; font-size: 1.15rem; line-height: 1.3; }
  .brand-type span { margin-top: .1rem; font-size: .72rem; }
}
@media (max-width: 340px) {
  .wordmark { gap: .4rem; }
  .logo-mark { width: 2.4rem; height: 1.36rem; }
  .brand-type { font-size: 1.05rem; }
  .brand-type span { font-size: .66rem; }
}
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--red); }
.footer-mark { width: 2.1rem; height: 1.19rem; flex: none; }

/* 版面：依手繪草圖 */
.lang { position: relative; font-size: .92rem; }
.lang summary { min-height: 2.75rem; min-width: 3rem; display: flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "▾"; color: var(--red); }
.lang ul { position: absolute; right: 0; z-index: 1; margin: 0; padding: .5rem 1rem; list-style: none; white-space: nowrap; background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; }
.lang li { padding-block: .3rem; color: var(--muted); }
.lang li[aria-current] { color: var(--red); font-weight: 600; }
.hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); }
.hero h1 span { display: inline-block; margin-top: .35rem; font-size: .54em; }
.hero-art img, .hero-art figcaption { max-width: 100%; }
.hero-art img { aspect-ratio: .86; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
button.button { border: 1px solid var(--red); cursor: pointer; font-weight: 600; }
button.button.primary { color: #fffcf7; }
button.button.secondary { background: transparent; color: var(--red); }
.unsubscribe { font-size: .85rem; margin-top: .35rem; }
.hero-copy .share-status { margin: 0; font-size: .85rem; }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3.5vw, 2.75rem); }
.big-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.big-card h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.big-card .cover-link img, .cover-soon { aspect-ratio: 1.66; }
.tag { align-self: flex-end; color: var(--red); font-size: .85rem; font-weight: 600; letter-spacing: .1em; }
.desc { color: var(--muted); }
.note { font-size: .88rem; color: var(--red); }
.soon { padding: .35rem 1rem; border: 1px dashed var(--red); border-radius: .3rem; color: var(--red); font-size: .9rem; }
.cover-soon { width: 100%; display: flex; align-items: center; justify-content: center; border: 1px dashed #c9a999; border-radius: .45rem; background: var(--panel); color: var(--red); font: 700 clamp(1.2rem, 2.6vw, 1.9rem)/1.4 var(--serif); letter-spacing: .12em; }
.cover-soon.small { font-size: 1.1rem; }
.block { margin-top: clamp(3rem, 6vw, 5rem); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 2rem); }
.gallery-grid .cover-link img { aspect-ratio: 1.4; }
.gallery-grid .cover-soon { aspect-ratio: 1.4; }
.work h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-top: .75rem; }
.about { max-width: none; }
.info { border-top: 1px solid var(--line); padding-top: 2rem; display: grid; grid-template-columns: .82fr 1.18fr; gap: 1rem 2rem; }
.info:last-child { margin-bottom: 3rem; }
.info + .info { margin-top: 2rem; }
.info h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.info p, .info dd { color: var(--muted); }
.info dl { margin: 0; display: grid; gap: .75rem; }
.info dl div { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.info dt { font-weight: 600; }
.info dd { margin: 0; }
@media (max-width: 780px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4.4rem); }
  .hero-art img { aspect-ratio: 1.85; }
  .featured, .gallery-grid, .info { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { gap: 1.75rem; }
}
.about + .info { margin-top: 0; }

/* 頁首：Logo 縮小，圖形、中文、英文底部對齊（所有寬度同一行） */
.wordmark, .brand-type { display: flex; align-items: baseline; }
.wordmark { gap: .7rem; }
.brand-type { gap: .65rem; font-size: 1.6rem; line-height: 1.3; }
.brand-type .zh { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.brand-type [lang="en"] { margin: 0; font-size: 1rem; position: relative; top: var(--zh-drop); }
.masthead .logo-mark { width: 2.55rem; height: 1.445rem; position: relative; top: var(--zh-drop); }
.masthead { --zh-drop: .12rem; }
@media (max-width: 640px) {
  .wordmark { gap: .45rem; }
  .brand-type { gap: .4rem; font-size: 1.2rem; }
  .brand-type [lang="en"] { font-size: .74rem; letter-spacing: .08em; }
  .masthead .logo-mark { width: 1.95rem; height: 1.105rem; }
  .masthead { --zh-drop: .09rem; }
}
@media (max-width: 340px) {
  .wordmark { gap: .35rem; }
  .brand-type { gap: .3rem; font-size: 1.08rem; }
  .brand-type [lang="en"] { font-size: .66rem; letter-spacing: .05em; }
  .masthead .logo-mark { width: 1.75rem; height: .99rem; }
}

/* 頁首收窄 */
.masthead { min-height: 3.75rem; padding-block: .35rem; }
.masthead .logo-mark { top: calc(var(--zh-drop) + .02rem); }
.footer-brand { align-items: baseline; }
.footer-mark { position: relative; top: .1rem; }
.hero { padding-block: 2.25rem 3.25rem; }
@media (max-width: 640px) {
  .masthead { min-height: 3.4rem; padding-block: .25rem; }
  .hero { padding-block: 1.5rem 3rem; }
}

/* 照片一律小圓角 */
.hero-art img, .cover-link, .cover-link img, .cover-soon, .dialog-content img { border-radius: .5rem; }

/* 版面寬度與第二排作品：依附圖比例（1.91:1 雙欄） */
.frame { width: min(100% - 3rem, 61.5rem); }
.featured { gap: 2rem; align-items: start; }
.big-card { gap: .65rem; }
.big-card .cover-link, .big-card .cover-soon { aspect-ratio: 1.91; border: 1px solid var(--line); }
.big-card .cover-link img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.title-row { display: flex; align-items: center; gap: .7rem; margin-top: .65rem; }
.title-row .no { flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: .3rem; background: var(--red); color: #fffcf7; font-weight: 700; }
.big-card h2 { font-size: 1.5rem; }
.big-card .desc { line-height: 1.85; }
.entry-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .35em; }
.entry-link:hover { color: var(--red); }
.meta { color: var(--muted); font-size: .9rem; }
.soon { margin-block: .2rem; }
@media (max-width: 780px) {
  .frame { width: min(100% - 2.5rem, 42rem); }
  .featured { gap: 2.5rem; }
}
@media (max-width: 430px) {
  .frame { width: calc(100% - 2rem); }
}

/* 英文與中文字上下置中 */
.brand-type [lang="en"] { top: calc(var(--zh-drop) - .36rem); }
@media (max-width: 640px) { .brand-type [lang="en"] { top: calc(var(--zh-drop) - .31rem); } }
@media (max-width: 340px) { .brand-type [lang="en"] { top: calc(var(--zh-drop) - .29rem); } }
/* 主視覺直式圖片 3:4 */
.hero-art img { aspect-ratio: 3 / 4; }
@media (max-width: 780px) { .hero-art { width: 100%; max-width: 24rem; justify-self: center; } .hero-art img { aspect-ratio: 3 / 4; } }
/* 圖文作品標題縮小 */
.section-rule h2 { font-size: 1.3rem; }
.hero-art img { object-position: 50% 50%; }

/* ===== 2026-12-03 調整 ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo 再小一點 */
.brand-type { font-size: 1.46rem; }
.brand-type [lang="en"] { font-size: .92rem; }
.masthead .logo-mark { width: 2.32rem; height: 1.315rem; }
@media (max-width: 640px) {
  .brand-type { font-size: 1.1rem; }
  .brand-type [lang="en"] { font-size: .68rem; }
  .masthead .logo-mark { width: 1.78rem; height: 1.01rem; }
}

/* 右上角：語言＋搜尋 */
.masthead { flex-wrap: wrap; }
.header-tools { display: flex; align-items: center; gap: .9rem; }
.lang summary { gap: .3rem; }
.lang ul { padding: .4rem; min-width: 8.5rem; box-shadow: 0 6px 18px #3f322b1a; }
.lang li { padding: 0; }
.lang li button { width: 100%; text-align: left; border: 0; background: none; padding: .45rem .6rem; border-radius: .3rem; cursor: pointer; color: var(--muted); }
.lang li button:hover { background: var(--paper); color: var(--red); }
.lang li button[aria-current] { color: var(--red); font-weight: 600; }
.site-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding-left: .85rem; transition: border-color .2s; }
.site-search:focus-within { border-color: var(--red); }
.site-search input { width: 9rem; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); padding: .4rem 0; outline: none; }
.site-search input::-webkit-search-cancel-button { display: none; }
.site-search button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; background: none; color: var(--red); cursor: pointer; border-radius: 999px; }
.site-search button:hover { background: var(--paper); }
.site-search svg { width: 1.1rem; height: 1.1rem; }
.header-status { margin: 0; text-align: right; color: var(--red); font-size: .88rem; min-height: 0; }
.header-status:not(:empty) { padding-top: .5rem; }
@media (max-width: 640px) {
  .header-tools { gap: .5rem; }
  .site-search input { width: 6.5rem; }
}
@media (max-width: 430px) {
  .header-tools { width: 100%; justify-content: space-between; padding-bottom: .35rem; }
  .site-search { flex: 1; }
  .site-search input { width: 100%; }
}

/* 主文 */
.hero h1 span { font-size: .5em; letter-spacing: .12em; }
.hero-copy p { line-height: 2; }

/* 訂閱 */
.subscribe { max-width: 26rem; }
.subscribe-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.info-dot { width: 1.25rem; height: 1.25rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--red); border-radius: 50%; background: none; color: var(--red); font: italic 700 .72rem/1 Georgia, serif; cursor: pointer; }
.info-dot:hover { background: var(--red); color: #fffcf7; }
.subscribe-row { display: flex; gap: .5rem; }
.subscribe-row input { flex: 1; min-width: 0; min-height: 2.85rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--panel); font: inherit; color: var(--ink); }
.subscribe-row input:focus { outline: none; border-color: var(--red); }
.subscribe .unsubscribe { margin-top: .15rem; font-size: .82rem; color: var(--muted); }
.hero-copy .subscribe-status { margin: 0; font-size: .85rem; color: var(--red); line-height: 1.6; }

/* 互動故事：滑過時圖片微放大＋暗紅細框 */
.stories { margin-top: 0; }
.big-card .cover-link, .big-card .cover-soon { transition: border-color .25s ease, box-shadow .25s ease; }
.big-card .cover-link:hover, .big-card .cover-link:focus-visible,
.big-card .cover-soon:hover { border-color: var(--red); box-shadow: 0 0 0 .5px var(--red); }
.big-card .cover-link img { transition: transform .35s ease; }
.big-card .cover-link:hover img { transform: scale(1.04); }

/* 搜尋結果 */
.result-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .2rem; }
.result-list .empty { color: var(--muted); }
.flash { animation: flash 1.6s ease; border-radius: .5rem; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px #8b4f3940; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* 官方網址 */
.info dd a { color: var(--red); text-underline-offset: .25em; }
.info dt { min-width: 5.5rem; }

/* 2026-12-03 第二輪 */
.cover-static { cursor: default; }
.big-card .cover-static:hover { border-color: var(--red); box-shadow: 0 0 0 .5px var(--red); }
.big-card .cover-static:hover img { transform: scale(1.04); }
#penguin .dialog-content img { margin-block: 1rem; }
#penguin .dialog-content p { line-height: 1.95; }
.copyright { font-size: .85rem; letter-spacing: .04em; color: var(--muted); }

/* 2026-12-03 第三輪 */
/* 6、7：所有區塊標題統一，比內文明顯 */
.section-rule { margin-bottom: 1.6rem; gap: 1.1rem; }
.section-rule h2, .info .section-rule h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  color: var(--red);
  letter-spacing: .08em;
  display: flex; align-items: center; gap: .6rem;
}
.section-rule h2::before { content: ""; width: .32rem; height: 1.15em; border-radius: 2px; background: var(--red); }
.section-rule::after { border-bottom-color: #d9c6b4; }
.block { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.stories { margin-top: clamp(1rem, 3vw, 2rem); }

/* 官方網址、聯絡方式：同一套欄位，對齊 */
.info { display: block; border-top: 0; padding-top: 0; }
.info + .info { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.info dl { gap: 0; max-width: 40rem; }
.info dl div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.info dt { min-width: 0; font-weight: 500; color: var(--ink); }
.info dd { color: var(--muted); }

/* 3：圖文作品滑過也出現暗紅細框 */
.gallery-grid .cover-link, .gallery-grid .cover-soon { border: 1px solid var(--line); transition: border-color .25s ease, box-shadow .25s ease; }
.gallery-grid .cover-soon { border-style: dashed; border-color: #c9a999; }
.gallery-grid .cover-link:hover, .gallery-grid .cover-link:focus-visible, .gallery-grid .cover-soon:hover { border-color: var(--red); box-shadow: 0 0 0 .5px var(--red); }
.gallery-grid .cover-link:hover img { transform: scale(1.04); }

/* 4：頁尾版權置中 */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; }
.footer .copyright { justify-self: center; font-size: .85rem; letter-spacing: .04em; }
.footer .to-top { justify-self: end; }

/* 2：語言選單在搜尋欄右邊 */
.lang ul { right: 0; }
@media (max-width: 430px) { .footer { grid-template-columns: auto 1fr auto; gap: .5rem; } .footer .copyright { font-size: .78rem; } }

/* 2026-12-03 第四輪 */
/* 4：互動故事兩張卡片逐列對齊 */
.featured { grid-template-rows: auto; align-items: stretch; }
.big-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: .65rem; align-items: start; }
.big-card > .title-row { margin-top: .5rem; }
.big-card .soon, .big-card .entry-link { align-self: center; justify-self: start; height: 2.6rem; min-height: 0; display: inline-flex; align-items: center; margin: 0; box-sizing: border-box; }
.big-card .soon { padding-inline: 1rem; }
.big-card .meta { line-height: 1.7; }

/* 7、8：圖文作品：標題一行置中、兩行時第二行靠左；按鈕對齊 */
.gallery-grid { grid-template-rows: auto; }
.gallery-grid .work { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: .6rem; justify-items: center; align-items: start; }
.gallery-grid .work > :first-child { width: 100%; }
.work h3 { margin-top: .15rem; text-align: center; width: 100%; }
.work h3 span { display: inline-block; text-align: left; }
.work .text-button { align-self: start; }

/* 6：官方網址、聯絡方式內容置中 */
.info dl { max-width: 34rem; margin-inline: auto; }

/* 2：頁尾只留版權與回到頁首 */
.footer { grid-template-columns: 1fr auto 1fr; }
@media (max-width: 780px) {
  .featured, .gallery-grid { grid-template-rows: none; }
  .big-card, .gallery-grid .work { grid-row: auto; grid-template-rows: none; }
}

/* 2026-12-03 第五輪 */
/* 1：閱讀全文靠左 */
.gallery-grid .work .text-button { justify-self: start; }
/* 3：製作中＝開始遊玩的樣式，但按不下去、顏色較淺 */
.big-card .soon.is-disabled { padding: 0; border: 0; border-radius: 0; font-size: 1rem; }
.entry-link.is-disabled { color: #b5a596; text-decoration-color: #d9c6b4; cursor: not-allowed; pointer-events: auto; }
.entry-link.is-disabled:hover { color: #b5a596; }
/* 2：各語言字型（標誌維持原字型） */
:root:lang(en) { --serif: "Noto Serif", Georgia, "Times New Roman", serif; --body: system-ui, -apple-system, "Segoe UI", sans-serif; }
:root:lang(ja) { --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; --body: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; }
:root:lang(ko) { --serif: "Noto Serif KR", "AppleMyungjo", "Batang", serif; --body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
.brand-type, .hero h1, .footer { font-family: "Dawn Song", "Noto Serif TC", serif; }
.footer { font-family: var(--body); }
.hero h1 span { font-family: var(--serif); }
:root:lang(en) .hero h1 span { letter-spacing: .02em; }
:root:lang(en) .section-rule h2, :root:lang(en) .work h3, :root:lang(en) .big-card h2 { letter-spacing: 0; }
:root:lang(en) .work h3 { font-size: 1.1rem; }
.lang summary { white-space: nowrap; }

/* 2026-12-03 第六輪 */
/* 1：圖文作品名稱靠左 */
.gallery-grid .work { justify-items: start; }
.work h3 { text-align: left; }
/* 2：開始故事／製作中 都是按鈕，同高 */
.big-card .entry-link, .big-card .soon.is-disabled {
  height: 2.75rem; padding: 0 1.4rem; border: 1px solid var(--red); border-radius: .25rem;
  font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  color: var(--red); background: transparent; transition: background .2s, color .2s;
}
.big-card .entry-link:not(.is-disabled):hover { background: var(--red); color: #fffcf7; }
.big-card .soon.is-disabled { border-color: #d9c6b4; color: #b5a596; background: #efe7dc; cursor: not-allowed; }
.big-card .soon.is-disabled:hover { color: #b5a596; background: #efe7dc; }
/* 按鈕和介紹文之間留一點距離 */
.big-card .entry-link, .big-card .soon.is-disabled { margin-top: .6rem; }
/* 中文篇名在桌機也維持一行：字級隨欄寬微調，所有篇名同大小 */
:root:lang(zh) .work h3 { font-size: clamp(15px, calc((min(100vw - 3rem, 61.5rem) - 4rem) / 3 / 18.6), 1.3rem); }
@media (max-width: 780px) { :root:lang(zh) .work h3 { font-size: min(1.3rem, calc((100vw - 2.5rem) / 18.6)); } }
@media (max-width: 430px) { :root:lang(zh) .work h3 { font-size: min(1.3rem, calc((100vw - 2rem) / 18.6)); } }
/* 圖文作品：篇名與閱讀全文置中 */
.gallery-grid .work { justify-items: center; }
.work h3 { text-align: center; }
.gallery-grid .work .text-button { justify-self: center; }
/* 點進去的圖文作品頁：標題置中 */
#penguin .dialog-content h2, #mountain .dialog-content h2 { text-align: center; text-wrap: balance; }

/* ===== 讀者回饋 ===== */
.feedback-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  max-width: 34rem; margin-inline: auto; padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); }
.feedback-lead { margin: 0; line-height: 1.9; color: var(--muted); flex: 1 1 16rem; }
.feedback-band .button { flex: none; }

.small-dialog { width: min(30rem, calc(100vw - 2rem)); }
.fb-form { display: grid; gap: .35rem; margin-top: .6rem; }
.fb-label { font-weight: 600; font-size: .92rem; color: var(--ink); margin-top: .7rem; padding: 0; }
.fb-form select, .fb-form textarea, .fb-form input[type=text] {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: .25rem; padding: .6rem .75rem; }
.fb-form select:focus, .fb-form textarea:focus, .fb-form input[type=text]:focus { outline: none; border-color: var(--red); }
.fb-form textarea { resize: vertical; min-height: 7rem; line-height: 1.7; }
.fb-count { justify-self: end; font-size: .78rem; color: var(--muted); }
.rating { border: 0; margin: 0; padding: 0; }
.suns { display: flex; gap: .35rem; margin-top: .35rem; }
.sun { cursor: pointer; display: grid; place-items: center; width: 2.75rem; height: 2.2rem; border-radius: .3rem; }
.sun input { position: absolute; opacity: 0; pointer-events: none; }
.sun svg { width: 2.1rem; fill: #d9c6b4; transition: fill .15s, transform .15s; }
.sun:hover svg { transform: translateY(-2px); }
.sun.on svg { fill: var(--red); }
.sun:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.fb-status { margin: .4rem 0 0; min-height: 1.2em; font-size: .85rem; color: var(--red); }
.fb-send { justify-self: stretch; margin-top: .3rem; }
.fb-send:disabled { opacity: .6; cursor: wait; }
.fb-thanks { text-align: center; padding: 1.2rem 0 .4rem; }
.fb-thanks-mark { width: 4rem; fill: var(--red); }
.fb-thanks-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: .6rem 0 .3rem; }
.fb-thanks-text { color: var(--muted); margin: 0; }
.fb-preview-note { font-size: .8rem; color: #b5a596; margin: .8rem 0 0; }
.fb-done { margin-top: 1.2rem; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-form input[type=email] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: .25rem; padding: .6rem .75rem; }
.fb-form input[type=email]:focus { outline: none; border-color: var(--red); }
.fb-hint { margin: .15rem 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
