/*
 * incitee — site.css
 * Concept: the ledger page. Pale account-book ground, registrar's blue-black ink,
 * a red double margin rule down every page, blue hairlines across it, and the
 * accountant's double underline that marks an account as settled.
 * Type: the Fell types (French Canon for display, Great Primer for text and small caps)
 * with News Cycle bold for labels. All fonts are served from this site.
 */

/* ---------- Fonts (SIL Open Font License 1.1; see /assets/fonts/LICENSE-OFL.txt) ---------- */
@font-face { font-family: "incitee Canon"; src: url("../fonts/canon-roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "incitee Canon"; src: url("../fonts/canon-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "incitee Primer"; src: url("../fonts/primer-roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "incitee Primer"; src: url("../fonts/primer-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "incitee Primer SC"; src: url("../fonts/primer-sc.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "incitee Label"; src: url("../fonts/label-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* the palette (see the brand note) */
  --ledger:   #E4E9DD;   /* account-book paper: the ground */
  --foolscap: #F5F6F1;   /* writing paper: forms, deeds, panels */
  --ink:      #1B2130;   /* registrar's ink: text */
  --pencil:   #4D5563;   /* graphite: secondary text, field borders */
  --red:      #A12F28;   /* ruling red: margin rule, seal, labels */
  --blue:     #8DA2B8;   /* ruling blue: hairlines only, never text */

  --display: "incitee Canon", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text:    "incitee Primer", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sc:      "incitee Primer SC", "incitee Primer", Georgia, serif;
  --label:   "incitee Label", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;

  --gutter: 20px;
  --margin-w: 0px;      /* the ledger's left column (wide screens only) */
  --margin-gap: 0px;
  --measure: 35rem;
  --section-pad: clamp(2.75rem, 5vw + 1rem, 5.5rem);
  color-scheme: light;
}
@media (min-width: 40em) { :root { --gutter: 32px; } }
@media (min-width: 64em) { :root { --gutter: 48px; --margin-w: 9.5rem; --margin-gap: 3.5rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--ledger);
  color: var(--ink);
  font: 400 1.1875rem/1.58 var(--text);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}
@media (min-width: 64em) { body { font-size: 1.25rem; } }
img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
abbr[title] { text-decoration: none; }
strong { font-weight: 400; font-style: italic; }
::selection { background: var(--ink); color: var(--foolscap); }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
a:focus-visible { border-radius: 1px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 60;
  background: var(--ink); color: var(--foolscap); padding: .8rem 1.1rem;
  font: 700 .8125rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip { display: inline-flex; align-items: center; min-height: 44px; }
.skip:focus { top: .75rem; }

/* small capitals for initialisms: ISSN, DOI, NDA, MOU, NISO */
.sc { font-family: var(--sc); letter-spacing: .045em; font-style: normal; } /* the SC font draws capitals as small capitals */
.label .sc, .eyebrow .sc, .toc__for .sc, .steps__bracket .sc, .deed__fields dt abbr, .field > label .sc { font: inherit; text-transform: inherit; letter-spacing: inherit; }
.nowrap { white-space: nowrap; }
.nowrap-break { overflow-wrap: anywhere; }
.fist { font-family: var(--text); font-style: normal; color: var(--red); margin-right: .3em; }

/* labels: column heads, eyebrows, form labels */
.eyebrow, .label {
  font: 700 .75rem/1.35 var(--label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Layout: the ledger ---------- */
.wrap { width: 100%; max-width: 79rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ledger { position: relative; }
@media (min-width: 40em) and (max-width: 63.99em) {
  /* tablets: the margin rule runs down the gutter */
  .ledger::before {
    content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
    left: calc(var(--gutter) / 2 - 3px); width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red);
  }
}
@media (min-width: 64em) {
  /* the red double margin rule, between the date column and the entries */
  .ledger::before {
    content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
    left: calc(var(--gutter) + var(--margin-w) + (var(--margin-gap) / 2) - 2.5px);
    width: 5px; border-left: 1px solid var(--red); border-right: 1px solid var(--red);
  }
}

.folio { padding: var(--section-pad) 0; border-top: 1px solid var(--blue); }
.folio:first-child { border-top: 0; }
.folio__margin { margin-bottom: 1rem; }
.folio__margin .label { display: block; }
@media (min-width: 40em) { .label__lead { display: none; } }
@media (min-width: 64em) {
  .folio { display: grid; grid-template-columns: var(--margin-w) minmax(0, 1fr); column-gap: var(--margin-gap); }
  .folio__margin { margin: 0; padding-top: .55rem; text-align: right; position: sticky; top: 1.5rem; align-self: start; }
}
.folio__body > * + * { margin-top: 1.1rem; }
.folio__body > h2 + p, .folio__body > h2 + .lede { margin-top: .9rem; }
.folio__body p, .folio__body .rule-list { max-width: var(--measure); }

h1, .h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.1rem + 4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.004em;
}
h1 em, .h1 em { font-style: italic; }
h2, .h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.05rem);
  line-height: 1.07;
}
h3, .h3 { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 1.25rem + .7vw, 1.8rem); line-height: 1.15; }
.lede { font-size: clamp(1.25rem, 1.12rem + .5vw, 1.5rem); line-height: 1.5; max-width: 34rem; }
.muted { color: var(--pencil); }

/* lists with a red rule for a bullet */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--blue); }
.rule-list li:first-child { border-top: 1px solid var(--blue); }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 1.22em; width: .95rem; height: 4px; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); }

