@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,600;0,6..72,700;1,6..72,600;1,6..72,700&display=swap");
/*
  Site-wide editorial system
  Extends the annotated field-guide language beyond the opening screen.
*/

body:not(.home-page):not(.issue-page) main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.editorial-page {
  display: grid;
  width: min(1488px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  border-right: 1px solid rgba(91, 69, 194, .2);
  border-left: 1px solid rgba(91, 69, 194, .2);
}

.editorial-sheet {
  min-width: 0;
  padding: 0 clamp(36px, 5.3vw, 76px) 90px;
}

.page-rail {
  position: relative;
  min-width: 0;
  padding: 46px clamp(28px, 3.2vw, 48px) 52px;
  border-right: 1px solid var(--line);
  background-color: var(--paper);
  background-image: url("/assets/editorial-rail-paper.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.page-rail-label,
.page-meta,
.page-rail-index strong,
.page-rail-footer strong,
.section-rule-heading,
.step-label,
.footer-label,
.resource-meta,
.archive-date,
.newsletter .eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-rail-label {
  margin: 0 0 25px;
  color: var(--terracotta-dark);
  font-size: 11px;
}

.page-rail-note {
  max-width: 225px;
  margin: 0 0 32px 7px;
  padding: 0 0 14px;
  border-bottom: 4px solid var(--terracotta);
  color: var(--navy);
  font-family: var(--hand);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  line-height: 1.02;
  transform: rotate(-1deg);
}

.page-rail-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-rail-index li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px dotted rgba(106, 101, 119, .35);
}

.page-rail-index li > span {
  color: var(--terracotta-dark);
  font-size: 14px;
  font-weight: 600;
}

.page-rail-index a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.page-rail-index strong {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 3px solid var(--terracotta);
  color: var(--navy);
  font-size: 13px;
}

.page-rail-index small {
  display: block;
  margin-top: 7px;
  color: #3b3747;
  font-size: 13px;
  line-height: 1.4;
}

.page-rail-index a:hover strong,
.page-rail-index a:focus-visible strong { color: var(--terracotta-dark); }

.page-rail-footer {
  position: sticky;
  top: calc(100vh - 130px);
  margin-top: 110px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-rail-footer strong {
  display: block;
  color: var(--navy);
  font-size: 10px;
}

.page-rail-footer span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.editorial-page .page-hero {
  position: relative;
  max-width: none;
  min-height: 560px;
  padding: 36px 0 58px;
  border-bottom: 1px solid var(--line);
}

.editorial-page .page-meta {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(38, 34, 47, .55);
  color: var(--muted);
  font-size: 10px;
}

.editorial-page .page-meta span:first-child { color: var(--terracotta-dark); }

.page-hero-copy { padding-top: clamp(58px, 7vw, 88px); }

.editorial-page .page-hero .eyebrow { margin-bottom: 17px; }

.editorial-page .page-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3.6rem, 5.55vw, 5.8rem);
  line-height: .98;
}

.editorial-page .page-hero-copy > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: #444147;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
}

.page-hero-note {
  width: fit-content;
  max-width: 520px;
  margin: 32px 22px 0 auto;
  padding: 0 5px 7px;
  border-bottom: 3px solid var(--terracotta);
  color: #4c515b;
  font-family: var(--hand);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.08;
  transform: rotate(-.6deg);
}

.section-rule-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--terracotta-dark);
  font-size: 10px;
}

.section-rule-heading p { margin: 0; color: var(--muted); }

/* Archive */
.archive-tools {
  display: flex;
  gap: 8px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.filter-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(247, 245, 240, .68);
  padding: 9px 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cream);
}

.archive-list { padding: 40px 0 10px; }

