/* First Chair — book palette: saddle leather, cognac, gold foil, warm paper.
   Mirrors package/site/index.html so the app feels like the book. */
:root {
  --leather: #3B2216; --leather-2: #4A2C1C; --cognac: #9E5630; --foil: #D9B56E;
  --paper: #FBF8F3; --card: #FFFFFF; --ink: #2A1D16; --ink-2: #6B5A4E; --rule: #E7DDD0;
  --on-leather: #F4E9D8; --on-leather-2: #CDB9A1;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.05rem; }
a { color: var(--cognac); }
.muted { color: var(--ink-2); }
.eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cognac); }

.topbar { background: var(--leather); color: var(--on-leather); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-left)); flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-leather); text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
.brand img { border-radius: 6px; }
.topnav { display: flex; gap: 16px; flex-wrap: wrap; }
.topnav a { color: var(--on-leather-2); text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: var(--foil); }

.view { max-width: 860px; margin: 0 auto; padding: 20px 16px 32px; display: grid; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; }
.hero-card { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.cover-sm { width: 110px; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.sub { color: var(--ink-2); margin: 0 0 8px; }
.stats strong { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 1rem; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; }
.btn-ink { background: var(--cognac); color: #FFF8EF; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); margin: 6px 4px 0 0; }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.file-btn { margin-top: 10px; }

/* 2x2 edition grid (Chris, 2026-10-26): Dad row on top, Grandpa row below.
   Same rule anywhere all four editions show together. */
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; max-width: 560px; }
@media (max-width: 420px) { .edition-grid { grid-template-columns: 1fr; max-width: none; } }
.edition { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; display: grid; gap: 6px; text-align: left; cursor: pointer; font-family: var(--body); }
.edition:hover { border-color: var(--cognac); }
.edition img { width: 100%; border-radius: 3px 6px 6px 3px; }
.ed-title { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.ed-badge { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--cognac); }
.ed-sub { font-size: .9rem; color: var(--ink-2); }

.week-list { list-style: none; margin: 12px 0; padding: 0; }
.week-list li { border-bottom: 1px solid var(--rule); }
.week-list a { display: flex; gap: 12px; align-items: baseline; padding: 10px 2px; text-decoration: none; color: var(--ink); }
.week-list .wk { font-weight: 700; color: var(--cognac); white-space: nowrap; font-size: .9rem; }
.week-list .wt { flex: 1; font-family: var(--display); }
.week-list .flags { color: var(--ink-2); font-size: .85rem; white-space: nowrap; }

.week-card section { margin: 18px 0; }
.verse blockquote { font-family: var(--display); font-style: italic; font-size: 1.15rem; margin: 0; }
.verse .ref { color: var(--ink-2); }
.prayer { font-family: var(--display); font-style: italic; }
.journal .prompt { font-weight: 600; }
textarea, input[type="text"], input[type="date"] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
textarea:focus, input:focus { outline: 3px solid var(--foil); outline-offset: 1px; }
.save-state { color: var(--ink-2); font-size: .85rem; min-height: 1.2em; }
.done-line { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; display: grid; gap: 6px; }
.photo-grid img { width: 100%; border-radius: 8px; }
.mini { font-size: .8rem; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.week-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.milestone { border-bottom: 1px solid var(--rule); padding: 12px 0; display: grid; gap: 8px; }
.milestone label { font-size: .9rem; color: var(--ink-2); display: grid; gap: 4px; }
.letter { margin: 18px 0; }
.help-list li { margin: 8px 0; }

.foot { max-width: 860px; margin: 0 auto; padding: 8px 16px 40px; color: var(--ink-2); font-size: .9rem; }
.privacy-note { margin-top: 2px; }

.print-only { display: none; }
@media print {
  body.printing .topbar, body.printing .view, body.printing .foot { display: none; }
  body.printing .print-only { display: block; font-family: Georgia, serif; color: #000; }
  body.printing .print-only section { page-break-inside: avoid; margin-bottom: 24px; }
}
.loading { color: var(--ink-2); }
