/* Shared by the main Jekyll site and the Hugo notes site. */
:root {
  --site-font: "Museo Sans", "MuseoSans", "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --site-bg: #fff;
  --site-text: #41484c;
  --site-muted: #60696d;
  --site-accent: #367447;
  --site-hover: #245432;
  --site-border: #e3e6e3;
  --site-surface: #f6f7f6;
  --global-bg-color: var(--site-bg);
  --global-text-color: var(--site-text);
  --global-link-color: var(--site-accent);
  --global-link-color-hover: var(--site-hover);
  --global-link-color-visited: var(--site-accent);
  --global-footer-bg-color: var(--site-bg);
}
html[data-theme="dark"] {
  --site-bg: #242828;
  --site-text: #e5e9e6;
  --site-muted: #b4bdb7;
  --site-accent: #9dc9a7;
  --site-hover: #c2e4ca;
  --site-border: #48504a;
  --site-surface: #303632;
  --global-bg-color: var(--site-bg);
  --global-text-color: var(--site-text);
  --global-link-color: var(--site-accent);
  --global-link-color-hover: var(--site-hover);
  --global-link-color-visited: var(--site-accent);
  --global-footer-bg-color: var(--site-bg);
}
html { scroll-padding-top: 5rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 4px; }
.page__content { line-height: 1.7; }
.page__content h2 { font-weight: 600; }
.page__footer { border-top: 1px solid var(--site-border); }
.personal-interests { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
.personal-interests section { min-width: 0; }
.personal-interests iframe { max-width: 100%; border: 0; }
.personal-interests p { font-size: .9em; }
.reading-challenge { padding: 1rem; background: #fff; color: #41484c; border: 1px solid var(--site-border); }
.reading-challenge a { color: #367447; }
.reading-challenge::after, .bookshelf::after { content: ""; display: table; clear: both; }
.bookshelf { margin-top: 1.5rem; }
.gr_grid_book_container { display: inline-block; padding: 0 .5rem .5rem 0; }
.notes-site { box-sizing: border-box; max-width: 780px; padding: 0 1.25rem; margin: 0 auto; font: 17px/1.7 var(--site-font); color: var(--site-text); background: var(--site-bg); overflow-wrap: break-word; }
.notes-site h1, .notes-site h2, .notes-site h3, .notes-site h4 { font-family: var(--site-font); color: var(--site-text); font-weight: 600; line-height: 1.3; }
.notes-site h1 { font-size: 1.9rem; }
.notes-site h2 { font-size: 1.4rem; }
.notes-site h3 { font-size: 1.15rem; }
.notes-site a { color: var(--site-accent); text-decoration: none; }
.notes-site a:hover { color: var(--site-hover); text-decoration: underline; }
.notes-site p { margin: 0 0 1.25rem; }
.notes-site main { font-size: 1em; line-height: 1.7; }
.site-header { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; margin-bottom: 2rem; border-bottom: 1px solid var(--site-border); }
.site-header .site-name { margin-right: auto; font-weight: 700; color: var(--site-text); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: .9rem; }
.site-header nav a { color: var(--site-muted); }
.site-header nav a[aria-current="page"] { color: var(--site-text); text-decoration: underline; text-underline-offset: .4rem; }
.site-header button { background: none; border: 0; color: var(--site-muted); cursor: pointer; font: inherit; padding: 0; }
.notes-site .article-meta { background: none; text-align: left; padding: 0 0 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--site-border); }
.notes-site .article-meta .date { font-size: .85rem; font-weight: 400; }
.notes-site .article-meta .title { font: inherit; }
.notes-site .date, .notes-site .article-meta .date, .notes-site footer, .notes-site .post-nav-label { color: var(--site-muted); font-family: var(--site-font); }
.notes-site .home-intro p, .notes-site .post-nav-title { color: var(--site-text); }
.notes-site blockquote { color: var(--site-muted); border-color: var(--site-border); }
.notes-site hr, .notes-site table, .notes-site th, .notes-site .post-nav, .notes-site #cusdis_thread { border-color: var(--site-border); }
.notes-site code, .notes-site pre { font-family: Monaco, Consolas, monospace; background: var(--site-surface); color: var(--site-text); }
.notes-site pre { border-radius: 0; border-color: var(--site-border); box-shadow: none; }
.notes-site pre code { background: transparent; }
.notes-site table { display: block; overflow-x: auto; }
.notes-site thead, .notes-site tr:nth-child(even) { background: var(--site-surface); }
.notes-site footer { text-align: left; font-size: .8rem; padding: 1.5rem 0; margin-top: 3rem; }
.notes-site hr { border: 0; border-top: 1px solid var(--site-border); }
.notes-site blockquote { background: none; }
.notes-site #reading-progress { position: fixed; top: 0; left: 0; width: 0; height: 2px; background: var(--site-accent); z-index: 9999; pointer-events: none; }
.notes-site #cusdis_thread { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--site-border); }
.notes-site #cusdis_thread iframe { width: 100%; border: 0; }
.notes-site .post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--site-border); }
.notes-site .post-nav-link { display: flex; flex-direction: column; max-width: 48%; }
.notes-site .post-nav-next { text-align: right; margin-left: auto; }
.notes-site .post-nav-label { font-size: .8rem; }
.post-list { padding: 0; list-style: none; }
.post-list li { padding: .8rem 0; border-bottom: 1px solid var(--site-border); }
.post-list .date { display: block; font-size: .8rem; }
@media (max-width: 600px) {
  .personal-interests { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .notes-site { font-size: 16px; }
  .site-header { gap: .75rem; }
  .site-header nav { width: 100%; gap: .85rem; }
}
