@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --purple: #805aed;
  --purple-dark: #6d4cc7;
  --purple-soft: #eee9ff;
  --heading: #26222f;
  --text: #4c455f;
  --muted: #746e80;
  --surface: #ffffff;
  --background: #f5f5f5;
  --soft: #f7f7f8;
  --line: #dfdee3;
  --mint: #8efbda;
  --deep: #17141d;
  --deep-soft: #26222f;
  --shell: min(1280px, calc(100% - 80px));
  --narrow: min(800px, calc(100% - 40px));
  --focus-ring: 0 0 0 5px rgba(142, 251, 218, .82);
  --shadow-soft: 0 16px 45px rgba(38, 34, 47, .09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--surface);
  font-family: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

button,
input,
textarea,
select {
  max-width: 100%;
  color: inherit;
  font: inherit;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--deep-soft);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

::selection {
  color: var(--deep);
  background: var(--mint);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-family: "Sora", "Geist", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.45rem);
}

h3 {
  font-size: 1.25rem;
}

p,
li,
dd,
figcaption {
  overflow-wrap: break-word;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  width: var(--narrow);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-170%);
  padding: 11px 17px;
  color: var(--surface);
  background: var(--deep);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header,
.magazine-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--heading);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(38, 34, 47, .035);
  backdrop-filter: blur(14px);
}

.header-inner,
.magazine-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 42px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
}

.brand > span:last-child {
  display: flex;
  align-items: baseline;
  line-height: 1;
  letter-spacing: -.04em;
}

.brand strong,
.brand b {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.brand b {
  margin-left: .25em;
  color: var(--purple-dark);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 7px;
  overflow: hidden;
  background: var(--purple);
  border-radius: 50%;
}

.brand-mark i {
  display: block;
  align-self: end;
  background: var(--surface);
  border-radius: 999px;
}

.brand-mark i:first-child {
  height: 32%;
}

.brand-mark i:nth-child(2) {
  height: 64%;
}

.brand-mark i:nth-child(3) {
  height: 100%;
  background: var(--mint);
}

.header-kicker {
  max-width: 170px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.7vw, 27px);
  margin-left: auto;
}

.primary-nav a,
.header-about {
  position: relative;
  color: var(--heading);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--purple);
  transition: transform .2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-about:hover,
.header-about:focus-visible,
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--purple-dark);
}

.header-search {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  color: var(--heading);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .77rem;
  font-weight: 700;
  text-decoration: none;
}

.header-search:hover,
.header-search[aria-expanded="true"] {
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.header-search span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

.header-search span:last-child {
  font-size: inherit;
}

.site-search-panel[hidden] {
  display: none !important;
}

.site-search-panel {
  position: relative;
  z-index: 90;
  padding-block: 24px;
  color: var(--heading);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 35px rgba(38, 34, 47, .08);
}

.site-search-form {
  display: grid;
  grid-template-columns: minmax(140px, .32fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0;
}

.site-search-form > label {
  color: var(--heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-search-form > div {
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.site-search-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  color: var(--heading);
  background: transparent;
  border: 0;
}

.site-search-form input:focus {
  outline: 0;
}

.site-search-form > div:focus-within {
  border-color: var(--purple-dark);
  box-shadow: var(--focus-ring);
}

.site-search-form button {
  min-height: 42px;
  padding: 10px 19px;
  color: var(--surface);
  background: var(--purple-dark);
  border: 0;
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
}

.site-search-form button:hover {
  background: var(--heading);
}

.button-primary,
.button-light,
.subscribe-button,
.header-subscribe {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--surface);
  background: var(--purple-dark);
  border: 1px solid var(--purple-dark);
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary:hover,
.button-light:hover,
.subscribe-button:hover,
.header-subscribe:hover {
  color: var(--surface);
  background: var(--heading);
  border-color: var(--heading);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  margin-left: auto;
  padding: 8px;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

/* Magazine home */
.magazine-home {
  color: var(--text);
  background: var(--surface);
}

.magazine-lead {
  padding: 40px 0 70px;
  background: var(--surface);
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 30px;
  align-items: stretch;
}

.lead-story {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: var(--surface);
  background: var(--deep);
}

.lead-media,
.lead-media > a,
.lead-media picture {
  position: absolute;
  inset: 0;
}

.lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 12, .04) 22%, rgba(10, 9, 12, .47) 58%, rgba(10, 9, 12, .84) 100%);
}

.lead-story-empty {
  background: radial-gradient(circle at 82% 18%, rgba(142, 251, 218, .17), transparent 26%), linear-gradient(145deg, var(--purple-dark), var(--deep));
}

.lead-story-empty .lead-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(10, 9, 12, .7));
}