.more { font-family: var(--text); }
.more a { text-decoration-color: var(--red); }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--ink); position: relative; z-index: 30; background: var(--ledger); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand .wordmark { width: 7.4rem; height: auto; flex: none; }
.wordmark__rule { fill: var(--red); }
.brand__tag { display: none; font: 700 .6875rem/1.25 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--pencil); max-width: 8.5rem; padding-left: 1rem; border-left: 1px solid var(--blue); }
@media (min-width: 40em) { .brand .wordmark { width: 8.6rem; } .brand__tag { display: block; } }

.nav { display: none; }
@media (min-width: 64em) {
  .masthead__inner { min-height: 5.75rem; }
  .brand .wordmark { width: 9.5rem; }
  .nav { display: block; }
  .nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .nav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
    font: 700 .8125rem/1 var(--label); letter-spacing: .13em; text-transform: uppercase;
    text-decoration: none; color: var(--ink); position: relative;
  }
  .nav__link:hover { color: var(--red); }
  .nav__link[aria-current="page"]::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .55rem; height: 4px;
    border-top: 1px solid var(--red); border-bottom: 1px solid var(--red);
  }
  .nav__link--contact { margin-left: .6rem; padding: 0 1.1rem; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .nav__link--contact:hover { background: var(--ink); color: var(--foolscap); }
  .nav__link--contact[aria-current="page"]::after { left: 1.1rem; right: 1.1rem; }
  .menu { display: none; }
}

