/*
Theme Name: Sig. Alexander
Theme URI: https://sigalexander-lansburg.com/
Author: socmedai
Description: Case-file theme for author Sig. Alexander. Books are managed under Books in wp-admin; the homepage index, hero covers and "On the desk" section read from them.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sig-alexander
*/

/* Layout: a case index on a dark desk. Ledger rows for the books, a carbon-copy
   incident report as the centrepiece, a signature-block wordmark to close. */
:root {
  --ink: #110D0C;        /* desk at night, warm black biased toward the cover's red */
  --ink-2: #1B1513;
  --ink-3: #261E1B;
  --rule: #3B312E;
  --bone: #EEE5D8;       /* the silvered title lettering on the covers */
  --bone-2: #D6CBBE;
  --ash: #A99A8F;
  --ember: #E0533F;      /* red that reads as text on ink (5:1) */
  --blood: #A3201A;      /* Under the Sky's sky; fills and the stamp only */
  --blood-hi: #B8251C;
  --paper: #E7DBD1;      /* pink carbon copy of a triplicate report */
  --paper-ink: #24212B;  /* typewriter ribbon */
  --paper-mute: #5E5650;
  --paper-rule: rgba(36, 33, 43, .28);
  --sodium: #E8CF3F;     /* Anchorage Box Racer's track lights, used in its file only */
  --steel: #8EA3B5;      /* A Dance with the Bully's night, used in its file only */
  --rust: #E8823F;       /* Thunderhead Wash's border sky */
  --glacier: #8CC9BC;    /* Basking in the Midnight Sun's inlet water */

  --f-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --section: clamp(72px, 10vw, 136px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--bone); color: var(--ink); padding: 12px 16px; font: 700 .8125rem/1 var(--f-mono); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow, .label, .mono {
  font: 400 .75rem/1.4 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ash);
}
.eyebrow { margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.eyebrow .file-no { color: var(--ember); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: .98; letter-spacing: -.022em; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }
.prose { display: grid; gap: 1em; max-width: 34em; color: var(--bone-2); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 700 .8125rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-blood { background: var(--blood); color: #F6EEE3; }
.btn-blood:hover { background: var(--blood-hi); }
.btn-ghost { border-color: var(--ash); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--bone); background: var(--ink-3); }
.btn-sodium { background: var(--sodium); color: var(--ink); }
.btn-sodium:hover { background: #F2DD5C; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 400 .8125rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--bone); text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color .18s ease;
}
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover { text-decoration-color: var(--bone); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- masthead ---------- */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.mast.is-scrolled { border-bottom-color: var(--rule); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; flex-wrap: wrap; }
.wordmark { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; padding-block: 8px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding-block: 14px;
  font: 400 .8125rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--ash); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 8px) / 0 1px;
  transition: color .18s ease, background-size .25s ease;
}
.nav a:hover { color: var(--bone); background-size: 100% 1px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(40px, 7vw, 104px) var(--section); }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 6.6rem); line-height: .93; letter-spacing: -.028em; margin-bottom: 30px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .3em; margin-bottom: -.3em; }
.hero h1 .line > span { display: block; }
.intro .hero h1 .line > span { animation: rise .9s cubic-bezier(.2, .7, .1, 1) both; }
.intro .hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--bone-2); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.proof { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.proof li { list-style: none; }
.proof { padding-left: 0; }

.desk { position: relative; width: 100%; max-width: 500px; justify-self: end; aspect-ratio: 4 / 5; }
.desk::before { /* backlight taken from the cover's red sky */
  content: ""; position: absolute; inset: -8% -14% -4% -10%; z-index: 0;
  background: radial-gradient(closest-side, rgba(163, 32, 26, .5), rgba(163, 32, 26, .14) 55%, transparent 78%);
}
.folder { position: absolute; margin: 0; z-index: 1; }
.folder img { box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .04); border-radius: 1px; }
.tab {
  position: absolute; top: -27px; left: 14px;
  background: var(--paper); color: var(--paper-ink);
  font: 700 .6875rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px 10px; border-radius: 3px 3px 0 0;
}
.folder--far { width: 46%; right: 0; top: 0; transform: rotate(3deg); z-index: 0; }
.folder--back { width: 48%; left: 24%; top: 16%; transform: rotate(.5deg); z-index: 1; }
.folder--front { width: 56%; left: 0; bottom: 0; transform: rotate(-2deg); z-index: 2; }
.intro .folder { animation: settle 1s cubic-bezier(.2, .7, .1, 1) both; }
.intro .folder--back { animation-delay: .12s; }
.intro .folder--far { animation-delay: .24s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ---------- case index ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .prose { color: var(--ash); }

.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.ledger-head, .entry {
  display: grid;
  grid-template-columns: 6.5rem 3.75rem minmax(0, 1fr) 11rem 10rem 9rem;
  gap: 0 24px; align-items: center;
}
.ledger-head { padding-bottom: 12px; }
.entry { position: relative; padding-block: 22px; border-top: 1px solid var(--rule); transition: background-color .2s ease; }
.entry:hover { background: var(--ink-2); }
.entry .no { font: 700 .8125rem/1 var(--f-mono); letter-spacing: .12em; color: var(--ember); padding-left: 8px; }
.entry .thumb { width: 3.75rem; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .9); }
.entry .title { display: grid; gap: 6px; min-width: 0; }
.entry .title a { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.05 var(--f-display); letter-spacing: -.01em; text-decoration: none; }
.entry .title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.entry .series { font: 400 .75rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ash); }
.entry .series b { color: var(--sodium); font-weight: 400; }
.entry .filed, .entry .rating { font: 400 .875rem/1.45 var(--f-mono); color: var(--bone-2); font-variant-numeric: tabular-nums; }
.entry .rating strong { font-weight: 700; color: var(--bone); font-size: 1rem; }
.entry .rating small { display: block; color: var(--ash); font-size: .75rem; }
.entry .go { justify-self: end; padding-right: 8px; }
.entry .go .btn { min-height: 44px; padding: 0 16px; }

