:root {
  --shell: 800px;
  --measure: 36rem;
  --measure-narrow: 31rem;
  --measure-wide: 42rem;
  --radius-lg: 1.1rem;
  --radius-md: 0.8rem;
  --radius-sm: 0.72rem;
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;

  --space-2xs: 0.35rem;
  --space-xs: 0.6rem;
  --space-sm: 0.95rem;
  --space-md: 1.35rem;
  --space-lg: 2rem;
  --space-xl: clamp(2.75rem, 5vw, 4rem);
  --space-2xl: clamp(3.5rem, 8vw, 5.5rem);

  --text-display: clamp(2.9rem, 8vw, 4.9rem);
  --text-h1: clamp(2.3rem, 5vw, 3.25rem);
  --text-h2: clamp(1.5rem, 2.6vw, 1.95rem);
  --text-lede: 1.22rem;
  --text-body: 1rem;
  --text-secondary: 0.98rem;
  --text-meta: 0.82rem;

  --bg: #fbf8f2;
  --bg-subtle: #f4efe6;
  --surface: #f6f1e8;
  --surface-strong: #efe7da;
  --surface-muted: #f8f3eb;
  --surface-raised: rgba(255, 252, 248, 0.92);
  --surface-raised-strong: rgba(252, 247, 240, 0.98);
  --text: #1f1812;
  --text-strong: #17110d;
  --muted: #64574b;
  --rule: rgba(79, 58, 40, 0.14);
  --rule-strong: rgba(79, 58, 40, 0.22);
  --link: #164c78;
  --link-hover: #0f3858;
  --link-soft: rgba(22, 76, 120, 0.1);
  --focus-ring: #346d9b;
  --rating: #8d6b29;

  --site-top-stripe: linear-gradient(90deg, #d8e5f2 0%, #ebdfc8 50%, #d8e5f2 100%);
  --panel-background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 48%, var(--surface-strong) 100%);
  --panel-top-stripe: linear-gradient(90deg, #d8e5f2 0%, #e8dbc1 50%, #d8e5f2 100%);
  --page-background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);

  --shadow-soft: 0 10px 24px rgba(37, 27, 20, 0.09);
  --shadow-strong: 0 16px 38px rgba(37, 27, 20, 0.12);
  --shadow-menu: 0 20px 48px rgba(37, 27, 20, 0.16);

  --theme-toggle-bg: var(--surface-raised);
  --theme-toggle-hover-bg: var(--surface-raised-strong);
  --theme-toggle-icon-bg: var(--link-soft);
  --theme-toggle-icon: var(--link);
  --theme-menu-bg: rgba(255, 251, 245, 0.96);
  --theme-menu-selected-bg: rgba(22, 76, 120, 0.08);
  --theme-menu-selected-border: rgba(22, 76, 120, 0.2);
  --theme-menu-selected-shadow: 0 0 0 1px rgba(22, 76, 120, 0.08);
  --selection-bg: rgba(22, 76, 120, 0.16);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14110e;
  --bg-subtle: #191411;
  --surface: #1d1814;
  --surface-strong: #271f19;
  --surface-muted: #201b16;
  --surface-raised: rgba(34, 28, 23, 0.94);
  --surface-raised-strong: rgba(40, 32, 27, 0.98);
  --text: #f5eadc;
  --text-strong: #fff4e7;
  --muted: #c3b4a3;
  --rule: rgba(239, 225, 204, 0.13);
  --rule-strong: rgba(239, 225, 204, 0.24);
  --link: #a8cbed;
  --link-hover: #dbe9f5;
  --link-soft: rgba(168, 203, 237, 0.16);
  --focus-ring: #f0c08c;
  --rating: #e7c375;

  --site-top-stripe: linear-gradient(90deg, #445b71 0%, #6e563c 50%, #445b71 100%);
  --panel-background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 48%, var(--surface-strong) 100%);
  --panel-top-stripe: linear-gradient(90deg, #6b87a2 0%, #a78359 50%, #6b87a2 100%);
  --page-background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);

  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.26);
  --shadow-strong: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-menu: 0 24px 58px rgba(0, 0, 0, 0.42);

  --theme-menu-bg: rgba(27, 22, 18, 0.96);
  --theme-menu-selected-bg: rgba(168, 203, 237, 0.12);
  --theme-menu-selected-border: rgba(168, 203, 237, 0.26);
  --theme-menu-selected-shadow: 0 0 0 1px rgba(168, 203, 237, 0.12);
  --selection-bg: rgba(168, 203, 237, 0.22);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  background: var(--bg);
  color: var(--text);
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

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

