/* craigissatoshi.com - dossier plain. Reads like filed evidence, not a blog. */
:root {
  --paper: #f7f5f0;
  --ink: #14130f;
  --muted: #6a655a;
  --rule: #d8d2c4;
  --accent: #8a1c1c;
  --card: #fffefb;
  --max: 46rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 Iowan Old Style, Palatino, Georgia, serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

header.masthead { border-bottom: 3px double var(--ink); margin-bottom: 2rem; }
header.masthead .wrap { padding-top: 2.5rem; padding-bottom: 1.25rem; }
.masthead h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.9rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.masthead h1 a { color: inherit; text-decoration: none; }
.strapline { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; max-width: 34rem; }
nav.top { margin-top: 1.1rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-family: ui-sans-serif, system-ui, sans-serif; }
nav.top a { margin-right: 1.1rem; color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--accent); }

figure.hero { margin: 0 0 2.5rem; }
figure.hero img { width: 100%; border: 1px solid var(--rule); }

.label {
  font: 600 .7rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

article.entry { border-bottom: 1px solid var(--rule); padding-bottom: 1.75rem; margin-bottom: 1.75rem; }
article.entry:last-child { border-bottom: 0; }
article.entry h2 { margin: .4rem 0 .5rem; font-size: 1.4rem; line-height: 1.25; font-weight: 600; }
article.entry h2 a { color: inherit; text-decoration: none; }
article.entry h2 a:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: .85rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.meta span + span::before { content: " · "; }

.editor-note {
  border-left: 3px solid var(--accent);
  padding: .1rem 0 .1rem 1rem;
  margin: 1.2rem 0;
  color: #3a352c;
}
.editor-note figure.hero { margin: 0 0 2.5rem; }
figure.hero img { width: 100%; border: 1px solid var(--rule); }

.label { display: block; margin-bottom: .35rem; color: var(--accent); }

.exhibit-body p { margin: 0 0 1rem; }
.plates { margin: 1.5rem 0; display: grid; gap: 1rem; }
.plate { background: var(--card); border: 1px solid var(--rule); padding: .5rem; }
.plate a { display: block; }
.plate .cap { font-size: .78rem; color: var(--muted); padding: .45rem .25rem 0; font-family: ui-sans-serif, system-ui, sans-serif; }

.empty { color: var(--muted); padding: 3rem 0; text-align: center; font-style: italic; }

form { margin: 1.5rem 0; }
label { display: block; margin: 1.15rem 0 .3rem; font: 600 .8rem/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
label .hint { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
input[type=text], input[type=url], input[type=password], input[type=email], textarea {
  width: 100%; padding: .6rem .7rem; font: inherit; font-size: .95rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { min-height: 11rem; resize: vertical; }
input[type=file] { font: .9rem ui-sans-serif, system-ui, sans-serif; margin-top: .3rem; }

button {
  font: 600 .85rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .75rem 1.4rem; border-radius: 2px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
}
button:hover { background: var(--accent); border-color: var(--accent); }
button.ghost { background: transparent; color: var(--muted); border-color: var(--rule); }
button.ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
button.danger { background: transparent; color: var(--accent); border-color: var(--accent); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }

.notice { background: #fff8e6; border: 1px solid #e6d9ae; padding: .9rem 1rem; margin: 1.25rem 0; font-size: .92rem; }
.error { background: #fdeeee; border: 1px solid #e8bcbc; color: #7a1a1a; padding: .9rem 1rem; margin: 1.25rem 0; font-size: .92rem; }

.queue-item { background: var(--card); border: 1px solid var(--rule); padding: 1rem 1.1rem; margin-bottom: .85rem; }
.queue-item h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; }
.queue-item h3 a { color: inherit; text-decoration: none; }
.queue-item .snippet { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
.tally { display: flex; gap: 1.5rem; margin: 1.5rem 0; font-family: ui-sans-serif, system-ui, sans-serif; }
.tally div { font-size: .85rem; color: var(--muted); }
.tally strong { display: block; font-size: 1.7rem; color: var(--ink); font-family: Iowan Old Style, Georgia, serif; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.thumbs label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; text-align: center; }
.thumbs img { width: 130px; height: 100px; object-fit: cover; border: 1px solid var(--rule); }
.thumbs .pdf { width: 130px; height: 100px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--paper); color: var(--muted); }

footer.foot { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 1.5rem 0 3rem; color: var(--muted); font-size: .82rem; }
footer.foot p { margin: 0 0 .5rem; }

@media (prefers-color-scheme: dark) {
  :root { --paper:#141310; --ink:#ece7dc; --muted:#928b7c; --rule:#332f28; --accent:#e0736b; --card:#1c1a16; }
  .notice { background:#241f12; border-color:#4a3f22; }
  .error { background:#2a1616; border-color:#5a2a2a; color:#f0b4b0; }
  .editor-note { color:#c9c2b4; }
}
