:root {
  --ink: #1d1d19;
  --ink-soft: #34322c;
  --marble: #f7f4ed;
  --travertine: #ebe3d5;
  --travertine-deep: #d8c9b5;
  --oxblood: #7b2f28;
  --oxblood-dark: #4d201d;
  --bronze: #8b7652;
  --verde: #405b4d;
  --line: #cbbdab;
  --muted: #6f695f;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgb(45 37 28 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, .button { min-height: 44px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: .98;
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: #caa69f; color: var(--ink); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.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;
}

.site-header {
  min-height: 68px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgb(247 244 237 / 94%);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.brand-mark, .footer-mark {
  width: 37px;
  height: 37px;
  border: 1px solid var(--oxblood);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--oxblood);
  font-family: var(--display);
  font-size: 22px;
}
.brand strong { display: block; font-size: 14px; letter-spacing: .24em; }
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-style: italic;
  letter-spacing: .08em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .05em;
}
.site-header nav a { text-decoration: none; }
.site-header nav > a:not(.button) { border-bottom: 1px solid transparent; }
.site-header nav > a:not(.button):hover { border-color: currentColor; }
.site-header nav form { margin: 0; }
.link-button {
  min-height: auto;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid var(--oxblood);
  background: var(--oxblood);
  color: white !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
  transition: background .2s ease, transform .2s ease;
}
.button:hover { background: var(--oxblood-dark); transform: translateY(-1px); }
.button.small { min-height: 40px; padding: 9px 16px; }
.text-link {
  width: fit-content;
  color: var(--oxblood);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .055em;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.eyebrow {
  color: var(--oxblood);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.forum-masthead {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  border-bottom: 5px solid var(--oxblood);
  background: var(--travertine);
}
.forum-masthead::before {
  content: "FORVM";
  position: absolute;
  z-index: 1;
  left: clamp(18px, 4vw, 66px);
  top: -22px;
  color: rgb(123 47 40 / 5%);
  font-family: var(--display);
  font-size: clamp(90px, 11vw, 180px);
  letter-spacing: -.07em;
  line-height: 1;
}
.masthead-content {
  position: relative;
  z-index: 3;
  min-height: 218px;
  max-width: 1600px;
  margin: auto;
  padding: 24px clamp(22px, 6vw, 92px) 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.masthead-copy { display: flex; align-items: baseline; gap: 22px; margin-top: 8px; }
.masthead-copy h1 {
  font-size: clamp(34px, 3.1vw, 48px);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.masthead-copy p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.35;
}
.masthead-tools { display: flex; align-items: stretch; gap: 10px; margin-top: 17px; }
.masthead-tools .button { min-height: 42px; padding: 10px 17px; flex: 0 0 auto; }
.masthead-search { width: min(380px, 42vw); }
.masthead-monument {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 48%;
  margin: 0;
  overflow: hidden;
}
.masthead-monument::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--travertine) 0%, rgb(235 227 213 / 88%) 10%, transparent 45%),
    linear-gradient(180deg, transparent 54%, rgb(29 29 25 / 55%));
  pointer-events: none;
}
.masthead-monument img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 52%;
  filter: saturate(.72) sepia(.08) contrast(1.04);
}
.masthead-monument figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(22px, 5vw, 72px);
  bottom: 16px;
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.archive-section { padding: 22px clamp(22px, 6vw, 92px) 74px; }
.archive-heading {
  max-width: 1440px;
  margin: 0 auto 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.archive-heading h2 { margin-top: 3px; font-size: clamp(29px, 2.5vw, 38px); letter-spacing: -.025em; }
.archive-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.archive-heading > p strong { color: var(--oxblood); font-size: 13px; }
.search { width: min(470px, 100%); }
.search > div { display: flex; }
.search input, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffefa;
  color: var(--ink);
  padding: 13px 14px;
}
input::placeholder, textarea::placeholder { color: #8d857a; }
.search input { min-height: 42px; border-right: 0; padding-block: 9px; }
.search button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.archive-ledger { max-width: 1440px; margin: auto; }
.results-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.post-list { border-top: 1px solid var(--line); }
.post-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 17px 3px 18px;
  border-bottom: 1px solid var(--line);
}
.post-index { color: var(--bronze); font-family: var(--display); font-size: 15px; font-style: italic; }
.post-card-body { max-width: 1120px; }
.post-card h2 { margin: 4px 0 6px; font-size: clamp(24px, 2vw, 31px); line-height: 1.04; letter-spacing: -.02em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--oxblood); }
.post-card-body > p { max-width: 980px; margin: 4px 0 0; color: var(--ink-soft); font-family: var(--display); font-size: 15px; line-height: 1.46; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.post-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.post-actions a {
  color: var(--oxblood);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.post-actions a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pagination { display: flex; justify-content: space-between; gap: 20px; padding: 30px 3px; }
.pagination a { color: var(--oxblood); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.empty { padding: 90px 20px; text-align: center; }
.empty > span { color: var(--oxblood); font-family: var(--display); font-size: 42px; }
.empty h2 { margin-top: 12px; font-size: 38px; }
.empty p { color: var(--muted); }
.empty .button { margin-top: 15px; }

.panel { border: 1px solid var(--line); background: #fffefa; box-shadow: 10px 10px 0 var(--travertine); }
.publish-shell { min-height: calc(100vh - 86px); padding: 46px clamp(22px, 6vw, 92px) 90px; }
.page-heading { max-width: 980px; margin: 0 auto 30px; }
.page-heading h1 { max-width: 920px; margin: 11px 0 13px; font-size: clamp(44px, 4.2vw, 64px); letter-spacing: -.04em; }
.page-heading p { max-width: 680px; margin: 0; color: var(--muted); font-family: var(--display); font-size: 20px; }
.publish-grid { max-width: 980px; margin: auto; }
.editor { padding: clamp(24px, 4vw, 46px); }
.collective-composer { padding-top: 24px; padding-bottom: 54px; }
.collective-composer .page-heading { max-width: 820px; margin-bottom: 16px; }
.collective-composer .page-heading h1 { margin-top: 8px; font-size: clamp(38px, 3.6vw, 52px); }
.collective-composer .page-heading p { max-width: 760px; font-size: 18px; }
.collective-composer .publish-grid { max-width: 820px; }
.collective-composer .editor { padding: clamp(20px, 2.5vw, 28px); }
.collective-composer .editor label { margin-bottom: 16px; }
.share-message textarea { min-height: 128px; font-family: var(--sans) !important; font-size: 16px !important; }
.share-options { margin: -2px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-options summary { padding: 11px 0; color: var(--oxblood); font-size: 11px; font-weight: 750; letter-spacing: .06em; cursor: pointer; }
.share-options summary span { float: right; color: var(--muted); font-weight: 500; }
.share-options .field-row { padding-top: 8px; }
.collective-composer .file-field { padding: 15px 17px; }
.collective-composer .file-field input { padding-top: 8px; }
.editor-note {
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
}
.editor-note span { margin-right: 10px; color: var(--oxblood); font-style: italic; }
.source-banner {
  margin: 0 0 28px;
  padding: 17px 19px;
  border-left: 5px solid var(--oxblood);
  background: var(--travertine);
}
.source-banner > * { display: block; }
.source-banner strong { margin: 5px 0 3px; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.source-banner strong a { text-decoration: none; }
.source-banner > span:last-child { color: var(--muted); font-size: 11px; }
.source-banner > span:last-child a { color: var(--oxblood); text-underline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.editor label, .comment-form label { display: block; margin-bottom: 24px; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.editor label > span, .file-field > span { float: right; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.editor input, .editor textarea, .comment-form input, .comment-form textarea { margin-top: 8px; font-size: 15px; letter-spacing: 0; text-transform: none; }
.editor textarea, .comment-form textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55; }
.file-field { padding: 22px; border: 1px dashed var(--bronze); background: var(--marble); }
.file-field > strong { font-family: var(--display); font-size: 18px; letter-spacing: 0; text-transform: none; }
.file-field input { border: 0; background: transparent; padding: 14px 0 0; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 26px; }
.error { padding: 12px 15px; border-left: 4px solid var(--oxblood); background: #f4dfdc; color: var(--oxblood-dark); }

.research-layout { padding: 0 clamp(22px, 4.5vw, 72px) 88px; }
.research-header {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.research-header::after { content: ""; position: absolute; right: 0; bottom: 0; width: min(24vw, 330px); height: 6px; background: var(--oxblood); }
.research-header-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.back-link { display: block; }
.research-header .post-meta { margin: 16px 0 8px; }
.research-header h1 { max-width: 1180px; font-size: clamp(40px, 4.4vw, 64px); line-height: .98; letter-spacing: -.045em; }
.record-nav { display: flex; align-items: center; gap: 30px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.record-nav a { color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.record-nav a:hover { color: var(--oxblood); }
.record-nav span { display: inline-grid; min-width: 20px; min-height: 20px; margin-left: 5px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--oxblood); font-size: 9px; }
.research-deck { max-width: 670px; margin: 26px 0 0; color: var(--muted); font-family: var(--display); font-size: 18px; }
.research-grid { max-width: 1500px; margin: 0 auto; padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); gap: clamp(38px, 5vw, 76px); align-items: start; }
.prose { font-family: var(--display); font-size: 19px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { margin: 1.5em 0 .55em; }
.prose h1 { font-size: 44px; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose a { color: var(--oxblood); text-underline-offset: 3px; }
.prose pre { overflow: auto; padding: 22px; background: var(--ink); color: #f1ece3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.prose code { padding: 2px 5px; background: var(--travertine); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.prose pre code { padding: 0; background: none; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--bronze); color: var(--muted); font-size: 1.12em; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.prose th, .prose td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; }
.record-rail { min-width: 0; display: grid; gap: 14px; align-self: start; position: sticky; top: 104px; }
.thread-panel { padding: 17px 18px 18px; border-top: 6px solid var(--verde); background: #fffefa; }
.thread-panel h2 { margin: 6px 0 10px; font-size: 30px; }
.lineage-link { margin: 0; }
.lineage-link span, .lineage-list > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lineage-link a, .lineage-list a { display: block; color: var(--ink); font-family: var(--display); font-size: 14px; line-height: 1.25; text-decoration: none; }
.lineage-link a:hover, .lineage-list a:hover { color: var(--oxblood); }
.lineage-list { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.lineage-list em { margin-right: 4px; color: var(--oxblood); font-family: var(--sans); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.thread-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; }
.thread-actions .text-link { font-size: 9px; }
.files-panel { padding: 16px 18px 14px; border-top: 6px solid var(--oxblood); background: var(--travertine); }
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rail-heading > span:last-child { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.files-panel h2 { margin: 6px 0 8px; font-size: 30px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { border-top: 1px solid var(--line); }
.file-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; }
.file-list a:hover strong { color: var(--oxblood); }
.file-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); background: var(--marble); color: var(--oxblood); font-size: 8px; font-weight: 800; }
.file-list strong, .file-list small { display: block; word-break: break-word; }
.file-list strong { font-size: 12px; }
.file-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.muted { color: var(--muted); }

.discussion { padding: 20px 22px 24px; border-top: 6px solid var(--oxblood); background: var(--ink); color: white; }
.discussion .eyebrow { color: #c9ad83; }
.discussion-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid #514e47; }
.discussion-head h2 { margin-top: 7px; font-size: 32px; }
.discussion-head p { max-width: 270px; margin: 8px 0 0; color: #bdb9b0; font-family: var(--display); font-size: 14px; line-height: 1.4; }
.discussion-head > span { color: #aaa69d; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.comment { padding: 15px 0; border-bottom: 1px solid #45423c; }
.comment > div { display: flex; align-items: baseline; gap: 14px; }
.comment time { color: #96928a; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.comment p { margin: 7px 0 0; color: #e5e0d7; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.discussion-pagination { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 3px; }
.discussion-pagination a { color: #e5e0d7; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.discussion-pagination a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.comment-form { margin-top: 20px; padding: 18px; color: var(--ink); box-shadow: 6px 6px 0 #3e3b35; }
.form-intro { margin-bottom: 18px; }
.form-intro h3 { margin-top: 7px; font-size: 24px; }
.comment-form label { margin-bottom: 16px; }
.comment-form input, .comment-form textarea { padding: 11px 12px; font-size: 13px; }
.comment-form .button { display: flex; margin-left: auto; }

footer {
  min-height: 112px;
  padding: 24px clamp(22px, 6vw, 92px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--oxblood-dark);
  color: #dfd2c4;
}
.footer-mark { border-color: #d9bcb2; color: #d9bcb2; }
footer p { margin: 0; font-family: var(--display); font-size: 13px; line-height: 1.45; }
footer > span:last-child { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.thread-shell { min-height: calc(100vh - 86px); padding: 46px clamp(22px, 6vw, 92px) 90px; }
.thread-heading { max-width: 1280px; margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.thread-heading h1 { margin: 9px 0 10px; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.045em; }
.thread-heading p { max-width: 650px; margin: 0; color: var(--muted); font-family: var(--display); font-size: 18px; }
.thread-summary { max-width: 1280px; margin: auto; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.thread-summary a { color: var(--oxblood); text-decoration: none; }
.thread-ledger { max-width: 1160px; margin: 22px auto 0; }
.thread-record { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; padding: 21px 0 24px; border-bottom: 1px solid var(--line); }
.thread-record.depth-1 { margin-left: 38px; }
.thread-record.depth-2 { margin-left: 76px; }
.thread-record.depth-3 { margin-left: 114px; }
.thread-record.depth-4 { margin-left: 152px; }
.thread-marker { position: relative; display: flex; justify-content: center; }
.thread-marker::before { content: ""; position: absolute; top: -21px; bottom: -24px; width: 1px; background: var(--line); }
.thread-marker span { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 7px; border: 2px solid var(--oxblood); border-radius: 50%; background: var(--marble); }
.thread-record h2 { margin: 7px 0 8px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.thread-record h2 a { text-decoration: none; }
.thread-record h2 a:hover { color: var(--oxblood); }
.thread-record p { max-width: 760px; margin: 0; color: var(--muted); font-family: var(--display); font-size: 16px; }
.thread-record .post-actions span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.thread-shell > .pagination { max-width: 1160px; margin: auto; }
.receipt-shell { min-height: calc(100vh - 86px); display: grid; place-items: center; }
.receipt-panel { width: min(680px, 100%); padding: clamp(30px, 5vw, 64px); }
.receipt-panel h1 { margin: 10px 0 16px; font-size: clamp(42px, 6vw, 72px); }
.receipt-panel > p { max-width: 560px; color: var(--muted); font-family: var(--display); font-size: 18px; }
.receipt-record { margin: 28px 0; padding: 16px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 9px 18px; }
.receipt-record dt { font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.receipt-record dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .masthead-copy { display: block; }
  .masthead-copy p { margin-top: 5px; }
  .masthead-monument { width: 43%; }
  .research-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, 350px); gap: 38px; }
}

@media (max-width: 820px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  .site-header nav > a:nth-child(2), .link-button { display: none; }
  .brand small { display: none; }
  .forum-masthead, .masthead-content { min-height: 230px; }
  .masthead-content { padding: 21px 22px 22px; }
  .masthead-copy h1 { font-size: clamp(32px, 7vw, 42px); white-space: normal; }
  .masthead-monument { width: 52%; opacity: .72; }
  .masthead-monument::after { background: linear-gradient(90deg, var(--travertine) 0%, rgb(235 227 213 / 92%) 28%, rgb(235 227 213 / 35%) 80%), linear-gradient(180deg, transparent 50%, rgb(29 29 25 / 44%)); }
  .masthead-monument figcaption { display: none; }
  .archive-heading { align-items: end; flex-direction: row; }
  .search { width: 100%; }
  .research-grid { grid-template-columns: 1fr; }
  .thread-heading { align-items: start; flex-direction: column; gap: 24px; }
  .post-card { grid-template-columns: 38px 1fr; gap: 14px; }
  .research-grid { gap: 42px; }
  .record-rail { position: static; }
  .discussion-head { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header nav { gap: 10px; }
  .site-header .button.small { min-height: 38px; padding: 8px 12px; font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .forum-masthead, .masthead-content { min-height: 236px; }
  .masthead-copy h1 { font-size: 34px; }
  .masthead-copy p { max-width: 245px; font-size: 13px; }
  .masthead-tools { width: 100%; align-items: stretch; flex-direction: column; gap: 7px; margin-top: 13px; }
  .masthead-tools .button { width: 100%; min-height: 38px; padding: 8px 12px; }
  .masthead-search { width: 100%; }
  .search input, .search button { min-height: 38px; }
  .archive-section { padding-top: 18px; padding-bottom: 64px; }
  .archive-heading { margin-bottom: 5px; align-items: end; }
  .archive-heading h2 { font-size: 30px; }
  .archive-heading > p { text-align: right; line-height: 1.5; }
  .archive-heading .archive-shown, .archive-heading .archive-facets { display: none; }
  .post-card { grid-template-columns: 1fr; }
  .post-index { display: none; }
  .post-card { padding: 15px 0 17px; }
  .post-card h2 { font-size: 27px; }
  .post-card-body > p { font-size: 14px; }
  .post-actions { gap: 13px; margin-top: 9px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .editor label > span, .file-field > span { float: none; display: block; margin-top: 4px; }
  .actions { align-items: stretch; flex-direction: column-reverse; }
  .actions .button { width: 100%; }
  .research-layout { padding-bottom: 65px; }
  .research-header { padding-top: 22px; }
  .research-header-top { align-items: start; flex-direction: column; gap: 16px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .research-header h1 { font-size: clamp(40px, 12vw, 54px); }
  .record-nav { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
  .record-nav a { font-size: 9px; letter-spacing: .07em; }
  .research-grid { padding-top: 30px; }
  .prose { font-size: 17px; }
  .prose h1, .prose h2, .prose h3 { margin: 1.3em 0 .45em; }
  .prose h1 { font-size: 38px; }
  .prose h2 { font-size: 29px; }
  .prose h3 { font-size: 23px; }
  .comment-form .button { width: 100%; }
  .comment > div { align-items: start; flex-direction: column; gap: 3px; }
  .thread-record.depth-1, .thread-record.depth-2, .thread-record.depth-3, .thread-record.depth-4 { margin-left: 18px; }
  .thread-record { grid-template-columns: 24px minmax(0, 1fr); gap: 11px; }
  .thread-summary { align-items: start; flex-direction: column; gap: 5px; }
  footer { grid-template-columns: auto 1fr; }
  footer > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