.lead-overlay {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 320px clamp(28px, 4vw, 50px) 30px;
  background: linear-gradient(180deg, transparent 36%, rgba(10, 9, 12, .47) 70%, rgba(10, 9, 12, .72) 100%);
}

.lead-overlay h1,
.lead-overlay h2 {
  max-width: 900px;
  margin: 11px 0 14px;
  color: var(--surface);
  font-size: clamp(2.1rem, 4.1vw, 4.05rem);
  line-height: 1.09;
  letter-spacing: -.045em;
}

.lead-overlay h1 a,
.lead-overlay h2 a {
  color: inherit;
  text-decoration: none;
}

.lead-overlay > p:not(.card-category),
.lead-overlay .lead-excerpt,
.lead-overlay .lead-dek {
  max-width: 760px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.9rem, 1.2vw, 1.03rem);
  line-height: 1.55;
}

.lead-overlay .card-category,
.lead-overlay .category-pill {
  color: var(--mint);
}

.lead-overlay .card-meta,
.lead-overlay .card-meta a {
  color: rgba(255, 255, 255, .74);
}

.lead-rail {
  display: grid;
  align-content: start;
  background: var(--surface);
}

.lead-rail > .magazine-heading {
  display: block;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.lead-rail > .magazine-heading .section-label {
  margin-bottom: 5px;
}

.lead-rail > .magazine-heading h2 {
  font-size: 1.18rem;
}

.rail-story {
  display: grid;
  grid-template-columns: minmax(88px, 112px) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.lead-rail > .magazine-heading + .rail-story {
  display: block;
  padding-top: 0;
}

.rail-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--background);
}

.lead-rail > .magazine-heading + .rail-story .rail-thumb {
  margin-bottom: 15px;
}

.rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.rail-story:hover .rail-thumb img,
.rail-story:focus-within .rail-thumb img {
  transform: scale(1.025);
}

.rail-copy {
  min-width: 0;
}

.rail-copy .card-category {
  margin-bottom: 6px;
}

.rail-copy h2,
.rail-copy h3 {
  margin: 0;
  font-size: clamp(.9rem, 1.2vw, 1.08rem);
  line-height: 1.27;
  letter-spacing: -.025em;
}

.lead-rail > .magazine-heading + .rail-story .rail-copy h2,
.lead-rail > .magazine-heading + .rail-story .rail-copy h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.rail-copy h2 a,
.rail-copy h3 a {
  text-decoration: none;
}

.rail-copy h2 a:hover,
.rail-copy h3 a:hover {
  color: var(--purple-dark);
}

.rail-copy time {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
}

.magazine-section,
.featured-section,
.category-section,
.latest-section {
  padding-block: 70px;
}

.magazine-section:nth-of-type(even),
.category-section,
.related-section {
  background: var(--soft);
}

.editors-section,
.category-magazine {
  border-top: 1px solid var(--line);
}

.category-magazine[data-category="inside-your-home"],
.category-magazine[data-category="everyday-science"] {
  background: var(--soft);
}

.magazine-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.magazine-heading > div,
.section-heading > div {
  max-width: 800px;
}

.magazine-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  letter-spacing: -.035em;
}

.magazine-heading > p,
.section-heading > p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
}

