.i686-hero,
.i686-thesis-map,
.sp-article.sp-reading[data-shareplane-special="issue-686"] {
  --i686-navy: #071b33;
  --i686-navy-2: #0b3154;
  --i686-blue: #1674bb;
  --i686-cyan: #30b9e8;
  --i686-green: #23825c;
  --i686-amber: #b56d06;
  --i686-red: #a92e2e;
  --i686-paper: #f7f8fa;
  --i686-panel: #ffffff;
  --i686-ink: #172332;
  --i686-muted: #607083;
  --i686-line: #d9e0e8;
  --i686-shadow: 0 18px 50px rgb(8 29 53 / 14%);
}

.i686-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(82rem, calc(100% - 3rem));
  margin: 1.4rem auto 0;
  padding: clamp(2.5rem, 6vw, 5.8rem) clamp(1.5rem, 5vw, 5rem);
  border: 1px solid rgb(105 187 226 / 24%);
  border-radius: 1.35rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgb(48 185 232 / 24%), transparent 29%),
    radial-gradient(circle at 63% 80%, rgb(107 75 182 / 20%), transparent 24%),
    linear-gradient(145deg, #06182f 0%, #092b4d 58%, #06182f 100%);
  box-shadow: var(--i686-shadow);
}

.i686-hero::after {
  position: absolute;
  z-index: -1;
  right: -10rem;
  bottom: -14rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgb(113 196 237 / 20%);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgb(113 196 237 / 4%), 0 0 0 10rem rgb(113 196 237 / 2%);
  content: "";
}

.i686-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: end;
}

.i686-eyebrow,
.i686-surface__kicker,
.i686-source__kicker {
  margin: 0 0 0.9rem;
  color: #68caef;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.i686-hero h1 {
  max-width: 56rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.i686-hero__dek {
  max-width: 48rem;
  margin: 1.55rem 0 0;
  color: #d8e9f7;
  font-size: clamp(1.12rem, 2.2vw, 1.65rem);
  line-height: 1.38;
}

.i686-hero__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 1.4rem 0 0;
  color: #a9c9df;
  font-size: 0.84rem;
}

.i686-hero__byline a {
  color: #fff;
}

.i686-hero__contract {
  padding: 1.35rem;
  border: 1px solid rgb(161 210 239 / 24%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 7%);
  backdrop-filter: blur(10px);
}

.i686-hero__contract > strong {
  display: block;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.26rem;
  line-height: 1.28;
}

.i686-hero__contract ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: contract-layer;
}

.i686-hero__contract li {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.58rem 0.68rem;
  border-left: 3px solid var(--i686-cyan);
  border-radius: 0.45rem;
  color: #dcecf7;
  background: rgb(9 26 46 / 64%);
  font-size: 0.82rem;
  counter-increment: contract-layer;
}

.i686-hero__contract li::before {
  color: #82d8f4;
  font-weight: 800;
  content: "0" counter(contract-layer);
}

.i686-thesis-map {
  position: static;
  width: min(74rem, calc(100% - 3rem));
  margin: 1.25rem auto 2.8rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--i686-line);
  border-radius: 1rem;
  color: var(--i686-ink);
  background: var(--i686-panel);
  box-shadow: 0 8px 30px rgb(10 37 68 / 7%);
}

