:root {
    --paper: #f5f2e9;
    --ink: #172927;
    --muted: #59645e;
    --gold: #9b7b43;
    --rust: #733f35;
    --line: #d6d5ca;
    --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Arial, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: .75rem; background: white; }
.skip:focus { top: .75rem; }
.masthead { background: var(--ink); color: #ede6d1; padding: .65rem max(5%, calc((100% - 1220px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; }
.masthead a { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.monogram { border: 1px solid #b8a176; display: inline-grid; place-items: center; width: 32px; height: 32px; font: 17px var(--serif); letter-spacing: -1px; }
.site-header { max-width: 1220px; margin: auto; padding: 1.6rem 0; width: 90%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; font: clamp(1.45rem, 3.5vw, 1.85rem)/1 var(--serif); text-decoration: none; }
.coin-logo { display: block; width: clamp(4.25rem, 8vw, 6rem); height: auto; border: 1px solid var(--line); }
.wordmark-byline { display: block; font: .6rem Arial, sans-serif; letter-spacing: .16em; margin-top: .6rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .79rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--rust); text-decoration: underline; }
.wrap { width: 90%; max-width: 1220px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 5%; padding: clamp(3rem, 7vw, 7rem) 0; }
.eyebrow { color: var(--rust); font-size: .67rem; font-weight: 700; letter-spacing: .15em; }
h1, h2 { font-family: var(--serif); font-weight: normal; line-height: 1.1; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); margin: .4em 0; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); }
.hero h1 span { color: var(--rust); }
.deck { font: clamp(1.15rem, 2vw, 1.55rem) var(--serif); color: var(--muted); margin: 0 0 1.6rem; }
.button { display: inline-block; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: .7rem 1.15rem; font: 600 .85rem/1.6 Arial, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--rust); border-color: var(--rust); }
.coin-feature { width: 100%; max-width: 32rem; margin: 0; padding: clamp(.65rem, 2vw, 1rem); background: #e8e4d8; border: 1px solid #c8c3b0; }
.coin-feature a, .coin-feature img { display: block; }
.coin-feature img { width: 100%; height: auto; }
.coin-feature figcaption { margin-top: .65rem; color: var(--muted); font-size: .78rem; }
.reading { max-width: 860px; padding: 2.5rem 0 4rem; }
.entry { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.entry:target { border-top: 3px solid var(--gold); }
.entry h2 { font-size: 1.8rem; margin: 0 0 .6rem; }
.entry p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: 1.24rem/1.65 var(--serif); }
.entry a { display: inline-block; margin-top: .7rem; color: var(--rust); font-size: .85rem; }
.collection-links { display: grid; margin: 1rem 0; border-top: 1px solid var(--line); }
.collection-links a { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
footer { border-top: 1px solid var(--line); padding: 1.4rem 5%; display: flex; gap: 1.5rem; font-size: .8rem; }
.editor { max-width: 940px; padding: 2.5rem 0 4rem; }
.editor-heading, .actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.editor-heading { justify-content: space-between; }
.editor h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.entry-form { display: grid; gap: 1rem; max-width: 760px; }
label { display: grid; gap: .35rem; font-weight: 600; }
label span { font-size: .8rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid #aaa99c; border-radius: 0; padding: .6rem .75rem; background: #fffdf8; width: 100%; }
textarea { resize: vertical; }
.filters { display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: .75rem; margin: 1rem 0; }
.notice { border-left: 4px solid var(--gold); background: #ebe6d7; padding: .75rem 1rem; }
.edit-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding: .85rem 0; text-decoration: none; }
.edit-row:hover { color: var(--rust); }
.entry-summary { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 760px) {
    .site-header { flex-direction: column; align-items: flex-start; }
    .hero { grid-template-columns: 1fr; gap: 2rem; }
    .filters { grid-template-columns: 1fr; }
    .edit-row { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; }
    .edit-row .eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .masthead > span { display: none; }
}