body {
  min-height: 100vh;
  background: var(--page-background);
  color: var(--text);
  font-family: "Charter", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.72;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  transition: background 220ms ease, color 220ms ease;
}

::selection {
  background: var(--selection-bg);
  color: var(--text-strong);
}

img {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

button {
  font: inherit;
}

.site-nav a,
.footer-links a,
.writing-list a,
.book-list a,
.blogroll-list a,
.blogroll-info-trigger,
.theme-toggle,
.theme-menu-option {
  appearance: none;
  -webkit-appearance: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.writing-list a,
.book-list a,
.blogroll-list a {
  display: inline-block;
}

.site-nav a:hover,
.footer-links a:hover,
.writing-list a:hover,
.book-list a:hover,
.blogroll-list a:hover,
.blogroll-info-trigger:hover,
.theme-menu-option:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
}

.top-stripe {
  height: 3px;
  background: var(--site-top-stripe);
}

.site-shell {
  width: min(var(--shell), calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 1rem;
  padding: 1.65rem 0 1.45rem;
  border-bottom: 1px solid var(--rule);
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-name {
  color: var(--text-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-name:hover {
  color: var(--text-strong);
}

.site-mark {
  width: 1.7rem;
  height: auto;
  display: block;
  flex: none;
  border-radius: 0.35rem;
  box-shadow: var(--shadow-soft);
}

.site-name-label {
  display: block;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--text-strong);
  text-decoration: underline;
}

.theme-switcher {
  position: relative;
  z-index: 3;
  flex: none;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.38rem 0.62rem 0.38rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--theme-toggle-bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] {
  background: var(--theme-toggle-hover-bg);
  box-shadow: var(--shadow-strong);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--theme-toggle-icon-bg);
  color: var(--theme-toggle-icon);
}

.theme-toggle-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle-label {
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 600;
  white-space: nowrap;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(180px, calc(100vw - 1rem));
  padding: 0.45rem;
  border: 1px solid var(--rule-strong);
  border-radius: 1rem;
  background: var(--theme-menu-bg);
  box-shadow: var(--shadow-menu);
  backdrop-filter: blur(14px);
}

.theme-menu-options {
  display: grid;
  gap: 0.3rem;
}

.theme-menu-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 0.85rem;
  background: var(--surface-raised);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.theme-menu-option > span:last-child {
  font-weight: 600;
}

.theme-menu-option-icon {
  width: 1rem;
  flex: 0 0 auto;
  color: var(--theme-toggle-icon);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.theme-menu-option[aria-checked="true"] {
  border-color: var(--theme-menu-selected-border);
  background: var(--theme-menu-selected-bg);
  box-shadow: var(--theme-menu-selected-shadow);
}

.theme-menu-option:hover {
  background: var(--theme-toggle-hover-bg);
}

.theme-menu-option[aria-checked="true"]:hover {
  background: var(--theme-menu-selected-bg);
}

main {
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem);
}

h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  color: var(--text-strong);
  font-size: var(--text-h1);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 0.75rem;
  max-width: 18ch;
  color: var(--text-strong);
  font-size: var(--text-h2);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title--wide {
  max-width: none;
  white-space: nowrap;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

li {
  margin: 0.45rem 0;
}

.page-main > * + *,
.home-main > * + * {
  margin-top: var(--space-2xl);
}

.projects-main > * + * {
  margin-top: var(--space-lg);
}

.page-intro,
.page-section,
.home-intro {
  display: grid;
  gap: var(--space-md);
}

.page-intro > *,
.page-section > *,
.home-intro > * {
  margin: 0;
}

.lede,
.section-subtitle,
.home-lede,
.home-note,
.reading-now__lede,
.recent-reading__lede,
.recent-reading__review {
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: pretty;
}

.lede {
  max-width: var(--measure-narrow);
  color: var(--text);
  font-size: var(--text-lede);
  line-height: 1.56;
}

.section-subtitle {
  max-width: var(--measure);
  color: var(--muted);
  font-size: var(--text-secondary);
  line-height: 1.66;
}

.page-intro > p,
.page-section > p,
.page-section > ul {
  max-width: var(--measure);
}

.home-title {
  max-width: 11ch;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-lede {
  max-width: 30ch;
  color: var(--text-strong);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.44;
}

.home-note {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.64;
}

.reading-widget {
  margin-top: 0;
  display: grid;
  gap: var(--space-lg);
}

.reading-now,
.recent-reading {
  position: relative;
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  width: min(100%, 42rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  overflow: clip;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--panel-background);
  box-shadow: var(--shadow-soft);
}

.reading-now::before,
.recent-reading::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--panel-top-stripe);
}

.reading-now__intro,
.reading-now__meta,
.recent-reading__intro,
.recent-reading__meta {
  min-width: 0;
}

.reading-now__eyebrow,
.recent-reading__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reading-now__title,
.recent-reading__title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.reading-now__lede,
.recent-reading__lede {
  margin: 0.8rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

.reading-now__list,
.recent-reading__list {
  max-width: 32rem;
  min-width: 0;
}

.reading-now__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.reading-now__item {
  display: grid;
  grid-template-columns: minmax(4.75rem, 5.15rem) minmax(0, 1fr);
  gap: 0.95rem 1rem;
  align-items: start;
  min-width: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.reading-now__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.reading-now__cover-link,
.recent-reading__cover-link {
  display: block;
  width: 100%;
}

.reading-now__cover,
.recent-reading__cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--surface-muted);
  border: 1px solid var(--rule);
}

.reading-now__cover {
  aspect-ratio: 98 / 160;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.reading-now__title-link,
.recent-reading__title-link {
  display: block;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: break-word;
  text-wrap: pretty;
  hyphens: auto;
}

.reading-now__title-link {
  max-width: 28ch;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.24;
}

.reading-now__title-link:hover,
.recent-reading__title-link:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

.reading-now__author,
.recent-reading__author {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.reading-now__author a,
.recent-reading__author a {
  color: inherit;
  text-decoration: none;
}

.reading-now__author a:hover,
.recent-reading__author a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

.recent-reading__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.recent-reading__item {
  display: grid;
  grid-template-columns: minmax(4.35rem, 4.85rem) minmax(0, 1fr);
  gap: 0.95rem 1rem;
  align-items: start;
  min-width: 0;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.recent-reading__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.recent-reading__cover {
  aspect-ratio: 98 / 160;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.recent-reading__meta {
  min-width: 0;
}

.recent-reading__rating {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
}

.recent-reading__rating::before {
  color: var(--rating);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.recent-reading__rating[aria-label^="Rated 1"]::before {
  content: "★☆☆☆☆";
}

.recent-reading__rating[aria-label^="Rated 2"]::before {
  content: "★★☆☆☆";
}

.recent-reading__rating[aria-label^="Rated 3"]::before {
  content: "★★★☆☆";
}

.recent-reading__rating[aria-label^="Rated 4"]::before {
  content: "★★★★☆";
}

.recent-reading__rating[aria-label^="Rated 5"]::before {
  content: "★★★★★";
}

.recent-reading__title-link {
  max-width: 31ch;
  font-size: clamp(1rem, 1.7vw, 1.06rem);
  line-height: 1.22;
}

.recent-reading__review {
  margin: 0.6rem 0 0;
  max-width: 31rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.reading-shelf-empty {
  margin: 0;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure-wide);
}

.writing-list li {
  margin: 0;
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--space-2xs);
}

.writing-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.list-meta {
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-list a,
.book-list a,
.blogroll-list a {
  text-decoration: none;
}

.writing-list a {
  color: var(--link);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 400;
}

.book-list {
  max-width: var(--measure);
}

.book-list a {
  color: var(--link);
  font-weight: 400;
}

.blogroll-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure-wide);
}

.blogroll-main > .page-section {
  margin-top: var(--space-lg);
}

.blogroll-list li {
  margin: 0;
  padding: 0.58rem 0 0.64rem;
  position: relative;
}

.blogroll-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
}

.blogroll-list a {
  color: var(--link);
  font-weight: 400;
}

.blogroll-note p a {
  display: inline;
  font-size: inherit;
  line-height: inherit;
}

.blogroll-title {
  font-size: 1.08rem;
  line-height: 1.3;
}

.blogroll-info {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.blogroll-info::after {
  content: "";
  position: absolute;
  top: -0.7rem;
  bottom: -0.7rem;
  left: 100%;
  width: 0.65rem;
}

.blogroll-info-trigger {
  width: 1.32rem;
  height: 1.32rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted);
  cursor: pointer;
  display: inline-grid;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0;
  place-items: center;
}

.blogroll-info-trigger:hover,
.blogroll-info:focus-within .blogroll-info-trigger {
  background: var(--link-soft);
  color: var(--link);
}

.blogroll-note {
  background: var(--theme-menu-bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-menu);
  left: calc(100% + 0.5rem);
  max-width: min(32rem, calc(100vw - 3rem));
  opacity: 0;
  padding: 0.85rem 0.95rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(0.2rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 160ms;
  visibility: hidden;
  width: min(32rem, calc(100vw - 3rem));
  z-index: 20;
}

.blogroll-info:hover .blogroll-note,
.blogroll-info:focus-within .blogroll-note {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  transition-delay: 0s;
  visibility: visible;
}

.blogroll-note p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.writing-list a:hover,
.writing-list a:focus-visible,
.book-list a:hover,
.book-list a:focus-visible,
.blogroll-list a:hover,
.blogroll-list a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.3rem 0 2rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1.0625rem;
  }

  .site-nav {
    gap: 0.6rem 0.85rem;
  }

  .reading-now,
  .recent-reading {
    width: 100%;
  }

  .reading-now__lede,
  .recent-reading__lede {
    max-width: var(--measure);
  }

  .reading-now__list,
  .recent-reading__list,
  .reading-now__title-link,
  .recent-reading__title-link,
  .recent-reading__review {
    max-width: none;
  }

  .reading-now__item,
  .recent-reading__item {
    grid-template-columns: minmax(4rem, 4.6rem) minmax(0, 1fr);
    gap: 0.9rem;
  }

  h1 {
    max-width: 12ch;
  }

  h2 {
    max-width: 16ch;
  }

  .section-title--wide {
    white-space: normal;
  }

  .writing-list li {
    padding: 0.9rem 0 1rem;
  }

  .blogroll-info {
    position: static;
  }

  .blogroll-info::after {
    display: none;
  }

  .blogroll-note {
    left: 0;
    max-width: none;
    right: 0;
    top: calc(100% - 0.15rem);
    transform: translateY(0.25rem);
    width: auto;
  }

  .blogroll-info:hover .blogroll-note,
  .blogroll-info:focus-within .blogroll-note {
    transform: translateY(0);
  }

  .site-shell {
    width: min(var(--shell), calc(100% - 2rem));
  }
}

@media (max-width: 560px) {
  .theme-menu {
    width: min(180px, calc(100vw - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .site-nav a:hover,
  .footer-links a:hover,
  .writing-list a:hover,
  .book-list a:hover,
  .blogroll-list a:hover,
  .blogroll-info-trigger:hover,
  .theme-menu-option:hover,
  .theme-toggle:hover {
    transform: none;
  }
}