.i686-thesis-map__head {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.i686-thesis-map h2 {
  margin: 0;
  color: var(--i686-ink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.i686-thesis-map p {
  margin: 0;
  color: var(--i686-muted);
  font-size: 0.76rem;
}

.i686-thesis-map ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.i686-thesis-map a {
  display: block;
  padding: 0.43rem 0.5rem;
  border-radius: 0.45rem;
  color: #30465d;
  font-size: 0.78rem;
  text-decoration: none;
}

.i686-thesis-map a:hover,
.i686-thesis-map a:focus-visible {
  color: #075f9f;
  background: #eef5fa;
}

.sp-article.sp-reading[data-shareplane-special="issue-686"] {
  width: min(48.5rem, calc(100% - 3rem));
  margin-inline: auto;
  color: var(--i686-ink);
}

.sp-article.sp-reading[data-shareplane-special="issue-686"] > section {
  scroll-margin-top: 5rem;
}

.sp-article.sp-reading[data-shareplane-special="issue-686"] > section:first-of-type,
.sp-article.sp-reading[data-shareplane-special="issue-686"] > p:first-of-type,
.sp-article.sp-reading[data-shareplane-special="issue-686"] > h1:first-of-type,
.sp-article.sp-reading[data-shareplane-special="issue-686"] > h2:first-of-type {
  margin-top: 0;
}

.sp-article.sp-reading[data-shareplane-special="issue-686"] blockquote {
  margin: 2rem 0;
  padding: 1.35rem 1.55rem;
  border-left: 5px solid var(--i686-cyan);
  border-radius: 0 0.85rem 0.85rem 0;
  color: #0b2741;
  background: #fff;
  box-shadow: 0 10px 30px rgb(10 37 68 / 7%);
  font-size: 1.2rem;
  font-weight: 700;
}

.i686-surface {
  position: relative;
  width: min(76rem, calc(100vw - 3rem));
  margin: 3rem 50%;
  padding: clamp(1.35rem, 3vw, 2.3rem);
  transform: translateX(-50%);
  border: 1px solid #cbd9e6;
  border-radius: 1.2rem;
  color: var(--i686-ink);
  background: linear-gradient(145deg, #fff, #f3f7fa);
  box-shadow: var(--i686-shadow);
  overflow: hidden;
}

.i686-surface::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.28rem;
  background: linear-gradient(90deg, var(--i686-blue), var(--i686-cyan), var(--i686-green));
  content: "";
}

.i686-surface header {
  max-width: 55rem;
  margin-bottom: 1.5rem;
}

.i686-surface__kicker {
  color: var(--i686-blue);
}

.i686-surface h2 {
  margin: 0;
  color: var(--i686-navy);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.i686-surface header p {
  margin: 0.8rem 0 0;
  color: var(--i686-muted);
}

.i686-flow,
.i686-paths,
.i686-spectrum,
.i686-contract-grid,
.i686-arm-grid {
  display: grid;
  gap: 0.8rem;
}

.i686-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.i686-flow > div,
.i686-path,
.i686-spectrum > div,
.i686-contract-grid > div,
.i686-arm-grid > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--i686-line);
  border-radius: 0.8rem;
  background: #fff;
}

.i686-flow span,
.i686-path small,
.i686-spectrum small,
.i686-contract-grid small,
.i686-arm-grid small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--i686-blue);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.i686-flow strong,
.i686-path strong,
.i686-spectrum strong,
.i686-contract-grid strong,
.i686-arm-grid strong {
  display: block;
  color: var(--i686-navy);
  line-height: 1.25;
}

.i686-flow p,
.i686-path p,
.i686-spectrum p,
.i686-contract-grid p,
.i686-arm-grid p {
  margin: 0.45rem 0 0;
  color: var(--i686-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.i686-paths {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.i686-path--windows {
  border-top: 4px solid #456e97;
}

.i686-path--linux {
  border-top: 4px solid var(--i686-green);
}

.i686-result {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e4cf9e;
  border-radius: 0.7rem;
  color: #5e4516;
  background: #fff8e9;
}

.i686-spectrum {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.i686-spectrum > div:nth-child(1) {
  border-top: 4px solid var(--i686-green);
}

.i686-spectrum > div:nth-child(2) {
  border-top: 4px solid var(--i686-amber);
}

.i686-spectrum > div:nth-child(3) {
  border-top: 4px solid var(--i686-red);
}

.i686-contract-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.i686-contract-grid > div:last-child {
  grid-column: span 3;
  color: #fff;
  background: linear-gradient(135deg, var(--i686-navy), var(--i686-navy-2));
}

.i686-contract-grid > div:last-child strong,
.i686-contract-grid > div:last-child p {
  color: #fff;
}

.i686-arm-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.i686-arm-grid code {
  display: block;
  margin-top: 0.8rem;
  padding: 0.65rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.i686-surface__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--i686-muted);
  font-size: 0.76rem;
}

.i686-surface__actions a {
  font-weight: 800;
}

.i686-source {
  width: min(62rem, calc(100vw - 3rem));
  margin: 3rem 50%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transform: translateX(-50%);
  border: 1px solid #b7d4e8;
  border-radius: 1.1rem;
  color: #19344c;
  background: #edf8fd;
}

.i686-source__kicker {
  color: #0a5f90;
}

.i686-source h2 {
  margin: 0;
  color: var(--i686-navy);
}

.i686-source p {
  margin: 0.75rem 0 0;
}

.i686-source__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.i686-source__actions a {
  display: inline-flex;
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--i686-navy-2);
  font-weight: 800;
  text-decoration: none;
}

.i686-source__actions a:last-child {
  color: var(--i686-navy-2);
  background: #fff;
  box-shadow: inset 0 0 0 1px #a9cce1;
}

.i686-closing {
  width: min(62rem, calc(100vw - 3rem));
  margin: 3rem 50%;
  padding: clamp(1.6rem, 4vw, 3rem);
  transform: translateX(-50%);
  border-radius: 1.2rem;
  color: #d8e8f5;
  background: linear-gradient(145deg, var(--i686-navy), var(--i686-navy-2));
  box-shadow: var(--i686-shadow);
}

.i686-closing p {
  margin: 0;
  color: inherit;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.i686-closing strong {
  color: #fff;
}

.i686-closing__last {
  margin-top: 1.15rem !important;
  color: #fff !important;
  font-size: clamp(1.45rem, 3vw, 2.3rem) !important;
  font-weight: 820;
  line-height: 1.25;
}

html[data-theme="dark"] .i686-thesis-map,
html[data-theme="dark"] .i686-surface,
html[data-theme="dark"] .i686-source,
html[data-theme="dark"] .sp-article.sp-reading[data-shareplane-special="issue-686"] {
  --i686-panel: #10253b;
  --i686-paper: #081a2c;
  --i686-ink: #e7f0f8;
  --i686-muted: #adc0d0;
  --i686-line: #29445d;
}

html[data-theme="dark"] .i686-thesis-map,
html[data-theme="dark"] .i686-surface {
  color: var(--i686-ink);
  background: linear-gradient(145deg, #10253b, #0a1f33);
}

html[data-theme="dark"] .i686-thesis-map h2,
html[data-theme="dark"] .i686-surface h2 {
  color: #f1f7fb;
}

html[data-theme="dark"] .i686-thesis-map a {
  color: #c1d4e3;
}

html[data-theme="dark"] .i686-flow > div,
html[data-theme="dark"] .i686-path,
html[data-theme="dark"] .i686-spectrum > div,
html[data-theme="dark"] .i686-contract-grid > div,
html[data-theme="dark"] .i686-arm-grid > div {
  color: #e7f0f8;
  background: #112b43;
}

html[data-theme="dark"] .i686-flow strong,
html[data-theme="dark"] .i686-path strong,
html[data-theme="dark"] .i686-spectrum strong,
html[data-theme="dark"] .i686-contract-grid strong,
html[data-theme="dark"] .i686-arm-grid strong {
  color: #fff;
}

@media (max-width: 860px) {
  .i686-hero__grid,
  .i686-paths,
  .i686-arm-grid {
    grid-template-columns: 1fr;
  }

  .i686-thesis-map ol,
  .i686-flow,
  .i686-spectrum,
  .i686-contract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .i686-contract-grid > div:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .i686-hero,
  .i686-thesis-map,
  .sp-article.sp-reading[data-shareplane-special="issue-686"] {
    width: calc(100% - 1.5rem);
  }

  .i686-hero {
    padding: 2rem 1.1rem;
    border-radius: 0.9rem;
  }

  .i686-thesis-map {
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .i686-thesis-map__head {
    display: block;
  }

  .i686-thesis-map p {
    margin-top: 0.35rem;
  }

  .i686-thesis-map ol,
  .i686-flow,
  .i686-spectrum,
  .i686-contract-grid {
    grid-template-columns: 1fr;
  }

  .i686-contract-grid > div:last-child {
    grid-column: auto;
  }

  .i686-surface,
  .i686-source,
  .i686-closing {
    width: calc(100vw - 1rem);
    margin-block: 2rem;
    border-radius: 0.8rem;
  }

  .i686-surface {
    padding: 1.1rem;
  }
}

@media print {
  .i686-hero,
  .i686-thesis-map,
  .i686-surface,
  .i686-source,
  .i686-closing {
    width: 100%;
    margin: 1.5rem 0;
    transform: none;
    box-shadow: none;
    break-inside: avoid;
  }

  .i686-thesis-map {
    display: none;
  }
}
