:root {
  --bg: #f4f7f8;
  --card: #fff;
  --ink: #1b3a4b;
  --muted: #5a6a73;
  --teal: #0d7377;
  --line: #d0d7de;
  --danger: #9b2c2c;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, sans-serif; background: var(--bg); color: #222; }
nav {
  display: flex; gap: 1rem; align-items: center;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem;
}
nav a, nav .who { color: #fff; text-decoration: none; font-size: .92rem; }
nav a:hover { text-decoration: underline; }
.spacer { flex: 1; }
.who { color: #c5d4dc; }
main { max-width: 920px; margin: 1.4rem auto; padding: 0 1rem 3rem; }
h1 { color: var(--ink); font-size: 1.5rem; margin: 0 0 .6rem; }
h2 { color: var(--teal); font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.flash { background: #e6f4f1; border: 1px solid #b7ddd7; padding: .6rem .8rem; margin-bottom: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.1rem; margin: .6rem 0; }
label { display: block; font-size: .8rem; color: var(--muted); margin: .55rem 0 .15rem; }
input, select, textarea, button {
  font: inherit; padding: .45rem .55rem; border: 1px solid var(--line); background: #fff;
}
input, select, textarea { width: 100%; }
textarea { min-height: 110px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
button, .btn {
  background: var(--teal); color: #fff; border: 0; padding: .5rem .9rem;
  text-decoration: none; display: inline-block; cursor: pointer;
}
button.link { background: none; color: #fff; border: 0; padding: 0; cursor: pointer; }
.btn.sec { background: var(--ink); }
.muted { color: var(--muted); font-size: .88rem; }
.item { border-left: 3px solid var(--line); padding: .45rem 0 .45rem .85rem; margin: .75rem 0; }
.item .meta { color: var(--muted); font-size: .78rem; }
.tag {
  display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .12rem .45rem; border-radius: 2px; margin-bottom: .15rem;
}
.item--note { border-left-color: #0d7377; }
.item--note .tag { background: #e6f4f1; color: #0d7377; }
.item--study { border-left-color: #3d5a80; }
.item--study .tag { background: #e8eef5; color: #3d5a80; }
.item--internment { border-left-color: #8a5a2b; }
.item--internment .tag { background: #f4eee6; color: #8a5a2b; }
.item--event { border-left-color: #5a6a73; }
.item--event .tag { background: #eceff1; color: #5a6a73; }
.inline { display: inline; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
a { color: var(--teal); }
a.icon { display: inline-flex; align-items: center; margin-left: .35rem; color: var(--muted); vertical-align: middle; }
a.icon:hover { color: var(--teal); }
a.thumb { display: inline-flex; flex-direction: column; gap: .3rem; max-width: 280px; text-decoration: none; }
a.thumb img { max-width: 280px; max-height: 200px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