.magazine-heading > a,
.text-link {
  flex: 0 0 auto;
  color: var(--purple-dark);
  font-size: .77rem;
  font-weight: 700;
  text-decoration: none;
}

.magazine-heading > a:hover,
.text-link:hover {
  color: var(--heading);
  text-decoration: underline;
}

.eyebrow,
.section-label,
.card-category,
.category-pill {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--purple-dark);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
}

.category-pill {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.editors-layout,
.category-magazine-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 30px;
  align-items: start;
}

.category-magazine-grid.category-magazine-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.magazine-card,
.article-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-radius: 0;
}

.magazine-card-image,
.card-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  display: block;
  overflow: hidden;
  color: var(--surface);
  background: var(--background);
}

.magazine-card-image img,
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.magazine-card:hover .magazine-card-image img,
.magazine-card:focus-within .magazine-card-image img,
.article-card:hover .card-visual img,
.article-card:focus-within .card-visual img {
  transform: scale(1.025);
}

.magazine-card-body,
.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 0 0;
}

.magazine-card-body h3,
.article-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  line-height: 1.28;
  letter-spacing: -.028em;
}

.magazine-card-body h3 a,
.article-card h3 a {
  text-decoration: none;
}

.magazine-card-body h3 a:hover,
.article-card h3 a:hover {
  color: var(--purple-dark);
}

.magazine-card-body > p,
.article-card .card-content > p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.card-date {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 600;
}

.card-meta a {
  color: var(--purple-dark);
  font-weight: 700;
  text-decoration: none;
}

.card-meta a:hover {
  color: var(--heading);
}

.mini-process {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--purple-soft), var(--background));
}

.mini-process i {
  width: 28px;
  height: 28px;
  background: var(--purple);
}

.mini-process i:nth-child(2) {
  background: var(--mint);
}

.mini-process i:nth-child(3) {
  background: var(--heading);
}

.mini-process i:nth-child(4) {
  background: #b6a4f3;
}

.editorial-panel {
  padding: 28px;
  color: var(--heading);
  background: var(--purple-soft);
  border-top: 4px solid var(--purple);
}

.editorial-panel h2,
.editorial-panel h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.editorial-panel p {
  color: var(--text);
  font-size: .86rem;
}

.editorial-panel ul {
  display: grid;
  gap: 7px;
  padding-left: 19px;
  margin: 20px 0;
  color: var(--heading);
  font-size: .8rem;
  font-weight: 600;
}

.editorial-panel .button-primary {
  margin-top: 4px;
}

.editorial-panel .editorial-note {
  padding-top: 17px;
  margin: 20px 0 0;
  color: var(--muted);
  border-top: 1px solid rgba(109, 76, 199, .2);
  font-size: .7rem;
  line-height: 1.5;
}

.category-feature {
  min-width: 0;
}

.category-feature > .magazine-card,
.category-feature > .article-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(250px, .84fr);
  gap: 25px;
  align-items: start;
  overflow: visible;
}

.category-feature .magazine-card-image,
.category-feature .card-visual {
  aspect-ratio: 16 / 10;
}

.category-feature .magazine-card-body,
.category-feature .card-content {
  padding-top: 2px;
}

.category-feature h3,
.category-feature .article-card h3 {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
}

.category-stack {
  display: grid;
  gap: 0;
}

.category-stack .magazine-card,
.category-stack .article-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.category-stack .magazine-card:first-child,
.category-stack .article-card:first-child {
  padding-top: 0;
}

.category-stack .magazine-card-image,
.category-stack .card-visual {
  aspect-ratio: 16 / 10;
}

.category-stack .magazine-card-body,
.category-stack .card-content {
  padding-top: 0;
}

.category-stack h3,
.category-stack .article-card h3 {
  font-size: .98rem;
}

.category-stack .magazine-card-body > p,
.category-stack .article-card .card-content > p,
.category-stack .card-meta {
  display: none;
}

