.drlo-magazine-page {
  margin: 0;
  background: #f7f6f0;
}

.drlo-mag {
  --mag-deep: #18372e;
  --mag-ink: #1f332e;
  --mag-cream: #fff3d5;
  --mag-muted: #46564e;
  --mag-rule: #bfcabc;
  --mag-accent: #8c3826;
  --mag-warm: #efece2;
  --mag-serif: "Songti TC", "Noto Serif CJK TC", "PMingLiU", Georgia, serif;
  --mag-sans: "DM Sans", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  width: min(76rem, calc(100% - 3rem));
  margin: clamp(1rem, 3vw, 3rem) auto 4rem;
  color: var(--mag-ink);
  font: 1.0625rem/1.9 var(--mag-sans);
}

.drlo-mag *, .drlo-mag *::before, .drlo-mag *::after { box-sizing: border-box; }
.drlo-mag figure, .drlo-mag h1, .drlo-mag h2, .drlo-mag h3 { margin: 0; }
.drlo-mag a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.drlo-mag a:focus-visible { outline: 2px solid currentColor; outline-offset: .22em; }

.mag-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: .27rem solid #a84b32;
  color: var(--mag-cream);
  background: var(--mag-deep);
}
.mag-cover { align-self: center; padding: clamp(1.7rem, 4vw, 3.4rem); }
.mag-masthead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  margin: 0 0 clamp(1.1rem, 3vw, 2.5rem);
  font-size: .875rem;
}
.mag-masthead strong { font: 700 1.6rem/1 Georgia, serif; letter-spacing: -.04em; }
.mag-masthead span { border-left: 1px solid #92a499; padding-left: .85rem; }
.mag-cover h1 {
  color: inherit;
  font: 700 clamp(2.15rem, 4.1vw, 3.5rem)/1.25 var(--mag-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.mag-dek {
  max-inline-size: 23em;
  margin: 1.2rem 0 0;
  font-size: clamp(.98rem, 1.45vw, 1.14rem);
  line-height: 1.75;
}
.mag-hero-photo { position: relative; min-height: 23rem; }
.mag-hero-photo img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.mag-hero-photo figcaption {
  position: absolute;
  right: .75rem;
  bottom: .72rem;
  margin: 0;
  padding: .16rem .5rem;
  background: #16211de8;
  color: #fff;
  font-size: .75rem;
}

.mag-reading {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 41.5rem);
  justify-content: center;
  gap: clamp(1.4rem, 5.5vw, 5rem);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
}
.mag-contents {
  position: sticky;
  top: 7rem;
  align-self: start;
  display: grid;
  border-top: 1px solid var(--mag-rule);
  padding-top: .5rem;
  font-size: .87rem;
  line-height: 1.6;
}
.mag-contents a { padding: .52rem 0; text-decoration: none; }
.mag-contents a:hover { color: var(--mag-accent); text-decoration: underline; }
.mag-prose { min-width: 0; }
.mag-prose section, .mag-sources, .mag-sources li { scroll-margin-top: .65rem; }
.mag-prose p { margin: 0 0 1.05rem; }
.mag-prose .mag-lead {
  margin: 0 0 2.5rem;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.86;
}
.mag-prose section + section { margin-top: 3.2rem; }
.mag-prose h2 {
  margin: 0 0 .9rem;
  font: 700 clamp(1.48rem, 3vw, 2.04rem)/1.34 var(--mag-serif);
  color: var(--mag-deep);
  text-wrap: balance;
}
.mag-cite {
  margin-inline-start: .22em;
  color: var(--mag-accent) !important;
  white-space: nowrap;
  font-size: .76em;
  font-variant-numeric: tabular-nums;
}

.drlo-mag .mag-effect {
  margin: 1.35rem 0;
  padding: clamp(.7rem, 2.3vw, 1.3rem);
  border-top: 2px solid var(--mag-deep);
  background: var(--mag-warm);
}
.mag-effect h3 { font-size: 1rem; line-height: 1.5; }
.mag-effect > a { display: block; }
.mag-effect img { display: block; width: 100%; height: auto; }
.mag-effect figcaption { font-size: .86rem; line-height: 1.65; color: var(--mag-muted); }
.mag-prose .mag-closing {
  margin: 1.5rem 0 0;
  padding: .9rem 1rem;
  border-inline-start: 3px solid var(--mag-accent);
  background: var(--mag-warm);
  font-weight: 650;
}
.mag-sources { margin-top: 3.1rem; padding-top: 1.4rem; border-top: 1px solid var(--mag-rule); }
.mag-sources ol { margin: 0; padding-inline-start: 1.4rem; }
.mag-sources li { padding: .25rem 0 .65rem; }
.mag-sources span {
  display: block;
  color: var(--mag-muted);
  font-size: .86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .drlo-mag { width: calc(100% - 2rem); margin-top: 1rem; font-size: 1rem; }
  .mag-hero, .mag-reading { grid-template-columns: minmax(0, 1fr); }
  .mag-cover { padding: 1.55rem 1.25rem; }
  .mag-hero-photo { min-height: 0; aspect-ratio: 4/3; }
  .mag-hero-photo img { object-position: 50% 26%; }
  .mag-reading { gap: 1.25rem; margin-top: 1.55rem; }
  .mag-contents {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .55rem;
    padding: .25rem 0 .45rem;
    border-bottom: 1px solid var(--mag-rule);
  }
  .mag-contents a { padding: .38rem 0; }
  .mag-prose section + section { margin-top: 2.5rem; }
}
