/* jppopham.com — one stylesheet, made with (the spirit of) Notepad */
:root { --accent: #2f5d34; --ink: #2b2218; --brown: #5a4632; --paper: #fffdf6; --tan: #f6efdc; --line: #cbbd9c; }
* { box-sizing: border-box; }
body { margin: 0; background-color: #e9dfc7; background-image: repeating-linear-gradient(45deg, rgba(90,70,50,.06) 0 2px, transparent 2px 10px); font-family: Georgia, "Times New Roman", serif; color: var(--ink); }
a { color: #1a3d8f; } a:hover { color: #8a1c1c; } a:visited { color: #5b2a86; }
img { max-width: 100%; }

.wrap { padding: 32px 16px 48px; }
.page { max-width: 980px; margin: 0 auto; background: var(--paper); border: 3px double var(--brown); box-shadow: 6px 6px 0 rgba(90,70,50,.25); }

/* header */
.site-head { padding: 28px 32px 20px; border-bottom: 3px double var(--brown); text-align: center; background: var(--tan); }
.site-head h1 { margin: 0; font-size: 52px; line-height: 1.05; letter-spacing: 1px; }
.site-head h1 a, .site-head h1 a:visited { color: var(--accent); text-decoration: none; }
.site-head p { margin: 10px 0 0; font-size: 18px; font-style: italic; color: #4a3b2a; }
.site-head.small { padding: 20px 32px 14px; }
.site-head.small h1 { font-size: 34px; letter-spacing: 0; }
.site-head.small p { margin-top: 6px; font-size: 15px; }

/* nav: beveled 98-style buttons */
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 16px; background: #d4d0c8; border-bottom: 2px solid var(--brown); }
.btn, .btn:visited { display: inline-block; padding: 8px 16px; min-height: 44px; line-height: 26px; background: #e4e0d8; border: 2px outset #f4f2ee; color: #1b1b1b; text-decoration: none; font-family: Verdana, sans-serif; font-size: 13px; font-weight: bold; cursor: pointer; }
.btn:hover { color: #1b1b1b; background: #ece8e0; }
.btn.on, .btn[aria-pressed="true"] { background: #c8c4bc; border-style: inset; }

/* layouts */
.cols { display: flex; flex-wrap: wrap; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px; border-right: 1px dashed #b7a582; }
.side { flex: 1 1 260px; padding: 28px 24px; background: var(--tan); font-family: Verdana, sans-serif; font-size: 13px; line-height: 1.55; display: flex; flex-direction: column; gap: 24px; }
.side section > p { margin: 0; }
.narrow { max-width: 760px; margin: 0 auto; padding: 36px 24px 40px; }
.bar { margin: 0 0 8px; padding: 4px 8px; background: var(--accent); color: #fffdf6; font-family: Verdana, sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.mono { font-family: "Courier New", monospace; }
.checklist { list-style: none; margin: 0; padding: 0; font-family: "Courier New", monospace; font-size: 14px; line-height: 1.8; }
.side ul:not(.checklist) { margin: 0; padding-left: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.badge88 { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 31px; border: 1px solid #000; font-size: 9px; font-weight: bold; text-align: center; line-height: 1.1; }

/* entries */
.entry { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.entry:last-of-type { border-bottom: 0; margin-bottom: 0; }
.meta { margin: 0; font-family: Verdana, sans-serif; font-size: 12px; color: var(--brown); text-transform: uppercase; letter-spacing: 1px; }
.entry h2 { margin: 6px 0 10px; font-size: 30px; line-height: 1.15; }
.entry h2 a, .entry h2 a:visited { color: var(--accent); }
.entry p { font-size: 18px; line-height: 1.6; margin: 0 0 12px; }
.small-link { font-family: Verdana, sans-serif; font-size: 13px; }
h2.page-title { margin: 16px 0 8px; font-size: 40px; line-height: 1.1; color: var(--accent); }
.lede { margin: 0 0 28px; font-size: 18px; line-height: 1.65; }

/* single post */
.post { max-width: 680px; margin: 0 auto; padding: 36px 24px 40px; }
.post h2 { margin: 8px 0 20px; font-size: 40px; line-height: 1.1; color: var(--accent); }
.post p, .post li { font-size: 19px; line-height: 1.7; }
.post p { margin: 0 0 18px; }
.post h3 { margin: 32px 0 10px; font-size: 24px; border-bottom: 1px dotted #b7a582; padding-bottom: 4px; }
.dropcap { float: left; font-size: 64px; line-height: .85; padding: 6px 8px 0 0; color: var(--accent); font-weight: bold; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: Verdana, sans-serif; font-size: 13px; }

/* retro readouts */
.readout { background: #111; border: 3px inset #888; padding: 12px 18px; text-align: center; }
.readout .label { margin: 0 0 4px; font-family: Verdana, sans-serif; font-size: 11px; letter-spacing: 2px; color: #c9c9c9; }
.readout .num { margin: 0; font-family: "Courier New", monospace; font-size: 40px; font-weight: bold; color: #7CFC00; }

/* tables */
.tablebox { overflow-x: auto; border: 2px inset var(--line); margin-bottom: 32px; }
table.ledger { width: 100%; min-width: 520px; border-collapse: collapse; font-family: "Courier New", monospace; font-size: 15px; }
.ledger th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--brown); background: #d4d0c8; }
.ledger td { padding: 8px 12px; border-bottom: 1px dotted #b7a582; }
.ledger tbody tr:nth-child(even) { background: var(--tan); }
.ledger .num { text-align: right; }
.ledger tfoot td { background: #f3e6b8; font-weight: bold; border-top: 2px solid var(--brown); border-bottom: 0; }
.ledger .unfound { color: var(--brown); }

/* compendium cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding: 10px; background: #d4d0c8; border: 2px outset #f4f2ee; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.card { background: var(--paper); border: 2px solid var(--brown); box-shadow: 4px 4px 0 rgba(90,70,50,.3); display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--ink); color: #f3e6b8; font-family: "Courier New", monospace; font-size: 14px; font-weight: bold; }
.type { padding: 2px 8px; font-size: 11px; color: #fff; border: 1px solid #f3e6b8; }
.card img { display: block; height: 190px; width: calc(100% - 20px); margin: 10px; object-fit: cover; border: 2px inset var(--line); }
.card-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.sci { margin: 0; font-size: 15px; font-style: italic; color: #4a3b2a; }
.card dl { margin: 4px 0 0; display: grid; grid-template-columns: 74px 1fr; gap: 4px 8px; font-family: Verdana, sans-serif; font-size: 12px; line-height: 1.45; }
.card dt { font-weight: bold; color: var(--brown); }
.card dd { margin: 0; }
.fact { margin: 4px 0 0; padding: 8px 10px; background: var(--tan); border: 1px dashed #b7a582; font-family: Verdana, sans-serif; font-size: 12px; line-height: 1.5; }

.site-foot { border-top: 3px double var(--brown); padding: 18px 24px; text-align: center; font-family: Verdana, sans-serif; font-size: 12px; color: #4a3b2a; background: var(--tan); }
.site-foot p { margin: 0 0 4px; }

@media (max-width: 600px) {
  .site-head h1 { font-size: 36px; }
  .main { padding: 24px 18px; border-right: 0; }
  .narrow, .post { padding: 24px 18px 32px; }
  .post h2, h2.page-title { font-size: 32px; }
}
