/* Self-hosted fonts: latin subsets of the Fraunces and Inter variable fonts. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/*
 *                        ___
 *                       /\_ \
 *  _____     ___     ___\//\ \      __
 * /\ '__`\  / __`\  / __`\\ \ \   /'__`\
 * \ \ \_\ \/\ \_\ \/\ \_\ \\_\ \_/\  __/
 *  \ \ ,__/\ \____/\ \____//\____\ \____\
 *   \ \ \/  \/___/  \/___/ \/____/\/____/
 *    \ \_\
 *     \/_/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/poole.
 */


/*
 * Contents
 *
 * Body resets
 * Custom type
 * Messages
 * Container
 * Masthead
 * Posts and pages
 * Pagination
 * Reverse layout
 * Themes
 */


/*
 * Body resets
 *
 * Update the foundational and global aspects of the page.
 */

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;

}
@media (min-width: 38em) {
  html {
    font-size: 20px;
  }
}

body {
  color: #515151;
  background-color: #e5e7e9;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

/* No `:visited` state is required by default (browsers will use `a`) */
a {
  color: #268bd2;
  text-decoration: none;
}
a strong {
  color: inherit;
}
/* `:focus` is linked to `:hover` for basic accessibility */
a:hover,
a:focus {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: .5rem;
  font-weight: bold;
  line-height: 1.25;
  color: #313131;
  text-rendering: optimizeLegibility;
}
h1 {
  font-size: 2rem;
}
h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
}
h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}
h4, h5, h6 {
  margin-top: 1rem;
  font-size: 1rem;
}

/* Body text */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

strong {
  color: #303030;
}


/* Lists */
ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

dt {
  font-weight: bold;
}
dd {
  margin-bottom: .5rem;
}

/* Misc */
hr {
  position: relative;
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--surface);
}

abbr {
  font-size: 85%;
  font-weight: bold;
  color: var(--muted);
  text-transform: uppercase;
}
abbr[title] {
  cursor: help;
  border-bottom: 1px dotted var(--line);
}

/* Code */
code,
pre {
  font-family: Menlo, Monaco, "Courier New", monospace;
}
code {
  padding: .25em .5em;
  font-size: 85%;
  color: var(--code-ink);
  background-color: var(--code-bg);
  border-radius: 3px;
}
pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 1rem;
  font-size: .8rem;
  line-height: 1.4;
  white-space: pre;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
  background-color: var(--code-bg);
}
pre code {
  padding: 0;
  font-size: 100%;
  color: inherit;
  background-color: transparent;
}

/* Pygments via Jekyll */
.highlight {
  margin-bottom: 1rem;
  border-radius: 4px;
}
.highlight pre {
  margin-bottom: 0;
}

/* Gist via GitHub Pages */
.gist .gist-file {
  font-family: Menlo, Monaco, "Courier New", monospace !important;
}
.gist .markdown-body {
  padding: 15px;
}
.gist pre {
  padding: 0;
  background-color: transparent;
}
.gist .gist-file .gist-data {
  font-size: .8rem !important;
  line-height: 1.4;
}
.gist code {
  padding: 0;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}

/* Quotes */
blockquote {
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: var(--muted);
  border-left: .25rem solid var(--line);
}
blockquote p:last-child {
  margin-bottom: 0;
}
@media (min-width: 30em) {
  blockquote {
    padding-right: 5rem;
    padding-left: 1.25rem;
  }
}

img {
  display: block;
  max-width: 100%;
  margin: 0 0 1rem;
  border-radius: 5px;
}

/* Tables */
table {
  margin-bottom: 1rem;
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
}
td,
th {
  padding: .25rem .5rem;
  border: 1px solid var(--line);
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
  background-color: var(--tint);
}


/*
 * Custom type
 *
 * Extend paragraphs with `.lead` for larger introductory text.
 */

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}


/*
 * Messages
 *
 * Show alert messages to users. You may add it to single elements like a `<p>`,
 * or to a parent if there are multiple elements to show.
 */

.message {
  margin-bottom: 1rem;
  padding: 1rem;
  color: var(--muted);
  background-color: var(--tint);
}


