.writing-shell {
  margin: 0;
}


.writing-index-hero {
  padding-bottom: 2.5rem;
}

.writing-list {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.writing-card h3,
.writing-feature h2 {
  margin: 0.35rem 0 0.75rem;
}

.writing-card h3 a,
.writing-feature h2 a {
  text-decoration: none;
}

.writing-card h3 a:hover,
.writing-feature h2 a:hover {
  color: var(--accent-bright);
}

.writing-card-meta,
.writing-meta,
.writing-attachment-meta {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.writing-card-action {
  margin-top: 1rem;
  font-weight: 800;
}

.writing-card-action a {
  color: var(--accent-bright);
  text-decoration: none;
}

.writing-home-latest {
  padding-top: 1rem;
}

.writing-feature {
  margin-top: 0.8rem;
}

.writing-header {
  padding: 5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.writing-header h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.writing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.writing-body {
  padding: 2.5rem 0;
  font-size: 1.06rem;
}

.writing-body > *:first-child {
  margin-top: 0;
}

.writing-body h2,
.writing-body h3,
.writing-body h4 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

.writing-body h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.writing-body h3 {
  font-size: 1.35rem;
}

.writing-body p,
.writing-body li {
  color: var(--muted);
}

.writing-body a {
  color: var(--accent-bright);
  text-underline-offset: 0.16em;
}

.writing-body blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.2rem;
  border-left: 3px solid var(--accent-bright);
}

.writing-body blockquote p {
  color: var(--text);
}

.writing-body pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #050810;
}

.writing-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.writing-body :not(pre) > code {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
}

.writing-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
}

.writing-body th,
.writing-body td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.writing-body th {
  color: var(--text);
  background: var(--panel-soft);
}

.writing-body img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.writing-body .footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.writing-body .footnotes h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.writing-body .footnotes ol {
  margin: 0;
  padding-left: 1.35rem;
}

.writing-body .footnotes li {
  color: var(--muted);
  line-height: 1.6;
}

.writing-body .math {
  overflow-x: auto;
  max-width: 100%;
}

.writing-sources {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.writing-sources h2 {
  margin: .45rem 0 1rem;
}

.writing-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .8rem;
}

.writing-source-list li {
  color: var(--muted);
  line-height: 1.6;
}

.writing-source-list a {
  color: var(--accent-bright);
  text-underline-offset: .16em;
}

