/* 4175 獨立實驗場：六層文字與兩層分數，只覆蓋字級及必要的換行。 */
:root {
  --type-caption: .75rem;
  --type-ui: .875rem;
  --type-body: 1.125rem;
  --type-item: 1.25rem;
  --type-section: 1.5rem;
  --type-page: 2.5rem;
  --type-bottle-title: 3rem;
  --type-list-score: 1.75rem;
  --type-main-score: 3rem;
}

body#top {
  font-size: var(--type-body);
  line-height: 1.9;
}

/* 頁名。首頁的介紹句也使用唯一的頁名層級。 */
body#top h1 {
  font-size: var(--type-page);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* 國士無雙三行酒名採獨立的大標比例。 */
body#top .bottle-title {
  font-size: var(--type-bottle-title);
}

/* 段落、專輯與旅行年份。首頁主打旅程是段落內的主題，採 24px。 */
body#top h2,
body#top .home-feature-heading h3,
body#top .home-album-heading h3,
body#top .album-title,
body#top .travel-year > h2 {
  font-size: var(--type-section);
  font-weight: 500;
  line-height: 1.4;
}

/* 條目與分項數字。播放器內的曲名沿用同一角色。 */
body#top h3,
body#top .review-body h2,
body#top .wordmark,
body#top .home-track-list a,
body#top .player-song,
body#top .related-reading > a,
body#top .rating-dimensions dd {
  font-size: var(--type-item);
  font-weight: 500;
  line-height: 1.4;
}

/* 專輯內歌曲降一階，首頁歌曲列沿用相同閱讀大小。 */
body#top .track-row h3,
body#top .home-track-list a {
  font-size: var(--type-body);
}

/* 正文。表格和介面不列入長文規則。 */
body#top .prose,
body#top .prose p,
body#top .original-text,
body#top .original-text > p,
body#top .feature-opening,
body#top .article-deck,
body#top .home-about p,
body#top .dish-course > p,
body#top .bottle-feelings p,
body#top .journey-body > p:not(.entry-kicker),
body#top .empty-state p {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.9;
}

/* 導覽、按鈕、篩選、資料欄位與短介面說明。 */
body#top .main-nav a,
body#top .text-link,
body#top .solid-link,
body#top .back-collection,
body#top .tag-search-bar input,
body#top .tag-toggle,
body#top .selected-tag,
body#top .clear-filters,
body#top .tag-no-match,
body#top .filter-heading h2,
body#top .collection-description,
body#top .review-price,
body#top .review-verdict,
body#top .article-facts dd,
body#top .article-toc,
body#top .essay-toc summary,
body#top .essay-toc ol,
body#top .coffee-details summary,
body#top .audio-note,
body#top .photo-pending p,
body#top .track-play-button,
body#top .song-play-button,
body#top .album-play-button,
body#top .rating-dimensions dt,
body#top .bottle-specs,
body#top .bottle-specs th,
body#top .bottle-specs td {
  font-size: var(--type-ui);
  font-weight: 400;
  line-height: 1.5;
}

body#top .main-nav a[aria-current="page"],
body#top .filter-heading h2 {
  font-weight: 500;
}

/* 圖說、標籤、日期、曲序與補充註記。 */
body#top .entry-kicker,
body#top .eyebrow,
body#top .intro-note,
body#top .tag-links a,
body#top .demo-notice,
body#top .prose p.demo-notice,
body#top .score-method,
body#top .home-demo-note,
body#top .results-heading,
body#top .breadcrumbs,
body#top .journey-date,
body#top .trip-full-date,
body#top .essay-meta,
body#top .track-number,
body#top .album-action,
body#top .album-empty,
body#top .music-pending-note,
body#top .article-facts dt,
body#top .rating-total > span,
body#top .rating-total small,
body#top .home-score span,
body#top .gallery-slide figcaption,
body#top .dish-photo figcaption,
body#top .bottle-photo figcaption,
body#top .bottle-hero-photo figcaption,
body#top .dish-heading .dish-order,
body#top .carousel-controls,
body#top .filter-heading span,
body#top #filter-help,
body#top .filter-fields legend,
body#top .coffee-details p,
body#top .site-footer,
body#top .site-footer span,
body#top .player-heading,
body#top .player-status {
  font-size: var(--type-caption);
  font-weight: 400;
  line-height: 1.5;
}

body#top .home-track-list a::before {
  font-size: var(--type-caption);
}

/* 分數獨立於文字層級，分母與說明仍使用註記大小。 */
body#top .home-score strong,
body#top .review-visual .rating-total strong {
  font-size: var(--type-list-score);
  font-weight: 500;
  line-height: 1.1;
}

body#top .rating > .rating-total strong {
  font-size: var(--type-main-score);
  font-weight: 500;
  line-height: 1.1;
}

/* 字級提高後允許原有容器自然換行，不截斷文字。 */
body#top .home-intro h1 {
  min-width: 0;
}

body#top .bottle-edition {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body#top .album-title,
body#top .home-track-list a,
body#top .track-row h3 {
  overflow-wrap: anywhere;
}

body#top .rating-dimensions dt {
  white-space: normal;
}

@media (max-width: 700px) {
  :root {
    --type-caption: .6875rem;
    --type-ui: .8125rem;
    --type-body: 1rem;
    --type-item: 1.125rem;
    --type-section: 1.25rem;
    --type-page: 2rem;
    --type-bottle-title: 2.5rem;
    --type-list-score: 1.5rem;
    --type-main-score: 2.25rem;
  }

  body#top .home-intro {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: var(--space-2);
  }

  body#top .home-intro h1 {
    flex-basis: 100%;
  }

  body#top .home-intro .intro-line {
    display: none;
  }
}
