:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #5d6864;
  --paper: #f5f3ed;
  --white: #fffefa;
  --forest: #18362f;
  --forest-soft: #2d5148;
  --amber: #dca84d;
  --amber-light: #f2dca7;
  --burgundy: #7b343b;
  --line: #d9ddd7;
  --shadow: 0 18px 46px rgba(24, 54, 47, 0.1);
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", "Times New Roman", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 560px;
  height: 78vh;
  max-height: 820px;
  overflow: hidden;
  color: var(--white);
  background-color: #16211e;
  background-image: url("assets/hero-reading-room-v1.webp");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 11, 0.2);
  pointer-events: none;
}

.site-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links > a:not(.nav-cta) {
  padding: 10px 0;
}

.nav-links > a:not(.nav-cta):hover {
  color: var(--amber-light);
}

.nav-links .nav-member {
  color: var(--amber-light);
}

.nav-cta {
  min-width: 104px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 5px;
  text-align: center;
}

.nav-cta:hover {
  color: var(--ink);
  background: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 64px));
  height: calc(100% - 92px);
  margin: 0 auto;
  padding-bottom: 32px;
}

.eyebrow,
.section-kicker,
.story-meta {
  margin: 0;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 700;
}

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

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: var(--amber);
  content: "";
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
}

h1 {
  max-width: 700px;
  margin: 16px 0 12px;
  font-size: 68px;
  line-height: 1.08;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.hero-copy {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 254, 250, 0.9);
  font-family: var(--serif);
  font-size: 23px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #10201c;
  background: var(--amber-light);
}

.button-primary:hover {
  background: #f6e7be;
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(9, 24, 20, 0.42);
}

.button-quiet:hover {
  border-color: var(--white);
  background: rgba(9, 24, 20, 0.7);
}

.member-latest {
  scroll-margin-top: 20px;
  border-bottom: 1px solid #cbd6cf;
  background: #dfe8e2;
}

.member-latest-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 88px;
  width: min(1180px, calc(100% - 64px));
  min-height: 330px;
  margin: 0 auto;
  padding: 66px 0;
}

.member-latest-heading h2 {
  margin: 8px 0 14px;
  font-size: 40px;
  line-height: 1.28;
}

.member-latest-heading > p:last-child,
.member-latest-preview > p:not(.member-latest-status) {
  margin: 0;
  color: var(--muted);
}

.member-latest-preview {
  padding: 6px 0 6px 34px;
  border-left: 3px solid var(--burgundy);
}

.member-latest-status {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 700;
}

.member-latest-preview h3 {
  max-width: 540px;
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.4;
}

.member-latest-preview > a {
  display: inline-block;
  margin-top: 24px;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

.member-latest-preview > a:hover {
  color: var(--burgundy);
}

.section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 42px;
}

.section-kicker {
  color: var(--burgundy);
}

.section-heading h2,
.listen-heading h2,
.about h2,
.subscribe h2 {
  margin: 8px 0 0;
  font-size: 40px;
  line-height: 1.28;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(23, 33, 30, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.story-card:hover {
  border-color: #b9c6c0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.story-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--forest);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.story-card:hover .story-image img {
  transform: scale(1.025);
}

.play-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  background: rgba(24, 54, 47, 0.88);
  font-size: 14px;
  line-height: 1;
  text-indent: 2px;
}

.story-body {
  display: flex;
  min-height: 270px;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.story-meta {
  color: var(--burgundy);
  font-size: 12px;
}

.story-body h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.35;
}

.story-body > p:not(.story-meta) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.story-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

.story-link:hover,
.text-link:hover {
  color: var(--burgundy);
}

.all-stories {
  display: flex;
  justify-content: center;
  padding-top: 38px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-weight: 700;
}

.listen {
  border-top: 1px solid #d2dad4;
  border-bottom: 1px solid #d2dad4;
  background: #e9eee9;
}

.listen-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 100px 0;
}

.listen-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 42px;
}

.listen-heading h2 {
  margin: 8px 0 0;
  font-size: 40px;
  line-height: 1.28;
}

.listen-heading > p {
  max-width: 440px;
  margin: 0 0 4px;
  color: var(--muted);
}

.listening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
}

.membership-feature {
  display: flex;
  min-height: 348px;
  scroll-margin-top: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: 8px;
  color: var(--white);
  background: var(--burgundy);
  box-shadow: 0 18px 40px rgba(71, 29, 34, 0.14);
}

.membership-service,
.platform-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.membership-service {
  margin: 0;
  color: #f4ddd7;
  font-size: 14px;
}

.membership-feature h3,
.platform-panel h3 {
  margin: 0;
}

.membership-feature h3 {
  max-width: 470px;
  margin-top: 28px;
  font-size: 32px;
  line-height: 1.32;
}