/* ---------- open file: Under the Sky ---------- */
.file { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.file-aside { position: sticky; top: 104px; display: grid; gap: 22px; }
.file-aside .cover { width: min(100%, 300px); box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .9); }
.meta { display: grid; gap: 4px; font: 400 .8125rem/1.5 var(--f-mono); color: var(--ash); font-variant-numeric: tabular-nums; }
.meta b { color: var(--bone); font-weight: 400; }
.stack-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.report {
  position: relative; color: var(--paper-ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .11 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: clamp(22px, 4vw, 52px);
  border-radius: 2px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9);
  transform: rotate(.35deg);
}
.report-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--paper-ink); }
.report-head .form-id { font: 700 .6875rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-mute); }
.report-head h3 { font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.caseno { font: 400 .8125rem/1.4 var(--f-mono); color: var(--paper-mute); font-variant-numeric: tabular-nums; text-align: right; }
.stamp {
  align-self: center; justify-self: end; margin-right: clamp(0px, 2vw, 24px);
  font: 700 clamp(1.5rem, 2.8vw, 2.25rem)/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase;
  color: var(--blood); border: 3px solid var(--blood); padding: 10px 10px 10px 16px; border-radius: 4px;
  transform: rotate(-9deg); opacity: .88; mix-blend-mode: multiply; pointer-events: none;
}
.stamp.thunk { animation: thunk .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes thunk { 0% { opacity: 0; transform: rotate(-16deg) scale(1.7); } 100% { opacity: .88; transform: rotate(-9deg) scale(1); } }

.fields { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; border-top: 1px solid var(--paper-rule); border-left: 1px solid var(--paper-rule); }
.fields > div { padding: 9px 12px 12px; border-right: 1px solid var(--paper-rule); border-bottom: 1px solid var(--paper-rule); min-width: 0; }
.fields .wide { grid-column: 1 / -1; }
.fields dt { font: 700 .625rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-mute); }
.fields dd { margin: 4px 0 0; font: 400 1.0625rem/1.45 var(--f-mono); }

.narrative { margin-top: 30px; }
.narrative-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.narrative-head .label { color: var(--paper-mute); font-weight: 700; }
.lift {
  min-height: 44px; padding: 0 14px; background: transparent; color: var(--paper-ink);
  border: 1px solid var(--paper-ink); border-radius: 2px; cursor: pointer;
  font: 700 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.lift:hover { background: var(--paper-ink); color: var(--paper); }
.narr {
  font: 400 clamp(1rem, 1.3vw, 1.0625rem)/1.9rem var(--f-mono);
  background-image: linear-gradient(to bottom, transparent calc(1.9rem - 1px), var(--paper-rule) 1px);
  background-size: 100% 1.9rem; background-position: 0 .1rem;
}
.redact {
  cursor: pointer; border-radius: 1px;
  background: linear-gradient(var(--paper-ink), var(--paper-ink)) no-repeat left center / 100% 1.25em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: transparent; padding: 0 .12em;
  transition: background-size .32s cubic-bezier(.7, 0, .3, 1), color .2s ease .12s;
}
.redact:hover, .redact:focus-visible, .redact[aria-pressed="true"] { background-size: 0% 1.25em; color: var(--blood); }
.redact:focus-visible { outline-color: var(--paper-ink); }
.report-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: end; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--paper-rule); }
.report-foot .label { color: var(--paper-mute); font-weight: 700; }
.sig { font: italic 400 1.5rem/1.1 var(--f-body); margin-top: 6px; }
.continued { font: 700 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-ink); text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- file LS-02 ---------- */
.ls02 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ls02 .eyebrow .file-no { color: var(--steel); }
.pull { margin: 0; }
.pull p { font: 400 clamp(2rem, 4.3vw, 3.6rem)/1.06 var(--f-display); letter-spacing: -.018em; text-wrap: balance; }
.pull p::before { content: "\201C"; color: var(--steel); margin-left: -.42em; }
.pull p::after { content: "\201D"; color: var(--steel); }
.pull footer { margin-top: 26px; }
.brief { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px; background: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px; }
.brief img { box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .9); }
.brief .body { display: grid; gap: 12px; min-width: 0; }
.brief p.blurb { color: var(--bone-2); font-size: 1rem; }