/* "Contents" menu for phones and tablets (no script needed) */
.menu { position: static; }
.menu__toggle {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  font: 700 .8125rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle::marker { content: ""; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu[open] .menu__toggle { background: var(--ink); color: var(--foolscap); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--foolscap); border-bottom: 1px solid var(--ink);
  box-shadow: 0 18px 30px -18px rgba(27, 33, 48, .45);
  padding: .5rem var(--gutter) 1.25rem;
}
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.menu__list li { border-bottom: 1px solid var(--blue); }
.menu__list a {
  display: flex; align-items: center; min-height: 3.25rem;
  font: 400 1.55rem/1.1 var(--display); color: var(--ink); text-decoration: none;
}
.menu__list a[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--red); text-decoration-style: double; text-decoration-thickness: 3px; text-underline-offset: .22em; }
.menu__wa { margin-top: 1rem; font-size: 1.05rem; }
.menu__wa a { display: inline-flex; align-items: center; min-height: 44px; }
.menu__wa span { display: block; color: var(--pencil); font-style: italic; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .85rem 1.4rem;
  font: 700 .8125rem/1.15 var(--label); letter-spacing: .14em; text-transform: uppercase; text-align: center;
  text-decoration: none; color: var(--foolscap); background: var(--ink);
  border: 0; border-radius: 0; box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer;
}
.btn:hover { background: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); color: var(--foolscap); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .icon { width: 1.25rem; height: 1.25rem; flex: none; }
@media (max-width: 29.99em) { .actions .btn { width: 100%; } }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(2.25rem, 4vw + 1rem, 4.75rem); }
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { max-width: 15ch; }
.hero__grid { display: grid; gap: 3rem; margin-top: 1.75rem; }
.hero__aside { margin-top: 1.25rem; font-size: 1.05rem; color: var(--pencil); }
.hero__aside a { color: var(--ink); }
@media (min-width: 48em) { .hero h1 { max-width: none; } .hero h1 .line { display: block; } }
@media (min-width: 75em) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 25.5rem); grid-template-rows: auto 1fr; column-gap: 4rem; row-gap: 2.75rem; align-items: start; margin-top: 2.25rem; }
  .hero__intro { grid-column: 1; grid-row: 1; }
  .hero__grid .deed { grid-column: 2; grid-row: 1 / span 2; }
  .hero__keeps { grid-column: 1; grid-row: 2; }
}

@media (min-width: 48em) and (max-width: 74.99em) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 2.25rem; align-items: start; }
  .hero__intro { grid-column: 1 / -1; }
  .hero__grid .deed { grid-column: 1; grid-row: 2; }
  .hero__keeps { grid-column: 2; grid-row: 2; }
}
.hero__keeps { container-type: inline-size; }

