:root {
  --paper: #f4f0e6;
  --paper-bright: #fbf8f0;
  --ink: #1e2525;
  --muted: #626661;
  --rule: #c8c0ae;
  --wine: #782f40;
  --wine-dark: #4e1f2a;
  --blue: #24485d;
  --gold: #a67a32;
  --measure: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(36, 72, 93, .045) 1px, transparent 1px) 0 7.4rem / 100% 1.62rem,
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.07rem;
  line-height: 1.72;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wine-dark); text-decoration-thickness: .08em; text-underline-offset: .17em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 20;
  height: 3px;
  width: var(--read-progress, 0%);
  background: var(--wine);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 10;
  border-top: .4rem solid var(--wine);
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 248, 240, .96);
}
.header-inner {
  width: min(var(--measure), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 18rem 1fr;
  align-items: end;
  gap: 2rem;
  padding: 1.35rem 0 1rem;
}
.brand { color: var(--ink); text-decoration: none; }
.brand-kicker,
.eyebrow,
.folio-label,
.crumbs,
.nav-list,
.footer-label {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.brand-kicker { display: block; color: var(--wine); font-size: .68rem; font-weight: 700; }
.brand-name { display: block; margin-top: .15rem; font-size: clamp(1.42rem, 3vw, 2.05rem); line-height: 1; letter-spacing: -.02em; }
.nav-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .69rem;
  font-weight: 700;
}
.nav-list a { color: var(--ink); text-decoration: none; padding-block: .28rem; }
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--wine); border-bottom: 2px solid var(--wine); }

main { min-height: 70vh; }
.masthead {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(110deg, rgba(120, 47, 64, .09), rgba(251, 248, 240, .78) 42%, rgba(36, 72, 93, .08));
}
.masthead-inner {
  width: min(var(--measure), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  gap: 3rem;
  align-items: end;
  padding: clamp(2.7rem, 7vw, 6.4rem) 0 2.2rem;
}
.crumbs { margin: 0 0 1rem; color: var(--muted); font-size: .66rem; }
.crumbs a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.7rem, 7.2vw, 6.6rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}
.deck { max-width: 54rem; margin: 1.35rem 0 0; color: #3c4341; font-size: clamp(1.12rem, 2.2vw, 1.42rem); line-height: 1.48; }
.catalogue-mark {
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
  line-height: 1.5;
}
.catalogue-mark strong { display: block; margin-bottom: .4rem; color: var(--wine); font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 400; line-height: 1; }

.article-shell {
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.2rem, 5vw, 5rem) 0 5rem;
}
.article-body { min-width: 0; }
.article-body > p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--wine);
  font-size: 4.6rem;
  line-height: .72;
}
.article-body p { max-width: 46rem; }
.article-body h2 {
  margin: 3.1rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--blue);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.14;
}
.article-body h3 { margin: 2rem 0 .65rem; color: var(--wine-dark); font-size: 1.2rem; }
.article-body ul, .article-body ol { max-width: 44rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  max-width: 43rem;
  margin: 2.2rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: .24rem solid var(--wine);
  color: #464b48;
  font-size: 1.24rem;
  font-style: italic;
}
.editorial-image {
  margin: 0 0 2.25rem;
  border: 1px solid #b9af9b;
  background: #e4ddce;
  box-shadow: 10px 10px 0 rgba(120, 47, 64, .08);
}
.editorial-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reference-note {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  background: rgba(251, 248, 240, .8);
  font-size: .94rem;
}
.reference-note p { margin: 0; }
.reference-note p + p { margin-top: .65rem; }
.folio { align-self: start; position: sticky; top: 1.5rem; }
.folio-box { padding: 1.2rem 0; border-top: .28rem solid var(--wine); border-bottom: 1px solid var(--rule); }
.folio-label { margin: 0 0 .8rem; color: var(--muted); font-size: .65rem; font-weight: 700; }
.folio ul { margin: 0; padding: 0; list-style: none; }
.folio li { padding: .6rem 0; border-top: 1px dotted var(--rule); font-size: .94rem; line-height: 1.35; }
.folio li:first-child { border-top: 0; }
.folio a { color: var(--ink); text-decoration: none; }
.folio a:hover { color: var(--wine); }

.catalogue-table { width: 100%; margin: 1.5rem 0 2.5rem; border-collapse: collapse; font-size: .96rem; }
.catalogue-table th { color: var(--wine-dark); font-family: Arial, Helvetica, sans-serif; font-size: .69rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.catalogue-table th, .catalogue-table td { padding: .72rem .55rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.catalogue-table tbody tr:hover { background: rgba(255, 255, 255, .34); }
.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0; background: var(--rule); border: 1px solid var(--rule); }
.index-card { min-height: 13rem; padding: 1.45rem; background: var(--paper-bright); }
.index-card .number { color: var(--wine); font-size: .78rem; }
.index-card h2 { margin: 1.2rem 0 .7rem; padding: 0; border: 0; font-size: 1.7rem; }
.index-card p { margin: 0 0 1rem; font-size: .96rem; }
.index-card a { font-family: Arial, Helvetica, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.name-script { color: var(--wine); font-size: .92em; white-space: nowrap; }

.site-footer { border-top: 1px solid var(--rule); background: var(--ink); color: #e8e1d4; }
.footer-inner {
  width: min(var(--measure), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
}
.footer-label { color: #cda968; font-size: .65rem; font-weight: 700; }
.site-footer p { max-width: 38rem; margin: .35rem 0 0; font-size: .9rem; }
.footer-links { text-align: right; }
.footer-links a { color: #f0e8db; }

.error-page .masthead-inner { min-height: 48vh; align-items: center; }
.error-code { color: var(--wine); font-family: Arial, Helvetica, sans-serif; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }

@media (max-width: 850px) {
  .header-inner { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .nav-list { justify-content: flex-start; }
  .masthead-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .catalogue-mark { border-left: 0; border-top: 1px solid var(--rule); padding: 1rem 0 0; }
  .article-shell { grid-template-columns: 1fr; }
  .folio { position: static; }
  .folio-box { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
}
@media (max-width: 580px) {
  body { font-size: 1rem; }
  .header-inner, .masthead-inner, .article-shell, .footer-inner { width: min(100% - 1.25rem, var(--measure)); }
  .nav-list { gap: .35rem .8rem; font-size: .62rem; }
  .index-grid { grid-template-columns: 1fr; }
  .catalogue-table { display: block; overflow-x: auto; }
  .folio-box, .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