/* ---------- file AK-01 ---------- */
.ak { position: relative; }
.checker { height: 14px; background: repeating-conic-gradient(var(--bone) 0 25%, var(--ink) 0 50%) 0 0 / 14px 14px; opacity: .85; }
.ak-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: var(--section); }
.ak .eyebrow .file-no, .ak .eyebrow { color: var(--sodium); }
.ak h2 { margin-bottom: 26px; }
.ak .prose { color: var(--bone-2); }
.commend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; margin: 34px 0 34px; padding: 0; }
.commend div { padding: 14px 0; border-top: 1px solid var(--rule); min-width: 0; }
.commend dt { font: 400 .6875rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.commend dd { margin: 6px 0 0; font-size: 1rem; }
.ak-cover { justify-self: center; width: min(100%, 400px); position: relative; }
.ak-cover img { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(232, 207, 63, .12); }
.ak-cover::after { content: ""; position: absolute; inset: auto 8% -18px 8%; height: 18px; background: radial-gradient(closest-side, rgba(232, 207, 63, .28), transparent); }

/* ---------- pending files ---------- */
.pending-tag { display: inline-block; font: 700 .6875rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); border: 1.5px solid var(--ember); padding: 5px 7px 5px 9px; border-radius: 3px; transform: rotate(-3deg); }
.entry.is-pending .title a { color: var(--bone-2); }
.entry .rating small.none { font-size: .8125rem; }
.pend { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule); }
.pend:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.pend:nth-of-type(even) .pend-art { order: 2; }
.pend-art { margin: 0; justify-self: center; width: min(100%, 290px); }
.pend-art img { box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .9); }
.pend-art--print { width: min(100%, 360px); background: var(--paper); padding: 10px 10px 14px; border-radius: 2px; transform: rotate(1.2deg); box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .9); }
.pend-art--print img { box-shadow: none; }
.pend-art--print figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font: 400 .75rem/1.4 var(--f-mono); color: var(--paper-mute); }
.pend-body { display: grid; gap: 16px; max-width: 36em; min-width: 0; }
.pend-body .eyebrow { margin: 0; }
.pend-body h3 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1; letter-spacing: -.02em; }
.pend-body p { color: var(--bone-2); }
.pend-body .source { font-size: .9375rem; color: var(--ash); padding-top: 12px; border-top: 1px solid var(--rule); }
.pend-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.pend--ls .file-no { color: var(--steel); }
.pend--az .file-no { color: var(--rust); }
.pend--ak .file-no { color: var(--glacier); }
.ls02-next { margin-top: 28px; }
.signup-aside { display: grid; gap: 22px; min-width: 0; }
.reveal { margin: 0; max-width: 30rem; }
.reveal img { border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.reveal figcaption { margin-top: 10px; font: 400 .8125rem/1.5 var(--f-mono); color: var(--ash); }

/* ---------- personnel file ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.id-card { margin: 0; background: var(--paper); color: var(--paper-ink); padding: 14px 14px 18px; border-radius: 2px; transform: rotate(-1deg); max-width: 420px; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .9); }
.id-card .photo { background: var(--paper); }
.id-card img { filter: grayscale(1) contrast(1.18) brightness(.98); mix-blend-mode: multiply; aspect-ratio: 1; object-fit: cover; object-position: 60% 40%; }
.id-card figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; margin-top: 14px; font: 400 .8125rem/1.4 var(--f-mono); }
.id-card figcaption b { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.id-card figcaption span:nth-child(even) { text-align: right; color: var(--paper-mute); }
.about h2 { margin-bottom: 28px; }
.dossier { display: grid; margin: 36px 0 0; }
.dossier div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.dossier dt { font: 400 .6875rem/1.9 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.dossier dd { margin: 0; color: var(--bone-2); }

/* ---------- newsletter ---------- */
.list { padding-block: var(--section); border-top: 1px solid var(--rule); overflow: hidden; }
.big { font: 400 clamp(3.2rem, 10.5vw, 10rem)/.9 var(--f-display); letter-spacing: -.035em; white-space: nowrap; }
.big.l2 { text-align: right; color: var(--ember); }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); margin: clamp(24px, 3vw, 40px) 0; align-items: end; }
.signup .note { color: var(--ash); font-size: .9375rem; max-width: 26em; }
.signup form { display: grid; gap: 10px; }
.signup label { color: var(--bone-2); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 16px;
  background: var(--ink-2); color: var(--bone); border: 1px solid var(--ash); border-radius: 2px;
  font: 400 1rem/1 var(--f-mono);
}
.field-row input::placeholder { color: #8A7C73; }
.field-row input:focus-visible { outline-offset: 2px; border-color: var(--bone); }
.field-row .btn { min-height: 56px; flex: 0 0 auto; }
.status { min-height: 1.5em; font: 400 .8125rem/1.5 var(--f-mono); color: var(--bone-2); }
.status.error { color: var(--ember); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 80px); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h3 { font-family: var(--f-mono); font-weight: 400; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-bottom: 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-cols a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--bone-2); }
.foot-cols a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; }
.foot-cols p { color: var(--bone-2); max-width: 22em; }
.foot-cols p a { text-decoration: underline; text-decoration-color: var(--ash); text-underline-offset: 5px; min-height: 0; display: inline; }
.signature { font: 400 min(13.6vw, 13.2rem)/.9 var(--f-display); letter-spacing: -.035em; margin: clamp(56px, 8vw, 104px) 0 0; padding-bottom: .2em; white-space: nowrap; color: var(--bone); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 32px; border-top: 1px solid var(--rule); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ledger-head { display: none; }
  .entry { grid-template-columns: 3.75rem minmax(0, 1fr) auto; grid-template-areas: "thumb title go" "thumb meta go"; gap: 6px 18px; padding-inline: 4px; }
  .entry .no { display: none; }
  .entry .thumb { grid-area: thumb; }
  .entry .title { grid-area: title; }
  .entry .filed { grid-area: meta; }
  .entry .rating { display: none; }
  .entry .go { grid-area: go; padding-right: 0; }
}
@media (max-width: 860px) {
  .hero, .sec-head, .file, .ls02, .ak-grid, .about, .signup, .pend, .pend:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .pend .pend-art, .pend:nth-of-type(even) .pend-art { order: -1; justify-self: start; width: min(100%, 230px); }
  .pend .pend-art--print { width: min(100%, 300px); }
  .desk { justify-self: center; max-width: 380px; margin-top: 24px; }
  .file-aside { position: static; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: start; gap: 18px 20px; }
  .file-aside .cover { grid-row: span 3; }
  .file-aside .stack-btns { grid-column: 1 / -1; }
  .ak-cover { width: min(100%, 300px); order: -1; }
  .id-card { max-width: 340px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .mast-inner { padding-block: 8px; }
  .nav ul { gap: 0 18px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .stamp { justify-self: start; margin: 16px 0 8px 12px; font-size: 1.35rem; }
  .mast { position: relative; top: 0; }
  html { scroll-padding-top: 16px; }
  .eyebrow [aria-hidden="true"] { display: none; }
  .desk { max-width: 320px; }
  .report { transform: none; }
  .caseno { text-align: left; }
  .brief { grid-template-columns: 6rem minmax(0, 1fr); padding: 18px; gap: 16px; }
  .dossier div { grid-template-columns: minmax(0, 1fr); }
  .commend { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: 3.25rem minmax(0, 1fr); grid-template-areas: "thumb title" "thumb meta" "thumb go"; }
  .entry .thumb { width: 3.25rem; }
  .entry .go { justify-self: start; margin-top: 6px; }
  .report-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- WordPress additions ---------- */
body.admin-bar .mast { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mast { top: 46px; } }
.page-plain { padding-block: var(--section); }
.page-plain h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.022em; margin-bottom: 28px; }
.entry-content { max-width: 40em; display: grid; gap: 1.1em; color: var(--bone-2); }
.entry-content a { color: var(--bone); }
.entry-content img { height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Blog: "Case notes"
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--bone); background-size: 100% 1px; }

/* index head */
.notes-hero { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.notes-hero .eyebrow a { color: inherit; text-decoration: none; }
.notes-hero .eyebrow a:hover { color: var(--bone); }
.notes-hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .94; letter-spacing: -.028em; margin-bottom: 22px; }
.notes-hero .lede { max-width: 34em; }
.note-cats { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px; }
.note-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 2px; font: 400 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); text-decoration: none; }
.note-cats a:hover { color: var(--bone); border-color: var(--ash); }
.note-cats a[aria-current="page"] { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.notes-body { padding-bottom: var(--section); }

/* lead note */
.note-lead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.note-lead.no-image { grid-template-columns: minmax(0, 1fr); }
.note-lead-img { display: block; overflow: hidden; border-radius: 2px; background: var(--ink-2); aspect-ratio: 3 / 2; }
.note-lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.note-lead-img:hover img { transform: scale(1.02); }
.note-lead-body { display: grid; gap: 16px; max-width: 36em; }
.note-lead-body .eyebrow { margin: 0; }
.note-lead h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -.02em; }
.note-lead h2 a { text-decoration: none; }
.note-lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.note-lead-excerpt { color: var(--bone-2); font-size: 1.125rem; }

