@font-face { font-family: DM; src: url("dm-sans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root { color-scheme: light; --paper:#f7f7f2; --surface:#edeee7; --ink:#202422; --muted:#535a53; --rule:#c7cbbf; --red:#9d2723; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.57 DM,system-ui,sans-serif; }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { line-height:1.02; letter-spacing:-.06em; font-weight:690; }
h1 { font-size:clamp(2.8rem,7.6vw,7.5rem); max-width:15ch; }
h2 { font-size:clamp(1.88rem,4.2vw,3.75rem); }
h3 { font-size:clamp(1.22rem,2.25vw,1.7rem); }
img { display:block; width:100%; object-fit:cover; }
a { color:inherit; text-underline-offset:4px; }
a:hover { text-decoration-thickness:2px; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid var(--red); outline-offset:4px; }
.skip { position:absolute; z-index:10; transform:translateY(-180%); background:var(--ink); color:white; padding:10px; top:10px; left:10px; }
.skip:focus { transform:none; }
.wrap { width:min(1260px, calc(100% - 104px)); margin-inline:auto; }
.header { border-top:5px solid var(--red); border-bottom:1px solid var(--ink); }
.header-inner,.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:23px; min-height:74px; }
.brand { display:inline-flex; align-items:center; gap:9px; font-size:1.23rem; line-height:1; font-weight:810; text-decoration:none; letter-spacing:-.045em; }
.stamp { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--red); color:white; font-size:.84rem; letter-spacing:0; }
nav { display:flex; flex-wrap:wrap; gap:9px 26px; }
nav a { text-decoration:none; font-weight:600; }
nav a:is(:hover,[aria-current]) { color:var(--red); text-decoration:underline; }
.issue-line,.slug { font:600 .79rem/1.35 ui-monospace,Consolas,monospace; text-transform:uppercase; letter-spacing:.085em; color:var(--red); }
.dispatch-cover { padding-top:24px; }
.issue-line { display:flex; justify-content:space-between; gap:15px; border-bottom:1px solid var(--rule); padding-bottom:9px; }
.dispatch-masthead { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(245px,.6fr); align-items:end; gap:35px; padding:24px 0 26px; }
.dispatch-masthead h1 { font-size:clamp(3.9rem,9.7vw,9.15rem); font-weight:760; line-height:.88; letter-spacing:-.083em; }
.dispatch-masthead p { max-width:40ch; color:var(--muted); margin-bottom:17px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:47px; padding:10px 17px; background:var(--red); color:white; border:1px solid var(--red); font:700 1rem/1.2 DM,sans-serif; cursor:pointer; text-decoration:none; text-align:center; }
.button:hover { background:#79231f; }
.button:disabled { opacity:.65; cursor:default; }
.button.outline { background:transparent; color:var(--red); }
.button.outline:hover { background:#f4e5e3; }
.cover-frame img { height:clamp(225px,36vw,465px); object-position:50% 53%; background:var(--surface); }
.cover-frame figcaption { padding:7px 0; color:var(--muted); font-size:.88rem; border-bottom:1px solid var(--rule); }
.open-link { color:var(--red); font-weight:700; }
.collection { padding-block:65px; }
.section-kicker { display:flex; justify-content:space-between; align-items:end; gap:14px; padding-bottom:18px; border-bottom:2px solid var(--ink); }
.section-kicker h2 { margin-top:7px; }
.group-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.group-grid article { display:flex; flex-direction:column; align-items:start; padding:19px 0; border-bottom:1px solid var(--rule); }
.group-grid article h3 { margin:9px 0; }
.group-grid article > p:not(.slug) { color:var(--muted); flex:1; margin-bottom:14px; }
.group-grid h3 a { text-decoration:none; }
.group-grid h3 a:hover { text-decoration:underline; }
.trial-example { background:var(--ink); color:var(--paper); }
.trial-example .wrap,.trial-builder { display:grid; grid-template-columns:.84fr 1.16fr; gap:36px; padding-block:43px; }
.trial-example .slug,.trial-example a { color:#ff9b90; }
.trial-example h2,.trial-builder h2 { margin:8px 0 13px; }
.trial-example p:not(.slug),.trial-builder p:not(.slug) { margin-bottom:14px; }
.trial-example article { border-left:3px solid #e17468; padding:15px 20px; background:#303530; }
.trial-example article h3 { margin-bottom:6px; }
.trial-builder { padding-block:61px 74px; gap:40px; }
.trial-builder form { background:var(--surface); border-top:3px solid var(--red); padding:21px; display:grid; justify-items:start; gap:12px; }
.trial-builder label,.search-area label { display:grid; gap:5px; width:100%; font-weight:650; }
input,select { min-width:0; min-height:44px; padding:8px 10px; font:inherit; color:var(--ink); border:1px solid #9da398; background:#fff; border-radius:0; }
select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--red) 50%),linear-gradient(135deg,var(--red) 50%,transparent 50%); background-size:6px 6px; background-position:calc(100% - 19px) center,calc(100% - 13px) center; background-repeat:no-repeat; padding-right:30px; }
.local-result { padding:12px; border-left:3px solid var(--red); background:var(--paper); white-space:pre-line; overflow-wrap:anywhere; width:100%; }
.local-result p { margin-bottom:7px; }
.footer { border-top:1px solid var(--ink); background:var(--surface); padding:24px 0; }
.footer-inner { align-items:start; }
.footer p { margin-top:11px; color:var(--muted); }
.policy-links { display:flex; flex-wrap:wrap; gap:8px 17px; max-width:34rem; }
.policy-links :is(a,button) { font-size:.91rem; text-decoration:underline; }
.policy-copy section { max-width:64ch; margin-top:24px; }
.policy-copy section h2 { font-size:clamp(1.45rem,2.8vw,2.05rem); margin-bottom:9px; }
.shelf-intro,.source-page { padding-block:45px 29px; }
.shelf-intro h1,.source-page h1 { margin:11px 0 14px; }
.shelf-intro p:last-child,.source-page > p:last-of-type { max-width:62ch; color:var(--muted); }
.shelf { padding-bottom:68px; }
.search-area { display:flex; flex-wrap:wrap; align-items:end; gap:13px 22px; background:var(--surface); padding:14px 17px; }
.search-area label { width:min(100%,390px); }
.shelf-group { margin-block:24px 32px; border-top:2px solid var(--ink); }
.shelf-heading { display:grid; grid-template-columns:210px 1fr; gap:12px; align-items:center; padding:12px 8px; background:var(--surface); }
.shelf-heading h2 { font-size:clamp(1.8rem,3.25vw,2.7rem); }
.manual { display:grid; grid-template-columns:210px 1fr; border-bottom:1px solid var(--rule); }
.manual-top { padding:12px 8px; display:flex; align-items:baseline; gap:11px; font:.79rem/1.3 ui-monospace,Consolas,monospace; color:var(--red); }
.manual-top span:last-child { order:-1; }
.manual-body { display:grid; grid-template-columns:minmax(150px,1fr) minmax(180px,1.2fr) auto; align-items:baseline; gap:12px; padding:13px 5px; }
.manual-body h3 a { text-decoration:none; }
.manual-body h3 a:hover { text-decoration:underline; }
.manual-body p { color:var(--muted); }
.detail-banner { border-bottom:1px solid var(--ink); background:var(--surface); }
.detail-top { display:grid; grid-template-columns:1.34fr .66fr; align-items:center; gap:35px; padding-block:44px; }
.detail-top .slug { margin-top:20px; }
.detail-top h1 { margin:8px 0 12px; font-size:clamp(2.75rem,6vw,6rem); }
.detail-top p:not(.slug) { max-width:65ch; color:var(--muted); }
.actions { display:flex; align-items:start; flex-wrap:wrap; gap:9px; margin-top:18px; }
.sheet { display:grid; align-content:space-between; min-height:205px; background:var(--paper); border:1px solid var(--ink); border-left:12px solid var(--red); padding:17px; }
.sheet div,.sheet span { font:.8rem/1.2 ui-monospace,Consolas,monospace; }
.sheet strong { display:block; font-size:clamp(1.7rem,3.6vw,3.2rem); line-height:1; letter-spacing:-.045em; }
.study { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(195px,.5fr); gap:40px; padding-block:37px 72px; align-items:start; }
.study article section { padding:16px 0 19px; border-bottom:1px solid var(--rule); }
.study h2,.casebook h2 { font-size:clamp(1.8rem,3.2vw,2.9rem); margin:7px 0 12px; }
.study article p:not(.slug) { color:var(--muted); }
.contents { position:sticky; top:15px; background:var(--surface); border-top:3px solid var(--ink); padding:13px 15px; }
.contents h2 { font-size:1.65rem; }
.contents ol { padding-left:19px; }
.contents li { margin:6px 0; }
.exercise blockquote,.case-prompt { margin:11px 0; padding:12px 13px; background:var(--surface); border-left:3px solid var(--red); }
.copy-status:not(:empty) { margin-top:8px; }
.practice-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:24px; padding-bottom:65px; }
.casebook details { border-top:1px solid var(--rule); padding:12px 1px; }
.casebook summary { cursor:pointer; font-weight:780; }
.casebook p { margin-top:8px; }
.bench-photo { background:var(--surface); align-self:start; }
.bench-photo img { aspect-ratio:1.46; }
.bench-photo p { padding:12px; }
.source-page { padding-bottom:70px; }
.source-page li { margin-block:6px; }

@media (prefers-reduced-motion: no-preference) {
  .cover-frame img { animation: table-view .74s ease-out both; }
}
@keyframes table-view { from { clip-path: inset(0 0 9% 0); opacity:.8; } to { clip-path:inset(0); opacity:1; } }
@media(max-width:955px) {
  .wrap { width:calc(100% - 52px); }
  .manual,.shelf-heading { grid-template-columns:125px 1fr; }
  .manual-body { grid-template-columns:minmax(115px,1fr) minmax(120px,1.1fr); }
  .manual-body > a { grid-column:2; width:fit-content; }
}
@media(max-width:700px) {
  .wrap { width:calc(100% - 34px); }
  .header-inner,.footer-inner,.section-kicker { align-items:start; flex-direction:column; justify-content:center; gap:9px; }
  .header-inner { padding:12px 0; }
  .dispatch-masthead,.trial-example .wrap,.trial-builder,.detail-top,.study,.practice-grid { grid-template-columns:1fr; gap:18px; }
  .dispatch-masthead h1 { font-size:clamp(3.75rem,15vw,6.2rem); }
  .group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 15px; }
  .collection,.trial-builder { padding-block:42px; }
  .study section { scroll-margin-top:12px; }
  .contents { grid-row:1; position:static; }
  .manual,.shelf-heading { grid-template-columns:1fr; gap:0; }
  .manual-top { padding-bottom:0; }
  .manual-body { grid-template-columns:1fr; gap:6px; padding:9px 8px 13px; }
  .manual-body > a { grid-column:auto; }
  .sheet { display:none; }
}
@media(max-width:365px) { .group-grid { grid-template-columns:1fr; } }

