/* The Authors' Atrium: shared styles for The Gallery (index and thread pages).
   Layout: masthead and nav across the top, one centered column, posts as avatar + paper card. */
:root {
  --band: #2a1c15;
  --band-2: #3d2b20;
  --brass: #c9a050;
  --paper: #f6eedd;
  --board: #d8c9ad;
  --ink: #1d1611;
  --ink-soft: #41342a;
  --hair: #b9a685;
  --rule: #8c7456;
  --link: #6b3f0f;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --smallcaps: 'IM Fell English SC', Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--board); color: var(--ink); font-family: var(--serif); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

/* Masthead and nav */
.mast { background: var(--band); color: #efe0bd; border-bottom: 3px solid var(--brass); }
.mast-in { max-width: 860px; margin: 0 auto; padding: 18px 20px 14px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.name { font-family: var(--smallcaps); font-size: clamp(26px, 5vw, 34px); letter-spacing: .02em; line-height: 1.1; margin: 0; font-weight: 400; }
.name a { color: inherit; text-decoration: none; }
.name .the { font-size: .52em; position: relative; top: -.8em; margin-right: .1em; letter-spacing: .04em; }
.tag { font-style: italic; font-size: 15px; color: #f6ebcf; margin: 0; }
.nav { background: var(--band-2); color: #f6ebcf; }
.nav-in { max-width: 860px; margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.nav-in a { color: #f6ebcf; text-decoration: none; }
.nav-in a:hover { color: var(--brass); }
.nav-in a:focus-visible { outline-color: var(--brass); }
.nav-in a[aria-current="page"] { border-bottom: 2px solid var(--brass); padding-bottom: 1px; }
.nav-in span { opacity: .6; cursor: default; }

/* Page body */
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 16px 28px; }
.crumb { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px 4px; }
.page-title { font-family: var(--smallcaps); font-weight: 400; font-size: clamp(28px, 5.5vw, 36px); letter-spacing: .02em; line-height: 1.15; margin: 0 0 10px 4px; }
.thread-title { font-size: clamp(22px, 4.5vw, 26px); font-weight: 600; line-height: 1.25; margin: 0 0 16px 4px; }
.intro { font-size: 17px; line-height: 1.6; margin: 0 0 22px 4px; max-width: 640px; }

/* Thread list (index) */
.thread-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thread-item { background: var(--paper); border: 1.5px solid var(--rule); border-radius: 3px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.thread-item .board { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.thread-item .t { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.thread-item .t a { text-decoration: none; color: var(--ink); }
.thread-item .t a:hover { text-decoration: underline; }
.thread-item .by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--ink-soft); }
.chips { display: flex; gap: 4px; }
.chip { width: 28px; height: 28px; border-radius: 5px; background: var(--band); color: #f0dfb8; border: 1.5px solid var(--brass); font-family: var(--smallcaps); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

/* Posts (thread page) */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: flex; gap: 10px; align-items: flex-start; }
.av { flex: none; width: 50px; height: 50px; border-radius: 8px; background: var(--band); color: #f0dfb8; border: 2px solid var(--brass); position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--smallcaps); font-size: 22px; letter-spacing: .02em; }
.av::after { content: ''; position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border: 1px solid #a98235; border-radius: 4px; }
.card { flex: 1; min-width: 0; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 3px; padding: 10px 14px 10px; }
.meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--hair); }
.who { font-weight: 600; letter-spacing: .02em; }
.when { color: var(--ink-soft); font-style: italic; }
.body { font-size: 18px; line-height: 1.55; overflow-wrap: break-word; }
.body p { margin: 0 0 .6em; }
.body p:last-child { margin-bottom: 0; }

/* Pagination (Gallery index) */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; padding: 0 4px; font-size: 14px; }
.pager span:not(.pager-pos) { color: var(--ink-soft); opacity: .5; }
.pager-pos { color: var(--ink-soft); }

/* The Method (standalone page) */
.box { background: var(--paper); border: 1.5px solid var(--rule); border-radius: 3px; padding: 14px 18px; }
.method-body { max-width: 640px; }
.method-body p { font-size: 17px; line-height: 1.6; margin: 0 0 1em; }
.method-body p:last-child { margin-bottom: 0; }
.cast-title { font-family: var(--smallcaps); font-weight: 400; font-size: clamp(20px, 4vw, 24px); letter-spacing: .02em; margin: 28px 0 12px 4px; }
.cast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cast-row { display: flex; gap: 12px; align-items: flex-start; }
.cast-row .bio { flex: 1; min-width: 0; }
.cast-row .who { display: block; margin-bottom: 2px; }
.cast-row .bio p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

/* Footer */
.disclaimer { max-width: 640px; margin: 26px 0 0 4px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); font-style: italic; }
.back { margin: 20px 0 0 4px; font-size: 15px; }
.from { margin: 14px 0 0 4px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.method-link { margin: 14px 0 0 4px; font-size: 14px; }
footer { padding: 6px 16px 28px; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 480px) {
  .av { width: 40px; height: 40px; font-size: 18px; border-radius: 6px; }
  .post { gap: 8px; }
  .card { padding: 9px 11px; }
  .body { font-size: 17px; }
}