/*
 * Container
 *
 * Center the page content.
 */

.container {
  max-width: 38rem;
  padding-left:  1rem;
  padding-right: 1rem;
  margin-left:  auto;
  margin-right: auto;
}


/*
 * Masthead
 *
 * Super small header above the content for site name and short description.
 */

.masthead {
  padding-top:    1rem;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}
.masthead-title {
  margin-top: 0;
  margin-bottom: 0;
  color: #505050;
}
.masthead-title a {
  color: #505050;
}
.masthead-title small {
  font-size: 75%;
  font-weight: 400;
  color: #c0c0c0;
  letter-spacing: 0;
}


/*
 * Posts and pages
 *
 * Each post is wrapped in `.post` and is used on default and post layouts. Each
 * page is wrapped in `.page` and is only used on the page layout.
 */

.page,
.post {
  margin-bottom: 4em;
}

/* Blog post or page title */
.page-title,
.post-title,
.post-title a {
  color: var(--ink);
}
.page-title,
.post-title {
  margin-top: 0;
}

/* Meta data line below post title */
.post-date {
  display: block;
  margin-top: -.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

/* Related posts */
.related {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
}
.related-posts {
  padding-left: 0;
  list-style: none;
}
.related-posts h3 {
  margin-top: 0;
}
.related-posts li small {
  font-size: 75%;
  color: var(--muted);
}
.related-posts li a:hover {
  color: #268bd2;
  text-decoration: none;
}
.related-posts li a:hover small {
  color: inherit;
}


/*
 * Pagination
 *
 * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
 * there are no more previous or next posts to show.
 */

.pagination {
  overflow: hidden; /* clearfix */
  margin-left: -1rem;
  margin-right: -1rem;
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  color: #ccc;
  text-align: center;
}

/* Pagination items can be `span`s or `a`s */
.pagination-item {
  display: block;
  padding: 1rem;
  border: 1px solid #eee;
}
.pagination-item:first-child {
  margin-bottom: -1px;
}

/* Only provide a hover state for linked pagination items */
a.pagination-item:hover {
  background-color: #f5f5f5;
}

@media (min-width: 30em) {
  .pagination {
    margin: 3rem 0;
  }
  .pagination-item {
    float: left;
    width: 50%;
  }
  .pagination-item:first-child {
    margin-bottom: 0;
    border-top-left-radius:    4px;
    border-bottom-left-radius: 4px;
  }
  .pagination-item:last-child {
    margin-left: -1px;
    border-top-right-radius:    4px;
    border-bottom-right-radius: 4px;
  }
}
/* Rouge highlighting; the light and dark palettes are tokens further down this file */
.highlight { color: var(--ink); background-color: var(--code-bg); }
.highlight .hll { background-color: var(--hl-mark-bg); }
.highlight .gd { background-color: var(--hl-del-bg); }
.highlight .gi { background-color: var(--hl-ins-bg); }
.highlight .gh { color: var(--hl-tag); font-weight: bold; }
.highlight .ge { font-style: italic; }
.highlight .gs { font-weight: bold; }
.highlight :is(.c, .cm, .c1, .cs) { color: var(--hl-comment); font-style: italic; }
.highlight :is(.go, .ni, .w) { color: var(--hl-comment); }
.highlight :is(.k, .kc, .kd, .kn, .kp, .kr, .cp, .gp, .ow) { color: var(--hl-keyword); }
.highlight :is(.o) { color: var(--hl-operator); }
.highlight :is(.s, .sb, .sc, .s2, .sh, .sx, .s1) { color: var(--hl-string); }
.highlight :is(.sd) { color: var(--hl-string); font-style: italic; }
.highlight :is(.m, .mf, .mh, .mi, .mo, .il, .no, .se) { color: var(--hl-number); }
.highlight :is(.na, .si, .ss) { color: var(--hl-attr); }
.highlight :is(.nb, .bp, .kt, .sr) { color: var(--hl-builtin); }
.highlight :is(.nc, .nd, .nf, .nl) { color: var(--hl-function); }
.highlight :is(.nn, .nt, .gu) { color: var(--hl-tag); }
.highlight :is(.nv, .vc, .vg, .vi) { color: var(--hl-variable); }
.highlight :is(.err, .gr, .gt, .ne) { color: var(--hl-error); }

.css .o,
.css .o + .nt,
.css .nt + .nt { color: var(--hl-comment); }
/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 20px;
  }
}


