/* The decorative flock stays behind content and never intercepts input. */
.flock-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.site-container {
  position: relative;
  z-index: 1;
}

/* A quiet editorial system for the site and its reading pages. */
:root {
  --ink: #242b29;
  --muted: #68716b;
  --accent: #586e5d;
  --paper: #f8f8f3;
  --line: #d9ded5;
  --technical-black: #242b29;
  --technical-blue: #586e5d;
  --technical-red: #945e4f;
  --paper-white: #fff;
  --code-bg: #eef0e9;
  --font-stack: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-stack);
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #a96c48;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  z-index: 10;
  padding: 0.5rem;
}
.container {
  max-width: 1440px;
  margin: auto;
  padding: 0 7.6%;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 105px;
  border-bottom: 1px solid var(--line);
}
.site-brand,
.footer-brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.35rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.brand-dot {
  color: #a97355;
}
.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a,
.main-nav .nav-button {
  font-size: 0.83rem;
  font-weight: 600;
  color: #555f58;
  text-decoration: none;
}
.main-nav form,
.footer-links form {
  margin: 0;
}
.main-nav .nav-button,
.footer-links .text-button {
  display: block;
  font-family: inherit;
  line-height: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.footer-links .text-button {
  font-size: 0.78rem;
}
.main-nav .nav-button:hover,
.footer-links .text-button:hover {
  color: var(--ink);
  background: transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--accent);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8%;
  align-items: center;
  min-height: 520px;
  padding: 5.5rem 0 6rem;
}
.eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.7rem;
  text-transform: uppercase;
}
.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  vertical-align: middle;
  background: var(--accent);
  margin-right: 10px;
}
.section-number {
  color: #a3aaa1;
  margin-left: 0.4rem;
}
.hero h1,
.page-intro h1 {
  font-family: Georgia, serif;
  font-size: clamp(3.5rem, 6.5vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.04;
  margin: 0;
}
.hero h1 em,
.page-intro h1 em {
  font-weight: 400;
  color: var(--accent);
}
.hero-description,
.page-intro > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.8;
  margin: 1.8rem 0 2.3rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.button-primary {
  background: #445b4b;
  color: white;
  text-decoration: none;
  padding: 0.95rem 1.3rem;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-flex;
  gap: 2rem;
  justify-content: space-between;
}
.button-primary:hover {
  background: #303f35;
  color: white;
}
.text-link {
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
}
.text-link span {
  padding-left: 0.5rem;
}
.hero-aside {
  aspect-ratio: 1.12;
  background: #e7ebe1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-aside:before,
.hero-aside:after {
  content: "";
  position: absolute;
  border: 1px solid #cbd5c7;
  border-radius: 50%;
  width: 80%;
  aspect-ratio: 1;
}
.hero-aside:after {
  width: 55%;
}
.aside-mark {
  font:
    italic 6rem Georgia,
    serif;
  color: #758c77;
  letter-spacing: -0.1em;
  z-index: 1;
}
.aside-mark span {
  color: #b58b6f;
}
.aside-bottom {
  position: absolute;
  bottom: 1.4rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: #819183;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  font-weight: bold;
}
.section {
  padding: 4.5rem 0;
}
.recent-section {
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-heading .eyebrow,
.explore-section .eyebrow {
  margin-bottom: 0.8rem;
}
.section-heading h2,
.explore-section h2,
.related-section h2 {
  font:
    400 2.6rem/1.1 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 0;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}
.post-row {
  display: grid;
  grid-template-columns: 160px 1fr 30px;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}
.post-date {
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 0.3rem;
}
.post-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.post-type span {
  color: #b3bab0;
}
.post-summary h3 {
  font:
    400 1.55rem/1.2 Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 0.5rem 0;
}
.post-summary h3 a {
  text-decoration: none;
}
.post-summary p {
  max-width: 660px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  line-height: 1.65;
}
.source-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.5rem;
}
.row-arrow {
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--accent);
  text-align: right;
}
.empty-state {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.explore-section {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.explore-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}
.explore-links a:last-child {
  border-bottom: 1px solid var(--line);
}
.explore-links small,
.explore-links strong,
.explore-links span span {
  display: block;
}
.explore-links small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: bold;
}
.explore-links strong {
  font:
    400 1.55rem Georgia,
    serif;
  margin: 0.5rem 0;
}
.explore-links span span {
  color: var(--muted);
  font-size: 0.85rem;
}
.explore-links b {
  color: var(--accent);
  font-weight: normal;
}
.page-intro {
  padding: 6rem 0 4rem;
}
.page-intro h1 {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
}
.page-intro > p:last-child {
  margin-bottom: 0;
}
.list-toolbar {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
}
.filter-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.filter-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.filter-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: bold;
}
.writing-section {
  padding: 2.5rem 0 3rem;
}
.writing-section + .writing-section {
  border-top: 1px solid var(--line);
}
.writing-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.writing-section-heading .eyebrow {
  margin-bottom: 0.8rem;
}
.writing-section-heading h2 {
  font: 400 2.6rem/1.1 Georgia, serif;
  letter-spacing: -0.045em;
  margin: 0;
}
.writing-section-heading p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.8rem 0 0;
}
.profile-content {
  border-top: 1px solid var(--line);
  padding: 2rem 0 5rem;
  max-width: 80ch;
  color: #4c5750;
}
.profile-content h2,
.profile-content h3 {
  font-family: Georgia, serif;
  font-weight: normal;
  color: var(--ink);
}
.profile-content h2 {
  font-size: 2rem;
}
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 0;
}
.back-link {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: bold;
}
.article-header {
  margin: 3rem 0 2rem;
}
.article-header .eyebrow {
  margin-bottom: 1rem;
}
.article-header h1 {
  font:
    400 clamp(2.8rem, 5vw, 4.8rem)/1.08 Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 0;
}
.article-byline {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
}
.article-reference {
  background: #edf0e8;
  border-left: 3px solid #809381;
  padding: 1rem 1.3rem;
  margin: 2rem 0;
}
.article-reference span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.article-reference p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}
.article-reference a {
  font-size: 0.9rem;
}
.post-content {
  font:
    1.08rem/1.9 Georgia,
    serif;
}
.post-content p {
  margin: 0 0 1.5rem;
}
.post-content h2,
.post-content h3 {
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
}
.post-content img,
figure img {
  max-width: 100%;
  height: auto;
}
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--muted);
}
pre {
  overflow: auto;
  background: #eef0e9;
  padding: 1rem;
}
table {
  max-width: 100%;
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
td,
th {
  padding: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.related-section {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}
.related-section h2 {
  margin-bottom: 2rem;
}
.admin-stats {
  margin-top: 3rem;
  font-size: 0.8rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: start;
  flex-wrap: wrap;
}
.footer-links a,
.text-button {
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.private-access {
  font-size: 0.75rem;
  color: var(--muted);
}
.private-access form {
  margin-top: 0.6rem;
}
.private-access input {
  max-width: 130px;
}
.copyright {
  grid-column: 1/-1;
  margin-top: 2rem;
}
input,
button,
select,
textarea {
  font: inherit;
  padding: 0.6rem;
  border: 1px solid var(--line);
}
button {
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
button:hover {
  background: var(--accent);
}
.search-form {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.search-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.search-form div {
  display: flex;
  max-width: 650px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  background: white;
}
.search-form button {
  padding: 0.6rem 1.5rem;
}
.search-heading {
  font:
    400 1.6rem Georgia,
    serif;
  margin: 2rem 0;
}
/* A faint document grid and a signal sketch, kept behind the content. */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(88, 110, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 110, 93, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-aside {
  background-color: #e7ebe1;
  background-image:
    linear-gradient(rgba(88, 110, 93, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 110, 93, 0.055) 1px, transparent 1px);
  background-size: 25px 25px;
}
.hero-aside:before,
.hero-aside:after {
  content: none;
}
.signal-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.signal-guides {
  fill: none;
  stroke: #869b88;
  stroke-width: 1;
  opacity: 0.32;
}
.signal-trace {
  fill: none;
  stroke: #758f79;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 8;
  animation: signal-flow 16s linear infinite;
}
.signal-nodes {
  fill: #758f79;
  opacity: 0.65;
}
@keyframes signal-flow {
  to {
    stroke-dashoffset: -120;
  }
}
@media (prefers-reduced-motion: reduce) {
  .signal-trace {
    animation: none;
  }
}
@media (max-width: 750px) {
  .container {
    padding: 0 6%;
  }
  .site-header {
    padding: 1.4rem 0;
    display: block;
  }
  .main-nav {
    gap: 1rem 1.4rem;
    margin-top: 1.1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 0;
    gap: 3rem;
    min-height: 0;
  }
  .hero-aside {
    aspect-ratio: 1.6;
  }
  .aside-mark {
    font-size: 4rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section-heading,
  .writing-section-heading {
    align-items: start;
    flex-direction: column;
  }
  .post-row {
    grid-template-columns: 1fr 25px;
    gap: 0.5rem;
  }
  .post-date {
    grid-column: 1/-1;
  }
  .explore-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .page-intro {
    padding: 4rem 0 3rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .copyright {
    grid-column: auto;
  }
  .article-page {
    padding: 3rem 0;
  }
}