/* what a transfer keeps, and what it changes */
.keeps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); max-width: 34rem; }
.keeps > div { padding: .9rem 1rem 0 0; }
.keeps > div + div { padding: .9rem 0 0 1rem; border-left: 1px solid var(--ink); }
.keeps h2 { font: 700 .75rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.keeps ul { list-style: none; padding: 0; margin: 0; }
.keeps li { font-size: 1.05rem; line-height: 1.35; padding: .42rem 0; border-bottom: 1px solid var(--blue); }
.keeps__note { margin-top: .9rem; font-size: 1rem; font-style: italic; color: var(--pencil); max-width: 34rem; }
@container (max-width: 24rem) {
  .keeps { grid-template-columns: 1fr; }
  .keeps > div { padding-right: 0; }
  .keeps > div + div { border-left: 0; padding: 1.4rem 0 0; }
}

/* the specimen deed */
.deed {
  position: relative; background: var(--foolscap); color: var(--ink);
  border: 1px solid var(--ink); box-shadow: inset 0 0 0 5px var(--foolscap), inset 0 0 0 6px var(--ink);
  padding: 1.6rem 1.35rem 2.1rem; margin-bottom: 2.5rem;
}
.deed__specimen { font: 700 .6875rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--red); text-align: center; }
.deed__title { font-family: var(--sc); font-size: 1.55rem; letter-spacing: .07em; line-height: 1.15; text-align: center; margin-top: .6rem; }
.deed__sub { font-style: italic; text-align: center; color: var(--pencil); font-size: 1.05rem; margin-top: .15rem; }
.deed__fields { margin-top: 1.1rem; border-top: 1px solid var(--ink); }
.deed__fields > div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); align-items: end; gap: .6rem; padding: .62rem 0 .4rem; border-bottom: 1px solid var(--blue); }
.deed__fields dt { font: 700 .625rem/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); padding-bottom: .15rem; }
.deed__fields dd { margin: 0; min-height: 1.6rem; display: flex; align-items: flex-end; flex-wrap: wrap; gap: .35rem .5rem; font-size: 1rem; line-height: 1.2; }
.deed__fields .blank { color: var(--pencil); font-style: italic; }
.boxes { display: inline-flex; align-items: flex-end; }
.boxes > i { display: inline-block; width: 1.05rem; height: 1.4rem; border: 1px solid var(--pencil); margin-right: -1px; }
.boxes > b { display: inline-block; width: .6rem; height: 1.4rem; position: relative; font-weight: 400; }
.boxes > b::after { content: ""; position: absolute; left: .12rem; right: .12rem; top: 50%; border-top: 1px solid var(--pencil); }
.boxes__pre { font: 700 1rem/1 var(--label); letter-spacing: .04em; margin-right: .2rem; align-self: flex-end; padding-bottom: .2rem; }
.deed__kind { font: 700 .625rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.deed__head { margin-top: 1.25rem; font: 700 .6875rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.deed__list { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: deed; }
.deed__list li { counter-increment: deed; position: relative; padding: .38rem 0 .38rem 2.1rem; font-size: 1.02rem; line-height: 1.4; border-bottom: 1px dotted var(--pencil); }
.deed__list li::before { content: "(" counter(deed, lower-roman) ")"; position: absolute; left: 0; top: .38rem; font-style: italic; color: var(--red); }
.deed__foot { margin-top: 1.1rem; font-style: italic; font-size: 1.05rem; padding-right: 6.5rem; }
.seal {
  position: absolute; right: .6rem; bottom: -2.1rem; width: 7.25rem; height: 7.25rem;
  color: var(--red); transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .93; pointer-events: none;
}
.seal__motto { font-family: var(--text); font-kerning: none; }
@media (min-width: 64em) { .seal { right: -1.1rem; bottom: -2.6rem; width: 8.25rem; height: 8.25rem; } .deed__foot { padding-right: 5rem; } }
@media (min-width: 80em) { .seal { right: -2.4rem; } .deed__foot { padding-right: 4rem; } }

/* ---------- Home: the record (the one figure we publish) ---------- */
.record { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1.4rem; }
.record__figure {
  font: 400 clamp(4.6rem, 3rem + 7vw, 8.5rem)/.82 var(--display); letter-spacing: -.01em;
  padding-bottom: .16em; border-bottom: 5px double var(--red);
}
.record__words { font: italic 400 clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem)/1.12 var(--display); padding-bottom: .35rem; max-width: 13ch; }
.record + p { margin-top: 1.6rem; }

/* ---------- Home: two sides of one sale (a T account) ---------- */
.taccount { display: grid; gap: 2.25rem; margin-top: 1.75rem; }
.taccount__side > * + * { margin-top: 1rem; }
.taccount__side h3 { padding-top: 1rem; border-top: 1.5px solid var(--ink); }
@media (min-width: 48em) {
  .taccount { grid-template-columns: 1fr 1fr; gap: 0; border-top: 1.5px solid var(--ink); }
  .taccount__side h3 { border-top: 0; padding-top: 0; }
  .taccount__side { padding: 1.4rem 2.25rem 0 0; }
  .taccount__side + .taccount__side { border-left: 1.5px solid var(--ink); padding: 1.4rem 0 0 2.25rem; }
}

/* ---------- Contents list with leaders ---------- */
.toc { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1.5px solid var(--ink); max-width: 52rem; }
.toc li { border-bottom: 1px solid var(--blue); }
.toc a { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .9rem; row-gap: .15rem; padding: .8rem 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.toc__name { font: 400 1.45rem/1.2 var(--display); }
.toc__dots { display: none; }
.toc__for { flex-basis: 100%; font: 700 .6875rem/1.4 var(--label); letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
.toc a:hover .toc__name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .18em; }
@media (min-width: 48em) {
  .toc a { flex-wrap: nowrap; }
  .toc__dots { display: block; flex: 1 1 2rem; min-width: 2rem; height: 0; border-bottom: 2px dotted var(--pencil); opacity: .7; position: relative; top: -.3em; }
  .toc__for { flex-basis: auto; flex: none; text-align: right; max-width: 18rem; }
}

/* ---------- Home: the seven steps, bracketed private | public ---------- */
.steps { display: grid; gap: 2rem; margin-top: 2rem; }
.steps__group { position: relative; }
.folio__body .steps__bracket { max-width: none; }
.steps__bracket {
  display: flex; align-items: center; gap: .75rem;
  font: 700 .75rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.steps__bracket::after { content: ""; flex: 1; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; position: relative; top: 4px; }
.steps__group--open .steps__bracket { color: var(--red); }
.steps__list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: 0; }
.steps__list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--blue); }
.steps__no { grid-row: span 2; font: 400 2.1rem/1 var(--display); color: var(--red); }
.steps__name { font: italic 400 1.35rem/1.15 var(--display); }
.steps__what { display: block; font-size: 1.02rem; line-height: 1.4; color: var(--pencil); margin-top: .2rem; }
@media (min-width: 64em) {
  .steps { grid-template-columns: 5fr 2fr; column-gap: 1.75rem; }
  .steps__list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 1.1rem; }
  .steps__list li { display: block; border-bottom: 0; border-top: 1px solid var(--blue); padding: .9rem 0 0; }
  .steps__no { display: block; font-size: 2.6rem; margin-bottom: .35rem; }
  .steps__name { display: block; font-size: 1.3rem; }
  .steps__what { font-size: 1rem; }
}

