/* LDB — vanilla CSS, slate-coral palette, Literata + Source Sans 3 (self-hosted).
   Library / directory aesthetic: serif headings, generous reading measure,
   hairline rules, custom blockquote treatment. No utility framework. */

/* ---- self-hosted fonts ---- */
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/literata-400.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/literata-400i.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/literata-600.woff2') format('woff2'); }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/literata-700.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/sourcesans-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/sourcesans-600.woff2') format('woff2'); }

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --ink: #28303d;
  --ink-soft: #515c6b;
  --coral: #c75a4a;
  --coral-deep: #a23c2d;
  --line: #d9d2c4;
  --slate: #1f2630;
  --slate-2: #2b3543;
  --measure: 68ch;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  font-feature-settings: 'kern' 1;
}
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.wide { max-width: 1000px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral);
    text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--coral-deep); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; background: var(--paper); padding: .5rem .8rem; z-index: 10; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---- header ---- */
.site-head { background: var(--slate); color: var(--paper); border-bottom: 3px solid var(--coral); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding-top: .85rem; padding-bottom: .85rem; max-width: 1000px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand .logo-mark { color: var(--paper); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; }
.brand-text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #b9c2cf; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .95rem; }
.site-nav a { color: #e8e9ea; text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--coral); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--coral); }

/* ---- main typography ---- */
main { padding: 2.6rem 1.25rem 3.2rem; }
main > * { max-width: var(--measure); }
main.wide > * { max-width: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.3rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 .7rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); font-family: var(--serif); line-height: 1.5; }
.byline, .updated { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin: 0 0 1.4rem; }
.updated { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
small, .muted { color: var(--ink-soft); }

/* ---- custom blockquote (quotation archives) — NOT the stock left-bar callout ---- */
blockquote {
  margin: 1.6rem 0; padding: 0 0 0 1.6rem; position: relative;
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--ink);
}
blockquote::before {
  content: "\201C"; position: absolute; left: -.15rem; top: -.6rem;
  font-family: var(--serif); font-size: 3rem; color: var(--coral); line-height: 1;
}
blockquote cite, blockquote footer { display: block; margin-top: .5rem; font-family: var(--sans);
  font-style: normal; font-size: .92rem; color: var(--ink-soft); }
blockquote cite::before, blockquote footer::before { content: "\2014 \00a0"; color: var(--coral); }

/* ---- resource directory lists (VL guide pages) ---- */
.res-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.res-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.res-list li:first-child { border-top: 1px solid var(--line); }
.res-list a { font-weight: 600; }
.res-list .src { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: .15rem; }
.note { font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.6rem; }

/* directory grid for index/hub pages */
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .4rem 2rem;
  list-style: none; padding: 0; margin: 1.4rem 0; }
.dir li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.dir a { text-decoration: none; font-weight: 600; }
.dir a:hover { text-decoration: underline; }
.dir .src { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 400; }

/* tables (data / comparison in guides) */
table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--sans); font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }

/* cornerstone header banner — restrained, not a full hero */
.page-banner { margin: 0 0 2rem; max-width: none; }
.page-banner img { width: 100%; height: 300px; object-fit: cover; display: block;
  border-bottom: 3px solid var(--coral); background: var(--paper-2); }
@media (max-width: 640px) { .page-banner img { height: 200px; } }

/* FAQ accordion — custom hairline treatment (not a tinted callout box) */
details { border-top: 1px solid var(--line); padding: .25rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.08rem;
  padding: .85rem 1.8rem .85rem 0; position: relative; list-style: none; color: var(--ink); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: .2rem; top: .75rem;
  color: var(--coral); font-size: 1.4rem; line-height: 1; font-family: var(--sans); }
details[open] summary::after { content: "\2212"; }
details summary:hover { color: var(--coral-deep); }
details > div { padding: 0 0 1rem; color: var(--ink-soft); }

figure { margin: 1.8rem 0; }
figure img, figure svg { max-width: 100%; height: auto; }
figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
img { max-width: 100%; height: auto; }

/* homepage hero (text-first, no image hero) */
.intro { border-bottom: 1px solid var(--line); padding-bottom: 1.8rem; margin-bottom: 1.8rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; margin: 1.6rem 0; list-style: none; padding: 0; }
.pillars li { border-top: 3px solid var(--coral); padding-top: .8rem; }
.pillars h2 { margin: 0 0 .3rem; font-size: 1.2rem; border: 0; padding: 0; }
.pillars h2 a { text-decoration: none; }
.pillars h2 a:hover { text-decoration: underline; }
.pillars p { font-size: .96rem; color: var(--ink-soft); }
.pillars a { font-weight: 600; }

/* ---- footer ---- */
.site-foot { background: var(--slate); color: #cfd6df; margin-top: 3rem; padding: 2.4rem 0 1.4rem;
  border-top: 3px solid var(--coral); font-size: .95rem; }
.foot-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.8rem; max-width: 1000px; }
.site-foot .brand .logo-mark, .site-foot .brand-text strong { color: var(--paper); }
.site-foot p { color: #aeb7c2; }
.foot-col .foot-h { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: #fff; margin: 0 0 .7rem; font-weight: 600; }
.foot-col a { display: block; color: #cfd6df; text-decoration: none; padding: .2rem 0; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); }
.foot-base { border-top: 1px solid var(--slate-2); margin-top: 1.8rem; padding-top: 1.1rem; }
.foot-base p { font-size: .82rem; color: #8d97a4; max-width: none; }

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .head-inner { flex-direction: column; align-items: flex-start; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.4rem; }
}