/* note rows (index, archives, homepage) */
.notes-head, .note-row { display: grid; grid-template-columns: 5.5rem 7.5rem minmax(0, 1fr) 7rem; gap: 0 24px; align-items: baseline; }
.notes-head { padding: 0 0 12px; margin-top: 8px; }
.notes { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.note-row { position: relative; padding: 22px 8px; border-top: 1px solid var(--rule); transition: background-color .2s ease; }
.note-row:hover { background: var(--ink-2); }
.note-no { font: 700 .8125rem/1.4 var(--f-mono); letter-spacing: .1em; color: var(--ember); }
.note-date, .note-time { font: 400 .8125rem/1.4 var(--f-mono); color: var(--ash); font-variant-numeric: tabular-nums; }
.note-time { justify-self: end; }
.note-main { display: grid; gap: 6px; min-width: 0; }
.note-title { font: 400 clamp(1.35rem, 2.2vw, 1.75rem)/1.12 var(--f-display); letter-spacing: -.01em; text-decoration: none; }
.note-title::after { content: ""; position: absolute; inset: 0; }
.note-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.note-excerpt { color: var(--ash); font-size: .9688rem; max-width: 46em; }

/* pagination */
.navigation.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); font: 400 .8125rem/1 var(--f-mono); letter-spacing: .08em; color: var(--bone-2); text-decoration: none; }
.pagination .page-numbers.current { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pagination a.page-numbers:hover { border-color: var(--ash); color: var(--bone); }

/* empty state */
.notes-empty { display: grid; gap: 18px; justify-items: start; max-width: 36em; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--rule); }
.notes-empty h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; }
.notes-empty p:not(.pending-tag) { color: var(--bone-2); }