/* ---------- Home: charter teaser ---------- */
.charter-teaser h2 { font-style: italic; }

/* ---------- Entries: a ruled list of label / value (contact details) ---------- */
.entries { margin-top: 1.5rem; border-top: 1.5px solid var(--ink); max-width: 44rem; }
.entries > div { display: grid; gap: .25rem; padding: .85rem 0; border-bottom: 1px solid var(--blue); }
.entries dt { font: 700 .6875rem/1.4 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.entries dd { margin: 0; font-size: 1.2rem; line-height: 1.45; }
.entries dd a { display: inline-flex; align-items: center; min-height: 44px; }
.entries .note { display: block; font-size: 1rem; font-style: italic; color: var(--pencil); }
@media (min-width: 40em) { .entries > div { grid-template-columns: 8.5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; } }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(2.25rem, 4vw + 1rem, 4.5rem); padding-bottom: clamp(2rem, 3vw + 1rem, 3.5rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 1.1rem; }

/* services */
.service .label-for { font: 700 .75rem/1.35 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.service h3.includes { font: 700 .75rem/1.35 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-top: 1.9rem; }
.folio__body > * + .rule-list { margin-top: 1rem; }
.folio__body > h3 + .rule-list, .two-lists h3 + .rule-list { margin-top: .7rem; }
.service .aside-note { font-style: italic; color: var(--pencil); }
.two-lists { display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.two-lists h3 { font-size: 1.3rem; margin-bottom: .6rem; }
@media (min-width: 48em) { .two-lists { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

/* process register */
.register-no { display: flex; align-items: baseline; gap: .8rem; }
.register-no b { font: 400 3.4rem/.9 var(--display); color: var(--red); }
.register-no .label { color: var(--ink); }
.register-no .label--open { color: var(--red); }
@media (min-width: 64em) {
  .register-no { flex-direction: column; align-items: flex-end; gap: .55rem; }
  .register-no b { font-size: 4.4rem; }
}
.folio--step { padding: clamp(2.25rem, 3vw + 1rem, 3.75rem) 0; }
.folio__body .shared { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .8rem; row-gap: .1rem; margin-top: 1.4rem; padding: .65rem 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--blue); font-size: 1.05rem; max-width: var(--measure); }
.shared .label { color: var(--pencil); flex: none; }
.shared__dots { display: none; }
.shared__what { flex-basis: 100%; }
@media (min-width: 40em) {
  .folio__body .shared { flex-wrap: nowrap; }
  .shared__dots { display: block; flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--pencil); opacity: .6; position: relative; top: -.25em; }
  .shared__what { flex-basis: auto; text-align: right; }
}

/* charter */
.article-no { font: 400 2.4rem/1 var(--display); color: var(--red); display: flex; align-items: baseline; gap: .7rem; }
.article-no small { display: block; font: 700 .6875rem/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .35rem; }
@media (min-width: 64em) { .article-no { font-size: 3.4rem; flex-direction: column; align-items: flex-end; gap: 0; } }

/* faq */
.qindex { list-style: none; margin: 1.5rem 0 0; padding: 0; columns: 1; max-width: 50rem; border-top: 1.5px solid var(--ink); }
.qindex li { break-inside: avoid; border-bottom: 1px solid var(--blue); }
.qindex a { display: flex; align-items: center; min-height: 44px; padding: .45rem 0; font-size: 1.05rem; line-height: 1.35; text-decoration: none; }
.qindex a:hover { text-decoration: underline; text-decoration-color: var(--red); }
@media (min-width: 48em) { .qindex { columns: 2; column-gap: 2.5rem; } }
.qa + .qa { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--blue); }
.qa .h3 { font-size: clamp(1.45rem, 1.25rem + .8vw, 1.9rem); }
.qa p { margin-top: .75rem; max-width: var(--measure); }

/* prose pages (privacy, terms) */
.prose h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: .85rem; max-width: var(--measure); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-top: .4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: .85rem; height: 4px; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); }
.updated { font-style: italic; color: var(--pencil); }

