:root {
    --bg: #f3efe6;
    --paper: #fffdf8;
    --ink: #2b2620;
    --muted: #8a7f6e;
    --line: #e2d9c8;
    --accent: #7a4b2a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.55;
}
a { color: var(--accent); }
h1 { font-weight: normal; font-size: 2rem; margin: 0 0 1rem; }
h2 { font-weight: normal; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 .75rem; }
.muted { color: var(--muted); }
.error { color: #a23b2a; margin: .25rem 0 0; font-size: .95rem; }
.flash { background: #ede4d0; border: 1px solid var(--line); padding: .75rem 1rem; border-radius: 4px; }

.site-header {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 860px; margin: 0 auto; padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.3rem; text-decoration: none; color: var(--ink); letter-spacing: .04em; }
.site-header nav { display: flex; gap: 1.25rem; align-items: center; font-family: Helvetica, Arial, sans-serif; font-size: .9rem; }
.site-header nav a { text-decoration: none; }
.site-header form { margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }

main { max-width: 860px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.page-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2.25rem 2.5rem; }
.card.narrow { max-width: 420px; margin: 3rem auto; }
.card.center { text-align: center; }
.seal { font-size: 3rem; margin: 0; }

table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
th { font-family: Helvetica, Arial, sans-serif; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: normal; }
tr:last-child td { border-bottom: 0; }
td.actions { text-align: right; white-space: nowrap; }


label { display: block; margin: 1.25rem 0 .35rem; font-family: Helvetica, Arial, sans-serif; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
label.radio { display: block; margin: .35rem 0; font: inherit; color: var(--ink); }
input[type=text], input[type=password], textarea {
    width: 100%; padding: .6rem .75rem; font: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
textarea { resize: vertical; line-height: 1.6; }
fieldset { border: 0; padding: 0; margin: 1.5rem 0 0; }
legend { font-family: Helvetica, Arial, sans-serif; font-size: .85rem; letter-spacing: .04em; color: var(--muted); padding: 0; margin-bottom: .35rem; }
button[type=submit], .button {
    display: inline-block; margin-top: 1.25rem; padding: .65rem 1.4rem;
    background: var(--accent); color: #fff; border: 0; border-radius: 4px;
    font-family: Helvetica, Arial, sans-serif; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.button { margin-top: 0; }

.letter .meta { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.letter .body { font-size: 1.1rem; line-height: 1.7; }

/* Fixed column widths so both tables line up */
th:nth-child(1) { width: 50%; }

tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f7f2e8; }
tr.clickable td a { color: inherit; text-decoration: none; }
