:root {
  --page-bg: #ffffff;
  --sheet: #ffffff;
  --ink: #151515;
  --body: #252525;
  --muted: #8a9096;
  --hairline: #d9dee2;
  --accent: #244a8f;
  --accent-soft: #eef3fb;
  --control-bg: #ffffff;
  --control-text: #171717;
  --menu-bg: #ffffff;
  --menu-text: #252525;
  --shadow: 0 30px 90px rgba(48, 59, 70, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --content: min(660px, calc(100vw - 48px));
  --hero: min(860px, calc(100vw - 48px));
  color-scheme: light;
}

html[data-theme="dark"] {
  --page-bg: #0f1419;
  --sheet: #0f1419;
  --ink: #f4efe6;
  --body: #dce1e5;
  --muted: #9aa6b2;
  --hairline: #2c3944;
  --accent: #8fb7ff;
  --accent-soft: rgba(143, 183, 255, 0.13);
  --control-bg: #121c25;
  --control-text: #f4efe6;
  --menu-bg: #121c25;
  --menu-text: #e4e9ed;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.itshover-icon :is(path, g) {
  transform-box: fill-box;
  transform-origin: center;
}

.theme-icon-stack {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
}

.theme-icon {
  grid-area: 1 / 1;
}

html[data-theme="light"] .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  background-color: var(--page-bg);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  width: min(calc(100vw - 96px), 1160px);
  min-height: calc(100vh - 40px);
  margin: 32px auto 0;
  background: var(--sheet);
  box-shadow: var(--shadow);
  overflow: clip;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
}

.brand {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link,
.header-cta,
.theme-toggle,
.mobile-menu-button,
.share-action,
.mobile-actions button,
.mobile-actions a {
  border: 0;
  background: transparent;
  color: var(--control-text);
  text-decoration: none;
  cursor: pointer;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.nav-link-accent {
  color: var(--accent);
  font-weight: 600;
}

.header-cta,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--control-bg);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-cta {
  padding: 0 13px;
}

.header-cta:hover,
.header-cta:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
}

.theme-toggle {
  width: 32px;
  padding: 0;
}

.theme-toggle-icon {
  border-radius: 50%;
}

.subscribe-popover {
  position: relative;
}

.subscribe-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 12;
  width: 336px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--menu-bg);
  box-shadow: 0 18px 50px rgba(36, 43, 51, 0.16);
}

.subscribe-form {
  display: grid;
  gap: 11px;
}

.subscribe-copy {
  display: grid;
  gap: 4px;
}

.subscribe-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.subscribe-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.subscribe-form label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--control-bg);
}

.subscribe-row input {
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--control-text);
  font: inherit;
  font-size: 13px;
}