/* about: note on the type */
.typenote { font-size: 1.1rem; }
.typenote .specimen { font: 400 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1.1 var(--display); margin: 1.25rem 0 1.4rem; padding: .7rem 0 .8rem; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); max-width: none; }
.typenote .specimen i { font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 64em) { .contact-grid { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); column-gap: 3.5rem; } }
.contact-grid .entries > div { grid-template-columns: 1fr; gap: .15rem; }

.form {
  background: var(--foolscap); border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--foolscap), inset 0 0 0 6px var(--ink);
  padding: 1.6rem 1.25rem 1.75rem; max-width: 44rem;
}
@media (min-width: 40em) { .form { padding: 2rem 2.25rem 2.25rem; } }
.form h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.form__intro { margin-top: .5rem; font-size: 1.05rem; color: var(--pencil); font-style: italic; }
.field { margin-top: 1.35rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend {
  display: block; padding: 0; margin-bottom: .45rem;
  font: 700 .75rem/1.35 var(--label); letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
}
.field .opt { color: var(--pencil); letter-spacing: .08em; text-transform: none; font: italic 400 1rem/1 var(--text); margin-left: .3rem; }
.field .hint { display: block; font-size: 1rem; line-height: 1.4; font-style: italic; color: var(--pencil); margin: -.15rem 0 .45rem; }
.input {
  display: block; width: 100%; min-height: 3.1rem; padding: .62rem .8rem;
  font: 400 1.1875rem/1.4 var(--text); color: var(--ink);
  background: #FCFCFA; border: 1px solid var(--pencil); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 9.5rem; resize: vertical; }
.input:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.choices { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 30em) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: center; gap: .7rem; min-height: 3.1rem; padding: .5rem .8rem;
  background: #FCFCFA; border: 1px solid var(--pencil); cursor: pointer; font-size: 1.1rem; line-height: 1.2;
}
.choice input { width: 1.2rem; height: 1.2rem; margin: 0; flex: none; accent-color: var(--red); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--ledger); }
.choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 1px; }
.field > .check, .check { display: flex; align-items: flex-start; gap: .75rem; margin: 0; font: 400 1.05rem/1.45 var(--text); letter-spacing: normal; text-transform: none; color: var(--ink); cursor: pointer; min-height: 44px; }
.check input { width: 1.25rem; height: 1.25rem; margin: .18rem 0 0; flex: none; accent-color: var(--red); }
.field--error .input, .field--error .choice { border-color: var(--red); border-width: 2px; }
.field__error { display: block; margin-top: .4rem; color: var(--red); font-style: italic; font-size: 1rem; }
.form__privacy { display: inline-flex; align-items: center; min-height: 44px; margin-left: 2rem; font-size: 1rem; font-style: italic; color: var(--ink); }
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__send { margin-top: 1.75rem; }
.form__small { margin-top: 1.1rem; font-size: 1rem; font-style: italic; color: var(--pencil); max-width: 34rem; }