.membership-feature div > p:last-child {
  max-width: 510px;
  margin: 18px 0 0;
  color: rgba(255, 254, 250, 0.78);
  font-size: 15px;
}

.membership-status {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 700;
}

.service-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--forest-soft);
}

.service-mark-patreon {
  background: #ffb19d;
}

.service-mark-youtube {
  background: #d84040;
}

.service-mark-apple {
  background: #8c66c4;
}

.service-mark-spotify {
  background: #4d9b6b;
}

.service-mark-kkbox {
  background: #2e8e9b;
}

.platform-panel {
  align-self: stretch;
  border-top: 2px solid var(--forest);
}

.platform-panel-heading,
.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.platform-panel-heading {
  min-height: 76px;
  border-bottom: 1px solid #cbd3cd;
}

.platform-panel-heading h3 {
  font-size: 23px;
}

.platform-panel-heading > span,
.platform-status {
  color: var(--muted);
  font-size: 13px;
}

.platform-row {
  min-height: 67px;
  border-bottom: 1px solid #cbd3cd;
}

.platform-name {
  min-width: 0;
  font-size: 15px;
}

.platform-link {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.platform-link:hover {
  color: var(--burgundy);
}

.platform-status {
  flex: 0 0 auto;
}

.about {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.about-mark {
  display: grid;
  min-height: 300px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
}

.about-mark img {
  width: 132px;
  height: 132px;
  box-shadow: 0 18px 42px rgba(8, 20, 17, 0.26);
}

.about-copy {
  max-width: 640px;
}

.about-copy > p:not(.section-kicker) {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.story-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

.story-notes span {
  display: inline-flex;
  align-items: center;
}

.story-notes span:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin: 0 14px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 66px max(32px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--forest);
}

.subscribe .section-kicker {
  color: var(--amber-light);
}

.subscribe h2 {
  max-width: 720px;
}

.button-light {
  min-width: 152px;
  color: var(--forest);
  background: var(--white);
}

.button-light:hover {
  background: var(--amber-light);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px max(32px, calc((100% - 1180px) / 2));
  color: #cfd7d3;
  background: #10211d;
  font-size: 13px;
}

.footer-brand {
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

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

.site-footer > a:hover {
  color: var(--amber-light);
}

@media (max-width: 900px) {
  .site-nav,
  .hero-content,
  .section,
  .listen-inner,
  .member-latest-inner {
    width: min(100% - 40px, 720px);
  }

  .hero {
    min-height: 560px;
    height: 78vh;
    background-position: 57% center;
  }

  .hero-content {
    padding-bottom: 20px;
  }

  h1 {
    font-size: 56px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  }

  .story-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .story-body {
    min-height: 260px;
  }

  .listening-grid {
    grid-template-columns: 1fr;
  }

  .membership-feature {
    min-height: 300px;
  }

  .member-latest-inner {
    gap: 48px;
  }

  .about {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 48px;
  }

  .about-mark {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .site-nav,
  .hero-content,
  .section,
  .listen-inner,
  .member-latest-inner {
    width: calc(100% - 32px);
  }

  .site-nav {
    height: 76px;
  }

  .brand {
    gap: 9px;
    font-size: 17px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links > a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    min-width: 86px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 540px;
    height: 76vh;
    max-height: 690px;
    background-position: 60% center;
  }

  .hero-shade {
    background: rgba(5, 13, 11, 0.42);
  }

  .hero-content {
    height: calc(100% - 76px);
    justify-content: flex-end;
    padding-bottom: 56px;
  }

  h1 {
    margin-top: 12px;
    font-size: 44px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    min-height: 46px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-heading h2,
  .listen-heading h2,
  .member-latest-heading h2,
  .about h2,
  .subscribe h2 {
    font-size: 31px;
  }

  .listen-inner {
    padding: 72px 0;
  }

  .member-latest-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 54px 0;
  }

  .member-latest-preview {
    padding-left: 22px;
  }

  .member-latest-preview h3 {
    font-size: 24px;
  }

  .listen-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .membership-feature {
    min-height: 330px;
    padding: 28px 24px;
  }

  .membership-feature h3 {
    font-size: 27px;
  }

  .platform-panel-heading,
  .platform-row {
    min-height: 64px;
  }

  .story-card {
    display: flex;
  }

  .story-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .story-body {
    min-height: 260px;
    padding: 22px;
  }

  .story-body h3 {
    font-size: 22px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-mark {
    min-height: 220px;
  }

  .about-mark img {
    width: 112px;
    height: 112px;
  }

  .about-copy > p:not(.section-kicker) {
    font-size: 16px;
  }

  .subscribe {
    align-items: flex-start;
    flex-direction: column;
    padding: 52px 16px;
  }

  .button-light {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding: 28px 16px;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .story-notes {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .story-notes span:not(:last-child)::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