/* single note */
.post { max-width: 46rem; padding-block: clamp(48px, 7vw, 96px) 0; }
.post-head { display: grid; gap: 18px; }
.post-head .eyebrow { margin: 0; }
.post-head .eyebrow a { color: inherit; text-decoration: none; }
.post-head .eyebrow a:hover { color: var(--bone); }
.post-head h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: .98; letter-spacing: -.025em; }
.post-meta { color: var(--ash); }
.post-figure { margin: clamp(32px, 4vw, 48px) 0 0; }
.post-figure img { width: 100%; border-radius: 2px; }
.post-figure figcaption, .post-body figcaption, .post-body .wp-element-caption { margin-top: 10px; font: 400 .8125rem/1.5 var(--f-mono); color: var(--ash); text-align: left; }
.post-body { margin-top: clamp(32px, 4vw, 48px); max-width: 40em; display: block; color: var(--bone-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.78; }
.post-body > * + * { margin-top: 1.15em; }
.post-body > :first-child { margin-top: 0; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--bone); margin-top: 2em; line-height: 1.1; letter-spacing: -.012em; }
.post-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.post-body h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.post-body h4 { font: 700 .8125rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.post-body a { color: var(--bone); text-decoration-color: var(--ember); text-underline-offset: 4px; }
.post-body a:hover { text-decoration-color: var(--bone); }
.post-body strong { color: var(--bone); font-weight: 500; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }
.post-body li::marker { color: var(--ember); }
.post-body blockquote, .post-body .wp-block-quote { margin: 2em 0; padding: 0 0 0 1.2em; border: 0; border-left: 3px solid var(--blood); font-style: italic; color: var(--bone); font-size: 1.15em; line-height: 1.55; }
.post-body blockquote cite, .post-body .wp-block-quote cite { display: block; margin-top: .8em; font: normal 400 .8125rem/1.4 var(--f-mono); color: var(--ash); }
.post-body .wp-block-pullquote { border: 0; border-block: 1px solid var(--rule); padding: 1.5em 0; text-align: left; }
.post-body .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--f-display); font-style: normal; }
.post-body img { height: auto; border-radius: 2px; }
.post-body figure { margin-inline: 0; }
.post-body hr, .post-body .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; opacity: 1; }
.post-body code { font-family: var(--f-mono); font-size: .9em; background: var(--ink-2); padding: .1em .35em; border-radius: 2px; }
.post-body pre { font-family: var(--f-mono); background: var(--ink-2); padding: 1em 1.2em; overflow-x: auto; border-radius: 2px; font-size: .9rem; line-height: 1.6; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.post-body th, .post-body td { text-align: left; padding: .6em .8em .6em 0; border-bottom: 1px solid var(--rule); }
.post-body .alignwide { width: min(64rem, calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-body .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-body .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 50%; }
.post-body .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
.post-body .wp-block-embed iframe { max-width: 100%; }
.post-body::after { content: ""; display: table; clear: both; }
.page-links { margin-top: 2em; }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; max-width: 40em; margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--rule); }
.post-foot .label { color: var(--ash); }
.post-tags { color: var(--ash); }
.post-tags a { color: var(--bone-2); }