.notice { padding: 1rem 1.1rem 1.05rem; margin-bottom: 1.25rem; border: 1px solid var(--ink); background: var(--ledger); }
.notice p + p { margin-top: .45rem; }
.notice__head { font: 700 .75rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.notice--ok { border-top: 5px double var(--ink); }
.notice--warn, .notice--error { border-top: 5px double var(--red); }
.notice--error .notice__head, .notice--warn .notice__head { color: var(--red); }

/* ---------- Footer: the colophon ---------- */
.colophon { margin-top: 0; padding: 2.75rem 0 6.5rem; border-top: 4px solid var(--ink); position: relative; font-size: 1.05rem; }
.colophon::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--ink); }
@media (min-width: 64em) { .colophon { padding-bottom: 3rem; } }
.colophon__grid { display: grid; gap: 2.25rem; }
@media (min-width: 40em) { .colophon__grid { grid-template-columns: 1fr 1fr; } .colophon__imprint { grid-column: 1 / -1; } }
@media (min-width: 64em) { .colophon__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); } .colophon__imprint { grid-column: auto; } }
.colophon__brand { display: inline-block; }
.colophon__brand img { width: 9.4rem; height: auto; }
.colophon__motto { margin-top: 1rem; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; max-width: 22rem; }
.colophon__record { margin-top: .6rem; color: var(--pencil); font-style: italic; }
.colophon__head { font: 700 .6875rem/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .35rem; }
.colophon ul { list-style: none; }
.colophon__pages li a { display: inline-flex; align-items: center; min-height: 44px; }
.colophon__pages ul { columns: 2; column-gap: 1.5rem; max-width: 20rem; }
.colophon__contact li { padding: .45rem 0; }
.colophon__contact li a { display: inline-flex; align-items: center; min-height: 44px; }
.colophon__note { font-style: italic; color: var(--pencil); font-size: 1rem; }
.colophon__small { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--blue); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; font-size: 1rem; color: var(--pencil); }
.colophon__small a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.colophon__type { font-style: italic; align-self: center; }