.subscribe-row button {
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.subscribe-confirmation {
  margin: 0;
  padding: 10px 11px;
  border-radius: 6px;
  background: #1d6fe8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.mobile-menu {
  display: none;
}

.share-rail {
  position: absolute;
  top: 520px;
  left: 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: #8f9499;
}

.share-label {
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 108px;
  min-height: 32px;
  padding: 0 11px 0 8px;
  border: 1px solid #e5e8ea;
  border-color: var(--hairline);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.share-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-mark .ui-icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

.share-action:hover,
.share-action:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
}

.section-rail {
  position: fixed;
  top: calc(50% + 88px);
  right: max(40px, calc((100vw - 1160px) / 2 + 40px));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 154px;
}

.section-rail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.section-dash {
  width: 14px;
  height: 1px;
  background: color-mix(in srgb, var(--muted) 70%, transparent);
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.section-label {
  opacity: 0.58;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.section-rail-link:hover,
.section-rail-link:focus-visible {
  color: var(--accent);
}

.section-rail-link:hover .section-dash,
.section-rail-link:focus-visible .section-dash {
  width: 34px;
  background: var(--accent);
  transform: translateX(2px);
}

.section-rail-link:hover .section-label,
.section-rail-link:focus-visible .section-label {
  opacity: 1;
  transform: translateX(2px);
}

@media (prefers-reduced-motion: no-preference) {
  :is(.share-action, .mobile-actions button):hover .front-copy {
    animation: icon-copy-shift 420ms ease both;
  }

  :is(.share-action, .mobile-actions a):hover .mail-open {
    animation: icon-mail-open 520ms ease both;
    transform-origin: top center;
  }

  :is(.share-action, .mobile-actions button):hover .file-fold {
    animation: icon-file-fold 520ms ease both;
  }

  :is(.share-action, .mobile-actions button):hover .file-line {
    animation: icon-line-draw 520ms ease both;
    stroke-dasharray: 10;
  }

  :is(.nav-link-accent, .mobile-actions a):hover .pen-group {
    animation: icon-pen-write 580ms ease both;
  }

  :is(.nav-link-accent, .mobile-actions a):hover .pen-slash {
    animation: icon-line-draw 520ms ease both;
    stroke-dasharray: 9;
  }

  :is(.header-cta, .mobile-subscribe > button):hover .send-paths {
    animation: icon-send-fly 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  :is(.theme-toggle, .mobile-actions [data-theme-toggle]):hover .moon-shape {
    animation: icon-moon-tilt 560ms ease both;
  }

  :is(.theme-toggle, .mobile-actions [data-theme-toggle]):hover .sun-center {
    animation: icon-sun-pulse 620ms ease both;
  }

  :is(.theme-toggle, .mobile-actions [data-theme-toggle]):hover .sun-rays {
    animation: icon-rays-pulse 620ms ease both;
  }

  .mobile-menu-button:hover .list-line-1 {
    animation: icon-list-grow 420ms ease both;
  }

  .mobile-menu-button:hover .list-line-2 {
    animation: icon-list-grow 420ms ease 60ms both;
  }

  .mobile-menu-button:hover .list-line-3 {
    animation: icon-list-grow 420ms ease 120ms both;
  }

  .mobile-menu-button:hover .list-dots {
    animation: icon-dot-pulse 520ms ease both;
  }

}

@keyframes icon-copy-shift {
  45% {
    transform: translate(2px, -2px);
  }
}

@keyframes icon-mail-open {
  45% {
    transform: translateY(-1px) rotateX(48deg);
  }
}

@keyframes icon-file-fold {
  45% {
    transform: translate(-1px, 1px);
  }
}

@keyframes icon-line-draw {
  0% {
    stroke-dashoffset: 10;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes icon-pen-write {
  35% {
    transform: translate(1px, -1px) rotate(-2deg);
  }
  70% {
    transform: translate(-1px, 1px) rotate(1deg);
  }
}

@keyframes icon-send-fly {
  40% {
    opacity: 0;
    transform: translate(8px, -8px) scale(0.86);
  }
  41% {
    opacity: 0;
    transform: translate(-7px, 7px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes icon-moon-tilt {
  50% {
    transform: rotate(-18deg) scale(1.08);
  }
}

@keyframes icon-sun-pulse {
  50% {
    transform: scale(1.16);
  }
}

@keyframes icon-rays-pulse {
  45% {
    opacity: 0.48;
    transform: rotate(18deg);
  }
}

@keyframes icon-list-grow {
  50% {
    transform: scaleX(0.72);
  }
}

@keyframes icon-dot-pulse {
  45% {
    opacity: 0.42;
    transform: scale(0.86);
  }
}

.content {
  padding: 0 0 96px;
}

.article {
  margin: 0 auto;
  scroll-margin-top: 78px;
}

.article-hero {
  position: relative;
  width: var(--hero);
  margin: 0 auto;
  padding-top: 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(2.35rem, 3.2vw, 2.7rem);
  line-height: 1.12;
}

.dek {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.signoff-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 28px;
  color: var(--body);
  font-size: 11px;
  line-height: 1.3;
}

.signoff-name {
  color: var(--accent);
  font-weight: 700;
}

.signoff-role {
  color: var(--muted);
  font-size: 10px;
}

.audio-panel {
  position: absolute;
  left: calc((100% - var(--content)) / 2 - 6px);
  bottom: -10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--hairline));
  border-radius: 999px;
  background: color-mix(in srgb, var(--control-bg) 94%, transparent);
  box-shadow: 0 10px 24px rgba(36, 43, 51, 0.08);
  text-align: left;
}

.audio-play,
.audio-rate {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.audio-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sheet);
}

.audio-play:hover,
.audio-play:focus-visible {
  background: var(--accent);
}

.audio-icon {
  grid-area: 1 / 1;
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.audio-icon-pause,
.audio-panel[data-audio-playing="true"] .audio-icon-play {
  display: none;
}

.audio-panel[data-audio-playing="true"] .audio-icon-pause {
  display: block;
}

.audio-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.audio-rate {
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--control-text);
  font-size: 10px;
  font-weight: 800;
}

.audio-rate:hover,
.audio-rate:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hairline));
}

.share-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 11px;
}

.article-body {
  width: var(--content);
  margin: 56px auto 0;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.84;
  overflow-wrap: break-word;
}

.article-body > p:first-child::first-letter {
  float: left;
  margin: 9px 10px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.75;
  font-weight: 700;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body section {
  scroll-margin-top: 96px;
}

h2 {
  margin: 52px 0 16px;
  font-size: 29px;
  line-height: 1.25;
}

ul {
  margin: 0 0 24px;
  padding-left: 24px;
}

li {
  margin: 0 0 10px;
  padding-left: 4px;
}

.article-footer {
  margin: 64px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.article-footer p {
  margin-bottom: 10px;
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(calc(100vw - 40px), 760px);
  }

  .article-hero {
    width: min(calc(100% - 48px), 720px);
  }

  .share-rail {
    display: none;
  }

  .section-rail {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --content: min(calc(100vw - 48px), 540px);
    --hero: min(calc(100vw - 48px), 520px);
  }

  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    box-shadow: none;
  }

  .site-header {
    height: 56px;
    padding: 0 24px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .mobile-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 20;
    display: block;
    min-height: calc(100vh - 56px);
    padding: 14px 24px 20px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: var(--menu-bg);
    box-shadow: 0 16px 34px rgba(34, 42, 50, 0.12);
  }

  .mobile-menu a,
  .mobile-actions button,
  .mobile-actions a {
    display: block;
    width: 100%;
    padding: 11px 0;
    color: var(--menu-text);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
  }

  .mobile-subscribe {
    position: relative;
    grid-column: 1 / -1;
  }

  .mobile-actions button,
  .mobile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--hairline);
    background: var(--control-bg);
    color: var(--control-text);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }

  .mobile-subscribe > button {
    width: 100%;
  }

  .mobile-subscribe .subscribe-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
  }

  .mobile-subscribe .subscribe-row button {
    display: inline-flex;
    width: auto;
    min-height: 34px;
    padding: 0 15px;
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
  }

  .content {
    padding: 0 0 72px;
  }

  .article-hero {
    width: var(--hero);
    padding-top: 54px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.35rem);
    line-height: 1.08;
  }

  .dek {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.72;
  }

  .audio-panel {
    left: calc((100% - var(--content)) / 2 - 6px);
  }

  .article-body {
    width: var(--content);
    margin-top: 48px;
    font-size: 16px;
    line-height: 1.76;
  }

  h2 {
    margin-top: 44px;
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  :root {
    --content: calc(100vw - 40px);
    --hero: calc(100vw - 40px);
  }

  .site-header {
    padding: 0 20px;
  }

  .article-hero,
  .article-body {
    width: var(--content);
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.18rem);
  }

  .article-body > p:first-child::first-letter {
    font-size: 62px;
    margin-top: 8px;
  }

  .audio-panel {
    left: calc((100% - var(--content)) / 2 - 6px);
    bottom: -12px;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .mobile-menu,
  .share-rail,
  .section-rail,
  .audio-panel,
  .share-status {
    display: none !important;
  }

  .page-shell {
    width: auto;
    min-height: auto;
    margin: 0;
    box-shadow: none;
  }

  .content {
    padding: 0;
  }

  .article-hero,
  .article-body {
    width: auto;
    max-width: none;
  }
}