.magazine-ad {
  width: 100%;
  padding-block: 36px;
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.magazine-ad-inner {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #c9c6ce;
  text-align: center;
}

.magazine-ad-inner > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.magazine-ad-inner > p {
  max-width: 500px;
  margin: 0;
  font-size: .75rem;
}

.magazine-ad-compact {
  padding-block: 24px;
}

.magazine-ad-compact .magazine-ad-inner {
  min-height: 112px;
}

/* Compatibility for the original home sections */
.home-hero {
  color: var(--heading);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(45px, 6vw, 90px);
  align-items: center;
  min-height: 650px;
  padding-block: 80px;
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.hero-search,
.search-form {
  display: flex;
  max-width: 680px;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-search input,
.search-field {
  min-width: 0;
  flex: 1;
  width: 100%;
  padding: 11px 14px;
  color: var(--heading);
  background: transparent;
  border: 0;
}

.search-form label {
  min-width: 0;
  flex: 1;
}

.hero-search button,
.search-submit {
  min-height: 44px;
  padding: 11px 18px;
  color: var(--surface);
  background: var(--purple-dark);
  border: 0;
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
}

.hero-search button:hover,
.search-submit:hover {
  background: var(--heading);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 20px 0 0;
  color: var(--muted);
  list-style: none;
  font-size: .75rem;
  font-weight: 600;
}

.hero-trust li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--purple-dark);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  padding: 30px;
  overflow: hidden;
  color: var(--surface);
  background: var(--deep-soft);
}

.hero-visual > p,
.hero-visual > b {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--mint);
  font-size: .68rem;
  letter-spacing: .16em;
}

.hero-visual > b {
  display: block;
  margin-top: 22px;
  color: #c7b9ff;
  text-align: right;
}

.hero-visual ol {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-visual li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 15px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero-visual li > span {
  grid-row: 1 / 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--deep);
  background: var(--mint);
  font-size: .68rem;
  font-weight: 700;
}

.hero-visual li:nth-child(even) > span {
  background: #bca9fa;
}

.hero-visual strong {
  color: var(--surface);
  line-height: 1.2;
}

.hero-visual small {
  color: rgba(255, 255, 255, .68);
  font-size: .7rem;
}

.signal-orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -155px;
  top: -165px;
  border: 50px solid rgba(128, 90, 237, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(142, 251, 218, .05);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.featured-art {
  min-height: 450px;
  display: grid;
  align-items: stretch;
  padding: 22px;
  color: var(--surface);
  background: var(--deep);
}

.featured-art .process-diagram {
  margin: 0;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.featured-art .process-diagram ol {
  grid-template-columns: 1fr;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(35px, 5vw, 65px);
}

.featured-copy h2 {
  margin: 15px 0;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.featured-copy h2 a {
  text-decoration: none;
}

.featured-copy > p {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  color: var(--heading);
  background: var(--surface);
  border-top: 4px solid var(--accent, var(--purple));
  box-shadow: 0 1px 0 var(--line);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 36px;
  place-items: center;
  color: var(--heading);
  background: var(--accent, var(--mint));
  font-size: 1.3rem;
  font-weight: 700;
}

.category-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.category-card p {
  color: var(--text);
  font-size: .85rem;
}

.category-card b {
  margin-top: auto;
  color: var(--purple-dark);
  font-size: .74rem;
}

.method-section {
  padding-block: 85px;
  color: rgba(255, 255, 255, .82);
  background: var(--deep);
}

.method-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 120px);
}

.method-grid h2 {
  max-width: 650px;
  color: var(--surface);
}

.method-grid > div > p:not(.section-label) {
  color: rgba(255, 255, 255, .7);
}

.section-label.light {
  color: var(--mint);
}

.method-grid .button-light {
  color: var(--deep);
  background: var(--mint);
  border-color: var(--mint);
}

.method-grid ol {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.method-grid li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.method-grid li > span {
  color: var(--mint);
  font-weight: 700;
}

.method-grid li strong {
  color: var(--surface);
}

.method-grid li p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: .84rem;
}

/* Article, archives and pages */
.article-hero,
.archive-hero {
  color: var(--text);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.article-hero-inner {
  max-width: 1040px;
  padding-block: 54px 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: .7rem;
}

.breadcrumbs a {
  color: var(--purple-dark);
}

.article-hero h1 {
  max-width: 1000px;
  margin: 18px 0;
  color: var(--heading);
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
}

.article-dek {
  max-width: 850px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.58;
}

.article-featured-media {
  width: 100%;
  margin: 36px 0 0;
}

.article-featured-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--background);
  border: 1px solid var(--line);
}

