:root {
  color-scheme: dark;
  --background: #191610;
  --panel: #221d16;
  --text: #f4e7d1;
  --muted: #cabba1;
  --gold: #e4b579;
  --line: #594735;
  font-family: Georgia, serif;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--gold); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, .button, select, input, textarea { border: 1px solid var(--line); border-radius: .25rem; }
button, .button, input, select { min-height: 44px; }
button, .button { display: inline-flex; align-items: center; padding: .55rem 1rem; cursor: pointer; background: var(--gold); color: #271a11; text-decoration: none; }
.secondary { color: var(--gold); background: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.masthead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .9rem max(1.25rem, calc((100% - 68rem) / 2)); gap: .6rem 1rem; }
.wordmark { color: var(--text); font-size: 1.12rem; text-decoration: none; }
nav { display: flex; gap: 1.1rem; }
nav a { display: grid; align-items: center; min-height: 44px; }
.hero { display: grid; align-items: end; min-height: clamp(25rem, 58vw, 39rem); padding: 3.5rem max(1.25rem, calc((100% - 68rem) / 2)); background: linear-gradient(90deg, #130f0aee, #17110cbb 32%, #120c0720 90%), url("assets/concept/tda-everyday-bookshop.png") center 53% / cover; }
h1, h2, h3, p { margin: 0 0 .85rem; }
h1 { font-size: clamp(3.1rem, 8vw, 6rem); line-height: .97; font-weight: 400; letter-spacing: -.045em; }
.hero p { margin: 1.15rem 0 1.4rem; font-size: 1.12rem; }
.section { width: min(68rem, calc(100% - 2.5rem)); margin-inline: auto; padding: 3rem 0; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 400; letter-spacing: -.035em; }
.eyebrow { color: var(--gold); font: 600 .73rem system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin-top: 1.4rem; }
.book { display: grid; align-content: space-between; gap: .9rem; min-height: 8rem; text-align: left; color: var(--text); background: var(--panel); padding: 1rem; border-left: 3px solid #a56d48; }
.book:hover, .book[aria-pressed="true"] { background: #382a20; border-color: var(--gold); }
.book strong { font-size: 1.22rem; font-weight: 400; }
.book small, .muted { color: var(--muted); }
.reader { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; margin-top: 1.5rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); background: #211b14; }
#book-title { font-size: clamp(1.6rem, 5vw, 2.55rem); font-weight: 400; }
.excerpt { font-size: 1.18rem; line-height: 1.8; white-space: pre-line; }
details { border-top: 1px solid var(--line); padding: .65rem 0; }
summary { cursor: pointer; color: var(--gold); padding: .25rem 0; }
details p { color: var(--muted); line-height: 1.55; margin-top: .5rem; }
.notebook { align-self: start; padding: 1rem; background: #2d2218; }
.notebook label { font-size: 1.35rem; display: block; margin-bottom: .65rem; }
#note-prompt { font-style: italic; color: var(--muted); line-height: 1.5; }
textarea, input, select { display: block; width: 100%; padding: .65rem; color: var(--text); background: #15120e; }
textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
#note-status { margin: .6rem 0 0; }
.places { border-top: 1px solid var(--line); }
#place-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .8rem; margin: 1.4rem 0; }
#place-search :is(input, select) { margin-top: .4rem; }
#places-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.place { border: 1px solid var(--line); background: var(--panel); padding: 1rem; }
.place h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: .45rem; }
.place p { color: var(--muted); margin-bottom: .65rem; }
.place a { display: inline-block; padding-block: .45rem; }
.place a + a { margin-left: .8rem; }
#place-source { margin-top: 1rem; font-size: .88rem; }
footer { color: var(--muted); padding: 1.5rem; text-align: center; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .reader, #place-search { grid-template-columns: 1fr; }
  .hero { background-position: 54% center; }
}
#related { display: flex; flex-wrap: wrap; gap: .5rem; }