/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #202020;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Abril Fatface", serif;
  font-size: 3.25rem;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
    max-width: 38rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}



/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (http://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: var(--teal);
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}
:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --paper-soft: #fbf8f1;
  --surface: #fffdf8;
  --surface-glass: rgba(255, 253, 248, 0.6);
  --tint: #f8f2e8;
  --chip: #f1e8dc;
  --ink: #20211f;
  --muted: #68635b;
  --line: #ded5c7;
  --line-soft: rgba(222, 213, 199, 0.72);
  --teal: #155e63;
  --teal-dark: #0f3f43;
  --teal-line: rgba(21, 94, 99, 0.35);
  --on-teal: #fbf8f1;
  --rust: #a55233;
  --gold: #c59046;
  --sidebar-glow: rgba(197, 144, 70, 0.24);
  --sidebar-top: #0f3f43;
  --sidebar-bottom: #102f31;
  --sidebar-accent: #d9a65e;
  --page-wash: rgba(21, 94, 99, 0.04);
  --cover-bg: #d8cbbb;
  --image-filter: none;
  --backdrop: rgba(16, 24, 24, 0.82);
  --code-bg: #f3ede3;
  --code-ink: #9c3f2a;
  --hl-comment: #6b6459;
  --hl-keyword: #155e63;
  --hl-string: #a0402a;
  --hl-number: #855700;
  --hl-function: #6a3d8f;
  --hl-tag: #1f5f8b;
  --hl-attr: #7a4a12;
  --hl-builtin: #2e6b4f;
  --hl-variable: #3b4a6b;
  --hl-operator: #4a4741;
  --hl-error: #b00020;
  --hl-mark-bg: #f5e7b8;
  --hl-del-bg: #f7d9d4;
  --hl-ins-bg: #d8eedd;
  --shadow: 0 18px 45px rgba(37, 31, 24, 0.12);
  --shadow-soft: 0 10px 28px rgba(37, 31, 24, 0.08);
  --shadow-hover: 0 16px 38px rgba(37, 31, 24, 0.12);
  --shadow-cover: 0 14px 28px rgba(32, 33, 31, 0.18);
  --radius: 8px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