.archive-card {
  display: grid;
  min-height: 240px;
  grid-template-columns: 120px minmax(0, 1fr) 150px;
  gap: 38px;
  align-items: start;
  padding: 38px 0 42px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.archive-card[hidden] { display: none; }

.archive-date { gap: 6px; font-size: 9px; }
.archive-date strong { color: var(--terracotta); font-family: var(--serif); font-size: 3.4rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.archive-date time { letter-spacing: .08em; }

.archive-card > div:nth-child(2) > p:first-child {
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.archive-card h2 { margin: 9px 0 14px; font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.05; }
.archive-card p { max-width: 700px; color: var(--muted); font-size: 14px; }
.archive-card > a { align-self: center; padding-bottom: 4px; border-bottom: 2px solid var(--terracotta); color: var(--navy); font-size: 12px; }
.migration-note { align-self: center; color: #817a75; font-size: 11px; }

.status {
  width: fit-content;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.status.preview { border-color: var(--terracotta); background: transparent; color: var(--terracotta-dark); }

.tag-row span,
.tag-row a { border-color: var(--line); background: rgba(247, 245, 240, .45); }

.tag-row a { color: var(--muted); text-decoration: none; }
.tag-row a:hover,
.tag-row a:focus-visible { border-color: var(--terracotta); color: var(--navy); }

.topic-directory {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.topic-directory > span {
  margin-right: 8px;
  color: var(--terracotta-dark);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topic-directory a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.topic-directory a:hover,
.topic-directory a:focus-visible { border-color: var(--navy); color: var(--navy); }

.topic-issue-list { padding-top: 40px; }

/* Resource shelf */
.resource-shelf { padding-top: 62px; }
.resource-shelf + .resource-shelf { padding-top: 78px; }
.resource-shelf .section-rule-heading { margin-bottom: 0; }

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 56px 0 38px;
  border-bottom: 1px solid var(--line);
}

.resource-card {
  min-height: 390px;
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(247, 245, 240, .34);
  padding: 34px 38px 40px;
}

.resource-card:nth-child(even) { border-right: 0; }
.resource-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.resource-card.free { background: rgba(220, 231, 117, .42); }
.resource-card.featured {
  grid-column: 1 / -1;
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(220, 231, 117, .56), rgba(247, 245, 240, .34)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(139, 120, 214, .08) 32px);
}
.resource-card.featured h2 { max-width: 760px; }
.resource-card.featured > p { max-width: 720px; }
.resource-card.featured .resource-card-upgrade { max-width: 760px; }

.resource-meta { color: var(--muted); font-size: 9px; }
.resource-meta > span:first-child { display: flex; gap: 15px; align-items: center; }
.resource-meta strong { color: var(--terracotta-dark); font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: -.03em; }

.resource-card h2 { margin: 58px 0 18px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.resource-card p { max-width: 480px; color: var(--muted); font-size: 14px; }
.resource-card a { margin-top: 30px; padding-bottom: 3px; border-bottom: 2px solid var(--terracotta); color: var(--navy); font-size: 12px; }

.resource-origin-line {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 9px !important;
  line-height: 1.65;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.resource-card-upgrade {
  margin: 34px -12px -14px;
  padding: 22px 24px;
  border-top: 1px solid rgba(38, 34, 47, .18);
  background: rgba(38, 34, 47, .06);
}

.resource-card-upgrade strong,
.resource-card-upgrade span { display: block; }
.resource-card-upgrade strong { color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.resource-card-upgrade span { margin: 5px 0 12px; color: var(--terracotta-dark); font-family: var(--mono); font-size: 9px; }
.resource-card-upgrade p { margin: 0; font-size: 12px; }

.premium-shelf .resource-grid { padding-top: 38px; }
.premium-shelf .resource-card { min-height: 330px; background: rgba(38, 34, 47, .035); }

.resource-origin-note {
  max-width: 760px;
  margin: 18px 0 0 auto;
  padding: 24px 28px;
  border-left: 3px solid var(--terracotta);
  background: rgba(255, 255, 255, .46);
}

.resource-origin-note strong,
.resource-origin-note a { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.resource-origin-note p { margin: 9px 0 12px; color: var(--muted); font-size: 14px; }
.resource-origin-note a { color: var(--navy); }

.resource-detail-editorial .practical-lab { margin-top: 78px; }

.resource-companion,
.resource-upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin: 80px 0;
  padding: clamp(34px, 5vw, 58px);
}

.resource-companion {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .46);
}

.resource-companion h2,
.resource-upgrade h2 { margin: 4px 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); }
.resource-companion p,
.resource-upgrade p { max-width: 680px; color: var(--muted); }
.resource-companion > a,
.resource-primary-action {
  padding: 14px 18px;
  background: var(--navy);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.resource-upgrade { background: var(--navy); color: var(--paper); }
.resource-upgrade .eyebrow,
.resource-upgrade h2 { color: var(--paper); }
.resource-upgrade p { color: #cfccd6; }
.resource-location { display: block; margin-top: 18px; color: var(--peach); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.resource-upgrade-actions { display: flex; min-width: 190px; flex-direction: column; gap: 13px; align-items: stretch; }
.resource-upgrade-actions a { padding: 13px 16px; border: 1px solid rgba(247, 245, 240, .34); color: var(--paper); font-size: 11px; font-weight: 800; text-decoration: none; }
.resource-upgrade-actions .resource-primary-action { border-color: var(--terracotta); background: var(--terracotta); color: var(--navy); }
.resource-back-link { margin: -44px 0 80px; font-size: 12px; }
.resource-back-link a { color: var(--navy); }

/* Subscriber welcome */
.welcome-status {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 880px;
  margin: 28px 0 88px auto;
  padding: 32px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .48);
}

.welcome-check {
  display: grid;
  width: 58px;
  height: 58px;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 2rem;
  place-items: center;
}

.welcome-status h2 { margin: 6px 0 10px; font-size: clamp(2rem, 3.8vw, 3rem); }
.welcome-status p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }

.welcome-doors { padding: 0 0 88px; }
.welcome-door-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.welcome-door-grid a { min-height: 310px; padding: 34px 30px; border-right: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.welcome-door-grid a:last-child { border-right: 0; }
.welcome-door-grid a > span { display: block; margin-bottom: 54px; color: var(--terracotta); font-family: var(--serif); font-size: 3rem; line-height: 1; }
.welcome-door-grid strong { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1.05; }
.welcome-door-grid p { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.welcome-door-grid a:hover,
.welcome-door-grid a:focus-visible { background: rgba(220, 231, 117, .38); }

.welcome-use {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 70px;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.welcome-use h2 { margin: 7px 0 0; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.welcome-use ol { margin: 0; padding: 0; list-style: none; }
.welcome-use li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 18px; padding: 20px 0 24px; border-top: 1px solid var(--line); }
.welcome-use li:last-child { border-bottom: 1px solid var(--line); }
.welcome-use li > span { color: var(--terracotta-dark); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.welcome-use li strong { color: var(--navy); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.welcome-use li p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.contact-bonus {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 0;
  margin: 26px 0 90px;
  background: var(--navy);
  color: var(--paper);
}

.contact-bonus-copy { padding: clamp(38px, 6vw, 72px); }
.contact-bonus-copy .eyebrow { color: var(--peach); }
.contact-bonus-copy h2 { margin: 8px 0 20px; color: var(--paper); font-size: clamp(2.6rem, 5vw, 4.25rem); }
.contact-bonus-copy > p:not(.eyebrow) { max-width: 670px; color: #cfccd6; }
.contact-bonus-copy .contact-human-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(247, 245, 240, .25); color: var(--paper) !important; font-family: var(--serif); font-size: 1.08rem; }
.contact-bonus-copy .privacy-note { margin-top: 26px; color: var(--peach) !important; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }

.contact-bonus-action { padding: clamp(34px, 5vw, 58px); background: var(--peach); color: var(--navy); }
.contact-bonus-action > span { display: block; padding-bottom: 16px; border-bottom: 1px solid rgba(38, 34, 47, .28); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-bonus-action ul { margin: 28px 0; padding: 0; list-style: none; }
.contact-bonus-action li { padding: 13px 0; border-bottom: 1px solid rgba(38, 34, 47, .22); font-family: var(--serif); font-size: 1.35rem; }
.contact-bonus-action > p { margin: 28px 0 0; color: #534a46; font-size: 11px; }

.welcome-signoff { margin: -34px 0 90px; color: var(--muted); font-family: var(--serif); font-size: 1.35rem; text-align: right; }
.welcome-signoff span { display: inline-block; margin-left: 8px; color: var(--terracotta-dark); font-family: var(--hand); font-size: 2rem; transform: rotate(-3deg); }

/* Reading path */
.reading-path { padding: 54px 0 80px; }

.reading-path article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 34px;
  padding: 38px 0 42px;
  border-top: 1px solid var(--line);
}

.reading-path article > span {
  padding-top: 6px;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: 1;
}

.step-label { margin: 0 0 8px; color: var(--terracotta-dark); font-size: 9px; }
.reading-path h2 { max-width: 720px; margin: 0 0 12px; font-size: clamp(2rem, 3.3vw, 2.7rem); }
.reading-path p:last-child { max-width: 720px; color: var(--muted); }

.stack-filter {
  position: relative;
  margin: 0 0 20px;
  padding: clamp(42px, 6vw, 72px);
  overflow: hidden;
  border: 0;
  background-color: var(--navy);
  background-image: url("/assets/cta-brush-band-clean.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.stack-filter blockquote { max-width: 900px; }

/* Evolution */
.timeline { padding: 56px 0 76px; }

.timeline article {
  display: grid;
  grid-template-columns: 100px minmax(0, 780px);
  gap: 34px;
  padding: 42px 0 46px;
  border-top: 1px solid var(--line);
}

.timeline-marker span {
  display: block;
  width: auto;
  height: auto;
  padding: 0 0 8px;
  border-bottom: 4px solid var(--terracotta);
  border-radius: 0;
  background: transparent;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.timeline h2 { margin: 0 0 17px; font-size: clamp(2rem, 3.3vw, 2.8rem); }
.timeline article p:last-child { color: var(--muted); }

/* Founding editions */
.founding-context {
  display: grid;
  grid-template-columns: 180px minmax(0, 720px);
  gap: 36px;
  margin: 46px 0 0;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.founding-context strong,
.founding-signals h3,
.founding-meta > span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.founding-context strong { color: var(--terracotta-dark); }
.founding-context p { margin: 0; color: var(--muted); font-family: var(--sans); }
.founding-timeline article { grid-template-columns: 84px minmax(0, 850px); }

.founding-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.founding-meta p { margin: 0; }
.founding-meta > span { flex: 0 0 auto; color: var(--muted); }
.founding-entry > .dek { max-width: 760px; color: #35323a; font-family: var(--sans); font-size: 1.06rem; }

.founding-signals {
  max-width: 760px;
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--terracotta);
  background: rgba(247, 245, 240, .72);
}

.founding-signals h3 { margin: 0 0 12px; color: var(--terracotta-dark); }
.founding-signals ul { margin: 0; padding-left: 20px; }
.founding-signals li + li { margin-top: 8px; }

.founding-read {
  max-width: 760px;
  color: var(--navy) !important;
  font-family: var(--sans);
}

.founding-read strong { color: var(--terracotta-dark); }

.founding-quote {
  max-width: 710px;
  margin: 28px 0;
  padding: 10px 0 10px 28px;
  border-left: 1px solid var(--terracotta);
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.founding-entry .text-link { display: inline-block; margin-top: 20px; }
.founding-next { margin-bottom: 34px; }

.what-stayed {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  margin: 0 0 10px;
  padding: 48px 52px;
  background: rgba(220, 231, 117, .48);
  box-shadow: 0 18px 40px rgba(38, 34, 47, .07);
}

.what-stayed h2 { font-size: clamp(2.1rem, 3.5vw, 3rem); }

/* About */
.about-story {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 64px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.about-story > div { font-family: var(--sans); font-size: 1.08rem; }

.about-story blockquote {
  margin: 0;
  padding: 34px 0 34px 34px;
  border-left: 5px solid var(--terracotta);
  color: var(--navy);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
}

.about-joyce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  padding: 76px 0 20px;
}

.about-byline-card {
  padding: 30px 28px 34px;
  border-bottom: 4px solid var(--terracotta);
  background: rgba(220, 231, 117, .58);
  box-shadow: 0 16px 35px rgba(38, 34, 47, .08);
  transform: rotate(-.5deg);
}

.about-byline-card span { color: var(--terracotta-dark); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.about-byline-card strong { display: block; margin: 13px 0 12px; color: var(--navy); font-family: var(--hand); font-size: 2.35rem; font-weight: 500; line-height: 1; }
.about-byline-card p { margin: 0; color: #4d4845; font-size: 13px; line-height: 1.5; }
.about-joyce h2 { font-size: clamp(2.25rem, 3.9vw, 3.5rem); }

.not-found-actions {
  display: flex;
  gap: 12px;
  padding: 42px 0;
  flex-wrap: wrap;
}

/* Issue body */
.issue > .editor-note,
.issue > .thirty-seconds,
.issue > .issue-nav,
.issue > .stories,
.issue > .joyces-read,
.issue > .practical-lab,
.issue > .worth-knowing,
.issue > .closing-grid,
.issue > .newsletter,
.home-page .home-summary,
.home-page .home-lab-preview,
.home-page .home-why,
.home-page .newsletter {
  width: min(1080px, calc(100% - 40px));
}

.editor-note {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0 44px;
  max-width: none;
  padding: 78px 0;
}

.editor-note > .eyebrow { grid-row: 1 / span 8; }
.editor-note h2,
.editor-note > p:not(.eyebrow),
.editor-note ul { grid-column: 2; }
.editor-note h2 { margin-top: 0; font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.editor-note ul { padding-left: 20px; }

.thirty-seconds { padding: 76px 0 90px; }
.thirty-seconds .section-heading { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 44px; align-items: start; }
.thirty-seconds .section-heading .eyebrow { margin-top: 9px; }
.thirty-seconds .section-heading h2 { margin: 0; }

.issue-nav {
  top: 10px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(247, 245, 240, .97);
  box-shadow: 0 8px 28px rgba(38, 34, 47, .08);
}

.story,
.practical-lab,
.worth-knowing,
.lab-membership-cta {
  scroll-margin-top: 82px;
}

.story {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 45px;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.story-number { padding-bottom: 7px; border-bottom: 4px solid var(--terracotta); font-size: 4rem; }
.story-body h2 { max-width: 860px; margin-bottom: 24px; font-size: clamp(2.7rem, 5vw, 4.65rem); line-height: 1; }
.story-body .dek { max-width: 760px; color: var(--terracotta-dark); font-family: var(--sans); font-size: 1.15rem; }
.story-body > p, .story-subsection p { max-width: 760px; }

.issue-archive-note,
.archive-correction {
  max-width: 860px;
  border: 1px solid rgba(91, 69, 194, .32);
  background: rgba(224, 142, 113, .09);
}

.issue-archive-note {
  margin: 34px auto 0;
  padding: 19px 24px;
}

.archive-correction {
  margin: 36px 0 8px;
  padding: 18px 20px;
}

.issue-archive-note strong,
.archive-correction strong {
  color: var(--terracotta-dark);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.issue-archive-note p,
.archive-correction p {
  margin: 7px 0 0;
  color: #3b3747;
  font-family: var(--sans);
  font-size: .93rem;
  line-height: 1.58;
}

.story-subsection {
  max-width: 820px;
  margin: 50px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--terracotta);
}

.practical-note {
  max-width: 720px;
  margin-top: 28px;
  padding: 26px 30px;
  border-bottom: 3px solid var(--terracotta);
  background: rgba(220, 231, 117, .5);
}

.joyce-field-note {
  position: relative;
  z-index: 0;
  max-width: 820px;
  margin: 48px 0;
  padding: 30px 36px 34px;
  isolation: isolate;
}

.joyce-field-note::before {
  position: absolute;
  z-index: -1;
  inset: 2px -14px -3px -16px;
  background: linear-gradient(96deg, rgba(239, 158, 119, .27), rgba(245, 190, 160, .18) 84%, rgba(245, 190, 160, .04));
  clip-path: polygon(1% 5%, 98% 0, 100% 92%, 2% 100%);
  content: "";
  transform: rotate(-.25deg);
}

.joyce-field-note::after {
  position: absolute;
  z-index: -1;
  right: 9%;
  bottom: -1px;
  left: -3px;
  height: 4px;
  background: rgba(203, 101, 67, .68);
  content: "";
  transform: rotate(-.35deg);
}

.joyce-field-note .minor-heading {
  margin-top: 0;
  color: var(--terracotta-dark);
}

.joyce-field-note p,
.joyce-field-note li {
  max-width: 750px;
}

.joyce-field-note p {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.75;
}

.joyce-field-note p:last-child { margin-bottom: 0; }
.joyce-field-note li::marker { color: var(--terracotta); }

.takeaway {
  max-width: 780px;
  border-left: 0;
  border-bottom: 4px solid var(--terracotta);
  background: rgba(220, 231, 117, .52);
  box-shadow: 0 15px 34px rgba(38, 34, 47, .07);
  transform: rotate(-.25deg);
}

.source-links {
  max-width: 760px;
  border-top: 1px dotted rgba(106, 101, 119, .45);
}

.joyces-read {
  padding: clamp(44px, 7vw, 78px);
  background-color: var(--navy);
  background-image: url("/assets/cta-brush-band-clean.png");
  background-blend-mode: multiply;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.joyces-read blockquote { border-color: rgba(247, 245, 240, .34); }

.practical-lab { border: 0; box-shadow: 0 24px 50px rgba(38, 34, 47, .13); }
.prompt-card { border-color: rgba(247, 245, 240, .25); background: rgba(255, 255, 255, .035); }
.prompt-card.example { border-color: var(--terracotta); background: rgba(139, 120, 214, .09); }
.copy-button { min-width: 112px; }

.worth-knowing { padding: 88px 0; }
.signal-list article { padding-top: 36px; padding-bottom: 38px; }

.closing-grid > div { padding: 34px; border-top: 1px solid var(--line); }
.closing-grid > div:last-child { border-bottom: 4px solid var(--terracotta); background: rgba(220, 231, 117, .48); }

/* Paid Lab path */
.lab-nav-cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-left: auto;
  margin-right: 14px;
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  padding: 7px 13px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.lab-nav-cta:hover,
.lab-nav-cta:focus-visible { background: var(--peach); }

.publication-bar .site-nav .nav-membership-link {
  border-bottom-color: var(--terracotta);
  color: var(--peach);
  font-weight: 700;
}

.issue > .lab-membership-cta {
  width: min(1080px, calc(100% - 40px));
}

.lab-membership-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  margin: 88px auto 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(139, 120, 214, .065) 32px),
    rgba(255, 255, 255, .48);
}

.lab-membership-copy {
  align-self: center;
  padding: clamp(42px, 6vw, 70px);
}

.lab-membership-copy h2 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1;
}

.lab-membership-copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: #3b3747;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
}

.lab-membership-details {
  padding: clamp(38px, 5vw, 58px);
  background-color: var(--navy);
  background-image: url("/assets/paper-texture.png");
  background-blend-mode: multiply;
  background-position: center;
  background-repeat: repeat;
  background-size: 520px auto;
  color: var(--paper);
}

.lab-membership-label {
  margin: 0 0 12px;
  color: var(--peach);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lab-membership-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(247, 245, 240, .28);
  color: var(--paper);
}

.lab-membership-price strong {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5.8vw, 5rem);
  font-weight: 500;
  line-height: .86;
}

.lab-membership-price span { font-size: .9rem; }
.lab-membership-price small { margin-left: auto; color: var(--peach); font-size: .78rem; }

.lab-membership-includes {
  margin: 0;
  color: #dedbdd;
  font-size: .92rem;
  line-height: 1.62;
}

.lab-membership-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.lab-membership-actions a {
  min-height: 48px;
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.lab-membership-primary {
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: var(--navy);
}

.lab-membership-primary:hover,
.lab-membership-primary:focus-visible { background: var(--peach); }

.lab-membership-secondary {
  border: 1px solid rgba(247, 245, 240, .34);
  color: var(--paper);
}

.lab-membership-secondary:hover,
.lab-membership-secondary:focus-visible { border-color: var(--peach); color: var(--peach); }

/* Home continuation */
.home-summary { margin-top: 82px; padding: 80px 0 86px; }
.home-summary .section-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }

.home-lab-preview {
  gap: 72px;
  padding: 92px 0;
}

.mini-output {
  border-left: 0;
  border-bottom: 4px solid var(--terracotta);
  background: rgba(220, 231, 117, .56);
  box-shadow: 0 16px 38px rgba(38, 34, 47, .08);
  transform: rotate(-.6deg);
}

.mini-output p { font-family: var(--hand); font-size: 1.7rem; line-height: 1.15; }

.home-why {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 58px;
  padding: 92px 0;
}

.home-why h2 { font-size: clamp(2.7rem, 4.5vw, 4rem); }

/* Computer History safe-start guide */
.history-section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.history-section h2 {
  max-width: 820px;
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  line-height: 1.02;
}

.first-day-note {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: 70px;
  padding-top: 72px;
}

.first-day-note > div:last-child {
  padding: 30px 34px 28px;
  border-bottom: 4px solid var(--terracotta);
  background: rgba(220, 231, 117, .5);
  box-shadow: 0 16px 38px rgba(38, 34, 47, .07);
  transform: rotate(-.3deg);
}

.first-day-note > div:last-child p:last-child { margin-bottom: 0; }

.history-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-fit-grid article { padding: 42px 42px 38px 0; }
.history-fit-grid article + article { padding-right: 0; padding-left: 42px; border-left: 1px solid var(--line); }
.history-fit-grid h2 { max-width: 540px; font-size: clamp(2rem, 3vw, 2.65rem); }
.history-fit-grid li { margin-bottom: 12px; }
.history-skip-card { background: rgba(38, 34, 47, .035); }

.history-availability {
  max-width: 940px;
  margin: 34px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--terracotta);
  color: var(--muted);
}

.history-heading-copy { margin: 46px 0 38px; }

.history-boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-boundary-grid article { min-height: 300px; padding: 34px 30px; border-right: 1px solid var(--line); }
.history-boundary-grid article:last-child { border-right: 0; }
.history-boundary-grid article > span { color: var(--terracotta); font-family: var(--serif); font-size: 3.8rem; line-height: 1; }
.history-boundary-grid h3 { margin: 28px 0 16px; font-family: var(--mono); font-size: 13px; letter-spacing: .09em; }
.history-boundary-grid p { color: var(--muted); }
.history-boundary-grid strong { display: block; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--terracotta); }

.history-callout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  margin-top: 50px;
  padding: 34px 40px;
  background: var(--navy);
  color: var(--cream);
}

.history-callout p { margin: 0; }
.history-callout > p:last-child { font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; }

.history-test-steps {
  display: grid;
  gap: 0;
  margin: 50px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(247, 245, 240, .25);
}

.history-test-steps li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(247, 245, 240, .2);
}

.history-test-steps li > span { color: var(--terracotta); font-family: var(--serif); font-size: 2.25rem; line-height: 1; }
.history-test-steps h3 { margin: 0 0 8px; color: var(--cream); font-size: 1.35rem; }
.history-test-steps p { margin: 0; color: #cfccd6; }

.history-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.history-data-grid article { padding: 34px 40px 34px 0; border-bottom: 1px solid var(--line); }
.history-data-grid article:nth-child(even) { padding-right: 0; padding-left: 40px; border-left: 1px solid var(--line); }
.history-data-grid h3 { font-size: 1.5rem; }
.history-data-grid p { margin-bottom: 0; color: var(--muted); }

.history-risk-note {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  margin-top: 54px;
  padding: 42px 46px;
  border-bottom: 4px solid var(--terracotta);
  background: rgba(220, 231, 117, .52);
}

.history-risk-note h2 { max-width: 460px; font-size: clamp(2rem, 3vw, 2.8rem); }
.history-risk-note > div:last-child { align-self: center; }
.history-risk-note > div:last-child p { margin: 0; font-size: 1.08rem; }

.history-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-decision-grid article { min-height: 210px; padding: 30px 26px; border-right: 1px solid var(--line); }
.history-decision-grid article:last-child { border-right: 0; }
.history-decision-grid span { display: block; padding-bottom: 12px; border-bottom: 3px solid var(--terracotta); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.history-decision-grid p { margin: 24px 0 0; color: var(--muted); }

.history-done {
  max-width: 820px;
  margin: 42px 0 0;
  padding: 28px 32px;
  background: var(--navy);
  color: var(--cream);
}

.history-sources { margin: 72px 0 92px; padding: 34px 0 0; }
.history-sources a { color: var(--navy); font-weight: 700; }

/* Newsletter and colophon */
.newsletter {
  position: relative;
  padding: clamp(44px, 6vw, 72px);
  border: 0;
  background-color: var(--navy);
  background-image: url("/assets/cta-brush-band-clean.png");
  background-blend-mode: multiply;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.newsletter-hand {
  width: fit-content;
  margin: 24px 0 0;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--terracotta);
  color: var(--peach) !important;
  font-family: var(--hand) !important;
  font-size: 1.55rem !important;
  line-height: 1.05 !important;
  transform: rotate(-.5deg);
}

.signup-row input,
.signup-row button { border-radius: 0; }

.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 52px max(24px, calc((100% - 1488px) / 2 + 48px));
  border-top: 0;
  background: var(--navy);
  color: #c8c7ce;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 36px 70px;
}

.site-footer strong { color: var(--cream); font-family: var(--serif); font-size: 24px; }
.site-footer p { max-width: 560px; }
.footer-label { margin: 0 0 8px !important; color: var(--terracotta) !important; font-size: 9px; }
.footer-links { align-self: center; }
.footer-links a { padding-bottom: 3px; border-bottom: 1px solid rgba(247, 245, 240, .3); color: var(--cream); }
.footer-hand { margin: 0 !important; color: var(--peach) !important; font-family: var(--hand); font-size: 1.65rem; line-height: 1.1; transform: rotate(-.4deg); }
.copyright { grid-column: 2; align-self: end; margin: 0 !important; text-align: right; }

@media (max-width: 1100px) {
  .editorial-page { grid-template-columns: 240px minmax(0, 1fr); }
  .editorial-sheet { padding-right: 40px; padding-left: 40px; }
  .page-rail { padding-right: 28px; padding-left: 28px; }
  .editorial-page .page-hero h1 { font-size: clamp(3.5rem, 6.9vw, 5.3rem); }
  .archive-card { grid-template-columns: 100px minmax(0, 1fr); }
  .archive-card > a,
  .archive-card > .migration-note { grid-column: 2; justify-self: start; }
  .editor-note,
  .thirty-seconds .section-heading { grid-template-columns: 130px minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 800px) {
  body:not(.home-page):not(.issue-page) main { width: 100%; }
  .editorial-page { display: flex; border: 0; flex-direction: column; }
  .editorial-sheet { order: 1; padding: 0 24px 56px; }
  .page-rail { order: 2; padding: 34px 24px; border-top: 1px solid var(--line); border-right: 0; }
  .page-rail-note { max-width: 420px; }
  .page-rail-index { display: grid; grid-template-columns: 1fr 1fr; }
  .page-rail-index li { padding-right: 18px; }
  .page-rail-index li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .page-rail-footer { position: static; margin-top: 24px; }
  .editorial-page .page-hero { min-height: auto; padding-top: 28px; }
  .page-hero-copy { padding-top: 48px; }
  .editorial-page .page-hero h1 { font-size: clamp(3.15rem, 11.5vw, 4.8rem); }
  .page-hero-note { margin-right: 0; }
  .archive-tools { overflow-x: auto; flex-wrap: nowrap; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card,
  .resource-card:nth-child(even) { border-right: 0; }
  .resource-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .resource-card:last-child { border-bottom: 1px solid var(--line); }
  .resource-companion,
  .resource-upgrade { grid-template-columns: 1fr; gap: 28px; }
  .resource-upgrade-actions { min-width: 0; }
  .welcome-door-grid { grid-template-columns: 1fr; }
  .welcome-door-grid a { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .welcome-door-grid a:last-child { border-bottom: 0; }
  .welcome-door-grid a > span { margin-bottom: 28px; }
  .welcome-use,
  .contact-bonus { grid-template-columns: 1fr; }
  .welcome-use { gap: 40px; }
  .about-story,
  .about-joyce,
  .what-stayed,
  .founding-context { grid-template-columns: 1fr; }
  .about-byline-card { max-width: 360px; }
  .editor-note { display: block; }
  .editor-note > .eyebrow { margin-bottom: 14px; }
  .editor-note h2,
  .editor-note > p:not(.eyebrow),
  .editor-note ul { grid-column: auto; }
  .thirty-seconds .section-heading { display: block; }
  .story { grid-template-columns: 82px minmax(0, 1fr); gap: 28px; }
  .newsletter { grid-template-columns: 1fr; gap: 36px; }
  .lab-membership-cta { grid-template-columns: 1fr; }
  .first-day-note,
  .history-risk-note { grid-template-columns: 1fr; gap: 28px; }
  .history-fit-grid,
  .history-data-grid { grid-template-columns: 1fr; }
  .history-fit-grid article,
  .history-fit-grid article + article,
  .history-data-grid article,
  .history-data-grid article:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
  .history-boundary-grid { grid-template-columns: 1fr; }
  .history-boundary-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-boundary-grid article:last-child { border-bottom: 0; }
  .history-callout { grid-template-columns: 1fr; gap: 16px; }
  .history-decision-grid { grid-template-columns: 1fr 1fr; }
  .history-decision-grid article:nth-child(2) { border-right: 0; }
  .history-decision-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; flex-direction: column; }
  .footer-hand,
  .copyright { grid-column: 1; text-align: left; }
}

@media (max-width: 560px) {
  .editorial-sheet { padding-right: 18px; padding-left: 18px; }
  .page-rail-index { grid-template-columns: 1fr; }
  .page-rail-index li:nth-child(even) { padding-left: 0; border-left: 0; }
  .editorial-page .page-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .editorial-page .page-hero h1 { font-size: clamp(3rem, 15vw, 4.15rem); line-height: .96; }
  .editorial-page .page-hero-copy > p:last-child { font-size: 16px; }
  .archive-card { grid-template-columns: 1fr; gap: 20px; }
  .archive-card > a,
  .archive-card > .migration-note { grid-column: 1; }
  .resource-card { min-height: 0; padding: 30px 22px 34px; }
  .resource-card h2 { margin-top: 38px; }
  .resource-card-upgrade { margin-right: -4px; margin-left: -4px; }
  .joyce-field-note { margin: 40px -4px; padding: 26px 22px 30px; }
  .joyce-field-note p { font-size: 1.05rem; }
  .resource-companion,
  .resource-upgrade { margin: 58px -4px; padding: 30px 24px; }
  .issue > .resource-companion { margin-right: 0; margin-left: 0; }
  .lab-nav-cta { display: none; }
  .issue > .lab-membership-cta { width: calc(100% - 28px); }
  .lab-membership-cta { margin-top: 64px; }
  .lab-membership-copy,
  .lab-membership-details { padding: 34px 24px; }
  .lab-membership-price { flex-wrap: wrap; }
  .lab-membership-price small { width: 100%; margin-left: 0; }
  .resource-back-link { margin-top: -20px; }
  .welcome-status { grid-template-columns: 1fr; margin-bottom: 64px; padding: 28px 24px; }
  .welcome-door-grid a { padding: 28px 22px; }
  .welcome-use { padding: 64px 0; }
  .contact-bonus { margin-right: -4px; margin-left: -4px; }
  .contact-bonus-copy,
  .contact-bonus-action { padding: 34px 24px; }
  .welcome-signoff { margin-top: -46px; text-align: left; }
  .reading-path article,
  .timeline article { grid-template-columns: 58px minmax(0, 1fr); gap: 18px; }
  .reading-path article > span,
  .timeline-marker span { font-size: 2.6rem; }
  .what-stayed { padding: 34px 24px; }
  .about-story blockquote { padding-left: 22px; }
  .story { grid-template-columns: 1fr; }
  .story-rail { flex-direction: row; }
  .story-number { width: fit-content; }
  .home-why { grid-template-columns: 1fr; gap: 18px; }
  .first-day-note,
  .history-risk-note { grid-template-columns: 1fr; gap: 28px; }
  .history-fit-grid,
  .history-data-grid { grid-template-columns: 1fr; }
  .history-fit-grid article,
  .history-fit-grid article + article,
  .history-data-grid article,
  .history-data-grid article:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
  .history-boundary-grid { grid-template-columns: 1fr; }
  .history-boundary-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-boundary-grid article:last-child { border-bottom: 0; }
  .history-callout { grid-template-columns: 1fr; gap: 16px; }
  .history-decision-grid { grid-template-columns: 1fr 1fr; }
  .history-decision-grid article:nth-child(2) { border-right: 0; }
  .history-decision-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .founding-context { padding-right: 18px; padding-left: 18px; }
  .founding-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .founding-signals { padding: 20px; }
  .founding-quote { padding-left: 18px; }
  .site-footer { padding-right: 24px; padding-left: 24px; }
  .history-section { padding: 62px 0; }
  .first-day-note > div:last-child,
  .history-risk-note { padding: 30px 24px; }
  .history-callout { padding: 28px 24px; }
  .history-test-steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .history-decision-grid { grid-template-columns: 1fr; }
  .history-decision-grid article,
  .history-decision-grid article:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-decision-grid article:last-child { border-bottom: 0; }
}


/* ==========================================================================
   Brand refresh (Oct 2026): The Self-Taught AI Lab system
   Paper ground, Ink text, Newsreader speaks, Inter reads, citron is the spark.
   Appended last so every page, including past issues, inherits it.
   ========================================================================== */

:root {
  --cream: #f7f5f0;          /* Paper: page ground */
  --paper: #ffffff;          /* cards */
  --navy: #26222f;           /* Ink */
  --ink: #26222f;
  --muted: #6a6577;          /* Ink 500 */
  --terracotta: #5b45c2;     /* Deep Lilac: accents and links */
  --terracotta-dark: #33267a;
  --blush: #efebfb;          /* Lilac 100 */
  --peach: #dce775;          /* Citron */
  --taupe: #9a96a5;
  --line: #cfccd6;
  --green: #2d7563;
  --amber: #9a5418;
  --blue: #5b45c2;
  --shadow: none;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Newsreader", Georgia, serif;

  --lilac: #b9ace8;
  --seafoam: #a9dccb;
  --seafoam-100: #e7f5f0;
  --citron: #dce775;
  --apricot: #f2b27a;
  --link: #5b45c2;
}

html body {
  background: var(--cream);
  background-image: none;
  color: var(--ink);
  font-family: var(--sans);
}

/* No paper textures, brush bands or marker images: flat brand surfaces */
html body .guide-rail,
html body .action-note,
html body .guide-actions,
html body .page-rail,
html body .stack-filter,
html body .joyces-read,
html body .lab-membership-details,
html body .newsletter {
  background-image: none;
}

html body .guide-action-arrow {
  display: none;
}

html body .marked-intro mark {
  background: var(--citron);
  background-image: none;
  padding: 0 0.08em;
}

/* Handwriting becomes Newsreader italic */
html body .margin-note,
html body .action-note p,
html body .action-note strong,
html body .guide-goal,
html body .page-rail-note,
html body .page-hero-note,
html body .welcome-signoff span,
html body .about-byline-card strong,
html body .mini-output p,
html body .newsletter-hand,
html body .footer-hand {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.005em;
}

html body .margin-note,
html body .newsletter-hand,
html body .footer-hand {
  font-size: 1.15rem;
  line-height: 1.35;
}

html body .guide-goal span {
  background: var(--lilac);
  padding: 0 0.1em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

/* Masthead */
html body .site-header,
html body .publication-bar {
  background: var(--ink);
  color: #ffffff;
  border-bottom: 0;
}

html body .publication-bar {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
}

html body .publication-bar .brand strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

html body .publication-bar .brand span,
html body .publication-bar .brand small {
  color: var(--citron);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

html body .publication-bar .site-nav,
html body .publication-bar .site-nav a {
  background: transparent;
  color: #ffffff;
}

html body .publication-bar .site-nav a {
  font-weight: 500;
  text-decoration: none;
}

html body .publication-bar .site-nav a:hover,
html body .publication-bar .site-nav a[aria-current="page"] {
  color: var(--citron);
}

html body .nav-toggle {
  border: 2px solid var(--citron);
  border-radius: 999px;
  background: transparent;
  color: var(--citron);
  font-weight: 600;
}

/* Headlines: Newsreader speaks */
html body h1,
html body h2,
html body h3 {
  font-family: var(--serif);
  color: inherit;
  letter-spacing: -0.012em;
}

html body h1 {
  font-weight: 700;
}

/* Labels: Inter spaced caps */
html body .eyebrow,
html body .guide-rail-label,
html body .disposition,
html body .signup-label,
html body .footer-label,
html body .guide-meta span,
html body .guide-meta time {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
}

html body .eyebrow,
html body .guide-rail-label,
html body .footer-label {
  color: var(--ink);
}

/* Verdict chips: the brand's tag colors */
html body .disposition {
  display: inline-block;
  padding: 0.24rem 0.55rem;
  border-radius: 0;
  color: var(--ink);
  font-size: 0.62rem;
}

html body .disposition.do { background: var(--citron); }
html body .disposition.use { background: var(--seafoam); }
html body .disposition.watch { background: var(--lilac); }
html body .disposition.skip,
html body .disposition.ignore { background: #eceaf0; }

/* Cards: white, flat, Ink outline */
html body .summary-card,
html body .resource-card,
html body .brief-card,
html body .archive-card,
html body .topic-card,
html body .action-note,
html body .mini-output {
  background-color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: none;
}

html body .summary-grid {
  gap: 1rem;
  border: 0;
}

html body .summary-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

html body .summary-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

html body .read-story,
html body .text-link,
html body .rail-link strong {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Action note: the one citron moment on the home page */
html body .action-note {
  background: var(--citron);
  transform: rotate(1.5deg);
  box-shadow: 4px 4px 0 var(--ink);
}

html body .action-note span {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Rail */
html body .guide-rail,
html body .page-rail {
  background-color: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

html body .guide-index span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.72rem;
}

html body .guide-index li:nth-child(2) span { background: var(--citron); }
html body .guide-index li:nth-child(3) span { background: var(--seafoam); }
html body .guide-index li:nth-child(4) span { background: var(--apricot); }
html body .guide-index li:nth-child(5) span { background: var(--ink); color: var(--citron); }

/* Calls to action */
html body .guide-primary,
html body .signup-cta,
html body .signup-row button,
html body .lab-nav-cta,
html body .lab-membership-primary,
html body .resource-upgrade-actions .resource-primary-action,
html body .stack-filter .button,
html body .button.primary {
  background: var(--citron);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}

html body .guide-primary {
  border-radius: 12px;
}

html body .guide-primary:hover,
html body .signup-cta:hover,
html body .lab-nav-cta:hover,
html body .lab-membership-primary:hover,
html body .button.primary:hover {
  background: var(--ink);
  color: var(--citron);
}

html body .guide-primary span,
html body .guide-primary strong {
  color: inherit;
}

html body .guide-secondary {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
}

html body .guide-secondary:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

/* Proof numbers */
html body .guide-proof strong {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Dark sections stay Ink with citron accents */
html body .newsletter,
html body .joyces-read,
html body .practical-lab,
html body .lab-membership-details,
html body .history-callout,
html body .contact-bonus,
html body .resource-upgrade,
html body .stack-filter,
html body .filter-card {
  background-color: var(--ink);
  color: #ffffff;
}

html body .newsletter .eyebrow,
html body .newsletter .signup-label {
  color: var(--citron);
}

html body .newsletter h2 {
  color: #ffffff;
}

/* Home "one useful thing" panel gets the page's single tint */
html body .home-lab-preview {
  background: var(--seafoam-100);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

/* Footer */
html body .site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.84);
}

html body .site-footer strong {
  font-family: var(--serif);
  color: #ffffff;
}

html body .site-footer a {
  color: var(--citron);
}

html body .footer-label {
  color: var(--citron);
}

html body .footer-hand {
  color: var(--citron);
}

/* Reading pages: links in body text use Deep Lilac */
html body main p a:not([class]),
html body main li a:not([class]) {
  color: var(--link);
  text-decoration-thickness: 1.5px;
}

/* Brand refresh: layout fixes once the paper images are gone */
html body .guide-rail {
  border: 0;
  border-right: 2px solid var(--ink);
  border-radius: 0;
  background-color: #ffffff;
}

html body .guide-rail-label,
html body .action-note-copy > span {
  color: var(--ink);
}

html body .margin-note {
  border-bottom: 3px solid var(--lilac);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.15;
  transform: none;
}

html body .action-note {
  aspect-ratio: auto;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: 10px;
}

@media (min-width: 1321px) {
  html body .action-note {
    width: 380px;
    top: 190px;
    right: 0;
  }
}

@media (max-width: 1320px) {
  html body .action-note {
    transform: none;
    width: 100%;
    max-width: 430px;
  }
}

html body .action-note-copy {
  position: static;
}

html body .action-note-copy > span {
  border-bottom-color: var(--ink);
}

html body .action-note p {
  font-size: 1.45rem;
  line-height: 1.15;
}

html body .action-note strong {
  border-bottom: 2px solid var(--ink);
  font-size: 1.1rem;
}

@media (min-width: 1321px) {
  html body .guide-opening-home .guide-title-copy > p {
    max-width: calc(100% - 420px);
  }
}

html body .guide-secondary span,
html body .guide-secondary small {
  color: var(--navy-700, #3b3747);
}

html body .guide-secondary strong {
  color: var(--ink);
}

html body .guide-primary strong,
html body .guide-secondary strong {
  font-family: var(--sans);
  letter-spacing: 0.12em;
}

html body .summary-card,
html body .summary-card:hover {
  color: var(--ink);
  text-decoration: none;
}

html body .summary-card p {
  color: #3b3747;
}

html body .summary-card h3 {
  text-decoration: none;
}

html body .footer-label {
  color: var(--citron) !important;
}

html body .newsletter-hand {
  border-bottom-color: var(--citron);
  color: var(--citron) !important;
}

html body .guide-meta span:first-child,
html body .proof-heading {
  color: var(--ink);
}

/* One citron moment per screen: the latest-brief card goes Ink */
html body .guide-primary {
  background: var(--ink);
  color: #ffffff;
}

html body .guide-primary strong {
  color: var(--citron);
}

html body .guide-primary span {
  color: rgba(255, 255, 255, 0.88);
}

html body .guide-primary:hover {
  background: #3b3747;
  color: #ffffff;
}