.article-featured-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-featured-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-top: 25px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
}

.article-byline span:not(:last-child)::after {
  content: "·";
  margin-left: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(220px, 280px);
  gap: clamp(44px, 7vw, 82px);
  align-items: start;
  justify-content: center;
  padding-block: 70px 100px;
}

.answer-box {
  padding: 24px 27px;
  margin-bottom: 36px;
  background: var(--purple-soft);
  border-left: 4px solid var(--purple-dark);
}

.answer-box span,
.sidebar-card > span {
  color: var(--purple-dark);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.answer-box p {
  margin: 7px 0 0;
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 600;
}

.process-diagram {
  padding: 27px;
  margin: 0 0 48px;
  overflow: hidden;
  color: var(--surface);
  background: var(--deep-soft);
  border: 1px solid var(--deep-soft);
  box-shadow: var(--shadow-soft);
}

.process-diagram figcaption {
  margin-bottom: 21px;
  color: var(--surface);
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.process-diagram figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--mint);
  font-family: "Inter", sans-serif;
  font-size: .6rem;
  letter-spacing: .17em;
}

.process-diagram ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-diagram li {
  position: relative;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  color: var(--surface);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.process-diagram li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -14px;
  top: 50%;
  color: var(--mint);
  font-weight: 700;
}

.diagram-number {
  color: var(--mint);
  font-size: .63rem;
  font-weight: 700;
}

.process-diagram li strong {
  margin: 13px 0 6px;
  color: var(--surface);
  line-height: 1.18;
}

.process-diagram li > span:last-child {
  color: rgba(255, 255, 255, .65);
  font-size: .69rem;
  line-height: 1.4;
}

.process-diagram > p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .48);
  font-size: .59rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-body {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.78;
}

.article-body > * {
  max-width: 100%;
}

.article-body h2 {
  margin: 58px 0 18px;
  padding-top: 8px;
  color: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  scroll-margin-top: 110px;
}

.article-body h3 {
  margin: 32px 0 11px;
  color: var(--heading);
  font-size: 1.3rem;
}

.article-body a,
.source-section a {
  color: var(--purple-dark);
  font-weight: 600;
}

.article-body li {
  margin-block: 7px;
}

.article-body blockquote {
  padding: 18px 23px;
  margin: 30px 0;
  color: var(--text);
  background: var(--soft);
  border-left: 4px solid var(--purple);
}