/* ---------- Floating WhatsApp (always inside the screen) ---------- */
.wa-float {
  position: fixed; z-index: 50;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 28px);
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3.25rem; padding: 0 1.05rem 0 .9rem;
  background: var(--ink); color: var(--foolscap);
  font: 700 .8125rem/1 var(--label); letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 0 1px var(--ledger), 0 0 0 2.5px var(--red), 0 10px 22px -6px rgba(27, 33, 48, .45);
}
.wa-float:hover { background: var(--red); }
.wa-float .icon { width: 1.35rem; height: 1.35rem; flex: none; }
.wa-float:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* ---------- Failure page / 404 ---------- */
.failure { padding-top: 4rem; padding-bottom: 4rem; }
.failure h1 { margin-top: 1rem; max-width: 16ch; }
.failure p { margin-top: 1rem; max-width: var(--measure); }
.notfound__links { list-style: none; margin-top: 1.5rem; padding: 0; border-top: 1.5px solid var(--ink); max-width: 30rem; }
.notfound__links li { border-bottom: 1px solid var(--blue); }
.notfound__links a { display: flex; align-items: center; min-height: 3.25rem; font: 400 1.4rem/1.2 var(--display); text-decoration: none; }
.notfound__links a:hover { text-decoration: underline; text-decoration-color: var(--red); }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav__link, .wa-float, .menu__toggle { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .masthead nav, .menu, .wa-float, .skip, .form, .actions { display: none !important; }
  body { background: #fff; }
  .ledger::before { display: none; }
}

/* phone: icon-only WhatsApp button, so it covers less of the page */
@media (max-width: 600px) {
  .wa-float { width: 3.25rem; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-float .icon { width: 1.5rem; height: 1.5rem; }
}


/* ================= v2 additions: begin, valuation, listings ================= */

/* the four ways to begin */
.tracks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .6rem; max-width: 52rem; }
@media (min-width: 40em) { .tracks { grid-template-columns: 1fr 1fr; } }
.track {
  display: flex; flex-direction: column; justify-content: center; gap: .25rem; min-height: 4.25rem; padding: .7rem 1rem;
  text-decoration: none; color: var(--ink); background: var(--foolscap); border: 1px solid var(--ink);
}
.track__kicker { font: 700 .6875rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.track__name { font: 400 1.35rem/1.15 var(--display); }
.track:hover .track__name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .18em; }
.track--on { background: var(--ledger); box-shadow: inset 0 0 0 2px var(--ink); }

/* form extras: a drop-down with its own arrow, and an ISSN box */
select.input {
  padding-right: 2.6rem; background-color: #FCFCFA;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 52%, calc(100% - .9rem) 52%; background-size: .4rem .4rem; background-repeat: no-repeat;
}
.input--issn { text-transform: uppercase; letter-spacing: .12em; max-width: 14rem; font-variant-numeric: lining-nums; }
.form .field fieldset, fieldset.field { min-width: 0; }

/* the rubber stamp: indicative, not an appraisal */
.stamp {
  display: inline-block; font: 700 .75rem/1.25 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  border: 1.5px solid var(--red); padding: .45rem .75rem; transform: rotate(-1.2deg); margin-bottom: .6rem;
}

/* facts about a journal (and about a listing) */
.facts { margin-top: 1.5rem; border-top: 1.5px solid var(--ink); max-width: 44rem; }
.facts > div { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--blue); }
.facts dt { font: 700 .6875rem/1.4 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.facts dd { margin: 0; font-size: 1.15rem; line-height: 1.4; overflow-wrap: anywhere; }
.facts .src { margin-left: .4rem; font-size: 1rem; font-style: italic; color: var(--pencil); }
@media (min-width: 40em) { .facts > div { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; gap: 1rem; } }
.facts--tight { margin-top: .8rem; }
.facts--tight dd { font-size: 1.05rem; }

/* output per year, as ruled bars (drawn with SVG attributes, so no inline styles are needed) */
.bars { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 40rem; border-top: 1.5px solid var(--ink); }
.bars li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 4.4rem; align-items: center; gap: .6rem; min-height: 44px; border-bottom: 1px solid var(--blue); }
.bars__year, .bars__n { font: 400 1.0625rem/1 var(--text); font-variant-numeric: lining-nums tabular-nums; }
.bars__n { text-align: right; }
.bars__svg { display: block; width: 100%; height: .9rem; }
.bars__track { fill: var(--ledger); }
.bars__fill { fill: var(--ink); }
.bars .is-part .bars__fill { fill: var(--pencil); opacity: .55; }

/* observations */
.obs { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: var(--measure); border-top: 1.5px solid var(--ink); }
.obs__item { padding: .9rem 0 1rem; border-bottom: 1px solid var(--blue); }
.obs__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.obs__label { font: italic 400 1.3rem/1.2 var(--display); }
.obs__flag { font: 700 .6875rem/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.obs__item--look .obs__flag { color: var(--red); }
.folio__body .obs__item p + p { margin-top: .4rem; }
.obs__src { font-size: 1rem; font-style: italic; color: var(--pencil); }

/* the indicative range */
.range { display: inline-block; font: 400 clamp(1.8rem, 1.2rem + 3vw, 3rem)/1.1 var(--display); padding-bottom: .1em; border-bottom: 5px double var(--red); overflow-wrap: anywhere; }

/* anonymous outlines (listings and mandates) */
.outlines { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.outline {
  background: var(--foolscap); border: 1px solid var(--ink); box-shadow: inset 0 0 0 5px var(--foolscap), inset 0 0 0 6px var(--ink);
  padding: 1.5rem 1.35rem 1.2rem; max-width: 44rem;
}
.outline__ref { font: 700 .75rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.outline h3 { margin-top: .5rem; }
.outline > p + p, .outline > .facts + p { margin-top: .8rem; }
