:root {
  color-scheme: light;
  --paper: #f9f8f8;
  --ink: #252229;
  --muted: #57505b;
  --accent: #7f2c51;
  --line: #d6cbd1;
  --blush: #f3e7ed;
  font: 16px/1.65 system-ui, "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1120px, 91%); margin-inline: auto; }
.top, .top nav, .links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.top { justify-content: space-between; min-height: 70px; border-bottom: 1px solid var(--line); }
.top nav { font-size: 14px; }
.brand { color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 760; letter-spacing: -.055em; }
[aria-current="page"] { font-weight: 700; }
.cover { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(26px,4vw,68px); align-items: center; padding: clamp(28px,5vw,72px) 0; }
.cover h1, article h1 { font-size: clamp(38px,5.6vw,75px); line-height: 1.1; letter-spacing: -.055em; margin: 0 0 16px; }
.cover p { margin: 0 0 19px; max-width: 31em; }
.cover img, .primer-img img, .detail-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--blush); }
.cover img { object-position: 62% center; }
.entry { border-left: 3px solid #bb7799; padding: 13px 15px; background: var(--blush); }
.entry p { margin: 0 0 4px; font-size: 14px; }
.entry code { display: block; font-size: clamp(14px,2vw,19px); overflow-wrap: anywhere; user-select: all; }
.copy { margin-top: 11px; background: var(--accent); border: 0; color: white; font: inherit; font-weight: 650; min-height: 42px; padding: .45em .85em; cursor: pointer; }
.copy[hidden] { display: none; }
.feedback:not(:empty) { display: block; margin-top: 8px; font-size: 14px; }
.phase-section, .diagnosis { padding: clamp(25px,5vw,58px) 0; border-top: 1px solid var(--line); }
.phase-section h2, .diagnosis h2, article h2 { margin: 0 0 12px; line-height: 1.25; font-size: clamp(26px,3.4vw,43px); letter-spacing: -.04em; }
.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,68px); margin-top: 24px; }
.phase-grid section { border-top: 2px solid #ad6c8e; padding-top: 10px; }
.phase-grid h3 { margin: 0; font-size: 21px; }
.phase-grid p, .diagnosis p, article p, article li { color: var(--muted); }
.phase-grid p { margin: 9px 0 0; }
.phase-grid a { display: inline-block; padding-top: 10px; font-weight: 650; }
.diagnosis { display: grid; grid-template-columns: .72fr 1fr; gap: clamp(20px,5vw,70px); align-items: start; }
.primer-img img { aspect-ratio: 16 / 10; object-position: 60% center; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .45em 0 .2em; }
.foot { color: var(--muted); padding: 18px 0 32px; font-size: 14px; border-top: 1px solid var(--line); }
.foot p { margin: 0; }
article { max-width: 790px; margin: auto; padding: clamp(28px,6vw,66px) 0; }
article h1 { font-size: clamp(35px,5vw,59px); }
article h2 { font-size: clamp(23px,3vw,32px); margin-top: 32px; }
article .lead { font-size: clamp(18px,2.5vw,22px); }
article ol { padding-left: 1.4em; }
article li + li { margin-top: .7em; }
article .note { border-left: 3px solid #bb7799; background: var(--blush); padding: 12px 16px; }
.detail-img { margin: 20px 0; }
@media (max-width: 720px) {
  .cover, .phase-grid, .diagnosis { grid-template-columns: 1fr; }
  .cover { gap: 20px; }
  .cover img { aspect-ratio: 16 / 8; object-position: 63% 52%; }
  .primer-img { order: 1; }
  .phase-grid { gap: 20px; }
  .top nav { column-gap: 13px; }
}
