:root {
  --color-bg: #f7f4ee;
  --color-surface: #fffaf2;
  --color-card: #ffffff;
  --color-text: #2d2926;
  --color-heading: #211914;
  --color-muted: #81766b;
  --color-border: rgba(58, 47, 37, 0.12);
  --color-primary: #a8693d;
  --color-primary-dark: #7e4b2b;
  --color-shadow: rgba(58, 47, 37, 0.12);
  --container: 1180px;
  --container-narrow: 820px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-serif: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }
html.smooth-scroll { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(168, 105, 61, 0.12), transparent 36rem), var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input { font: inherit; }
button, .button, [role="button"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.62; }
::selection { background: #fef4b8; color: #3b2a1d; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 200; padding: 8px 14px; border-radius: 999px; background: var(--color-primary); color: #fff; font-weight: 800; transform: translateY(-140%); transition: transform 0.2s ease; }
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.container--narrow { width: min(calc(100% - 32px), var(--container-narrow)); margin: 0 auto; }
.site-main { padding: 56px 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.site-header.is-scrolled, .no-hero-page .site-header {
  background: rgba(255, 250, 242, 0.92);
  color: var(--color-text);
  box-shadow: 0 12px 30px var(--color-shadow);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 32px), 1240px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.site-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.site-title { font-size: 20px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.site-nav a { opacity: 0.9; }
.site-nav a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 14px;
  color: inherit;
  background: transparent;
}
.mobile-menu-button { display: none; }

.hero-banner {
  position: relative;
  min-height: var(--banner-height, 420px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #3b2a1d;
}
.hero-bg, .hero-mask { position: absolute; inset: 0; }
.hero-bg { transform: scale(1.04); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask { background: linear-gradient(135deg, rgba(39, 28, 20, 0.75), rgba(39, 28, 20, 0.28)); }
.hero-content {
  position: relative;
  width: min(calc(100% - 32px), 900px);
  padding-top: 56px;
  text-align: center;
}
.hero-kicker, .section-kicker {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 800;
}
.hero-content h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.08;
  text-shadow: 0 10px 36px rgba(0,0,0,0.28);
}
.hero-content .hero-kicker { color: #e9c7a5; }
.hero-content p:last-child { margin: 20px auto 0; max-width: 680px; font-size: 18px; opacity: 0.9; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-family: var(--font-serif); font-size: 34px; }
.section-head a { color: var(--color-primary); font-weight: 700; }

.content-shell { min-width: 0; }
.post-list { display: grid; gap: 28px; max-width: 850px; margin: 0 auto; }

.post-card { position: relative; }
.post-card--classic {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 130px;
  padding: 0 0 28px;
  color: var(--color-text);
}
.post-card--classic + .post-card--classic { padding-top: 28px; border-top: 1px solid rgba(58, 47, 37, 0.12); }
.post-time-img {
  position: relative;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  overflow: hidden;
  border-radius: 6px;
  background: #f5eadb;
}
.post-time-img .post-date {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  transition: transform 0.35s ease;
}
.post-time-img .post-date span { font-size: 70px; line-height: 0.9; font-family: var(--font-serif); font-weight: 700; }
.post-time-img .post-date small { margin-top: 10px; font-size: 12px; color: var(--color-muted); }
.post-thumbnail { display: block; width: 100%; height: 100%; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card--classic:hover .post-thumbnail img { transform: scale(1.05); }
.post-card--classic > .post-content { min-width: 0; min-height: 130px; }
.post-card--classic > .post-content h2 { margin: 2px 0 14px; font-size: 20px; line-height: 1.45; font-weight: 800; }
.post-card--classic > .post-content h2 a { position: relative; display: inline; }
.post-card--classic > .post-content h2 a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(168, 105, 61, 0));
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.post-card--classic > .post-content h2 a:hover { color: var(--color-primary-dark); }
.post-card--classic > .post-content h2 a:hover::after { transform: scaleX(1); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--color-muted); font-size: 13px; }
.post-meta a { color: var(--color-primary); font-weight: 700; }
.post-mobile-date { display: none; }
.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--color-muted);
  line-height: 1.65;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.post-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5eadb;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
}


.post-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--container-narrow)) 240px;
  align-items: start;
  gap: 28px;
}
.post-main-column { min-width: 0; }
.post-toc--desktop { display: block; }
.post-toc--mobile { display: none; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 14px;
}
.breadcrumbs a { color: var(--color-primary); font-weight: 700; }
.breadcrumbs [aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-content-shell, .page-content {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 18px 45px var(--color-shadow);
}
.post-header { margin-bottom: 24px; }
.post-meta--single { margin-bottom: 10px; }
.prose { font-size: 17px; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-serif); line-height: 1.3; margin: 2em 0 0.8em; scroll-margin-top: 96px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure, .prose details, .prose iframe, .prose video { margin: 0 0 1.35em; }
.prose a { color: var(--color-primary); border-bottom: 1px solid currentColor; }
.prose img, .prose video, .prose iframe { border-radius: var(--radius-md); box-shadow: 0 14px 36px var(--color-shadow); }
.prose figure { text-align: center; }
.prose figcaption { margin-top: 8px; color: var(--color-muted); font-size: 14px; }
.prose blockquote { padding: 18px 22px; border-left: 4px solid var(--color-primary); background: #f5eadb; border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--color-muted); }
.prose pre { position: relative; overflow: auto; padding: 18px; border-radius: var(--radius-md); background: #211914; color: #f7eadc; }
.prose code:not(pre code), .prose kbd { padding: 2px 6px; border-radius: 6px; background: #f5eadb; color: var(--color-primary-dark); font-size: 0.9em; }
.prose table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--color-border); }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--color-border); text-align: left; }
.prose th { background: #f5eadb; color: var(--color-heading); }
.prose tr:nth-child(even) td { background: rgba(245, 234, 219, 0.35); }
.prose hr { margin: 2em 0; border: 0; border-top: 1px dashed var(--color-border); }
.prose mark { border-radius: 4px; padding: 0 4px; background: #fef4b8; color: #3b2a1d; }
.prose details { padding: 14px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(245, 234, 219, 0.45); }
.prose summary { cursor: pointer; font-weight: 800; }
.prose ul.contains-task-list { padding-left: 0; list-style: none; }
.prose .task-list-item { list-style: none; }
.code-copy { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 8px; padding: 4px 9px; background: rgba(255,255,255,0.14); color: #fff; font-size: 12px; }
.code-copy:hover { background: rgba(255,255,255,0.22); }

.post-toc {
  position: sticky;
  top: 96px;
  z-index: 1;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #f5eadb;
  border: 1px solid var(--color-border);
}
.post-toc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; padding: 0; background: transparent; color: var(--color-heading); font-weight: 900; text-align: left; }
.post-toc-toggle::after { content: '收起'; color: var(--color-muted); font-size: 12px; font-weight: 700; }
.post-toc-toggle[aria-expanded="false"]::after { content: '展开'; }
.post-toc.is-collapsed nav { display: none; }
.post-toc nav { margin-top: 10px; }
.post-toc a { display: block; padding: 4px 0; color: var(--color-muted); font-size: 14px; }
.post-toc a.toc-link--h3 { padding-left: 14px; }
.post-toc a.is-active { color: var(--color-primary); font-weight: 800; }
.post-author-box, .post-copyright {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(245, 234, 219, 0.6);
}
.post-author-avatar { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-serif); font-size: 24px; font-weight: 900; }
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-box strong, .post-copyright strong { display: block; color: var(--color-heading); }
.post-author-box p, .post-copyright p { margin: 4px 0 0; color: var(--color-muted); }
.post-copyright { display: block; }
.share-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 16px; border-radius: var(--radius-md); background: #f5eadb; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.post-nav-card { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-md); background: rgba(245, 234, 219, 0.7); border: 1px solid var(--color-border); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post-nav-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--color-shadow); }
.post-nav-card span { color: var(--color-muted); font-size: 13px; }
.post-nav-card strong { overflow: hidden; color: var(--color-heading); text-overflow: ellipsis; white-space: nowrap; }
.post-nav-card--next { text-align: right; }
.share-box button, .button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.share-box button:hover, .button:hover, .back-to-top:hover { background: var(--color-primary-dark); }
.button--ghost { background: transparent; color: var(--color-primary); border: 1px solid currentColor; }
.button--ghost:hover { background: rgba(168, 105, 61, 0.1); color: var(--color-primary-dark); }

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5eadb;
  color: var(--color-primary-dark);
  font-size: 22px;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; }