/* previous / next */
.post-nav { max-width: 46rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.post-nav-link { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.post-nav-link:hover { border-color: var(--ash); background: var(--ink-2); }
.post-nav-link.next { text-align: right; grid-column: 2; }
.post-nav-link .mono { color: var(--ash); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.post-nav-title { font: 400 1.25rem/1.15 var(--f-display); color: var(--bone); }

/* comments */
.comments { max-width: 46rem; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--rule); }
.comments h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 18px 0; border-top: 1px solid var(--rule); }
.comment-author .fn { font: 400 1.15rem/1.2 var(--f-display); color: var(--bone); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata, .comment-metadata a { font: 400 .75rem/1.4 var(--f-mono); color: var(--ash); text-decoration: none; }
.comment-content { color: var(--bone-2); margin-top: 8px; }
.comment-content p + p { margin-top: .8em; }
.reply a, .comment-reply-link { font: 700 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); }
.comment-respond { margin-top: 28px; }
.comment-reply-title { font-size: 1.4rem; margin-bottom: 14px; }
.comment-reply-title small { margin-left: 12px; font: 400 .75rem/1 var(--f-mono); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ink-2); color: var(--bone); border: 1px solid var(--ash); border-radius: 2px; font: 400 1rem/1.5 var(--f-body); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font: 400 .875rem/1.5 var(--f-body); color: var(--ash); margin: 0; }
.comment-notes, .logged-in-as { color: var(--ash); font-size: .9375rem; }
.comment-notes a, .logged-in-as a { color: var(--bone-2); }
.comments-closed { color: var(--ash); }

/* end-of-note newsletter prompt */
.note-cta { max-width: 46rem; display: grid; gap: 14px; justify-items: start; margin-top: clamp(56px, 7vw, 88px); margin-bottom: var(--section); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--rule); border-radius: 2px; background: var(--ink-2); }
.note-cta .eyebrow { margin: 0; }
.note-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; }
.note-cta p:not(.eyebrow) { color: var(--bone-2); }

@media (max-width: 860px) {
  .note-lead { grid-template-columns: minmax(0, 1fr); }
  .notes-head { display: none; }
  .note-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no time" "main main" "date date"; gap: 8px 16px; }
  .note-no { grid-area: no; }
  .note-time { grid-area: time; }
  .note-main { grid-area: main; }
  .note-date { grid-area: date; }
}
@media (max-width: 560px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link.next { grid-column: 1; text-align: left; }
  .post-body .alignleft, .post-body .alignright { float: none; margin: 1em 0; max-width: 100%; }
}