.article-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.sidebar-card,
.sidebar-note {
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.article-toc ol {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.article-toc a {
  color: var(--text);
  font-size: .74rem;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--purple-dark);
}

.sidebar-note {
  background: #effdf8;
  border-color: #cceee4;
}

.sidebar-note p {
  color: #365e52;
  font-size: .75rem;
}

.sidebar-note a {
  color: #265247;
  font-size: .72rem;
  font-weight: 700;
}

.faq-section,
.source-section {
  margin-top: 65px;
  padding-top: 10px;
}

.faq-section details {
  border-top: 1px solid var(--line);
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  padding: 17px 4px;
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
}

.faq-section details p {
  padding: 0 4px 19px;
  color: var(--text);
}

.source-section > p:not(.section-label) {
  color: var(--muted);
}

.source-section ol {
  padding-left: 21px;
}

.source-section li {
  margin: 11px 0;
}

.new-window {
  display: inline-block;
  margin-left: 5px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 400;
}

.correction-note {
  padding: 23px;
  margin-top: 50px;
  background: #fff9eb;
  border: 1px solid #eadca9;
}

.correction-note p {
  margin: 7px 0;
  color: #675d3f;
  font-size: .82rem;
}

.correction-note a {
  color: #5c4c18;
  font-weight: 700;
}

.related-section {
  padding-block: 75px;
}

.related-section h2 {
  margin-bottom: 30px;
}

.archive-hero .narrow {
  padding-block: 65px;
}

.archive-hero h1 {
  margin-bottom: 15px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.archive-description {
  color: var(--text);
  font-size: 1.05rem;
}

.archive-content {
  padding-block: 70px 100px;
}

.navigation.pagination {
  margin-top: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding-inline: 10px;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
}

.page-numbers.current {
  color: var(--surface);
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.simple-page {
  padding-block: 75px 110px;
  background: var(--surface);
}

.simple-page h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.simple-page .article-body {
  margin-top: 40px;
}

.simple-page .article-body > p:first-child {
  color: var(--text);
  font-size: 1.2rem;
}

.search-form {
  margin-top: 24px;
}

.archive-hero .search-field {
  background: var(--surface);
}

.empty-state {
  max-width: 760px;
  padding: 38px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.not-found {
  min-height: 65vh;
  display: grid;
  align-items: center;
  padding-block: 75px;
  color: var(--surface);
  background: var(--deep);
}

.not-found h1 {
  color: var(--surface);
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.not-found p:not(.section-label) {
  color: rgba(255, 255, 255, .72);
  font-size: 1.1rem;
}

.not-found .search-form {
  margin-bottom: 22px;
}

/* Footer */
.site-footer,
.magazine-footer {
  padding-top: 64px;
  color: rgba(255, 255, 255, .72);
  background: var(--deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(38px, 7vw, 90px);
}

.footer-editorial {
  display: block;
}

.footer-editorial .brand,
.brand-footer {
  color: var(--surface);
}

.footer-editorial > p,
.footer-grid section > p {
  max-width: 430px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .62);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 30px;
}

.footer-grid nav,
.footer-links nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid h2,
.footer-links h2 {
  margin-bottom: 9px;
  color: var(--mint);
  font-family: "Inter", sans-serif;
  font-size: .65rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.footer-grid nav a,
.footer-links nav a {
  color: rgba(255, 255, 255, .68);
  font-size: .79rem;
  text-decoration: none;
}

.footer-grid nav a:hover,
.footer-links nav a:hover {
  color: var(--surface);
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-bottom,
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
  margin-top: 54px;
  color: rgba(255, 255, 255, .46);
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .68rem;
}

@media (max-width: 1024px) {
  :root {
    --shell: min(940px, calc(100% - 48px));
  }

  body.admin-bar .site-header {
    top: 32px;
  }

  .header-inner,
  .magazine-header-inner {
    min-height: 78px;
  }

  .header-kicker,
  .header-about {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    left: 24px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px;
    color: var(--heading);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav a {
    padding: 11px 12px;
  }

  .primary-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions {
    gap: 8px;
  }

  .lead-grid,
  .editors-layout,
  .category-magazine-grid {
    grid-template-columns: 1fr;
  }

  .lead-story,
  .lead-overlay {
    min-height: 560px;
  }

  .lead-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 25px;
  }

  .lead-rail > .magazine-heading {
    grid-column: 1 / -1;
  }

  .lead-rail > .magazine-heading + .rail-story {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: 15px;
    padding-top: 19px;
  }

  .lead-rail > .magazine-heading + .rail-story .rail-thumb {
    margin-bottom: 0;
  }

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

  .editorial-panel,
  .magazine-ad {
    max-width: none;
  }

  .hero-grid,
  .featured-card,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-visual {
    max-width: 750px;
  }

  .featured-art {
    min-height: 370px;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 780px);
  }

  .article-sidebar {
    position: static;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  }
}

@media (max-width: 767px) {
  :root {
    --shell: calc(100% - 32px);
    --narrow: calc(100% - 32px);
  }

  html {
    scroll-padding-top: 80px;
  }

  body {
    font-size: 15.5px;
  }

  body.admin-bar .site-header {
    top: 0;
  }

  .header-inner,
  .magazine-header-inner {
    min-height: 70px;
    gap: 8px;
  }

  .primary-nav {
    right: 16px;
    left: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong,
  .brand b {
    font-size: .88rem;
  }

  .header-subscribe,
  .subscribe-button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: .7rem;
  }

  .header-search {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 7px;
    font-size: 0;
  }

  .header-search span:last-child {
    display: none;
  }

  .site-search-panel {
    padding-block: 18px;
  }

  .site-search-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-search-form > div {
    width: 100%;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .magazine-lead {
    padding: 22px 0 50px;
  }

  .lead-story,
  .lead-overlay {
    min-height: 500px;
  }

  .lead-overlay {
    padding: 80px 24px 24px;
  }

  .lead-overlay h1,
  .lead-overlay h2 {
    font-size: clamp(2rem, 9.5vw, 3.15rem);
  }

  .lead-overlay > p:not(.card-category),
  .lead-overlay .lead-excerpt {
    display: none;
  }

  .lead-rail {
    grid-template-columns: 1fr;
  }

  .lead-rail > .magazine-heading + .rail-story,
  .rail-story {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 17px 0;
  }

  .lead-rail > .magazine-heading + .rail-story .rail-thumb {
    margin-bottom: 0;
  }

  .magazine-section,
  .featured-section,
  .category-section,
  .latest-section,
  .related-section {
    padding-block: 52px;
  }

  .magazine-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 24px;
  }

  .magazine-heading > p,
  .section-heading > p {
    max-width: none;
  }

  .editors-grid,
  .article-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-feature > .magazine-card,
  .category-feature > .article-card {
    grid-template-columns: 1fr;
  }

  .category-feature .magazine-card-body,
  .category-feature .card-content {
    padding-top: 14px;
  }

  .category-stack .magazine-card,
  .category-stack .article-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .home-hero h1,
  .hero-copy h1 {
    font-size: clamp(2.7rem, 13.5vw, 4.5rem);
  }

  .hero-grid {
    padding-block: 55px;
  }

  .hero-search,
  .search-form {
    display: grid;
  }

  .hero-search button,
  .search-submit {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    padding: 20px;
  }

  .hero-visual li {
    padding: 13px;
  }

  .featured-art {
    min-height: 0;
    padding: 13px;
  }

  .featured-copy {
    padding: 28px 22px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 245px;
  }

  .method-section {
    padding-block: 65px;
  }

  .article-hero-inner {
    padding-block: 40px 50px;
  }

  .article-hero h1 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .article-featured-media {
    margin-top: 25px;
  }

  .article-byline {
    display: grid;
    gap: 5px;
  }

  .article-byline span::after {
    display: none;
  }

  .article-layout {
    padding-block: 48px 72px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .process-diagram {
    padding: 19px;
  }

  .process-diagram ol {
    grid-template-columns: 1fr;
  }

  .process-diagram li {
    min-height: 0;
  }

  .process-diagram li:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -16px;
    transform: rotate(90deg);
  }

  .article-body {
    font-size: 1rem;
  }

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom,
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 24px);
    --narrow: calc(100% - 24px);
  }

  .brand > span:last-child {
    display: grid;
    gap: 1px;
  }

  .brand b {
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-subscribe,
  .subscribe-button {
    display: none;
  }

  .site-search-form > div {
    display: grid;
  }

  .site-search-form button {
    width: 100%;
  }

  .lead-story,
  .lead-overlay {
    min-height: 445px;
  }

  .lead-overlay {
    padding-inline: 19px;
  }

  .lead-rail > .magazine-heading + .rail-story,
  .rail-story {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px;
  }

  .category-stack .magazine-card,
  .category-stack .article-card {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }

  .editorial-panel,
  .magazine-ad,
  .empty-state {
    padding: 20px;
  }

  .article-hero h1,
  .simple-page h1,
  .archive-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}