/* Dark palette: follows the OS unless Light is chosen, or forced by Dark.
   Keep the two blocks identical (tests/unit/contrast.test.js checks). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111617;
    --surface: #1a2022;
    --surface-glass: rgba(26, 32, 34, 0.72);
    --tint: #20282a;
    --chip: #283133;
    --ink: #ece6da;
    --muted: #b5ada0;
    --line: #34403f;
    --line-soft: rgba(52, 64, 63, 0.8);
    --teal: #74c4bb;
    --teal-dark: #1d5a5f;
    --teal-line: rgba(116, 196, 187, 0.4);
    --on-teal: #0f1a1b;
    --rust: #eb9c78;
    --gold: #d6a85f;
    --sidebar-glow: rgba(214, 168, 95, 0.14);
    --sidebar-top: #0b2a2d;
    --sidebar-bottom: #081a1c;
    --sidebar-accent: #e0b36b;
    --page-wash: rgba(116, 196, 187, 0.05);
    --cover-bg: #2a3335;
    --image-filter: brightness(0.9);
    --backdrop: rgba(4, 8, 9, 0.88);
    --code-bg: #0d1213;
    --code-ink: #f0a37f;
    --hl-comment: #8f9a92;
    --hl-keyword: #7fd1c7;
    --hl-string: #f0a37f;
    --hl-number: #e6c07b;
    --hl-function: #c9a6f2;
    --hl-tag: #8cc4f0;
    --hl-attr: #e8b27a;
    --hl-builtin: #9fd49a;
    --hl-variable: #b8c4e6;
    --hl-operator: #c9c2b6;
    --hl-error: #ff8a80;
    --hl-mark-bg: #3a3320;
    --hl-del-bg: #3d2224;
    --hl-ins-bg: #1e3626;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 38px rgba(0, 0, 0, 0.45);
    --shadow-cover: 0 14px 28px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111617;
  --surface: #1a2022;
  --surface-glass: rgba(26, 32, 34, 0.72);
  --tint: #20282a;
  --chip: #283133;
  --ink: #ece6da;
  --muted: #b5ada0;
  --line: #34403f;
  --line-soft: rgba(52, 64, 63, 0.8);
  --teal: #74c4bb;
  --teal-dark: #1d5a5f;
  --teal-line: rgba(116, 196, 187, 0.4);
  --on-teal: #0f1a1b;
  --rust: #eb9c78;
  --gold: #d6a85f;
  --sidebar-glow: rgba(214, 168, 95, 0.14);
  --sidebar-top: #0b2a2d;
  --sidebar-bottom: #081a1c;
  --sidebar-accent: #e0b36b;
  --page-wash: rgba(116, 196, 187, 0.05);
  --cover-bg: #2a3335;
  --image-filter: brightness(0.9);
  --backdrop: rgba(4, 8, 9, 0.88);
  --code-bg: #0d1213;
  --code-ink: #f0a37f;
  --hl-comment: #8f9a92;
  --hl-keyword: #7fd1c7;
  --hl-string: #f0a37f;
  --hl-number: #e6c07b;
  --hl-function: #c9a6f2;
  --hl-tag: #8cc4f0;
  --hl-attr: #e8b27a;
  --hl-builtin: #9fd49a;
  --hl-variable: #b8c4e6;
  --hl-operator: #c9c2b6;
  --hl-error: #ff8a80;
  --hl-mark-bg: #3a3320;
  --hl-del-bg: #3d2224;
  --hl-ins-bg: #1e3626;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 38px rgba(0, 0, 0, 0.45);
  --shadow-cover: 0 14px 28px rgba(0, 0, 0, 0.5);
}

html {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

@media (min-width: 58em) {
  html {
    font-size: 18px;
  }
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--page-wash), transparent 42rem),
    var(--paper);
}

.skip-link {
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: 6px;
  color: var(--ink);
  left: 1rem;
  padding: 0.55rem 0.8rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-180%);
  transition: transform 120ms ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: var(--teal);
}

a:hover,
a:focus {
  color: var(--rust);
}

/* The hyde rule `.theme-base-0c .content a` (teal) outranks a:hover above. */
.theme-base-0c .content a:hover,
.theme-base-0c .content a:focus {
  color: var(--rust);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

p,
li {
  color: var(--muted);
}

strong {
  color: var(--ink);
}

.sidebar {
  background:
    radial-gradient(circle at 20% 0%, var(--sidebar-glow), transparent 18rem),
    linear-gradient(180deg, var(--sidebar-top), var(--sidebar-bottom));
  color: rgba(255, 253, 248, 0.74);
  padding: 1.25rem;
}

.sidebar a {
  color: var(--paper-soft);
}

.sidebar-about h1 {
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.94;
}

.site-subtitle {
  color: var(--sidebar-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.sidebar .lead {
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.92rem;
}

.sidebar-nav {
  border-top: 1px solid rgba(255, 253, 248, 0.15);
  margin-top: 1.4rem;
  padding-top: 1rem;
}

.sidebar-nav-item {
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.82);
  display: inline-flex;
  font-size: 0.9rem;
  line-height: 1;
  margin: 0.2rem 0.25rem 0.2rem 0;
  padding: 0.55rem 0.78rem;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:focus,
.sidebar-nav-item.active,
.theme-toggle button:hover,
.theme-toggle button[aria-pressed="true"] {
  background: rgba(255, 253, 248, 0.12);
  color: #fff;
  text-decoration: none;
}

.sidebar-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 253, 248, 0.15);
  color: rgba(255, 253, 248, 0.58);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
}

.sidebar-footer a {
  color: var(--sidebar-accent);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.theme-toggle {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.15rem;
  margin-top: 1rem;
  padding: 0.18rem;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.7rem;
}

.theme-toggle button:focus-visible {
  outline: 2px solid var(--sidebar-accent);
  outline-offset: 2px;
}

.content {
  padding-bottom: 5rem;
  padding-top: 3rem;
}

.container,
.content {
  max-width: 68rem;
}

.page {
  background: var(--surface-glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.15rem, 3vw, 2.3rem);
}

.page-title {
  display: none;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.page-hero p {
  font-size: 1.05rem;
  max-width: 42rem;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.page-note {
  color: var(--muted);
  font-size: 0.82rem !important;
  margin-top: 1rem;
}

.pull-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0.28rem solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.45;
  margin: 0 0 2rem;
  padding: 1.2rem 1.35rem;
}

.pull-quote cite {
  color: var(--muted);
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-style: normal;
  margin-top: 0.9rem;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 2.4rem 0 1.2rem;
}

.section-heading h2 {
  margin: 0;
}

.book-controls {
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0;
  padding: 0.9rem;
}

.book-controls label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-controls select {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  padding: 0.62rem 0.72rem;
  text-transform: none;
}

.filter-results {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin: -1.2rem 0 1.5rem;
}

.book-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.book-grid-featured {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
  padding: 0.75rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.book-card:hover {
  border-color: var(--teal-line);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.book-card[hidden] {
  display: none;
}

.book-header {
  display: grid;
  gap: 1rem;
  grid-template-columns: 7.25rem 1fr;
  min-width: 0;
}

.book-art {
  align-self: start;
  aspect-ratio: 2 / 3;
  background: var(--cover-bg);
  border-radius: 6px;
  box-shadow: var(--shadow-cover);
  display: block;
  overflow: hidden;
  position: relative;
}

.book-art img {
  display: block;
  filter: var(--image-filter);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.book-art-placeholder {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(21, 94, 99, 0.88), rgba(165, 82, 51, 0.82)),
    #155e63;
  color: var(--paper-soft);
  display: flex;
  font-family: var(--serif);
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
  font-weight: 750;
  height: 100%;
  justify-content: center;
  line-height: 1.05;
  padding: 0.8rem;
  text-align: center;
  width: 100%;
}

.book-status {
  background: rgba(15, 63, 67, 0.88);
  border-radius: 999px;
  bottom: 0.45rem;
  color: var(--paper-soft);
  font-size: 0.62rem;
  font-weight: 800;
  left: 0.45rem;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.46rem;
  position: absolute;
  right: 0.45rem;
  text-align: center;
  text-transform: uppercase;
}

.book-copy {
  min-width: 0;
}

.book-body {
  border-top: 1px solid var(--line-soft);
  min-width: 0;
  padding-top: 0.85rem;
}

.book-copy h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.15;
  margin: 0.35rem 0 0.2rem;
}

.theme-base-0c .content .book-copy h3 a {
  color: var(--ink);
}

.theme-base-0c .content .book-copy h3 a:hover,
.theme-base-0c .content .book-copy h3 a:focus {
  color: var(--teal);
  text-decoration: none;
}

.book-copy p {
  font-size: 0.85rem;
  line-height: 1.48;
  margin-bottom: 0.65rem;
}

.book-author {
  color: var(--rust);
  font-size: 0.78rem !important;
  margin-bottom: 0.5rem !important;
}

.review-note {
  background: var(--tint);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.72rem;
}

.review-note span {
  color: var(--rust);
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.review-note p {
  color: var(--ink);
  margin: 0;
}

.book-details {
  border-top: 1px solid var(--line);
  margin: 0.65rem 0;
  padding-top: 0.55rem;
}

.book-details summary {
  color: var(--teal);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.book-details p {
  margin-top: 0.45rem;
}

.book-actions,
.book-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.book-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-meta span {
  background: var(--chip);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

.text-link,
.read-more {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
}

.text-link:hover,
.read-more:hover {
  color: var(--rust);
}

.secondary-link {
  color: var(--muted);
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb span::before {
  color: var(--line);
  content: "/";
  margin-right: 0.45rem;
}

.book-page-hero {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.book-page-cover {
  width: 100%;
}

.book-page-hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.35rem);
  margin: 0.55rem 0 0.35rem;
}

.book-page-section {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
}

.book-page-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.book-facts {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 1.1rem 0 0;
}

.book-facts div {
  background: var(--tint);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 0.7rem 0.75rem;
}

.book-facts dt {
  color: var(--rust);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-facts dd {
  color: var(--ink);
  font-size: 0.86rem;
  margin: 0.15rem 0 0;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.theme-list span {
  background: var(--chip);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
}

.home-intro,
.blog-intro {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.home-intro h1,
.blog-intro h1 {
  margin-top: 0;
}

.home-intro p,
.blog-intro p {
  font-size: 1.08rem;
  max-width: 42rem;
}

.latest-post,
.recent-posts,
.home-sections,
.blog-posts {
  margin-top: 2rem;
}

.posts-grid,
.home-sections {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.post-card,
.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.post-card.featured {
  border-left: 0.28rem solid var(--gold);
  max-width: 42rem;
}

.post-card h2,
.post-card h3,
.section-card h2 {
  margin-top: 0;
}

.post-card p,
.post-excerpt {
  font-size: 0.92rem;
}

.post-meta {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.post-illustrated {
  max-width: 42rem;
}

.post-figure {
  margin: 2rem 0;
}

.post-figure a {
  display: block;
}

.post-figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: var(--image-filter);
  height: auto;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.post-figure figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 0.65rem;
}

.post-figure-pair {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin: 2rem 0;
}

.post-figure-pair .post-figure {
  margin: 0;
  min-width: 0;
}

.image-modal-open {
  overflow: hidden;
}

.image-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  max-width: min(76rem, calc(100vw - 2rem));
  padding: 1rem;
}

.image-modal::backdrop {
  background: var(--backdrop);
}

.image-modal-close {
  background: var(--teal-dark);
  border: 0;
  border-radius: 6px;
  color: var(--paper-soft);
  cursor: pointer;
  display: block;
  font: inherit;
  margin: 0 0 0.75rem auto;
  padding: 0.4rem 0.75rem;
}

.image-modal-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.image-modal figure {
  margin: 0;
}

.image-modal-image {
  height: auto;
  margin: 0 auto;
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.image-modal-caption {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  max-width: 60rem;
}

.view-all {
  margin: 1.2rem 0 2rem;
}

.theme-base-0c .content .view-all a {
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-weight: 800;
  padding: 0.55rem 0.9rem;
}

.theme-base-0c .content .view-all a:hover {
  background: var(--teal);
  color: var(--on-teal);
  text-decoration: none;
}

.page > h2,
.page > h3 {
  margin-top: 2rem;
}

.page ul {
  padding-left: 1.1rem;
}

@media (min-width: 48em) {
  .sidebar {
    width: 19rem;
  }

  .sidebar-sticky {
    bottom: 1.4rem;
    left: 1.4rem;
    right: 1.4rem;
  }

  .content {
    margin-left: 21rem;
    margin-right: 2rem;
    max-width: 72rem;
  }
}

@media (min-width: 74em) {
  .content {
    margin-left: 23rem;
    margin-right: 4rem;
  }
}

@media (max-width: 47.99em) {
  .content {
    padding: 1rem;
  }

  .page {
    padding: 1rem;
  }

  .book-controls {
    grid-template-columns: 1fr;
  }

  .book-header {
    grid-template-columns: 6.25rem 1fr;
  }

  .section-heading {
    align-items: start;
    display: block;
  }
}

@media (max-width: 31em) {
  .book-header,
  .book-page-hero {
    grid-template-columns: 1fr;
  }

  .book-art {
    margin: 0 auto;
    max-width: 12rem;
    width: 100%;
  }
}

#main-content:focus {
  outline: none;
}