/* Cookie preferences */
:root { --consent-paper:#f7f7f2; --consent-text:#202422; --consent-accent:#9d2723; --consent-on-accent:#ffffff; --consent-rule:#b3b6ae; --consent-radius:2px; }

.cookie-consent[hidden], .cookie-consent [hidden] { display: none !important; }
.cookie-consent {
  position: fixed;
  z-index: 30;
  inset: auto 0 0;
  max-height: 72vh;
  overflow: auto;
  padding: 15px 0 max(15px, env(safe-area-inset-bottom));
  background: var(--consent-paper);
  color: var(--consent-text);
  border-top: 3px solid var(--consent-accent);
  box-shadow: 0 -5px 25px #0002;
}
.cookie-consent-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 13px 26px; }
.cookie-consent h2 { color: inherit; font-size: 1.4rem; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 5px; }
.cookie-consent p { color: inherit; line-height: 1.42; font-size: .94rem; margin: 0; max-width: 72ch; }
.cookie-consent a, .cookie-footer-control { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cookie-consent-actions button { background: var(--consent-accent); color: var(--consent-on-accent); border: 1px solid var(--consent-accent); border-radius: var(--consent-radius, 3px); min-height: 44px; padding: 8px; text-align: center; font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer; }
.cookie-consent-actions button:hover { filter: brightness(1.12); }
.cookie-consent-details { grid-column: 1 / -1; border-top: 1px solid var(--consent-rule); padding-top: 12px; }
.cookie-consent-details strong { display: block; margin-bottom: 4px; }
.cookie-consent-details [data-preference-status]:not(:empty) { margin-top: 6px; }
.cookie-footer-control { align-self: start; border: 0; background: none; font: inherit; text-align: left; padding: 0; cursor: pointer; min-height: 22px; }
@media (max-width: 740px) {
  .cookie-consent-inner { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 10px; }
  .cookie-consent { padding-top: 11px; }
}

/* Homepage contact fields */
.home-contact { min-inline-size: 0; width: 100%; margin: 0; padding: 0; border: 0; }
.home-contact legend { padding: 0; margin-bottom: 7px; font-weight: 700; }
.home-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-contact-fields label { display: grid; gap: 5px; font-weight: 600; }
.home-contact-fields input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; font: inherit; font-size: 1rem; background: #fff; color: #202422; border: 1px solid #9da398; border-radius: 0; }
.home-contact p#home-contact-note { margin: 8px 0 0; font-size: .9rem; line-height: 1.45; color: #535a53; }
@media (max-width: 520px) { .home-contact-fields { grid-template-columns: 1fr; } }

/* Homepage form feedback */
.home-form-toast:not(:empty) {
  position: fixed;
  inset: 16px 16px auto auto;
  z-index: 45;
  width: min(370px, calc(100% - 32px));
  pointer-events: none;
  background: var(--consent-paper);
  color: var(--consent-text);
  border: 1px solid var(--consent-rule);
  border-inline-start: 4px solid var(--consent-accent);
  border-radius: var(--consent-radius, 3px);
  padding: 12px 15px;
  font-size: .95rem;
  font-weight: 650;
  box-shadow: 0 4px 20px #0002;
}
.home-form-toast[data-state="error"] { border-inline-start-color: #c44337; }
.home-contact-fields input[aria-invalid="true"] { outline: 2px solid #c44337; outline-offset: 1px; }
.home-contact-heading { margin: 0 0 8px; font-size: clamp(1.42rem, 3vw, 1.8rem); }

/* Editorial sections on the homepage */
.home-depth { color: var(--depth-ink); }
.home-depth-section { padding-block: clamp(32px, 5vw, 66px); border-top: 1px solid var(--depth-rule); }
.home-depth-photo { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:clamp(19px, 4vw, 50px); align-items:center; }
.home-depth-photo figure { margin:0; min-width:0; }
.home-depth-photo img { display:block; width:100%; max-height:425px; aspect-ratio:1.45; object-fit:cover; border-radius:var(--depth-radius); }
.home-depth-reverse figure { order:2; }
.home-depth h2 { color:inherit; margin:6px 0 12px; max-width:24ch; font-size:clamp(1.95rem,4.15vw,3.65rem); line-height:1.03; }
.home-depth h3 { color:inherit; line-height:1.13; font-size:clamp(1.2rem,2.35vw,1.55rem); margin:0 0 7px; }
.home-depth p { margin:0 0 10px; max-width:64ch; color:var(--depth-text); }
.home-depth .home-depth-tag { color:var(--depth-accent); font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.09em; }
.home-depth a { color:var(--depth-accent); font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.home-depth a:hover { text-decoration-thickness:2px; }
.home-depth-cards { background:var(--depth-wash); border-block:1px solid var(--depth-rule); }
.home-depth-cards .home-depth-section { border:0; }
.home-depth-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,2.4vw,24px); margin-top:19px; }
.home-depth-grid article { border-top:2px solid var(--depth-rule); padding:14px 0 0; }
.home-depth-steps { display:grid; grid-template-columns:.92fr 1.08fr; align-items:start; gap:clamp(18px,4vw,42px); }
.home-depth-steps ol { margin:2px 0 0; padding-left:22px; }
.home-depth-steps li { padding:0 0 10px; margin:0 0 12px; border-bottom:1px solid var(--depth-rule); }
.home-depth-steps li::marker { color:var(--depth-accent); font-weight:750; }
.home-depth-steps strong { display:block; margin-bottom:4px; }
.home-depth-steps li p { margin:0; }
.home-depth-final { margin-bottom:clamp(29px,5vw,60px); background:var(--depth-wash); border:1px solid var(--depth-rule); border-left:4px solid var(--depth-accent); border-radius:var(--depth-radius); padding:clamp(19px,4vw,36px); }
@media(max-width:700px) {
  .home-depth-photo,.home-depth-steps,.home-depth-grid { grid-template-columns:1fr; gap:17px; }
  .home-depth-reverse figure { order:0; }
  .home-depth-photo img { max-height:310px; }
  .home-depth h2 { max-width:unset; }
}
.home-depth-workroom { --depth-ink:#202422; --depth-text:#535a53; --depth-accent:#9d2723; --depth-rule:#c7cbbf; --depth-wash:#edeee7; --depth-radius:0; }
.home-depth-workroom .home-depth-photo img { filter:saturate(.35); } .home-depth-workroom .home-depth-grid article { border-top-color:#9d2723; }
