:root {
  color-scheme: light;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", PMingLiU, serif;
  --ink: #261e30;
  --violet: #5a357b;
  --cover: #271b39;
  --accent: #ded0f6;
  --rule: #dfd5e8;
  --paper: #fcfafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
p,
figure {
  margin: 0;
}

.frame {
  width: min(100% - 4rem, 69rem);
  margin-inline: auto;
}

.masthead {
  border-top: 3px solid var(--violet);
  background: var(--paper);
}

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

.mastheadName {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.mastheadName::before {
  width: .875rem;
  height: .95rem;
  border-block: 2px solid var(--violet);
  background: linear-gradient(var(--violet), var(--violet)) left center / 70% 2px no-repeat;
  content: "";
}

.reviewLink {
  padding-block: .5rem;
  color: var(--violet);
  font-size: .875rem;
  font-weight: 700;
  text-decoration-color: #9b7ab7;
  text-underline-offset: .28em;
}

.cover {
  padding-block: clamp(1.2rem, 3vw, 2.4rem) clamp(1.9rem, 5vw, 3.7rem);
  background: var(--cover);
  color: #fffafc;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.28;
  object-fit: cover;
  object-position: center 17%;
}

figcaption {
  margin-top: .7rem;
  color: #e1d5ec;
  font-size: .875rem;
  line-height: 1.6;
}

.articleHead {
  margin-top: clamp(1.3rem, 3vw, 2.4rem);
  padding-left: clamp(.85rem, 2.3vw, 1.7rem);
  border-left: 3px solid #bda0e7;
}

h1 {
  max-width: 19em;
  font-family: Georgia, var(--serif);
  font-size: clamp(2rem, 4.7vw, 3.8rem);
  font-weight: 800;
  line-height: 1.19;
  overflow-wrap: break-word;
}

.titleLead {
  display: block;
  margin-bottom: .4em;
  color: var(--accent);
  font-family: var(--sans);
  font-size: .52em;
  font-weight: 750;
  letter-spacing: .025em;
}

.company {
  white-space: nowrap;
}

.reading {
  width: min(100% - 4rem, 50rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3rem) 4.5rem;
}

.notice {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  align-items: start;
  gap: .55rem 1rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  padding: .95rem 1rem;
  border-block: 1px solid var(--rule);
  background: #f5eff8;
  scroll-margin-top: 1rem;
}

.notice h2 {
  color: var(--violet);
  font-size: .95rem;
  line-height: 1.8;
  letter-spacing: .07em;
}

.notice p,
.notice a {
  font-size: .9375rem;
  line-height: 1.75;
}

.notice a {
  display: inline-block;
  margin-top: .35rem;
  color: var(--violet);
  font-weight: 650;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.notice:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.prose {
  max-width: 43rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.95;
  overflow-wrap: break-word;
}

.prose p:first-child {
  font-size: 1.12em;
  line-height: 1.82;
}

.prose p + p {
  margin-top: 1.4em;
}

@media (max-width: 700px) {
  .frame,
  .reading {
    width: min(100% - 2rem, 33rem);
  }

  .mastheadInner {
    min-height: 3.2rem;
  }

  .mastheadName {
    gap: .5rem;
    font-size: 1rem;
    letter-spacing: .08em;
  }

  .cover {
    padding-top: .8rem;
  }

  .hero img {
    aspect-ratio: 1.4;
    object-position: center 35%;
  }

  h1 {
    font-size: clamp(1.8rem, 6.9vw, 2.65rem);
    text-wrap: pretty;
  }

  .titleLead {
    font-size: .63em;
  }

  .notice {
    grid-template-columns: minmax(0, 1fr);
    padding: .8rem .9rem;
  }

  .reading {
    padding-bottom: 3rem;
  }

  .prose {
    font-size: 1.0625rem;
    line-height: 1.85;
  }
}

@media print {
  body,
  .cover,
  .masthead,
  .notice {
    background: #fff;
    color: #222;
  }

  .frame,
  .reading {
    width: 100%;
  }

  .cover {
    padding: 0;
  }

  figcaption,
  .titleLead,
  .notice h2 {
    color: #222;
  }

  .hero,
  .articleHead,
  .notice {
    break-inside: avoid;
  }

  h1 {
    font-size: 28pt;
  }
}
