.top { position: relative; z-index: 5; justify-content: flex-start; }
.top .brand { margin-right: auto; }
.downloads { position: relative; }
@property --download-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 230deg;
}
.downloads summary {
  --download-face: #30261e;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-sizing: border-box; min-width: 96px; min-height: 36px; padding: 0 17px;
  border-radius: 99px; border: 1.5px solid transparent;
  background: linear-gradient(110deg, #493727, var(--download-face) 60%) padding-box,
    conic-gradient(from var(--download-angle), #ffe3a6, #cb9249 16deg, #63503d 57deg 302deg, #bb803a 342deg, #ffe3a6) border-box;
  color: #fff8eb; font-size: 14px; line-height: 1.2; font-weight: 600;
  list-style: none; cursor: pointer;
}
.downloads summary::-webkit-details-marker { display: none; }
.downloads summary::before {
  content: ""; position: absolute; inset: 2px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle, #efcc88 .65px, transparent .9px) 0 0 / 4px 4px;
  mask-image: conic-gradient(from var(--download-angle), #0009, transparent 70deg 285deg, #0009);
}
.download-label, .download-chevron { position: relative; }
.downloads summary:is(:hover, :focus-visible), .downloads[open] summary { --download-face: #403124; }
@media (prefers-reduced-motion: no-preference) {
  .downloads summary { animation: download-orbit 6s linear infinite; }
  @keyframes download-orbit { to { --download-angle: 590deg; } }
}
@media (pointer: coarse) {
  .downloads summary { min-height: 44px; }
}
.download-chevron {
  width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.downloads[open] .download-chevron { transform: translateY(2px) rotate(225deg); }
.download-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(332px, 90vw);
  box-sizing: border-box; padding: 6px; background: #fff; border: 1px solid #dedfda;
  border-radius: 16px; box-shadow: 0 10px 32px #2021241a; transform-origin: top right;
}
.download-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 10px; border-radius: 10px; color: #242622; text-decoration: none;
}
.download-row strong, .download-row small { display: block; }
.download-row strong { font-size: 15px; }
.download-row small, .download-status { color: #595d55; font-size: 12px; }
.download-row small { margin-top: 3px; }
.download-status { white-space: nowrap; }
a.download-row:hover, a.download-row:focus-visible { background: #f2f3ef; }
.downloads :focus-visible { outline: 2px solid #555d47; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .downloads[open] .download-panel { animation: downloads-open 150ms ease-out; }
  .download-chevron { transition: transform 150ms ease-out; }
  @keyframes downloads-open {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.download-row .platform-icon {
  flex: 0 0 32px; width: 32px; height: 32px; padding: 6px;
  box-sizing: border-box; border-radius: 8px; color: #484640; background: #f4f2ed;
}
.download-row > span:first-of-type { flex: 1; }
.download-row + .download-row { border-top: 1px solid #eeede9; }
.download-row .download-status { flex: none; font-size: 12px; }

.author-note {
  background: #faf9f6; border-top: 1px solid #e4e1db; color: #292723;
  padding: clamp(64px, 8vw, 112px) 24px;
}
.author-letter { max-width: 560px; margin: 0 auto; }
.author-letter h2 {
  margin: 0 0 28px; font: 600 clamp(30px, 4vw, 44px)/1.25 "Songti SC", "STSong", serif;
}
.author-letter p { font-size: 17px; line-height: 1.9; margin: 0 0 16px; }
.author-signature { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; }
.author-signature img { border-radius: 50%; object-fit: cover; }
.letter-downloads { display: flex; gap: 24px; margin-top: 40px; padding-top: 25px; border-top: 1px solid #e2ded6; }
.letter-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 1px solid #c8c4ba; border-radius: 30px; color: #474139; font-size: 14px; font-weight: 600;
}
.letter-action[data-platform="mac"] { background: #382c22; color: #fff8eb; border-color: #bf995e; }
.letter-downloads small { display: block; margin-top: 8px; color: #625f59; font-size: 12px; }
.letter-action[href]:hover { text-decoration: underline; }
.letter-action:focus-visible { outline: 2px solid #765423; outline-offset: 3px; }
a.download-row:not([href]):hover { background: transparent; }
@media (max-width: 540px) {
  .letter-downloads { flex-direction: column; gap: 18px; }
  .letter-action { display: flex; }
  .letter-downloads small { text-align: center; }
}

.author-note {
  padding: clamp(76px, 9vw, 132px) 6vw clamp(48px, 6vw, 88px);
  background: radial-gradient(ellipse at 32% 25%, #f7f4ec, transparent 65%), #ebe8e0;
}
.letter-desk { max-width: 890px; margin: auto; position: relative; }
.author-letter {
  position: relative; max-width: none; margin: 0 104px 0 36px;
  padding: clamp(34px, 5vw, 66px) clamp(40px, 6vw, 84px);
  background: linear-gradient(110deg, #fffdf7, #fdfbf5); border: 1px solid #ded9cc;
  box-shadow: 0 3px 2px -2px #564a3629, 0 15px 36px -20px #594c3870;
}
.author-letter::before {
  content: ""; position: absolute; inset: 0; transform: translate(-4px, 4px) rotate(-.55deg);
  background: #f8f5ea; border: 1px solid #d9d3c4; z-index: -1;
}
.letter-desk { isolation: isolate; }
.author-letter h2 { letter-spacing: -.045em; }
.author-letter p { color: #433e36; }
.letter-clipping {
  position: absolute; z-index: 1; top: -30px; right: -130px; width: 184px;
  box-sizing: border-box; margin: 0; padding: 8px 8px 13px; transform: rotate(6deg);
  background: #fffef8; border: 1px solid #d6d1c7; box-shadow: 1px 7px 13px #352a1a24;
}
.letter-clipping::before {
  content: ""; position: absolute; width: 58px; height: 16px; top: -7px; left: 39%;
  background: #dfcfa2bd; transform: rotate(-13deg); box-shadow: inset 0 1px #f6edd786;
}
.letter-clipping img { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; }
.letter-clipping blockquote { margin: 10px 5px 6px; font: 600 17px/1.45 "Songti SC", serif; }
.letter-clipping small { margin-left: 5px; font-size: 11px; color: #74695d; }
.pencil-mark {
  background: linear-gradient(177deg, transparent 12%, #b17b52 38%, #cc9f70 67%, transparent 85%) left bottom / 100% 2px no-repeat;
  padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.letter-downloads { border: 0; padding: 0; margin: 34px 0 0; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .is-read .letter-clipping { animation: reveal-clipping .68s cubic-bezier(.2,.75,.25,1) both; }
  .is-read .pencil-mark { animation: underline-quote .48s .54s ease-out both; }
  @keyframes reveal-clipping { from { transform: translate(-16px, 8px) rotate(2deg); } }
  @keyframes underline-quote { from { background-size: 0% 2px; } }
}
@media (max-width: 720px) {
  .author-note { padding: 65px 20px 48px; }
  .author-letter { margin: 0; padding: 25px clamp(20px, 5vw, 32px) 30px; }
  .letter-clipping { position: relative; top: auto; right: auto; width: min(200px, 94%); margin: -44px 0 28px auto; }
  .letter-clipping img { aspect-ratio: 3.3; }
  .author-letter p { font-size: 16px; }
}
.copy-mac { display: none; }
