/* ============================================================
   Honeycutt Ai Labs — editorial / scholarly-archival surface
   Rebuilt 2026-05-22. Hand-written. Type carries the page;
   the rubric red is used sparingly, the way a scribe used it.
   ============================================================ */

:root {
  --paper:        #f3efe6;
  --paper-2:      #ece5d6;
  --card:         #faf8f2;
  --ink:          #211e18;
  --ink-soft:     #4a443a;
  --ink-mute:     #8a8170;
  --rule:         #ddd5c3;
  --rule-strong:  #c6bca3;
  --rubric:       #9e2b25;
  --rubric-deep:  #7c201b;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Newsreader", Georgia, serif;
  --mono:    "Spline Sans Mono", "SFMono-Regular", Menlo, monospace;

  --measure: 38rem;
  --shell:   1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint top atmosphere — barely there, like light on paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(158, 43, 37, 0.045), transparent 70%),
    radial-gradient(50rem 36rem at 4% 2%, rgba(33, 30, 24, 0.035), transparent 72%);
}

/* ---- type primitives ---- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 480;
  font-variation-settings: "SOFT" 28, "WONK" 0;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0;
}

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

em { font-style: italic; }

a { color: inherit; }

::selection { background: rgba(158, 43, 37, 0.16); }

:focus-visible {
  outline: 2px solid var(--rubric);
  outline-offset: 3px;
}

/* ---- layout shell ---- */

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100vw - 3rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---- masthead ---- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.9rem 0 1.4rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark::after {
  content: ".";
  color: var(--rubric);
}

.nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rubric);
}

/* ---- shared section rhythm ---- */

main { position: relative; z-index: 1; }

.band {
  padding: 4.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.band--tight { padding: 3.4rem 0; }
.band:last-of-type { border-bottom: none; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
}
.label::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  background: var(--rubric);
  flex: none;
}

.lede {
  font-size: 1.24rem;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose p { color: var(--ink-soft); }

/* an inline link with a rubric underline that draws in */
.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--rubric), var(--rubric));
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1.5px;
  transition: background-size 0.28s ease, color 0.18s ease;
}
.link:hover { color: var(--rubric); }
.link--quiet { background-size: 0% 1.5px; }
.link--quiet:hover { background-size: 100% 1.5px; }

.link-row {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.link-row .arrow { color: var(--rubric); }

/* ---- buttons ---- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta:hover { background: var(--rubric); border-color: var(--rubric); }

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.cta--ghost:hover {
  background: transparent;
  color: var(--rubric);
  border-color: var(--rubric);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---- hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 3.4rem;
  padding: 5.2rem 0 4.6rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 4.7rem);
  line-height: 1.015;
  font-weight: 460;
  font-variation-settings: "SOFT" 24, "WONK" 1;
  letter-spacing: -0.025em;
  margin: 0.4rem 0 1.7rem;
  max-width: 16ch;
}
.hero h1 .ru { color: var(--rubric); }

.hero .lede { margin-bottom: 0; }

/* hero aside — set like a journal sidebar */
.sidenote {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
  align-self: start;
}
.sidenote h2 {
  font-size: 1.04rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.sidenote dl { margin: 0; }
.sidenote dt {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  margin-top: 1.05rem;
}
.sidenote dt:first-child { margin-top: 0; }
.sidenote dd {
  margin: 0.15rem 0 0;
  font-size: 0.99rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.sidenote dd + dt {
  padding-top: 1.05rem;
  border-top: 1px solid var(--rule);
}
.sidenote .sidenote-foot {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

/* ---- section heading block ---- */

.heading {
  max-width: 30rem;
}
.heading h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.2rem;
}
.split--even { grid-template-columns: 1fr 1fr; }

/* ---- catalog entries (tools / work / who-it's-for) ---- */

.catalog { margin-top: 0.5rem; }

.entry {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 2rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }

.entry-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.4rem;
  line-height: 1.7;
}
.entry-meta .live { color: var(--rubric); }
.entry-meta .concept { color: var(--ink-mute); }

.entry-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.entry-body p {
  color: var(--ink-soft);
  max-width: 40rem;
}
.entry-body .actions { margin-top: 1.1rem; }

/* a plain numbered-free stepped flow rendered as prose blocks */
.stepped {
  display: grid;
  gap: 0;
}
.step {
  padding: 1.7rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step h3 {
  font-size: 1.32rem;
  font-weight: 500;
}
.step p { color: var(--ink-soft); max-width: var(--measure); }

/* ---- figure plate (screens band) ---- */

.band--plate { padding: 3.4rem 0; }
.plate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 0;
}
@media (max-width: 1100px) { .plate { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }
.plate-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}
.plate-tile img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  transition: transform 0.3s ease, border-color 0.18s ease;
}
.plate-tile:hover img {
  transform: translateY(-3px);
  border-color: var(--rubric);
}
.plate-tile figcaption {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- working-demo band ---- */

.band--demo { padding: 3.4rem 0; }
.demo-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.6rem;
  align-items: center;
}
.demo-frame {
  display: block;
  text-decoration: none;
}
.demo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  transition: transform 0.3s ease, border-color 0.18s ease;
}
.demo-frame:hover img {
  transform: translateY(-3px);
  border-color: var(--rubric);
}
.demo-body h3 {
  font-size: 1.7rem;
  line-height: 1.18;
  margin: 0.2rem 0 0.9rem;
}
.demo-body p { color: var(--ink-soft); max-width: 32rem; }
.demo-body .actions { margin-top: 1.1rem; }
@media (max-width: 880px) {
  .demo-row { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---- closing call ---- */

.closer {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.closer .shell { padding: 4.4rem 0; }
.closer .label { color: #b9ad96; }
.closer .label::before { background: var(--rubric); }
.closer h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1.3rem;
}
.closer p { color: #c9bea8; max-width: var(--measure); }
.closer .cta {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.closer .cta:hover { background: var(--rubric); color: var(--paper); border-color: var(--rubric); }
.closer .cta--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 239, 230, 0.34);
}
.closer .cta--ghost:hover { color: var(--paper); border-color: var(--rubric); }

/* ---- footer ---- */

.footer {
  position: relative;
  z-index: 1;
  padding: 2.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.footer a { color: var(--ink-mute); text-decoration: none; }
.footer a:hover { color: var(--rubric); }

/* ---- page-load reveal ---- */

.rise {
  opacity: 0;
  transform: translateY(15px);
  animation: rise 0.82s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .link, .cta, .nav a { transition: none; }
}

/* ---- responsive ---- */

@media (max-width: 880px) {
  body { font-size: 17px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: 3.4rem 0;
  }
  .split, .split--even {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .entry {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .entry-meta { padding-top: 0; }
  .band { padding: 3.4rem 0; }
  .plate { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .shell { width: calc(100vw - 2rem); }
  .masthead { padding: 1.4rem 0 1.1rem; }
  .nav { gap: 1.1rem; }
  .hero h1 { letter-spacing: -0.02em; }
}