.page-link, .page-current { padding: 8px 16px; border-radius: 999px; background: var(--color-card); border: 1px solid var(--color-border); }

.archives-list, .links-group, .author-card, .empty-state, .error-card {
  padding: clamp(24px, 5vw, 46px);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 45px var(--color-shadow);
}
.archive-year-group h2, .links-group h2, .error-card h1 { margin: 0 0 20px; font-family: var(--font-serif); font-size: 34px; }
.archive-month-group { margin-top: 24px; }
.archive-month-group h3 { color: var(--color-primary); }
.archive-item { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.archive-item time { color: var(--color-muted); font-family: var(--font-serif); }
.section-links .container { max-width: 1040px; }
.links-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(245, 234, 219, 0.78));
  box-shadow: 0 18px 45px var(--color-shadow);
}
.links-apply h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 30px; }
.links-apply p:last-child { margin: 0; color: var(--color-muted); }
.links-group { margin-bottom: 24px; overflow: hidden; }
.links-group-title { position: relative; padding-left: 16px; }
.links-group-title::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 24px; border-radius: 999px; background: var(--color-primary); transform: translateY(-50%); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-items: stretch; }
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 82px;
  padding: 14px 38px 14px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(138, 90, 43, 0.13);
  box-shadow: 0 8px 20px rgba(95, 61, 31, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-card::after { content: '↗'; position: absolute; right: 14px; top: 12px; color: rgba(138, 90, 43, 0.32); font-size: 12px; }
.link-card:hover { transform: translateY(-3px); border-color: rgba(138, 90, 43, 0.26); box-shadow: 0 14px 28px rgba(95, 61, 31, 0.12); }
.link-logo { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; background: #f5eadb; color: var(--color-primary); font-weight: 900; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(138, 90, 43, 0.12); }
.link-logo img { width: 100%; height: 100%; object-fit: cover; }
.link-initial { font-family: var(--font-serif); font-size: 20px; }
.link-card-body { min-width: 0; padding-right: 14px; }
.link-card-name { display: block; margin: 0 0 4px; overflow: hidden; color: var(--color-heading); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.link-card-desc { display: -webkit-box; margin: 0; overflow: hidden; color: var(--color-muted); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.author-card { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.author-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.section-comments--post { margin-top: 56px; }
.section-comments--post .container { padding-top: 36px; border-top: 1px dashed var(--color-border); }
.error-main { min-height: 68vh; display: grid; place-items: center; padding-top: 96px; }
.error-card { text-align: center; width: min(calc(100% - 32px), 620px); }
.error-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(42, 31, 22, 0.55);
  backdrop-filter: blur(8px);
}
.mobile-menu.is-open { display: grid; }
.mobile-menu-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}
.mobile-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; margin-bottom: 22px; }
.mobile-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.mobile-nav { display: grid; gap: 10px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px dashed var(--color-border); }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 26px var(--color-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 120; width: 0; height: 3px; background: var(--color-primary); }
body.panel-open { overflow: hidden; }

.site-footer { margin-top: 60px; padding: 46px 0 20px; color: #eadbcc; background: #2b211a; }
.footer-inner { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 34px; }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.footer-links, .footer-social { display: grid; align-content: start; gap: 8px; }
.footer-friend-links { min-width: min(100%, 560px); }
.footer-links h3, .footer-social h3 { margin: 0 0 6px; }
.footer-link-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #eadbcc;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-link-row a:hover { color: #fff; background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #eadbcc;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { color: #fff; background: var(--color-primary); transform: translateY(-2px); }
.footer-bottom { width: min(calc(100% - 32px), var(--container)); margin: 28px auto 0; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(255,255,255,0.12); color: #cdbda9; font-size: 13px; }
.footer-bottom img { width: 16px; height: 16px; margin-right: 4px; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header.mobile-menu-disabled .site-nav { display: flex; flex: 1; justify-content: flex-end; gap: 14px; overflow-x: auto; white-space: nowrap; }
  .mobile-menu-button { display: inline-flex; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc--desktop { display: none; }
  .post-toc--mobile { display: block; }
  .post-toc { position: static; max-height: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .icon-button { padding: 6px 10px; font-size: 13px; }
  .hero-banner { min-height: 340px; }
  .site-main { padding: 34px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .post-list { gap: 22px; }
  .post-card--classic { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
  .post-card--classic + .post-card--classic { padding-top: 22px; }
  .post-time-img { width: 86px; min-width: 86px; max-width: 86px; height: 86px; min-height: 86px; max-height: 86px; }
  .post-time-img .post-date span { font-size: 44px; }
  .post-time-img .post-date small { margin-top: 6px; font-size: 10px; }
  .post-card--classic > .post-content { min-height: 0; }
  .post-card--classic > .post-content h2 { font-size: 19px; }
  .post-mobile-date { display: inline; }
  .post-card--classic .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-content-shell, .page-content, .archives-list, .links-group, .links-apply, .author-card, .empty-state, .error-card { padding: 22px; }
  .links-apply { align-items: flex-start; flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card--next { text-align: left; }
  .share-box { align-items: flex-start; flex-direction: column; }
  .share-actions { justify-content: flex-start; }
  .error-actions { flex-direction: column; }
}

:where(a, button, input, textarea, select, .link-card, .post-nav-card, .social-link, .page-link, .toc-link):focus-visible {
  outline: 3px solid rgba(168, 105, 61, 0.42);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .skip-link { transition: none; }
  .hero-bg, .link-card:hover, .post-nav-card:hover, .post-card--classic:hover .post-thumbnail img, .footer-link-row a:hover, .social-link:hover {
    transform: none;
  }
}
