/* The Legible Archive — archival catalogue register.
   Hand-written; deliberately no CDN UI framework. Two reasons, both learned
   the hard way elsewhere in this portfolio: framework navbars set
   flex-shrink:0 and push links past the viewport, and a mistyped CDN
   integrity hash silently drops the stylesheet with no visible error.
   No external requests of any kind are made by this file. */

:root {
  --ink:        #1c2431;
  --ink-soft:   #45505f;
  --ink-faint:  #5c6572;
  --paper:      #f5f1e8;
  --paper-warm: #efe9dc;
  --paper-deep: #e6dfcf;
  --rule:       #cdc4b0;
  --rule-soft:  #ded6c5;
  /* Antique brass, not oxblood. Chosen deliberately: (a) a fleet check found
     jacobsvillelighthouse.com already pairing a slate primary with a #9c3a2b
     rust accent on cream — one hair from the oxblood this site first used;
     (b) brass is the recurring material in this site's own photography (the
     reading-room lamp, the card-drawer pulls, the map pins, the sorting rod),
     so it is better motivated here than red ever was. */
  --brass:      #8a6a24;   /* rules, bullets, decorative marks (needs 3:1) */
  --brass-dk:   #6b5119;   /* text and links — 6.62:1 on paper, AA at all sizes */
  --verd:       #3f6b62;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --wrap: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  /* faint ruled-paper ground, purely decorative */
  background-image: linear-gradient(180deg, var(--paper-warm) 0, var(--paper) 22rem);
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
  min-width: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.1rem;
  font-family: var(--sans);
  font-size: .8rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
/* position is STATIC by design — a taller bar must never cover content. */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.4rem 1.1rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex-shrink: 1;
}

.brand-mark {
  width: 1.55rem;
  height: 2rem;
  flex: 0 0 auto;
  background: var(--ink);
  border-top: 5px solid var(--brass);
}

.brand-text { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-size: 1.34rem;
  letter-spacing: .005em;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: .69rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .18rem;
}

.site-head nav { min-width: 0; }

.site-head nav ul {
  display: flex;
  flex-wrap: wrap;          /* links wrap; they are never pushed off-screen */
  min-width: 0;
  gap: .3rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-head nav li { min-width: 0; }

.site-head nav a {
  font-family: var(--sans);
  font-size: .775rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: .22rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.site-head nav a:hover { color: var(--brass-dk); border-bottom-color: var(--brass); }
.site-head nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

/* ---------- main / prose ---------- */
main { padding-block: 3.25rem 4rem; }

.prose { max-width: var(--measure); min-width: 0; }

.is-home .prose { max-width: 44rem; }

.kicker {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-dk);
  margin: 0 0 1.1rem;
}
.kicker::after {
  content: "";
  display: block;
  width: 2.4rem;
  border-top: 2px solid var(--brass);
  margin-top: .6rem;
}

.prose h1 {
  font-size: clamp(1.95rem, 1.35rem + 2.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  font-weight: 600;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}

.prose h2 {
  font-size: clamp(1.32rem, 1.12rem + .78vw, 1.62rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 2.9rem 0 .85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-soft);
  text-wrap: balance;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  margin: 2rem 0 .55rem;
  color: var(--ink);
}

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

.prose .lede {
  font-size: clamp(1.1rem, 1.03rem + .32vw, 1.26rem);
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 3px solid var(--brass);
  padding-left: 1.15rem;
  margin-bottom: 1.9rem;
}

.prose a {
  color: var(--brass-dk);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .04em;
}
.prose a:hover { color: #54400f; border-bottom-color: var(--brass); border-bottom-width: 2px; padding-bottom: 0; }

.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .58rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.35rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .72em;
  width: .42rem;
  height: 1px;
  background: var(--brass);
}
.prose ol { padding-left: 1.45rem; }
.prose ol li { padding-left: .3rem; }
.prose ol li::marker { color: var(--brass-dk); font-family: var(--sans); font-size: .82em; }

.prose strong { font-weight: 700; }
.prose em { font-style: italic; }

/* figure — echoes the original site's one layout idiom (a small image
   floated left of its paragraph), modernised and made overflow-safe. */
.page-fig {
  margin: 2rem 0 2.2rem;
  padding: 0;
  min-width: 0;
}
.page-fig img {
  width: 100%;
  border: 1px solid var(--rule);
  padding: .5rem;
  background: #fdfbf6;
}

.sitelist { margin-top: 1.2rem; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding-block: 2.9rem 2.2rem;
  margin-top: 3rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem 2.25rem;
  min-width: 0;
}

.foot-col { min-width: 0; }

.foot-h {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .48rem; }

.foot-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .935rem;
  border-bottom: 1px solid transparent;
}
.foot-col a:hover { color: var(--brass-dk); border-bottom-color: var(--rule); }

.foot-base {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.foot-note {
  font-size: .88rem;
  color: var(--ink-faint);
  max-width: 44rem;
  margin: 0 0 .85rem;
  line-height: 1.6;
}

.foot-copy {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (min-width: 60rem) {
  main { padding-block: 4.25rem 5rem; }
  .prose { margin-left: 4.5rem; }
  .page-fig { margin-inline: -4.5rem 0; }
}

@media (max-width: 46rem) {
  .head-inner { padding-block: 1.15rem .9rem; gap: .85rem 1.25rem; }
  .site-head nav ul { gap: .35rem 1.15rem; }
  .prose .lede { padding-left: .95rem; }
}

@media (max-width: 26rem) {
  .brand-sub { display: none; }
  .site-head nav a { font-size: .72rem; letter-spacing: .07em; }
}

/* Safeguard: content must never be hidden waiting on JavaScript.
   Any entrance animation is progressive enhancement only. */
[data-aos] { opacity: 1 !important; transform: none !important; }

@media print {
  .site-head nav, .site-foot { display: none; }
  body { background: #fff; }
}
