
img {
  height: auto;
}

.about-thesis h1 {
  margin-top: 1.4rem;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

@media (min-width: 761px) {
  .home-hero {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    align-items: end;
    padding-top: 22px;
  }

  .home-hero .hero-title {
    align-self: end;
  }

  .identity {
    gap: 2rem;
  }

  .identity p {
    min-width: 15ch;
    margin-top: 2.1rem;
  }
}

.home-hero .hero-title h1 {
  margin-top: 0;
  font-size: clamp(2.9rem, 4.4vw, 4.4rem);
  line-height: 1;
  text-wrap: balance;
}

.home-hero .hero-title h1 em {
  padding-bottom: 0.06em;
}

@media (min-width: 761px) {
  .principle-grid.is-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-grid.is-four article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .principle-grid.is-four article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.rule-row::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

a.pill:hover {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.stack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.invite-card {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem 1.25rem;
  background: var(--ink-soft);
}

.invite-card .section-label {
  font-size: 0.74rem;
}

.invite-row {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.invite-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.copy-button {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--paper-dim);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--oxblood);
  color: var(--oxblood);
}

.invite-note {
  margin-top: 0.8rem;
  color: var(--paper-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

.invite-note sup {
  color: var(--oxblood);
}

.invite-footnote {
  margin-top: 0.55rem;
  color: var(--line);
  font-size: 0.78rem;
  line-height: 1.5;
}

.desk-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 2.5rem;
  align-items: center;
  padding: 26px 34px;
  border-bottom: 1px solid var(--line);
}

.desk-pick h2 {
  margin-top: 0.8rem;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.desk-pick h2 a {
  text-decoration: none;
}

.desk-pick > div > p {
  margin-top: 0.9rem;
  color: var(--paper-dim);
  font-family: Georgia, "Libre Caslon Display", serif;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 62ch;
}

.desk-hand {
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
  color: var(--moss);
  font-family: Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

.desk-hand span {
  display: block;
  margin-top: 0.7rem;
  color: var(--paper-dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-grid {
  padding: 24px 34px 30px;
  border-bottom: 1px solid var(--line);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  border-top: 1px solid var(--line);
  counter-reset: entry;
}

.entry-list.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0 0.9rem;
  padding: 1.15rem 0 1.3rem;
  border-bottom: 1px solid var(--line-soft);
}

.entry::before {
  counter-increment: entry;
  content: counter(entry, decimal-leading-zero);
  grid-row: 1 / span 3;
  padding-top: 0.28rem;
  color: var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry:hover::before,
.entry:focus-within::before {
  color: var(--oxblood);
}

.entry-grid .entry-kicker {
  display: none;
}

.entry-grid .entry.is-key .entry-kicker {
  display: block;
  color: var(--moss);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.entry-kicker {
  color: var(--moss);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.entry h3 {
  margin-top: 0.15rem;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.16;
  text-wrap: balance;
}

.entry h3 a {
  text-decoration: none;
  background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry:hover h3 a,
.entry h3 a:focus-visible {
  background-size: 100% 1px;
}

.entry h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.entry p {
  margin-top: 0.45rem;
  color: var(--paper-dim);
  font-family: Georgia, serif;
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 54ch;
}

.entry-grid .entry-meta {
  display: none;
}

.article-head {
  padding: 46px 34px 30px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.62fr);
  gap: 3.5rem;
  align-items: end;
}

.crumbs {
  color: var(--paper-dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.crumbs a {
  text-decoration: none;
}

.crumbs span {
  color: var(--line);
  padding: 0 0.45rem;
}

.article-head h1 {
  margin-top: 1.1rem;
  max-width: 20ch;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.article-standfirst {
  margin-top: 1.3rem;
  max-width: 60ch;
  color: var(--paper-dim);
  font-family: Georgia, "Libre Caslon Display", serif;
  font-size: 1.14rem;
  line-height: 1.55;
}

.article-byline {
  border-left: 1px solid var(--line);
  padding-left: 1.7rem;
  color: var(--paper-dim);
  font-size: 0.84rem;
  line-height: 1.7;
}

.article-byline b {
  display: block;
  color: var(--paper);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.article-main {
  min-width: 0;
  padding: 30px 40px 46px 34px;
}

.article-aside {
  border-left: 1px solid var(--line);
  padding: 30px 24px 46px;
  align-self: start;
}

.aside-block + .aside-block {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.toc {
  margin-top: 0.9rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.toc a {
  color: var(--paper-dim);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--oxblood);
}

.aside-note {
  margin-top: 0.9rem;
  color: var(--paper-dim);
  font-family: Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

.aside-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.aside-list a {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}

.aside-list a:hover {
  color: var(--oxblood);
}

.aside-list p {
  margin-top: 0.25rem;
  color: var(--line);
  font-size: 0.8rem;
}

.prose {
  max-width: 68ch;
  font-family: Georgia, "Libre Caslon Display", serif;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--paper);
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose h2 {
  margin: 2.6rem 0 0.9rem;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 1.9rem 0 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--moss);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

.prose li::marker {
  color: var(--oxblood);
}

.prose a {
  color: var(--paper);
  text-decoration-color: var(--oxblood);
}

.prose strong {
  font-weight: 400;
  color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.prose em {
  color: var(--paper-dim);
}

.prose code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border: 1px solid var(--line-soft);
  color: var(--moss);
  word-break: break-word;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--oxblood);
  color: var(--paper-dim);
  font-size: 1.08rem;
  line-height: 1.6;
}

.lede {
  border: 1px solid var(--line);
  padding: 1.3rem 1.4rem 0.4rem;
  margin-bottom: 1.8rem;
  background: var(--ink-soft);
}

.lede p:last-child {
  margin-bottom: 1rem;
}

.warn {
  margin: 1.8rem 0;
  border-left: 2px solid var(--oxblood);
  background: rgba(165, 72, 60, 0.08);
  padding: 1.1rem 1.3rem 0.2rem;
}

.warn p:last-child {
  margin-bottom: 1.1rem;
}

.branch {
  margin: 1.6rem 0 1.9rem;
  border-top: 1px solid var(--line-soft);
}

.branch > div {
  padding: 1.1rem 0 0.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.branch h4 {
  margin: 0 0 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.branch h4::before {
  content: "→ ";
  color: var(--oxblood);
}

.data-table {
  width: 100%;
  margin: 1.5rem 0 1.9rem;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.8rem 0.6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  color: var(--paper-dim);
}

.data-table th {
  color: var(--paper);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom-color: var(--line);
}

.table-scroll {
  overflow-x: auto;
}

.article-cover,
.article-figure {
  margin: 0 0 1.9rem;
  border: 1px solid var(--line-soft);
  padding: 6px;
}

.article-figure {
  margin: 2.4rem 0 2rem;
}

.article-cover img,
.article-figure img {
  width: 100%;
  height: auto;
}

.article-cover figcaption,
.article-figure figcaption {
  padding: 0.7rem 0.2rem 0.1rem;
  color: var(--paper-dim);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.disclosure-line {
  margin: 0.9rem 0 1.6rem;
  color: var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.faq {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}

.faq h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.8rem;
}

.faq-item {
  margin-top: 1.5rem;
}

.faq-item h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--paper);
}

.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--paper-dim);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
}

.article-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 68ch;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  border-bottom: 1px solid var(--line);
}

.tool-panel {
  padding: 30px 34px 40px;
  min-width: 0;
}

.tool-side {
  border-left: 1px solid var(--line);
  padding: 30px 24px 40px;
}

.tool-step {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.tool-step:first-of-type {
  border-top: 1px solid var(--line);
}

.tool-question {
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--paper);
}

.tool-hint {
  margin-top: 0.4rem;
  color: var(--line);
  font-size: 0.82rem;
  line-height: 1.5;
}

.tool-options {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.opt {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-dim);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.opt:hover {
  border-color: var(--paper-dim);
  color: var(--paper);
}

.opt[aria-pressed="true"] {
  border-color: var(--oxblood);
  background: rgba(165, 72, 60, 0.16);
  color: var(--paper);
}

.tool-result {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  padding: 1.5rem 1.6rem 1.7rem;
}

.result-headline {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--paper);
}

.result-sub {
  margin-top: 0.7rem;
  color: var(--paper-dim);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
}

.result-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.result-list li {
  position: relative;
  padding-left: 2.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  color: var(--paper-dim);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.55;
}

.result-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  color: var(--oxblood);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.result-list li b {
  color: var(--paper);
  font-weight: 400;
}

.tool-guide {
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.tool-guide summary {
  cursor: pointer;
  color: var(--oxblood);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-guide .prose {
  margin-top: 1.4rem;
}

.doc-body {
  padding: 34px 34px 48px;
}

.doc-body .prose {
  max-width: 72ch;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--paper-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-legal a {
  color: var(--paper-dim);
}

footer,
.register-note,
.about-image figcaption,
.dossier-index p,
.evidence-copy > div > p,
.topic-summary,
.principle-grid p,
.method-grid p,
.page-meta,
.table-wrap table {
  font-size: 0.84rem;
  line-height: 1.6;
}

.identity p,
.folio-rail,
.thesis-meta dt,
.evidence-copy dt,
.topic-row dt {
  font-size: 0.72rem;
}

.thesis-meta dd,
.evidence-copy dd,
.topic-row dd,
.site-header nav a {
  font-size: 0.85rem;
}

.site-header nav a,
.text-cta,
.quiet-link,
.aside-list a,
.toc a,
.desk-pick h2 a {
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill,
.copy-button,
.opt {
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill:active,
.copy-button:active,
.opt:active {
  transform: translateY(1px);
}

.desk-pick h2 a {
  background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.desk-pick h2 a:hover,
.desk-pick h2 a:focus-visible {
  background-size: 100% 2px;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.55rem;
  height: 1px;
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.site-header nav a.is-current::after {
  transform: scaleX(1);
  background: var(--paper-dim);
}

@media (prefers-reduced-motion: reduce) {
  .entry::before,
  .entry h3 a,
  .desk-pick h2 a,
  .site-header nav a,
  .site-header nav a::after,
  .pill,
  .copy-button,
  .opt {
    transition: none;
  }

  .pill:active,
  .copy-button:active,
  .opt:active {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .article-shell,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .article-aside,
  .tool-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .article-head {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-byline {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.2rem 0 0;
  }

  .desk-pick {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .desk-hand {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 1.1rem 0 0;
  }
}

@media (max-width: 760px) {
  .entry-grid,
  .desk-pick,
  .article-head,
  .article-main,
  .article-aside,
  .tool-panel,
  .tool-side,
  .doc-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .entry-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .article-head {
    padding-top: 32px;
  }

  .article-head h1 {
    font-size: clamp(2.1rem, 8.6vw, 3rem);
    max-width: none;
  }

  .prose {
    font-size: 1.04rem;
  }

  .article-main {
    padding-top: 26px;
  }

  .invite-code {
    font-size: 1.3rem;
  }

  .result-list li {
    padding-left: 2.3rem;
  }

  .identity p {
    max-width: 150px;
    font-size: 0.7rem;
  }

  .home-hero {
    padding-top: 18px;
    gap: 1.2rem;
  }

  .home-hero .hero-title h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.1rem);
  }

  .home-hero .hero-summary p {
    font-size: 1rem;
  }

  .home-hero .text-cta {
    margin-top: 1rem;
  }

  .home-hero .invite-card {
    margin-top: 1.1rem;
  }
}

.text-cta,
.quiet-link {
  color: #c96354;
}

@media (max-width: 760px) {
  .identity p {
    max-width: 170px;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
  }

  .thesis-meta dt,
  .pill,
  .section-label,
  .eyebrow,
  .text-cta,
  .quiet-link,
  .desk-hand span,
  .crumbs,
  .crumbs a,
  .crumbs span,
  figcaption,
  .article-cover figcaption,
  .article-figure figcaption,
  .aside-list p,
  .principle-grid span,
  .method-grid span {
    font-size: 0.8125rem;
  }
}
