:root {
  color-scheme: light;
  --desktop: #397b78;
  --chrome: #d4d4cc;
  --paper: #fafaf3;
  --ink: #242824;
  --muted: #585e58;
  --navy: #000080;
  --accent: #2848ce;
  --line: #c7cbc3;
  --shadow: #777b74;
  --selected: #e5ebf9;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, main:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 10; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.icon { width: 36px; height: 36px; flex-shrink: 0; vertical-align: middle; }
.avatar-icon { object-fit: contain; }
.window { height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; background: var(--chrome); }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; min-height: 34px; background: linear-gradient(90deg, #000080, #315e9a); color: white; font-size: 13px; }
.titlebar > span:first-child { display: flex; align-items: center; gap: 7px; }
.titlebar .icon { width: 22px; height: 22px; }
.edition { font: 10px 'Courier New', monospace; letter-spacing: 1px; white-space: nowrap; color: #e3ebfb; }
.workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 0; border-top: 1px solid #f5f6ed; }
.sidebar { min-height: 0; overflow-y: auto; background: #eceee5; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 12px 20px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; text-decoration: none; color: var(--ink); font-size: 13px; border: 1px solid transparent; }
.sidebar nav .icon { width: 27px; height: 27px; }
.sidebar nav a:hover { background: #f8f9f1; border-color: #d6d8d0; }
.sidebar nav a[aria-current] { background: var(--selected); border: 1px dotted #637295; color: #132d76; }
.sidebar-bottom { margin-top: auto; padding: 50px 9px 0; font-size: 11px; display: grid; gap: 13px; }
.sidebar-bottom > span { color: var(--muted); line-height: 1.5; }
.sidebar-bottom .outlink { font-size: 12px; }
main { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; background: var(--paper); padding: clamp(15px, 2.5vw, 36px) clamp(22px, 5vw, 72px) clamp(30px, 5vw, 72px); min-width: 0; }
.page-content { width: 100%; max-width: 1040px; margin-inline: auto; }
p { line-height: 1.7; margin: 0 0 18px; }
h1 { font-family: 'Trebuchet MS', Tahoma, sans-serif; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -1.8px; margin: 0 0 23px; }
h2 { font-size: 17px; line-height: 1.4; margin: 0 0 14px; }
.eyebrow { font: 10px/1.5 'Courier New', monospace; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 19px; }
.intro { font-size: 25px; letter-spacing: -.6px; line-height: 1.3; margin-bottom: 20px; }
.lead { color: #474e47; font-size: 15px; line-height: 1.8; max-width: 540px; }
.welcome { padding-bottom: 39px; }
.home-greeting { display: flex; align-items: center; gap: 14px; }
.greeting-wave { flex-shrink: 0; font-size: .9em; line-height: 1; letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 15px; min-height: 40px; border: 1px solid; border-color: #fff #72786d #72786d #fff; box-shadow: inset -1px -1px #a5aa9d, inset 1px 1px #f5f6ec; background: #e8eadf; text-decoration: none; font-size: 12px; color: var(--ink); }
.button:hover { color: var(--ink); background: #dce0d0; }
.button:active { border-color: #72786d #fff #fff #72786d; box-shadow: none; }
.button.primary { outline: 1px solid #4b5149; outline-offset: 2px; font-weight: bold; }
.section-heading { display: flex; gap: 15px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: 12px; white-space: nowrap; }
.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 15px; gap: 14px; align-items: center; padding: 20px 9px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.project-row:hover { background: #eef1e7; color: var(--navy); }
.project-row strong { font-size: 15px; display: block; margin-bottom: 5px; }
.project-row small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.tag { border: 1px solid #c6cbbf; padding: 4px 7px; font: 10px 'Courier New', monospace; color: #4a5546; background: #eef0e8; }
.bottom-note { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.bottom-note p { font-size: 11px; margin: 0; color: var(--muted); }
.online-dot { width: 6px; height: 6px; background: #508851; flex-shrink: 0; }
.statusbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; margin: 5px; font-size: 11px; color: #42493e; }
.statusbar > * { min-width: 0; border: 1px solid; border-color: #9b9e93 #f5f6ed #f5f6ed #9b9e93; padding: 5px 8px; }
.statusbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statusbar time { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.document-heading { display: flex; gap: 20px; align-items: center; margin: 4px 0 25px; }
.document-heading .icon { width: 58px; height: 58px; }
.document-heading .eyebrow { margin-bottom: 8px; }
.document-heading h1 { margin: 0; font-size: clamp(30px, 3vw, 40px); }
.about-grid, .case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 35px; margin-top: 32px; }
.about-grid section > p, .case-grid section > p { font-size: 14px; }
.case-grid h2:not(:first-child) { margin-top: 28px; }
.property-sheet { align-self: start; background: #eef0e7; border: 1px solid #c7cbc0; padding: 20px; }
.property-sheet h2 { font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid #c7cbc0; }
dl { margin: 0; }
dt { font-size: 11px; color: var(--muted); margin: 18px 0 5px; }
dd { font-size: 13px; line-height: 1.6; margin: 0; }
.tiny { font: 10px/1.6 'Courier New', monospace; margin: 25px 0 0; color: var(--muted); }
.outlink { display: inline-block; font-size: 13px; }
.list-header { display: grid; grid-template-columns: 1fr 118px; margin-top: 35px; padding: 8px 12px; background: #e8eadf; border: 1px solid; border-color: white #a0a599 #a0a599 white; font-size: 11px; }
.inset-note { margin: 28px 0; padding: 20px; border-left: 3px solid #7d9688; background: #f0f2e9; font-size: 13px; }
.inset-note p { margin: 6px 0 0; }
.breadcrumbs { margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.narrow { max-width: 610px; }
.link-panel { margin: 35px 0; border: 1px solid var(--line); padding: 25px; background: #eff1e9; }
.link-panel .outlink { margin: 8px 25px 0 0; }
.quiet-note { font-size: 12px; color: var(--muted); }
@media (max-width: 1150px) {
  .workspace { grid-template-columns: 155px minmax(0, 1fr); }
  main { padding: 16px 27px 32px; }
  .about-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .property-sheet dl { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; gap: 10px; }
  .property-sheet dt { margin: 0; }
}
@media (max-width: 720px) {
  .edition { display: none; }
  .workspace { display: flex; flex-direction: column; min-height: 0; }
  .sidebar { flex-shrink: 0; border-right: 0; padding: 7px; border-bottom: 1px solid var(--line); }
  .sidebar-bottom { margin-top: 7px; padding: 5px 8px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .sidebar-bottom > span { margin-right: auto; font-size: 10px; }
  .sidebar-bottom .outlink { font-size: 11px; }
  .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .sidebar nav a { padding: 8px 1px; display: flex; flex-direction: column; gap: 5px; font-size: 11px; min-height: 60px; text-align: center; }
  .sidebar nav .icon { width: 25px; height: 25px; }
  main { flex: 1; padding: 15px 22px 25px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  h1 { font-size: 39px; }
  .intro { font-size: 23px; }
  .welcome { padding-bottom: 33px; }
  .lead { font-size: 14px; }
  .actions { gap: 16px; }
  .button { min-height: 44px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading > a { font-size: 11px; }
  .project-row { grid-template-columns: 33px minmax(0, 1fr) 12px; padding: 18px 0; gap: 10px; }
  .project-row .icon { width: 30px; height: 30px; }
  .project-row .tag { display: none; }
  .statusbar { grid-template-columns: 1fr; }
  .statusbar time { text-align: left; }
  .document-heading { gap: 13px; }
  .document-heading .icon { width: 44px; height: 44px; }
  .document-heading h1 { font-size: 30px; letter-spacing: -1.1px; }
  .property-sheet { padding: 18px; }
  .property-sheet dl { grid-template-columns: 1fr; gap: 0; }
  .property-sheet dt { margin: 14px 0 4px; }
  .list-header { grid-template-columns: 1fr; }
  .list-header span:last-child { display: none; }
}
@media (max-width: 360px) {
  main { padding: 13px 16px 26px; }
  h1 { font-size: 34px; }
  .intro { font-size: 21px; }
  .section-heading { flex-wrap: wrap; gap: 6px; }
}

.sidebar-bottom a { min-height: 32px; display: flex; align-items: center; }
.sidebar a:focus-visible { outline-offset: -3px; }
.breadcrumbs { display: block; }

/* Locally cached reading history: no browser requests to Hardcover. */
.books-toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.books-toolbar .lead { margin: 0; }
.books-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 10px 12px; margin: 0 0 24px; border: 1px solid; border-color: #fff #a0a599 #a0a599 #fff; background: #e8eadf; font-size: 11px; color: #474e47; }
.bookshelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 26px 20px; list-style: none; padding: 0; margin: 0; }
.bookshelf li { min-width: 0; }
.book-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; border: 1px solid #c7cbc0; background: #f0f2e9; padding: 9px; box-shadow: inset 1px 1px #fff; }
.book-card:hover { color: var(--ink); background: #e5ebf9; border-color: #8997b6; }
.book-card:focus-visible { outline-offset: 3px; }
.book-cover { flex-shrink: 0; aspect-ratio: 2 / 3; overflow: hidden; display: grid; place-items: center; background: #e1e5d9; border: 1px solid #b9beb2; }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px; gap: 16px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cover-placeholder .icon { width: 48px; height: 48px; }
.book-caption { margin-top: auto; padding: 13px 3px 3px; }
.book-caption h2 { font-size: 14px; margin: 0 0 7px; overflow-wrap: anywhere; }
.book-author { font-size: 12px; line-height: 1.5; margin: 0 0 13px; color: #535b50; overflow-wrap: anywhere; }
.book-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; line-height: 1.5; }
.book-rating { font-size: 12px; color: #544116; }
.rating-total, .unrated, .book-meta time { color: #535b50; }
@media (max-width: 720px) {
  .bookshelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .book-card { padding: 6px; }
  .book-caption h2 { font-size: 13px; }
  .book-meta { gap: 5px; }
}
@media (max-width: 340px) { .bookshelf { grid-template-columns: minmax(0, 1fr); } }

/* Shared content + properties layout, matching About's Personal properties card. */
.about-grid > section { min-width: 0; }
.property-sheet a { overflow-wrap: anywhere; }