.writing-attachments {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.writing-attachment-grid {
  display: grid;
  gap: 0.8rem;
}

.writing-attachment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.writing-attachment h3 {
  margin-bottom: 0.35rem;
}

.writing-attachment p {
  margin: 0.25rem 0 0.65rem;
}

.writing-attachment-meta code {
  overflow-wrap: anywhere;
}

.writing-author {
  margin-top: 2rem;
}

.writing-author h2 {
  margin-top: 0.45rem;
}



@media (max-width: 700px) {
  .writing-header {
    padding-top: 3.25rem;
  }

  .writing-attachment {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* WEBSITE_WRITING_V1R2_EDITORIAL_SURFACES */
.site-shell.home-shell,
.site-shell.writing-index-shell {
  width: min(1240px, calc(100% - 3rem));
}

.home-main,
.writing-index-main {
  width: 100%;
}

.home-intro {
  padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  max-width: 980px;
}

.home-intro h1 {
  margin: 0.7rem 0 0.35rem;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: 0.96;
}

.home-role {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.home-thesis {
  max-width: 800px;
  margin: 1.6rem 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.editorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.35rem;
  margin-top: 1.8rem;
}

.editorial-links a,
.editorial-inline-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.editorial-links a:hover,
.editorial-inline-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.editorial-section {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5.25rem) 0;
}

.editorial-section-head,
.writing-archive-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.home-latest-editorial,
.home-writing-empty {
  max-width: 980px;
}

.home-latest-editorial h2,
.home-writing-empty h2 {
  max-width: 980px;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.55rem, 4.8vw, 4.75rem);
  line-height: 1.01;
}

.home-latest-editorial h2 a,
.home-recent-row h3 a,
.writing-entry h2 a,
.writing-entry h3 a {
  color: var(--text);
  text-decoration: none;
}

.home-latest-editorial h2 a:hover,
.home-recent-row h3 a:hover,
.writing-entry h2 a:hover,
.writing-entry h3 a:hover {
  color: var(--accent-bright);
}

.home-latest-editorial > p,
.home-writing-empty > p {
  max-width: 800px;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.home-read-link {
  display: inline-block;
  margin-top: 1.4rem;
}

.home-recent-writing {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.home-recent-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.home-recent-row .writing-card-meta {
  grid-column: 1;
}

.home-recent-row h3,
.home-recent-row p {
  grid-column: 2;
}

.home-recent-row h3 {
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.home-recent-row p {
  margin: 0.35rem 0 0;
}

.home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 7rem);
}

.home-secondary-item + .home-secondary-item {
  border-left: 1px solid var(--line);
  padding-left: clamp(2.5rem, 7vw, 7rem);
}

.home-secondary-item h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.home-footer,
.writing-index-footer {
  width: 100%;
}

.writing-index-hero {
  max-width: 930px;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.writing-index-hero h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(4rem, 7vw, 6.5rem);
}

.writing-index-dek {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
}

.writing-archive {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 1rem;
}

.writing-archive-heading {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.writing-entry {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}

.writing-archive-heading + .writing-entry {
  border-top: 0;
}

.writing-entry-featured {
  padding: 0.5rem 0 clamp(3rem, 6vw, 5rem);
}

.writing-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.writing-entry h2,
.writing-entry h3 {
  margin: 0 0 0.7rem;
}

.writing-entry h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  line-height: 1.02;
}

.writing-entry h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.writing-entry p {
  max-width: 760px;
  margin: 0 0 1rem;
}

.writing-empty-state {
  max-width: 900px;
  padding: 0.5rem 0 clamp(4rem, 8vw, 7rem);
}

.writing-empty-state h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
}

.writing-empty-state p {
  max-width: 760px;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .site-shell.home-shell,
  .site-shell.writing-index-shell {
    width: min(100% - 2rem, 1120px);
  }

  .home-intro {
    padding-top: 4rem;
  }

  .home-recent-row,
  .writing-entry {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .home-recent-row .writing-card-meta,
  .home-recent-row h3,
  .home-recent-row p {
    grid-column: 1;
  }

  .home-secondary-grid {
    grid-template-columns: 1fr;
  }

  .home-secondary-item + .home-secondary-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 2.5rem;
  }
}

/* WEBSITE_WRITING_V1R3_EDITORIAL_GRID */
.site-shell.home-shell,
.site-shell.writing-index-shell {
  width: min(1440px, calc(100% - clamp(2.5rem, 7vw, 8rem)));
}

.site-shell.home-shell > .nav,
.site-shell.writing-index-shell > .nav {
  min-height: 4.5rem;
}

.site-shell.home-shell > .nav .brand,
.site-shell.writing-index-shell > .nav .brand {
  font-size: 0.86rem;
  letter-spacing: 0.045em;
}

.site-shell.home-shell > .nav .nav-links,
.site-shell.writing-index-shell > .nav .nav-links {
  gap: clamp(1rem, 2vw, 1.8rem);
}

.site-shell.home-shell > .nav .nav-links a,
.site-shell.writing-index-shell > .nav .nav-links a {
  font-size: 0.84rem;
}

.editorial-grid-home,
.writing-index-main {
  width: 100%;
}

.editorial-masthead,
.editorial-grid-section {
  display: grid;
  grid-template-columns: minmax(200px, 0.29fr) minmax(0, 0.71fr);
  column-gap: clamp(3rem, 7vw, 8rem);
}

.editorial-masthead {
  align-items: end;
  padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.editorial-masthead-identity h1 {
  margin: 0.7rem 0 0.45rem;
  font-size: clamp(3.8rem, 6.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.editorial-masthead-identity .home-role {
  max-width: 620px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.editorial-masthead-note {
  max-width: 620px;
  padding-bottom: 0.35rem;
}

.editorial-masthead-note .home-thesis {
  margin: 0 0 1.6rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.editorial-section.editorial-grid-section {
  padding: clamp(3.5rem, 7vw, 6.25rem) 0;
}

.editorial-grid-label {
  min-width: 0;
}

.editorial-grid-label .editorial-inline-link {
  display: inline-block;
  margin-top: 1.25rem;
}

.home-writing-content,
.writing-archive-content,
.writing-index-intro {
  min-width: 0;
}

.home-writing-empty {
  max-width: none;
}

.home-empty-lead,
.writing-empty-lead {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3.7vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 760;
}

.home-empty-topics,
.writing-empty-state > p:last-child {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.home-latest-editorial {
  max-width: none;
}

.home-latest-editorial h2 {
  max-width: 1080px;
  margin: 0.6rem 0 1.15rem;
  font-size: clamp(3rem, 5.8vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-latest-editorial > p {
  max-width: 820px;
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
}

.home-recent-writing {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 2rem;
}

.home-recent-row {
  grid-template-columns: minmax(150px, 0.23fr) minmax(0, 0.77fr);
  column-gap: clamp(2.5rem, 6vw, 6.5rem);
}

.home-recent-row .writing-card-meta {
  grid-column: 1;
}

.home-recent-copy {
  grid-column: 2;
}

.home-recent-copy h3,
.home-recent-copy p {
  grid-column: auto;
}

.home-secondary-grid {
  gap: clamp(3rem, 8vw, 8rem);
}

.home-secondary-item + .home-secondary-item {
  padding-left: clamp(3rem, 8vw, 8rem);
}

.home-secondary-item h2 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
}

.writing-index-masthead {
  align-items: end;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.writing-index-masthead h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(4rem, 7vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.writing-index-intro {
  max-width: 760px;
}

.writing-index-dek {
  max-width: 760px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.writing-archive.editorial-grid-section {
  border-top: 0;
}

.writing-archive-heading {
  display: block;
  margin: 0;
}

.writing-archive-heading > span {
  display: block;
  margin-top: 1.25rem;
}

.writing-entry {
  grid-template-columns: minmax(155px, 0.22fr) minmax(0, 0.78fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding: 2.4rem 0;
}

.writing-entry h2 {
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: 0.99;
}

.writing-entry h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
}

.writing-empty-state {
  max-width: none;
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

@media (max-width: 980px) {
  .site-shell.home-shell,
  .site-shell.writing-index-shell {
    width: min(100% - 2rem, 1120px);
  }

  .editorial-masthead,
  .editorial-grid-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-masthead {
    align-items: start;
    padding-top: 4rem;
  }

  .editorial-masthead-note,
  .writing-index-intro {
    max-width: 760px;
  }

  .home-recent-row,
  .writing-entry {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .home-recent-row .writing-card-meta,
  .home-recent-copy {
    grid-column: 1;
  }

  .editorial-grid-label .editorial-inline-link {
    margin-top: 0.8rem;
  }
}



/* WEBSITE_WRITING_V1R4_PUBLICATION_SURFACE_GEOMETRY */
.home-page,
.writing-index-page,
.writing-page {
  min-height: 100svh;
}

.home-page .site-shell,
.writing-index-page .site-shell,
.writing-page .site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-shell.home-shell,
.site-shell.writing-index-shell {
  width: min(1760px, calc(100% - clamp(1.5rem, 3vw, 3.5rem)));
}

.site-shell.home-shell > .nav,
.site-shell.writing-index-shell > .nav {
  min-height: 5rem;
}

.home-main,
.writing-index-main {
  align-self: stretch;
}

.editorial-masthead {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  column-gap: clamp(4rem, 8vw, 10rem);
  align-items: center;
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem);
}

.editorial-masthead-identity {
  max-width: 820px;
}

.editorial-masthead-identity h1 {
  max-width: 820px;
  margin: 0.8rem 0 0.75rem;
  font-size: clamp(5rem, 7.4vw, 8.6rem);
  line-height: 0.88;
}

.editorial-masthead-identity .home-role {
  max-width: 720px;
  font-size: clamp(1.25rem, 1.55vw, 1.65rem);
  line-height: 1.42;
}

.editorial-masthead-note {
  max-width: 610px;
}

.editorial-masthead-note .home-thesis {
  font-size: clamp(1.3rem, 1.65vw, 1.72rem);
  line-height: 1.55;
}

.editorial-section.editorial-grid-section,
.home-secondary.editorial-section,
.writing-index-support.editorial-section {
  padding: clamp(4.75rem, 7vw, 7.5rem) 0;
}

.home-writing.editorial-grid-section {
  grid-template-columns: minmax(180px, 0.22fr) minmax(0, 0.78fr);
  column-gap: clamp(4rem, 8vw, 9rem);
}

.home-empty-lead,
.writing-empty-lead {
  max-width: 1000px;
  font-size: clamp(2.7rem, 4.2vw, 5.1rem);
}

.home-empty-topics,
.writing-empty-state > p:last-child {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
}

.home-secondary-grid,
.writing-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(5rem, 9vw, 11rem);
}

.home-secondary-item,
.writing-support-item {
  min-height: clamp(15rem, 22vw, 22rem);
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.home-secondary-item + .home-secondary-item,
.writing-support-item + .writing-support-item {
  border-left: 0;
  padding-left: 0;
}

.home-secondary-item h2,
.writing-support-item h2 {
  max-width: 620px;
  margin: 1.25rem 0;
  font-size: clamp(3rem, 4.3vw, 5.2rem);
  line-height: 0.98;
}

.home-secondary-item p,
.writing-support-item p {
  max-width: 620px;
  margin: 0 0 1.75rem;
  font-size: clamp(1.08rem, 1.25vw, 1.28rem);
  line-height: 1.65;
}

.home-secondary-item .editorial-inline-link,
.writing-support-item .editorial-inline-link {
  margin-top: auto;
  align-self: flex-start;
}

.home-footer,
.writing-index-footer {
  margin-top: 0;
}

.writing-index-masthead {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  column-gap: clamp(4rem, 8vw, 10rem);
  align-items: center;
  padding: clamp(6rem, 10vw, 9.5rem) 0 clamp(5rem, 8vw, 7.5rem);
}

.writing-index-masthead h1 {
  font-size: clamp(5.5rem, 8vw, 9rem);
}

.writing-index-intro {
  max-width: 700px;
}

.writing-index-dek {
  font-size: clamp(1.28rem, 1.55vw, 1.62rem);
}

.writing-archive.editorial-grid-section {
  grid-template-columns: minmax(180px, 0.22fr) minmax(0, 0.78fr);
  column-gap: clamp(4rem, 8vw, 9rem);
  min-height: clamp(19rem, 28vw, 30rem);
  align-content: start;
}

.writing-empty-state {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 0;
}

.writing-index-support {
  border-top: 1px solid var(--line);
}

.writing-page > .site-shell {
  width: min(1240px, calc(100% - clamp(2rem, 5vw, 5rem)));
}

.writing-page .writing-shell.reader,
.writing-page .footer.reader {
  width: min(920px, 100%);
  margin-inline: auto;
}

.writing-header {
  padding: clamp(5.5rem, 8vw, 8rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.writing-header h1 {
  max-width: 920px;
  margin: 0.9rem 0 1.25rem;
  font-size: clamp(3.6rem, 5.6vw, 6.4rem);
  line-height: 0.94;
}

.writing-header .lede {
  max-width: 820px;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  line-height: 1.58;
}

.writing-body {
  max-width: 840px;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  font-size: clamp(1.12rem, 1.05vw, 1.24rem);
  line-height: 1.78;
}

.writing-body p,
.writing-body li {
  color: #d7deea;
}

.writing-body h2 {
  font-size: clamp(2rem, 2.7vw, 3rem);
}

.writing-attachments {
  max-width: 840px;
}

.writing-author.card {
  max-width: 840px;
  margin-top: 3.5rem;
  padding: 2.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.writing-author h2 {
  font-size: clamp(2rem, 2.7vw, 3rem);
}

.writing-author .button-row {
  margin-top: 1.5rem;
}

@media (max-width: 980px) {
  .site-shell.home-shell,
  .site-shell.writing-index-shell {
    width: min(100% - 2rem, 1120px);
  }

  .editorial-masthead,
  .writing-index-masthead,
  .home-writing.editorial-grid-section,
  .writing-archive.editorial-grid-section {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .editorial-masthead,
  .writing-index-masthead {
    padding-top: 4.5rem;
  }

  .editorial-masthead-identity h1 {
    font-size: clamp(4rem, 13vw, 6.8rem);
  }

  .writing-index-masthead h1 {
    font-size: clamp(4.5rem, 15vw, 7rem);
  }

  .home-secondary-grid,
  .writing-support-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-secondary-item,
  .writing-support-item {
    min-height: 0;
    padding-bottom: 2.5rem;
  }

  .home-secondary-item .editorial-inline-link,
  .writing-support-item .editorial-inline-link {
    margin-top: 0.5rem;
  }

  .writing-archive.editorial-grid-section {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .site-shell.home-shell,
  .site-shell.writing-index-shell,
  .writing-page > .site-shell {
    width: min(100% - 1.5rem, 1120px);
  }

  .editorial-masthead,
  .writing-index-masthead {
    padding: 3.5rem 0 3.25rem;
  }

  .editorial-section.editorial-grid-section,
  .home-secondary.editorial-section,
  .writing-index-support.editorial-section {
    padding: 3rem 0;
  }

  .editorial-masthead-note .home-thesis,
  .writing-index-dek {
    font-size: 1.08rem;
  }

  .home-empty-lead,
  .writing-empty-lead {
    font-size: clamp(2.15rem, 10vw, 3.3rem);
  }

  .home-secondary-item h2,
  .writing-support-item h2 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  .writing-header {
    padding-top: 3.5rem;
  }

  .writing-header h1 {
    font-size: clamp(2.75rem, 12vw, 4.4rem);
  }

  .writing-body {
    font-size: 1.04rem;
    line-height: 1.72;
  }
}

/* BLACKBONE_WEBSITE_A8_3R1_WRITING_FRONT_PAGE_ARCHIVE_SEPARATION */
/* Homepage: identity orients; writing is the first dominant intellectual object. */
.home-page .editorial-masthead {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  padding: clamp(3.75rem, 6.5vw, 6rem) 0 clamp(3.5rem, 5.5vw, 5rem);
}

.home-page .editorial-masthead-identity h1 {
  font-size: clamp(4.1rem, 6vw, 6.6rem);
}

.home-page .editorial-masthead-identity .home-role {
  font-size: clamp(1.12rem, 1.35vw, 1.42rem);
}

.home-page .editorial-masthead-note .home-thesis {
  font-size: clamp(1.16rem, 1.42vw, 1.48rem);
}

.home-page .home-writing.editorial-grid-section {
  padding-top: clamp(4.5rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.home-page .home-latest-editorial h2 {
  font-size: clamp(3.5rem, 6.4vw, 7.2rem);
  max-width: 1180px;
}

.home-page .home-latest-editorial > p {
  max-width: 900px;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

/* Zero state stays subordinate until an actual essay exists. */
.home-page .home-writing-empty .home-empty-lead {
  font-size: clamp(1.8rem, 2.7vw, 3.1rem);
}

.home-page .home-writing-empty .home-empty-topics {
  margin-top: 0.9rem;
}

/* Research and Portfolio are supporting destinations beneath the writing lead. */
.home-page .home-secondary.editorial-section {
  padding-top: clamp(4rem, 6vw, 6rem);
}

.home-page .home-secondary-item h2 {
  font-size: clamp(2.5rem, 3.7vw, 4.35rem);
}

/* /writing/ is an archive, not a second homepage. */
.writing-index-page .writing-index-masthead {
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1.28fr);
  padding: clamp(3.75rem, 6.5vw, 6rem) 0 clamp(3.5rem, 5.5vw, 5rem);
}

.writing-index-page .writing-index-masthead h1 {
  font-size: clamp(4.25rem, 6.6vw, 7rem);
}

.writing-index-page .writing-index-dek {
  font-size: clamp(1.12rem, 1.35vw, 1.42rem);
}

.writing-index-page .writing-archive.editorial-grid-section {
  min-height: 0;
  padding-top: clamp(3.75rem, 6vw, 5.75rem);
  padding-bottom: clamp(4rem, 6vw, 6rem);
}

.writing-index-page .writing-entry {
  grid-template-columns: minmax(150px, 0.2fr) minmax(0, 0.8fr);
  padding: 2rem 0;
}

.writing-index-page .writing-entry h3 {
  font-size: clamp(1.7rem, 2.45vw, 2.45rem);
}

.writing-index-page .writing-entry p {
  max-width: 780px;
}

.writing-index-page .writing-empty-state {
  min-height: 0;
  padding: 0 0 2rem;
}

.writing-index-page .writing-empty-lead {
  font-size: clamp(1.8rem, 2.7vw, 3.1rem);
}

@media (max-width: 980px) {
  .home-page .editorial-masthead,
  .writing-index-page .writing-index-masthead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-page .editorial-masthead,
  .writing-index-page .writing-index-masthead {
    padding: 2.8rem 0 2.75rem;
  }

  .home-page .editorial-masthead-identity h1 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .home-page .home-latest-editorial h2 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }
}

/* BLACKBONE_WEBSITE_A8_3R3_UI_CONVERGENCE_RSS_PRESENTATION
   Operator direction:
   - About is a protected reference surface: DO NOT TOUCH.
   - Preserve A8.3R1 information roles: / = writing-led front page; /writing/ = archive.
   - Bring only the newer Writing surfaces toward the established BLACKBONE grammar:
     confident scale, cyan/gold accents, bounded depth, richer surfaces, stronger hierarchy.
   - Do not collapse Writing into dashboard/card density.
*/

:where(.home-page, .writing-index-page) {
  --bb-cyan: #38bdf8;
  --bb-cyan-soft: rgba(56, 189, 248, 0.10);
  --bb-cyan-line: rgba(56, 189, 248, 0.28);
  --bb-cyan-glow: rgba(56, 189, 248, 0.18);
  --bb-gold: #f5c542;
  --bb-gold-soft: rgba(245, 197, 66, 0.11);
  --bb-panel: rgba(12, 20, 35, 0.86);
  --bb-panel-deep: rgba(7, 12, 24, 0.94);
}

/* Shared shell: keep the new IA, restore BLACKBONE visual confidence. */
.home-page .nav,
.writing-index-page .nav {
  border-bottom-color: rgba(56, 189, 248, 0.16);
}

.home-page .nav-links a:hover,
.writing-index-page .nav-links a:hover,
.home-page .editorial-inline-link:hover,
.writing-index-page .editorial-links a:hover,
.writing-index-page .editorial-inline-link:hover {
  color: var(--bb-cyan);
}

.home-page .kicker,
.writing-index-page .kicker {
  color: var(--bb-gold);
  letter-spacing: 0.18em;
}

/* Homepage identity: About-inspired color/scale, but intentionally more compact than About. */
.home-page .editorial-masthead {
  padding-top: clamp(4.4rem, 6vw, 6.2rem);
  padding-bottom: clamp(3.8rem, 5.4vw, 5.4rem);
}

.home-page .editorial-masthead-identity h1 {
  max-width: 1100px;
  font-size: clamp(4.8rem, 6.5vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.home-page .home-name-first {
  color: rgba(248, 250, 252, 0.99);
}

.home-page .home-name-last {
  color: rgba(56, 189, 248, 0.92);
  text-shadow:
    0 0 40px rgba(56, 189, 248, 0.18),
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.home-page .editorial-masthead-identity .home-role {
  margin-top: 0.6rem;
  color: rgba(226, 232, 240, 0.92);
  font-weight: 650;
}

.home-page .editorial-masthead-note {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.35rem;
}

.home-page .editorial-masthead-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  border-radius: 999px;
  background: var(--bb-gold);
  box-shadow: 0 0 28px rgba(245, 197, 66, 0.16);
}

.home-page .editorial-masthead-note .home-thesis {
  margin-top: 0;
  color: rgba(226, 232, 240, 0.90);
}

.home-page .editorial-masthead-note .editorial-inline-link {
  display: inline-flex;
  margin-top: 1.15rem;
  color: var(--bb-cyan);
  font-weight: 800;
}

/* Writing becomes the homepage's visual event, not merely another ruled text region. */
.home-page .home-writing.editorial-grid-section {
  position: relative;
  margin: 0;
  padding: clamp(2.4rem, 4vw, 4.2rem);
  border: 1px solid var(--bb-cyan-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 10%, rgba(56, 189, 248, 0.12), transparent 30rem),
    linear-gradient(145deg, var(--bb-panel), var(--bb-panel-deep));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 80px rgba(56, 189, 248, 0.045);
  overflow: hidden;
}

.home-page .home-writing.editorial-grid-section::before {
  content: "";
  position: absolute;
  left: clamp(2.4rem, 4vw, 4.2rem);
  right: clamp(2.4rem, 4vw, 4.2rem);
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bb-gold), rgba(245, 197, 66, 0.08) 52%, transparent);
}

.home-page .home-writing .editorial-grid-label {
  padding-top: 0.4rem;
}

.home-page .home-writing .editorial-grid-label .editorial-inline-link,
.home-page .home-read-link {
  color: var(--bb-cyan);
  font-weight: 850;
}

.home-page .home-writing-empty,
.home-page .home-latest-editorial {
  max-width: 1080px;
}

.home-page .home-writing-empty .home-empty-lead,
.home-page .home-latest-editorial h2 {
  color: #fff;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

.home-page .home-writing-empty .home-empty-topics,
.home-page .home-latest-editorial > p {
  color: rgba(203, 213, 225, 0.92);
}

.home-page .home-latest-editorial h2 a:hover,
.home-page .home-recent-row h3 a:hover {
  color: var(--bb-cyan);
}

.home-page .home-recent-writing {
  border-top-color: rgba(56, 189, 248, 0.18);
}

.home-page .home-recent-row {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

/* Supporting Research / Portfolio remain below Writing, but now speak the existing BLACKBONE surface language. */
.home-page .home-secondary.editorial-section {
  border-top: 0;
  padding-top: clamp(2.25rem, 4vw, 4rem);
}

.home-page .home-secondary-grid {
  gap: clamp(1.2rem, 2.2vw, 2rem);
}

.home-page .home-secondary-item {
  position: relative;
  min-height: clamp(18rem, 22vw, 23rem);
  padding: clamp(2rem, 3vw, 3rem);
  border: 1px solid var(--bb-cyan-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 13, 26, 0.74));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.home-page .home-secondary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--bb-gold), rgba(245, 197, 66, 0.05));
}

.home-page .home-secondary-item + .home-secondary-item {
  border-left: 1px solid var(--bb-cyan-line);
  padding-left: clamp(2rem, 3vw, 3rem);
}

.home-page .home-secondary-item h2 {
  max-width: 720px;
  margin: 1rem 0 1.1rem;
  font-size: clamp(2.5rem, 3.4vw, 4.2rem);
  color: rgba(248, 250, 252, 0.98);
}

.home-page .home-secondary-item p {
  max-width: 680px;
  color: rgba(203, 213, 225, 0.90);
}

.home-page .home-secondary-item .editorial-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  margin-top: auto;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--bb-cyan);
  font-weight: 850;
  text-decoration: none;
}

.home-page .home-secondary-item .editorial-inline-link:hover {
  background: rgba(56, 189, 248, 0.14);
  text-decoration: none;
}

/* Writing archive: richer publication surface, still unmistakably an archive. */
.writing-index-page .writing-index-main {
  padding-top: clamp(2.6rem, 4vw, 4rem);
}

.writing-index-page .writing-index-masthead {
  position: relative;
  padding: clamp(3rem, 4.8vw, 5rem);
  border: 1px solid var(--bb-cyan-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 10%, rgba(56, 189, 248, 0.11), transparent 28rem),
    linear-gradient(145deg, var(--bb-panel), var(--bb-panel-deep));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.writing-index-page .writing-index-masthead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--bb-gold), rgba(245, 197, 66, 0.10));
}

.writing-index-page .writing-index-masthead h1 {
  color: rgba(248, 250, 252, 0.99);
  text-shadow: 0 22px 64px rgba(0, 0, 0, 0.38);
}

.writing-index-page .writing-index-dek {
  color: rgba(203, 213, 225, 0.92);
}

.writing-index-page .editorial-links {
  gap: 0.7rem;
}

.writing-index-page .editorial-links a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--bb-cyan);
  font-weight: 850;
  text-decoration: none;
}

.writing-index-page .editorial-links a:not(.button):hover {
  background: rgba(56, 189, 248, 0.14);
  text-decoration: none;
}

.writing-index-page .writing-archive.editorial-grid-section {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  border-top-color: rgba(56, 189, 248, 0.16);
}

.writing-index-page .writing-archive-heading {
  color: rgba(148, 163, 184, 0.96);
}

.writing-index-page .writing-entry,
.writing-index-page .writing-empty-state {
  position: relative;
  margin-bottom: 1rem;
  padding: clamp(1.4rem, 2vw, 2rem);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 13, 26, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.writing-index-page .writing-entry::before,
.writing-index-page .writing-empty-state::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 999px;
  background: var(--bb-gold);
  opacity: 0.78;
}

.writing-index-page .writing-entry h3 a:hover {
  color: var(--bb-cyan);
}

.writing-index-page .writing-card-action a {
  color: var(--bb-cyan);
  font-weight: 850;
}

.writing-index-page .writing-tags .badge {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.07);
  color: rgba(186, 230, 253, 0.94);
}

.writing-index-page .writing-empty-lead {
  color: rgba(248, 250, 252, 0.98);
}

/* Mobile: retain confidence without turning the surfaces into dense UI. */
@media (max-width: 980px) {
  .home-page .home-writing.editorial-grid-section,
  .writing-index-page .writing-index-masthead,
  .writing-index-page .writing-archive.editorial-grid-section {
    grid-template-columns: 1fr;
  }

  .home-page .home-secondary-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-secondary-item + .home-secondary-item {
    border-left: 1px solid var(--bb-cyan-line);
    padding-left: clamp(2rem, 3vw, 3rem);
  }
}

@media (max-width: 700px) {
  .home-page .editorial-masthead-identity h1 {
    font-size: clamp(3.6rem, 15vw, 5.2rem);
  }

  .home-page .home-name-first,
  .home-page .home-name-last {
    display: block;
  }

  .home-page .home-writing.editorial-grid-section,
  .writing-index-page .writing-index-masthead {
    padding: 1.6rem;
    border-radius: 20px;
  }

  .home-page .home-secondary-item {
    min-height: 0;
    padding: 1.6rem;
    border-radius: 18px;
  }

  .writing-index-page .writing-entry,
  .writing-index-page .writing-empty-state {
    padding: 1.25rem;
  }
}


/* ============================================================
   A8.3R3 — UI convergence and RSS presentation
   - CTA visuals inherit the established site.css .button primary/secondary grammar.
   - No local button skin is defined here.
   ============================================================ */
.home-page .editorial-masthead-note > .button {
  margin-top: 1.15rem;
}

.home-page .home-writing .editorial-grid-label > .button {
  justify-self: start;
  align-self: start;
}

.home-page .home-secondary-item > .button {
  margin-top: auto;
  align-self: flex-start;
}

.writing-index-page .editorial-links .button {
  margin: 0;
}

.writing-index-page .writing-card-action .button {
  margin-top: 0.75rem;
}
