/* Foundation, typography and shared controls */
:root {
  --paper: #f3f5f8;
  --surface: #fff;
  --ink: #253449;
  --text: #435167;
  --muted: #667386;
  --line: #e4e9f0;
  --green: #306aa5;
  --soft: #edf3f9;
  --gold: #bc8c3d;
  --nav: #293646;
  --serif: var(--sans);
  --sans: -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  color-scheme: light;
  --reading-size: 17px;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.dark {
  --paper: #18202b;
  --surface: #222d3b;
  --ink: #e5ebf2;
  --text: #c1ccda;
  --muted: #a4b1c3;
  --line: #3a4658;
  --green: #9bc3ef;
  --soft: #2c3a4d;
  --gold: #dfb76a;
  --nav: #121a25;
  color-scheme: dark;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  touch-action: manipulation;
}
button,a,input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
h1,h2,h3,p {
  margin: 0;
}
::selection {
  background: #e8d8b6;
  color: #233247;
}
[hidden] {
  display: none!important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 10px 18px;
  background: var(--green);
  color: var(--surface);
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  height: 88px;
  background: var(--surface);
}
.header-inner {
  max-width: 1340px;
  padding: 0 10px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--nav);
  color: #e3b967;
  width: 44px;
  height: 44px;
  border-radius: 9px;
}
.brand-mark svg {
  width: 30px;
  height: 30px;
}
.brand-name {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.1;
}
.brand-name>span {
  color: var(--gold);
}
.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 7px;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 350px;
  max-width: 33%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  min-height: 44px;
}
.header-search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.header-search kbd {
  margin-left: auto;
  font: 12px var(--sans);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 8px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.header-actions>a:hover,.header-actions>a.active {
  color: var(--green);
}
.header-divider {
  height: 18px;
  width: 1px;
  background: var(--line);
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.icon-button:hover {
  background: var(--soft);
}
.icon-button svg {
  width: 21px;
  height: 21px;
}
.topic-nav {
  background: var(--nav);
  border-bottom: 3px solid var(--gold);
  color: #d8dee7;
  position: relative;
}
.topic-nav-inner {
  max-width: 1340px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 2px;
  height: 52px;
}
.topic-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 19px;
  font-size: 14px;
  white-space: nowrap;
  height: 52px;
  position: relative;
  transition: background .2s,color .2s;
  flex-shrink: 0;
}
.topic-nav a:hover,.topic-nav a.active {
  background: #ffffff0d;
  color: #f0cc84;
}
.topic-nav a.active:after {
  content: '';
  height: 3px;
  background: #f0cc84;
  position: absolute;
  left: 21px;
  right: 21px;
  bottom: -3px;
}
.topic-nav svg {
  width: 15px;
  height: 15px;
}
.nav-motto {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .04em;
  color: #aeb8c7;
}
.nav-motto i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #d3ad62;
}
.blog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr) 250px;
  gap: 26px;
  max-width: 1340px;
  margin: 32px auto 56px;
  padding: 0 10px;
  align-items: start;
}
.content-pane {
  min-width: 0;
}
.left-sidebar,.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 20px #22354805;
}
.profile-card {
  overflow: hidden;
  text-align: center;
}
.profile-cover {
  height: 83px;
  background: linear-gradient(130deg,#334b66,#7091aa);
  position: relative;
  overflow: hidden;
}
.profile-cover:after,.profile-cover:before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  top: -110px;
  right: -25px;
}
.profile-cover:before {
  width: 220px;
  height: 220px;
  right: 0;
  top: -55px;
}
.profile-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: -31px auto 9px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: #f0e4cc;
  color: #49647b;
  position: relative;
  z-index: 1;
}
.profile-avatar svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.7;
}
.profile-card h2 {
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.online-dot {
  height: 6px;
  width: 6px;
  background: #7aab8d;
  border-radius: 50%;
}
.profile-card>p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 20px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: 0 15px 17px;
}
.profile-stats a {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.profile-stats a:last-child {
  border: 0;
}
.profile-stats strong {
  font: 600 19px/1.5 var(--sans);
  color: var(--ink);
}
.profile-stats span {
  font-size: 12px;
  color: var(--muted);
}
.profile-about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 12px;
  font-size: 13px;
  color: var(--green);
  min-height: 48px;
}
.profile-about svg {
  width: 13px;
  height: 13px;
}
.side-section {
  padding: 21px 18px;
}
.side-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  line-height: 1.6;
}
.side-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 25px;
  background: var(--gold);
}
.side-heading>span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .07em;
  font-weight: 400;
}
.side-categories {
  margin: 0 -7px -6px;
}
.side-categories>a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 9px;
  border-radius: 8px;
  font-size: 14px;
  margin: 3px 0;
  min-height: 46px;
}
.side-categories>a.active,.side-categories>a:hover {
  background: var(--soft);
  color: var(--green);
}
.side-categories small {
  margin-left: auto;
  background: var(--paper);
  color: var(--muted);
  min-width: 23px;
  line-height: 23px;
  text-align: center;
  border-radius: 8px;
  font-size: 12px;
}
.category-glyph {
  width: 16px;
  color: var(--muted);
  font-size: 17px;
}
.side-categories>a.active .category-glyph {
  color: var(--green);
}
.quick-links>a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 0;
  min-height: 44px;
}
.quick-links>a:hover {
  color: var(--green);
}
.quick-links svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.quick-links svg:last-child {
  margin-left: auto;
  width: 11px;
  height: 11px;
}
.sidebar-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 2.1;
  letter-spacing: .04em;
  padding-top: 2px;
}
.sidebar-search button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  min-height: 44px;
}
.sidebar-search button:hover {
  border-color: var(--gold);
}
.sidebar-search button svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.recommended-post {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.recommended-post:last-child {
  border: 0;
  padding-bottom: 1px;
}
.rank {
  font: italic 21px/1.4 Georgia,serif;
  color: var(--gold);
  opacity: .8;
}
.recommended-post h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--text);
}
.recommended-post:hover h3 {
  color: var(--green);
}
.recommended-post small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.tag-cloud button {
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  padding: 6px 10px;
  border-radius: 8px;
  min-height: 34px;
}
.tag-cloud button:nth-child(3n+1) {
  color: var(--green);
  background: var(--soft);
}
.tag-cloud button:nth-child(4n) {
  color: #b1873c;
  background: #c99b4914;
}
.tag-cloud button:hover {
  outline: 1px solid var(--gold);
}
.sidebar-note {
  background: #f4ecdb;
  border: 1px solid #eadfca;
  border-radius: 14px;
  padding: 23px 21px;
  position: relative;
  overflow: hidden;
  color: #62553f;
}
.dark .sidebar-note {
  background: #3e382d;
  border-color: #5a4d36;
  color: #d7c6a7;
}
.sidebar-note .eyebrow {
  font-size: 10px;
  color: #80662f;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.note-icon {
  position: absolute;
  top: 17px;
  right: 17px;
  font-size: 23px;
  color: #c6a565;
}
.sidebar-note h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.sidebar-note p {
  font-size: 13px;
  opacity: 1;
  line-height: 1.9;
}
.sidebar-note>a {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  margin-top: 12px;
  min-height: 44px;
}
.sidebar-note>a svg {
  height: 14px;
  width: 14px;
}
.month-archive>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding-top: 4px;
  min-height: 40px;
}
.month-archive small {
  font-size: 12px;
  color: var(--muted);
}
.month-archive svg {
  width: 10px;
  height: 10px;
  vertical-align: -1px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-line {
  height: 1px;
  width: 22px;
  background: var(--gold);
}
.feed-intro {
  padding: 2px 2px 24px;
}
.feed-intro .eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .1em;
}
.feed-intro h1 {
  font-size: 30px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  margin: 10px 0 8px;
}
.feed-intro h1>span {
  color: var(--gold);
}
.feed-intro>p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}
.welcome-note {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.notice-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.demo-label {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0;
  color: #92691f;
  border: 1px solid #c99b4944;
  padding: 2px 8px;
  border-radius: 5px;
}
.featured-post {
  overflow: hidden;
  margin-bottom: 32px;
}
.featured-image {
  display: block;
  position: relative;
  overflow: hidden;
}
.featured-image img {
  height: 240px;
  object-fit: cover;
  transition: transform .6s;
}
.featured-image:hover img {
  transform: scale(1.025);
}
.featured-image:after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent,#13213750);
  pointer-events: none;
}
.pinned-label {
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 8px;
  padding: 6px 11px;
  background: #9a6b26;
  color: #fff;
  font-size: 12px;
  letter-spacing: .5px;
}
.cover-caption {
  position: absolute;
  left: 22px;
  bottom: 16px;
  color: white;
  font-size: 11px;
  letter-spacing: .1em;
  z-index: 1;
  opacity: .9;
}
.featured-copy {
  padding: 23px 26px 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  flex-wrap: wrap;
}
.post-category {
  color: var(--green);
  font-weight: 500;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .5;
}
.featured-copy h2 {
  font-size: 24px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin: 11px 0;
}
.featured-copy h2 a:hover {
  color: var(--green);
}
.featured-copy>p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.post-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  min-height: 44px;
}
.meta-separator {
  margin: 0 8px;
  opacity: .6;
}
.read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--green);
  margin-left: auto;
  min-height: 44px;
  white-space: nowrap;
}
.read-more svg {
  width: 13px;
  height: 13px;
}
.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.save-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  flex-shrink: 0;
}
.save-button:hover {
  background: var(--soft);
}
.save-button svg {
  width: 19px;
  height: 19px;
}
.save-button.saved svg {
  fill: var(--gold);
  stroke: var(--gold);
}
.feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 1px 18px;
}
.feed-heading h2 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.feed-heading h2:before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 1px;
}
.feed-heading>span {
  font-size: 12px;
  color: var(--muted);
}
.category-tabs {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
}
.category-tabs button {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  min-height: 44px;
  flex-shrink: 0;
}
.category-tabs button[aria-pressed=true] {
  color: var(--green);
  font-weight: 600;
}
.category-tabs button[aria-pressed=true]:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--green);
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  min-width: 0;
  box-shadow: 0 4px 18px #22354804;
  transition: border-color .2s,box-shadow .2s;
}
.post-image {
  display: block;
  position: relative;
  overflow: hidden;
  width: 185px;
  aspect-ratio: 1.65;
  flex-shrink: 0;
  align-self: center;
  margin: 20px 0 20px 20px;
  border-radius: 9px;
  background: var(--soft);
}
.post-image img {
  height: 100%;
  min-height: 0;
  position: absolute;
  inset: 0;
  transition: transform .6s;
}
.post-image:hover img {
  transform: scale(1.035);
}
.image-category {
  position: absolute;
  left: 9px;
  bottom: 10px;
  background: #1f3349b3;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  backdrop-filter: blur(3px);
}
.post-content {
  padding: 19px 22px 14px;
  min-width: 0;
  flex: 1;
}
.post-content h3 {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 600;
  margin: 8px 0 9px;
}
.post-content h3 a:hover {
  color: var(--green);
}
.post-excerpt {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .post-bottom {
  margin-top: 10px;
  font-size: 12px;
}
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  border-radius: 9px;
  color: var(--text);
  min-height: 46px;
}
.outline-button>span {
  font-size: 12px;
  color: var(--muted);
}
.outline-button:hover {
  border-color: var(--gold);
  color: var(--green);
}
.outline-button svg {
  width: 14px;
  height: 14px;
}
.feed-end {
  text-align: center;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 32px;
}
.container {
  width: 100%;
}
.page-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 14px;
}
.page-intro h1 {
  font-size: 31px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin: 12px 0;
  letter-spacing: 0;
}
.page-intro>p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.archive-year {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  margin-top: 22px;
}
.archive-year>h2 {
  font: 400 29px var(--sans);
  color: var(--ink);
  margin-bottom: 14px;
}
.archive-year>h2>span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 14px;
}
.archive-row {
  display: grid;
  grid-template-columns: 62px 1fr 90px 24px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.archive-row:last-child {
  border: 0;
}
.archive-date {
  font-size: 12px;
  color: var(--muted);
}
.archive-row h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink);
}
.archive-row a:hover {
  color: var(--green);
}
.archive-category {
  font-size: 12px;
  color: var(--muted);
}
.archive-row svg {
  width: 14px;
  height: 14px;
}
.journal {
  padding-top: 24px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}
.articles-grid .post-card {
  flex-direction: column;
}
.articles-grid .post-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1.75;
  margin: 0;
  border-radius: 0;
}
.articles-grid .post-image img {
  min-height: 0;
}
.articles-grid .post-content {
  padding: 20px 20px 14px;
}
.articles-grid .post-content h3 {
  font-size: 18px;
}
.articles-grid .read-more {
  display: none;
}
.articles-grid .save-button {
  margin-left: auto;
}
.empty-state {
  grid-column: 1/-1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 15px;
}
.empty-state h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 15px 0;
  color: var(--ink);
}
.empty-state .outline-button {
  margin-top: 24px;
}
.article-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 38px 36px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
}
.back-link svg {
  width: 14px;
  height: 14px;
}
.article-header {
  padding: 24px 0 28px;
}
.article-header .eyebrow {
  color: var(--green);
  font-size: 11px;
  letter-spacing: .07em;
}
.article-header h1 {
  font-size: 34px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
  margin: 15px 0;
  letter-spacing: -.015em;
}
.article-deck {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 23px;
  flex-wrap: wrap;
}
.article-byline>svg {
  width: 24px;
  height: 24px;
  background: var(--soft);
  padding: 4px;
  border-radius: 50%;
  color: var(--green);
}
.article-tools {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.article-tools>button {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 13px;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 8px;
}
.article-tools .save-button {
  width: auto;
  height: auto;
  white-space: nowrap;
}
.article-tools svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.article-cover {
  aspect-ratio: 1.9;
  border-radius: 10px;
}
.article-body {
  margin: 32px 0 0;
  font-size: var(--reading-size,17px);
  line-height: 1.95;
  color: var(--text);
  letter-spacing: .015em;
  overflow-wrap: break-word;
}
.article-body p {
  margin: 0 0 26px;
}
.article-body h2 {
  font-size: 1.32em;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin: 42px 0 19px;
  letter-spacing: 0;
  scroll-margin-top: 28px;
}
.article-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--soft);
  padding: 19px 23px;
  margin: 30px 0;
  font-size: 1em;
  color: var(--ink);
  line-height: 1.95;
  border-radius: 0 10px 10px 0;
}
.article-end {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.article-end .outline-button {
  padding: 8px 13px;
  gap: 10px;
  font-size: 13px;
  min-height: 44px;
}
.article-sources {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0;
}
.article-sources h2 {
  font-size: 17px;
  margin: 0 0 13px;
}
.article-sources a {
  display: block;
  color: var(--green);
  overflow-wrap: anywhere;
  margin: 10px 0;
  padding: 3px 0;
}
.article-sources small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 13px;
  line-height: 1.9;
}
.related-posts {
  margin-top: 25px;
}
.related-posts>h2 {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}
.related-posts .articles-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}
.related-posts .post-content {
  padding: 17px 18px 12px;
}
.related-posts .post-content h3 {
  font-size: 16px;
  line-height: 1.75;
}
.related-posts .post-excerpt {
  display: none;
}
.related-posts .post-meta {
  font-size: 12px;
  gap: 7px;
  flex-wrap: wrap;
}
.related-posts .post-bottom {
  font-size: 12px;
}
.related-posts .post-bottom .meta-separator {
  margin: 0 3px;
}
.about-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}
.about-page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}
.about-page h1 {
  font-size: 32px;
  line-height: 1.65;
  color: var(--ink);
  margin: 15px 0;
  font-weight: 600;
}
.about-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.about-photo {
  aspect-ratio: 1;
  border-radius: 8px;
}
.about-copy {
  font-size: 16px;
  line-height: 1.95;
  margin-top: 28px;
}
.about-copy h2 {
  font-size: 23px;
  color: var(--ink);
  font-weight: 600;
  margin: 27px 0 16px;
}
.about-copy p {
  margin-bottom: 19px;
}
.about-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.about-topics a {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
}
.about-topics a:hover {
  background: var(--soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--green);
  margin-top: 16px;
  min-height: 44px;
}
.text-link svg {
  width: 13px;
  height: 13px;
}
.demo-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 28px;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 25px 0 20px;
}
.footer-inner {
  max-width: 1320px;
  padding: 0 10px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand>span {
  color: var(--gold);
}
.footer-inner>p {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--green);
}
.footer-links svg {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}
.sample-note {
  max-width: 1320px;
  margin: 12px auto 0;
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  z-index: 90;
}
.search-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  width: min(620px,calc(100% - 32px));
  max-height: min(82dvh,800px);
  position: fixed;
  top: 8vh;
  margin: 0 auto;
  box-shadow: 0 20px 90px #12241c24;
}
.search-dialog::backdrop {
  background: #15223680;
  backdrop-filter: blur(4px);
}
.search-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.search-top .eyebrow {
  font-size: 10px;
  letter-spacing: .08em;
}
.search-top h2 {
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.5;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 15px;
  border-radius: 10px;
  min-height: 56px;
}
.search-input-wrap>svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.search-input-wrap input {
  border: 0;
  background: none;
  width: 100%;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  min-width: 0;
}
.search-input-wrap:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.search-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.search-results {
  max-height: 43dvh;
  overflow: auto;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.search-result img {
  width: 72px;
  height: 47px;
  border-radius: 8px;
}
.search-result span {
  font-size: 12px;
  color: var(--muted);
}
.search-result h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink);
  margin-top: 4px;
}
.search-result:hover h3 {
  color: var(--green);
}
.search-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  gap: 12px;
}
.search-footer kbd {
  font: 12px var(--sans);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%,15px);
  background: var(--ink);
  color: var(--surface);
  padding: 12px 22px;
  border-radius: 10px;
  z-index: 150;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
  box-shadow: 0 6px 22px #0001;
  line-height: 1.7;
  max-width: min(520px,calc(100vw - 32px));
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}
.referral-card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #badba9;
  border-radius: 12px;
  background: linear-gradient(135deg,#f3faee,#edf7e7);
  color: #30492c;
  letter-spacing: 0;
}
.referral-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .08em;
  color: #4f763d;
}
.referral-kicker>span:last-child {
  letter-spacing: .5px;
  border: 1px solid #b8d7a8;
  padding: 2px 6px;
  border-radius: 8px;
}
.referral-card h2 {
  font-size: 21px;
  line-height: 1.65;
  font-weight: 600;
  color: #2b4728;
  margin: 12px 0 9px;
}
.referral-card p.referral-intro {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 15px;
  color: #4e6646;
}
.referral-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}
.referral-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  border-radius: 8px;
  padding: 11px 17px;
  background: #a8ef75;
  color: #213f1c;
  font-size: 14px;
  font-weight: 600;
}
.referral-link:hover {
  background: #97dd65;
}
.referral-link svg {
  width: 15px;
  height: 15px;
}
.referral-code {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #4d6b40;
}
.referral-code code {
  font: 600 16px/1.5 var(--sans);
  color: #2c4927;
  letter-spacing: .8px;
}
.referral-code button {
  padding: 8px 10px;
  border: 1px solid #b9d5a9;
  border-radius: 8px;
  font-size: 12px;
  background: #ffffff55;
  min-height: 44px;
}
.referral-code button:hover {
  background: #fff;
}
.referral-card p.referral-disclosure {
  font-size: 12px;
  line-height: 1.9;
  color: #5c7351;
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid #cfe3c3;
}
.referral-card-compact {
  margin-top: 30px;
}
.article-reference {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.9;
  margin-top: 27px;
  letter-spacing: 0;
}
.article-reference h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.article-reference p {
  font-size: 13px;
  margin: 0 0 9px;
  color: var(--muted);
}
.article-reference a {
  font-size: 13px;
  color: var(--green);
}
.dark .referral-card {
  background: linear-gradient(135deg,#273c2a,#26382a);
  border-color: #4a6841;
  color: #d4e7cb;
}
.dark .referral-card h2,.dark .referral-code code {
  color: #daeccf;
}
.dark .referral-kicker,.dark .referral-code,.dark .referral-card p.referral-intro,.dark .referral-card p.referral-disclosure {
  color: #a3ba97;
}
.dark .referral-code button {
  background: #31462e;
  border-color: #608051;
  color: #d5e7ca;
}
.dark .referral-card p.referral-disclosure {
  border-color: #47603e;
}
.article-step-gallery {
  margin: 34px 0 38px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  letter-spacing: 0;
}
.step-gallery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.step-gallery-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 600;
}
.step-gallery-heading>span {
  font-size: 11px;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--green);
  padding: 3px 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.article-body .step-gallery-note {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 21px;
}
.step-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 18px;
}
.article-step-figure {
  margin: 0;
  min-width: 0;
}
.step-figure-wide {
  grid-column: 1/-1;
}
.step-photo-link {
  display: block;
  position: relative;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.step-photo-link:hover {
  border-color: var(--gold);
}
.step-photo-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 720px;
  margin: 0 auto;
}
.step-photo-link>span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: #253347d9;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0;
  transition: opacity .2s;
}
.step-photo-link:hover>span,.step-photo-link:focus-visible>span {
  opacity: 1;
}
.article-step-figure figcaption {
  padding: 13px 2px 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text);
}
.article-step-figure figcaption strong {
  display: block;
  font-weight: 600;
}
.article-step-figure figcaption>a {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 3px 0;
}
.article-step-figure figcaption>a:hover {
  color: var(--green);
}
.step-photo-note {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
}
.screenshot-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.screenshot-summary button {
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  padding: 7px 0;
  min-height: 44px;
}
.screenshot-summary button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,h2,h3 {
  font-weight: 600;
  text-wrap: pretty;
}
p {
  overflow-wrap: break-word;
}
.header-actions>a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.post-card:hover {
  border-color: #cbd5e2;
  box-shadow: 0 6px 24px #2235480a;
}
.post-card .post-bottom>span {
  font-size: 12px;
}
.archive-row>a:last-child {
  display: grid;
  place-items: center;
  min-height: 44px;
}
.article-body h2:focus {
  outline: none;
}
.related-posts .post-card:nth-child(3) {
  display: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.blog-layout.article-layout {
  max-width: 1120px;
  width: calc(100% - 56px);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0,1fr) 250px;
  gap: 24px;
}
.article-layout .left-sidebar {
  display: none;
}
.article-layout .article-shell {
  max-width: 846px;
}
.reading-sidebar {
  position: sticky;
  top: 24px;
}
.toc-panel {
  padding: 22px 18px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc-panel .side-heading {
  font-size: 15px;
}
.toc-panel .side-heading>span {
  font-size: 9px;
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toc-list button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
  transition: background .2s,color .2s;
}
.toc-list button>span {
  font-size: 11px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.toc-list button:hover,.toc-list button.active,.toc-list button[aria-current="location"] {
  background: var(--soft);
  color: var(--ink);
  border-left-color: var(--gold);
}
.toc-list button.active,.toc-list button[aria-current="location"] {
  font-weight: 600;
}
.toc-top {
  min-height: 44px;
  font-size: 12px;
  color: var(--green);
  padding: 10px 12px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.reading-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0 20px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.reading-label {
  font-size: 13px;
  color: var(--muted);
}
.font-options {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
}
.font-options button {
  min-height: 36px;
  min-width: 60px;
  padding: 6px 13px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 20px;
  white-space: nowrap;
}
.font-options button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 5px #1a2c4512;
}
.font-options button:hover {
  color: var(--green);
}
.article-toc {
  display: none;
  margin: 22px 0 27px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 17px;
}
.article-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.article-toc summary::-webkit-details-marker {
  display: none;
}
.article-toc summary::after {
  content: "＋";
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.article-toc[open] summary::after {
  content: "−";
}
.article-toc summary small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: auto;
}
.article-toc .toc-list {
  padding: 0 0 15px;
}
.article-toc .toc-list button {
  font-size: 14px;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 24px #14243b14;
  transition: background .2s,border-color .2s,transform .2s;
}
.back-to-top:hover {
  background: var(--soft);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 21px;
  height: 21px;
}

@media (max-width:1390px) {
  .header-inner,.topic-nav-inner,.blog-layout,.footer-inner,.sample-note {
    margin-left: 28px;
    margin-right: 28px;
    padding-left: 0;
    padding-right: 0;
  }
  .blog-layout {
    grid-template-columns: 190px minmax(0,1fr) 230px;
    gap: 22px;
  }
  .header-inner {
    gap: 32px;
  }
  .topic-nav a {
    padding-left: 16px;
    padding-right: 16px;
  }
  .post-image {
    width: 155px;
  }
  .post-content {
    padding: 18px 18px 13px;
  }
  .post-content h3 {
    font-size: 18px;
  }
  .post-card .post-bottom>span {
    font-size: 12px;
  }
  .post-bottom {
    gap: 7px;
  }
  .read-more {
    font-size: 12px;
  }
  .side-heading>span {
    font-size: 9px;
  }
  .featured-image img {
    height: 220px;
  }
  .featured-copy h2 {
    font-size: 23px;
  }
}

@media (max-width:1180px) {
  .blog-layout {
    grid-template-columns: 185px minmax(0,1fr);
    gap: 24px;
  }
  .right-sidebar {
    display: none;
  }
  .header-inner {
    gap: 24px;
  }
  .nav-motto {
    display: none;
  }
  .topic-nav a {
    padding-left: 19px;
    padding-right: 19px;
  }
  .featured-image img {
    height: 250px;
  }
  .post-image {
    width: 190px;
  }
  .post-card .post-bottom>span {
    font-size: 12px;
  }
  .post-content h3 {
    font-size: 19px;
  }
  .side-heading>span {
    font-size: 9px;
  }
  .footer-inner {
    gap: 20px;
  }
  .header-search {
    width: 320px;
    max-width: 33%;
  }
  .blog-layout.article-layout {
    grid-template-columns: minmax(0,1fr);
    max-width: 820px;
    gap: 0;
  }
  .reading-sidebar {
    display: none;
  }
  .article-toc {
    display: block;
  }
}

@media (max-width:860px) {
  .blog-layout.article-layout { width: calc(100% - 44px); }
  .header-inner,.topic-nav-inner,.blog-layout,.footer-inner,.sample-note {
    margin-left: 22px;
    margin-right: 22px;
  }
  .header-inner {
    gap: 20px;
  }
  .header-search {
    width: 230px;
    max-width: 32%;
    font-size: 13px;
  }
  .header-actions {
    gap: 12px;
    font-size: 13px;
  }
  .brand-name {
    font-size: 23px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .header-search kbd {
    display: none;
  }
  .topic-nav-inner {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
    padding: 0 22px;
    max-width: none;
  }
  .topic-nav a {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 13px;
  }
  .blog-layout {
    grid-template-columns: 160px minmax(0,1fr);
    gap: 20px;
  }
  .side-section {
    padding: 19px 13px;
  }
  .profile-card h2 {
    font-size: 17px;
  }
  .profile-card>p {
    font-size: 12px;
  }
  .profile-stats strong {
    font-size: 17px;
  }
  .side-categories>a {
    font-size: 13px;
    padding: 8px;
    gap: 7px;
    min-height: 44px;
  }
  .side-heading>span {
    display: none;
  }
  .post-card .post-image {
    width: 135px;
  }
  .post-content h3 {
    font-size: 18px;
  }
  .post-content {
    padding: 17px;
  }
  .post-card .post-bottom .read-more {
    display: none;
  }
  .post-card .post-bottom .save-button {
    margin-left: auto;
  }
  .featured-copy {
    padding: 22px;
  }
  .featured-copy h2 {
    font-size: 22px;
  }
  .feed-intro h1 {
    font-size: 28px;
  }
  .feed-intro>p {
    font-size: 14px;
  }
  .category-tabs {
    gap: 22px;
  }
  .category-tabs button {
    font-size: 13px;
  }
  .welcome-note {
    font-size: 13px;
    padding: 13px 15px;
  }
  .featured-image img {
    height: 210px;
  }
  .related-posts .articles-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .related-posts .post-card:nth-child(3) {
    display: none;
  }
  .article-shell {
    padding: 28px 32px;
  }
  .article-header h1 {
    font-size: 31px;
  }
  .about-page {
    padding: 28px;
  }
  .about-page-hero {
    grid-template-columns: 1fr;
  }
  .about-photo {
    aspect-ratio: 2;
  }
  .about-page h1 {
    font-size: 29px;
  }
  .footer-links {
    gap: 17px;
  }
  .header-search span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topic-nav {
    overflow: hidden;
  }
  .topic-nav-inner::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width:700px) {
  .blog-layout.article-layout { width: calc(100% - 28px); }
  .site-header {
    height: 76px;
  }
  .header-inner,.blog-layout,.footer-inner,.sample-note {
    margin-left: 14px;
    margin-right: 14px;
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-name small {
    font-size: 9px;
    letter-spacing: .12em;
    margin-top: 6px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .brand-mark svg {
    width: 25px;
    height: 25px;
  }
  .header-search {
    padding: 10px;
    width: 44px;
    height: 44px;
    max-width: none;
    border: 0;
    background: none;
    margin-left: auto;
    justify-content: center;
    min-height: 44px;
    flex-shrink: 0;
  }
  .header-search span,.header-search kbd {
    display: none;
  }
  .header-actions {
    margin-left: 0;
    gap: 6px;
  }
  .header-actions>a {
    font-size: 12px;
  }
  .header-actions>a:first-child {
    display: none;
  }
  .header-divider {
    display: none;
  }
  .icon-button {
    height: 44px;
    width: 44px;
  }
  .topic-nav {
    border-bottom-width: 3px;
    overflow: hidden;
    scrollbar-width: none;
  }
  .topic-nav::-webkit-scrollbar {
    display: none;
  }
  .topic-nav-inner {
    margin: 0;
    width: auto;
    max-width: none;
    height: 50px;
    gap: 2px;
    padding: 0 34px 0 14px;
    overflow-x: auto;
  }
  .topic-nav a {
    padding: 12px 14px;
    font-size: 13px;
    height: 50px;
  }
  .topic-nav a.active:after {
    bottom: -3px;
    left: 14px;
    right: 14px;
    height: 3px;
  }
  .topic-nav a svg {
    width: 13px;
    height: 13px;
  }
  .topic-nav a:last-of-type svg {
    display: none;
  }
  .blog-layout {
    grid-template-columns: 1fr;
    margin-top: 24px;
    margin-bottom: 38px;
    gap: 0;
  }
  .left-sidebar,.right-sidebar {
    display: none;
  }
  .feed-intro {
    padding-bottom: 16px;
    padding: 0 3px 21px;
  }
  .feed-intro h1 {
    font-size: 28px;
    letter-spacing: 0;
    margin: 10px 0 9px;
    line-height: 1.5;
  }
  .feed-intro .eyebrow {
    font-size: 10px;
    letter-spacing: .06em;
  }
  .feed-intro>p {
    font-size: 14px;
    line-height: 1.9;
  }
  .welcome-note {
    padding: 13px 14px;
    margin-bottom: 21px;
    gap: 9px;
    line-height: 1.7;
    font-size: 13px;
    align-items: flex-start;
  }
  .demo-label {
    font-size: 12px;
    padding: 1px 4px;
    display: none;
  }
  .featured-image img {
    height: auto;
    aspect-ratio: 1.78;
  }
  .pinned-label {
    left: 14px;
    top: 14px;
    padding: 5px 9px;
    font-size: 11px;
    right: auto;
  }
  .cover-caption {
    left: 15px;
    bottom: 12px;
    font-size: 10px;
    letter-spacing: .05em;
  }
  .featured-copy {
    padding: 20px 20px 15px;
  }
  .featured-copy h2 {
    font-size: 22px;
    line-height: 1.6;
    margin-top: 9px;
    margin: 12px 0 10px;
  }
  .featured-copy>p {
    font-size: 14px;
    line-height: 1.9;
  }
  .post-meta {
    font-size: 12px;
    gap: 8px;
  }
  .post-bottom {
    font-size: 12px;
    margin-top: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .read-more {
    font-size: 13px;
  }
  .meta-separator {
    margin: 0 6px;
  }
  .featured-post {
    margin-bottom: 28px;
  }
  .feed-heading h2 {
    font-size: 20px;
  }
  .feed-heading>span {
    font-size: 12px;
  }
  .category-tabs {
    gap: 23px;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  .category-tabs button {
    font-size: 13px;
    min-height: 44px;
  }
  .category-tabs button[aria-pressed=true]:after {
    bottom: -11px;
  }
  .feed-list {
    gap: 20px;
  }
  .post-card .post-image {
    width: 100%;
    margin: 0;
    align-self: stretch;
    height: auto;
    aspect-ratio: 1.9;
    border-radius: 0;
  }
  .post-image img {
    min-height: 0;
  }
  .post-content {
    padding: 19px 20px 13px;
  }
  .post-content h3 {
    font-size: 20px;
    line-height: 1.6;
    margin: 10px 0;
  }
  .post-excerpt {
    font-size: 14px;
    line-height: 1.85;
    -webkit-line-clamp: 3;
  }
  .post-card .post-meta {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .post-card .post-bottom {
    margin-top: 12px;
    font-size: 12px;
    gap: 5px;
  }
  .post-card .post-bottom>span {
    font-size: 12px;
  }
  .post-card .post-bottom .meta-separator {
    margin: 0 6px;
  }
  .image-category {
    font-size: 11px;
    left: 13px;
    bottom: 13px;
    padding: 4px 8px;
  }
  .post-card .save-button {
    width: 44px;
    height: 44px;
    padding: 12px;
  }
  .post-card .save-button svg {
    width: 19px;
    height: 19px;
  }
  .load-more-wrap {
    margin-top: 20px;
  }
  .outline-button {
    font-size: 14px;
    gap: 10px;
    padding: 11px 18px;
    min-height: 46px;
  }
  .outline-button>span {
    font-size: 12px;
  }
  .feed-end {
    font-size: 12px;
    letter-spacing: 0;
    margin-top: 28px;
  }
  .page-intro {
    padding: 25px 22px;
  }
  .page-intro h1 {
    font-size: 28px;
    margin: 10px 0;
    line-height: 1.55;
  }
  .page-intro>p {
    font-size: 14px;
  }
  .page-intro .eyebrow {
    font-size: 10px;
    letter-spacing: .06em;
  }
  .archive-year {
    padding: 23px 20px;
    margin-top: 20px;
  }
  .archive-year>h2 {
    font-size: 25px;
  }
  .archive-year>h2>span {
    font-size: 12px;
    margin-left: 10px;
  }
  .archive-row {
    grid-template-columns: 43px 1fr 20px;
    gap: 11px;
    padding: 19px 0;
  }
  .archive-row h3 {
    font-size: 15px;
    line-height: 1.8;
  }
  .archive-category {
    display: none;
  }
  .archive-date {
    font-size: 12px;
  }
  .archive-row svg {
    height: 12px;
    width: 12px;
  }
  .article-shell {
    padding: 20px;
    border-radius: 14px;
  }
  .article-header {
    padding: 18px 0 23px;
  }
  .article-header h1 {
    font-size: 28px;
    line-height: 1.55;
    margin: 14px 0;
    letter-spacing: 0;
  }
  .article-deck {
    font-size: 14px;
    line-height: 1.9;
  }
  .article-byline {
    font-size: 12px;
    gap: 7px;
    margin-top: 20px;
  }
  .article-byline>svg {
    width: 24px;
    height: 24px;
  }
  .article-tools {
    gap: 8px;
    margin-left: 0;
    width: 100%;
    margin-top: 5px;
  }
  .article-tools>button {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 44px;
  }
  .article-tools .share-text {
    display: inline;
  }
  .article-cover {
    aspect-ratio: 1.7;
  }
  .article-body {
    font-size: var(--reading-size,17px);
    margin: 27px 0 0;
    line-height: 1.95;
    letter-spacing: .01em;
  }
  .article-body h2 {
    font-size: 1.3em;
    margin: 34px 0 17px;
    line-height: 1.6;
  }
  .article-body p {
    margin-bottom: 25px;
  }
  .article-body blockquote {
    font-size: 1em;
    padding: 17px 18px;
  }
  .article-end {
    font-size: 13px;
    align-items: start;
    flex-direction: column;
  }
  .article-sources {
    padding: 18px;
    font-size: 13px;
  }
  .article-sources h2 {
    font-size: 17px;
  }
  .related-posts>h2 {
    font-size: 20px;
    margin-bottom: 17px;
  }
  .related-posts .articles-grid {
    gap: 17px;
    grid-template-columns: 1fr;
  }
  .articles-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .articles-grid .post-image {
    width: 100%;
    margin: 0;
  }
  .articles-grid .post-content {
    padding: 19px 20px 13px;
  }
  .articles-grid .post-content h3 {
    font-size: 20px;
  }
  .related-posts .post-content h3 {
    font-size: 18px;
  }
  .related-posts .post-bottom>span {
    font-size: 12px;
  }
  .related-posts .post-bottom .meta-separator {
    margin: 0 2px;
  }
  .about-page {
    padding: 25px 22px;
  }
  .about-page h1 {
    font-size: 29px;
    margin-top: 13px;
    line-height: 1.6;
  }
  .about-photo {
    aspect-ratio: 1.75;
  }
  .about-page-hero {
    gap: 22px;
  }
  .about-copy {
    font-size: 16px;
    line-height: 1.95;
    margin-top: 23px;
  }
  .about-copy h2 {
    font-size: 22px;
    margin: 25px 0 15px;
  }
  .about-topics {
    gap: 7px;
  }
  .about-topics a {
    font-size: 14px;
    padding: 8px 11px;
    min-height: 44px;
  }
  .demo-box {
    padding: 17px;
    font-size: 13px;
  }
  .about-page .eyebrow {
    font-size: 10px;
    letter-spacing: .06em;
  }
  .about-lead {
    font-size: 15px;
  }
  .site-footer {
    padding: 25px 0 22px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-brand {
    font-size: 19px;
  }
  .footer-inner>p {
    font-size: 12px;
  }
  .footer-links {
    margin-left: 0;
    width: 100%;
    gap: 18px;
    font-size: 12px;
  }
  .footer-links>span {
    margin-left: auto;
  }
  .sample-note {
    font-size: 12px;
    line-height: 1.85;
    margin-top: 12px;
  }
  .search-dialog {
    padding: 23px;
    top: 5vh;
    max-height: 88dvh;
  }
  .search-top .eyebrow {
    font-size: 10px;
  }
  .search-top h2 {
    font-size: 24px;
    line-height: 1.5;
  }
  .search-input-wrap {
    padding: 11px;
  }
  .search-input-wrap input {
    font-size: 16px;
  }
  .search-result {
    gap: 12px;
  }
  .search-result h3 {
    font-size: 15px;
  }
  .search-result img {
    width: 60px;
    height: 42px;
  }
  .search-result span {
    font-size: 12px;
  }
  .search-footer {
    font-size: 12px;
    line-height: 1.7;
  }
  .search-hint {
    font-size: 13px;
  }
  .toast {
    max-width: 90vw;
    font-size: 13px;
    white-space: normal;
    padding: 12px 18px;
    text-align: center;
    bottom: 22px;
  }
  .empty-state {
    padding: 38px 20px;
    font-size: 14px;
  }
  .empty-state h3 {
    font-size: 20px;
  }
  .referral-card {
    padding: 19px;
    margin: 25px 0;
  }
  .referral-card h2 {
    font-size: 20px;
  }
  .referral-card p.referral-intro {
    font-size: 14px;
  }
  .referral-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .referral-link {
    font-size: 14px;
    min-height: 48px;
    gap: 12px;
    padding: 11px 14px;
  }
  .referral-code {
    justify-content: center;
    font-size: 13px;
  }
  .referral-code code {
    font-size: 18px;
  }
  .referral-card p.referral-disclosure {
    font-size: 12px;
    line-height: 1.9;
  }
  .article-reference {
    padding: 18px;
  }
  .article-reference h2 {
    font-size: 17px;
  }
  .article-reference p,.article-reference a {
    font-size: 13px;
  }
  .article-step-gallery {
    padding: 16px;
    margin: 29px 0 33px;
  }
  .step-gallery-heading h3 {
    font-size: 17px;
    line-height: 1.7;
  }
  .step-gallery-heading>span {
    font-size: 11px;
    padding: 3px 7px;
  }
  .article-body .step-gallery-note {
    font-size: 13px;
    line-height: 1.85;
    margin-bottom: 18px;
  }
  .step-gallery-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .article-step-figure {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .step-photo-link {
    padding: 7px;
  }
  .step-photo-link img {
    max-height: none;
  }
  .step-photo-link>span {
    opacity: 1;
    right: 9px;
    bottom: 9px;
    font-size: 12px;
  }
  .article-step-figure figcaption {
    font-size: 13px;
  }
  .article-step-figure figcaption>a {
    font-size: 12px;
  }
  .screenshot-summary {
    font-size: 12px;
    gap: 5px;
    padding: 9px 13px;
  }
  .screenshot-summary button {
    font-size: 13px;
    min-height: 44px;
  }
  .header-search svg {
    width: 21px;
    height: 21px;
  }
  .topic-nav::after {
    content: "›";
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 30px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #dfc594;
    background: linear-gradient(90deg,#29364600,#293646 40%);
    pointer-events: none;
  }
  .dark .topic-nav::after {
    background: linear-gradient(90deg,#121a2500,#121a25 40%);
  }
  .blog-layout.article-layout {
    grid-template-columns: 1fr;
    margin-top: 18px;
    gap: 0;
  }
  .notice-dot {
    margin-top: 9px;
  }
  .post-card {
    flex-direction: column;
  }
  .post-card .post-bottom .read-more {
    display: flex;
  }
  .article-header .eyebrow {
    font-size: 10px;
  }
  .step-gallery-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .reading-controls {
    gap: 10px;
    padding: 13px 0 18px;
  }
  .reading-label {
    font-size: 12px;
  }
  .font-options {
    padding: 3px;
    gap: 1px;
  }
  .font-options button {
    min-width: 54px;
    min-height: 44px;
    font-size: 13px;
    padding: 7px 10px;
  }
  .article-toc {
    margin: 19px 0 24px;
    padding: 0 13px;
  }
  .article-toc summary {
    font-size: 14px;
  }
  .article-toc .toc-list button {
    font-size: 14px;
    padding: 10px 8px;
  }
  .back-to-top {
    right: 15px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

@media (max-width:360px) {
  .header-inner,.blog-layout,.footer-inner,.sample-note {
    margin-left: 12px;
    margin-right: 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
  }
  .post-card .post-image {
    width: 100%;
  }
  .post-content {
    padding: 18px;
  }
  .post-content h3 {
    font-size: 19px;
  }
  .post-card .post-bottom>span {
    font-size: 12px;
  }
  .feed-intro h1 {
    font-size: 26px;
  }
  .featured-copy h2 {
    font-size: 21px;
  }
  .header-actions>a {
    display: none;
  }
  .article-shell {
    padding: 18px;
  }
  .article-header h1 {
    font-size: 26px;
  }
  .font-options button {
    min-width: 51px;
    padding: 7px 8px;
  }
}

/* Reading continuity, photo viewer and compact mobile tools */
body.dialog-open {
  overflow: hidden;
}
.article-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 2px;
}
.article-topline .back-link:hover {
  color: var(--green);
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.article-breadcrumb a:hover {
  color: var(--green);
}
.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
  margin: 26px 0;
}
.neighbor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 21px 45px 21px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s,box-shadow .2s,transform .2s;
}
.neighbor-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px #2235480a;
  transform: translateY(-2px);
}
.neighbor-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}
.neighbor-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
  overflow-wrap: break-word;
}
.neighbor-card small {
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
}
.neighbor-card>svg {
  position: absolute;
  right: 18px;
  top: 23px;
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  font-size: 13px;
}
.post-tags button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 13px;
  background: var(--soft);
  color: var(--green);
  border: 1px solid transparent;
  border-radius: 22px;
  font-size: 13px;
  line-height: 1.6;
}
.post-tags button:hover {
  border-color: var(--green);
}
.search-result {
  padding: 14px 12px;
  border-radius: 9px;
  transition: background .15s;
}
.search-result>div {
  flex: 1;
  min-width: 0;
}
.search-result.is-selected,
.search-result:focus-visible {
  background: var(--soft);
}
.search-result.is-selected h3 {
  color: var(--green);
}
.search-result.is-selected::after {
  content: "↵";
  margin-left: auto;
  flex-shrink: 0;
  color: var(--green);
  font-size: 18px;
}
.search-footer kbd {
  display: inline-block;
  font-size: 11px;
  line-height: 1.7;
}
.image-dialog {
  width: min(1100px,calc(100vw - 48px));
  height: min(960px,92dvh);
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  margin: auto;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  background: #1a2637;
  color: #edf2f8;
  box-shadow: 0 24px 100px #050e1a66;
  overflow: hidden;
  color-scheme: dark;
}
.image-dialog[open] {
  display: flex;
  flex-direction: column;
}
.image-dialog::backdrop {
  background: #07111de0;
  backdrop-filter: blur(7px);
}
.image-viewer-toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #ffffff17;
}
#image-counter {
  color: #c2ccda;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.image-viewer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.image-viewer-actions button,
.image-viewer-actions a,
.image-viewer-bottom>button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  color: #e5ecf5;
  background: #ffffff07;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .15s,border-color .15s;
}
.image-viewer-actions button:hover,
.image-viewer-actions a:hover,
.image-viewer-bottom>button:hover:not(:disabled) {
  border-color: #ffffff45;
  background: #ffffff13;
}
.image-viewer-actions button[aria-pressed="true"] {
  color: #f0cf8d;
  border-color: #c5a05e;
  background: #c5a05e17;
}
.image-viewer-actions svg,
.image-viewer-bottom>button svg {
  width: 18px;
  height: 18px;
}
.image-dialog :focus-visible {
  outline-color: #efcc86;
}
.image-viewer-stage {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: 20px;
  background: #111b29;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#image-viewer-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60dvh;
  margin: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  cursor: zoom-in;
}
.image-dialog.zoomed .image-viewer-stage,
.image-viewer-stage.zoomed {
  display: block;
}
.image-dialog.zoomed #image-viewer-photo,
.image-viewer-stage.zoomed #image-viewer-photo {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.image-viewer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  padding: 18px 20px 20px;
  border-top: 1px solid #ffffff17;
}
.image-viewer-bottom>button {
  flex-shrink: 0;
}
.image-viewer-bottom>button:disabled {
  opacity: .35;
  cursor: default;
}
.image-viewer-caption {
  flex: 1;
  min-width: 0;
  text-align: center;
  line-height: 1.7;
}
#image-caption {
  color: #f2f5fa;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 600;
}
#image-note {
  margin: 6px 0;
  color: #b1bed0;
  font-size: 12px;
  line-height: 1.8;
}
#image-source {
  display: inline-block;
  color: #e6c582;
  font-size: 12px;
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.toc-dialog {
  width: min(540px,calc(100vw - 40px));
  max-width: none;
  max-height: min(75dvh,720px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 90px #14243b33;
  overflow: hidden;
}
.toc-dialog[open] {
  display: flex;
  flex-direction: column;
}
.toc-dialog::backdrop {
  background: #1322398c;
  backdrop-filter: blur(4px);
}
.toc-dialog-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
}
.toc-dialog-header h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}
.toc-dialog-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--muted);
}
.toc-dialog-header button:hover {
  background: var(--soft);
  color: var(--ink);
}
.toc-dialog>.toc-list {
  padding: 15px 18px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.toc-dialog .toc-list button {
  font-size: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.mobile-reading-bar {
  display: none;
}
@media (max-width:700px) {
  .article-topline {
    align-items: flex-start;
    gap: 0 12px;
  }
  .article-breadcrumb {
    font-size: 12px;
    gap: 7px;
  }
  .article-neighbors {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin: 21px 0;
  }
  .neighbor-card {
    padding: 18px 45px 18px 20px;
    gap: 7px;
  }
  .neighbor-card strong {
    font-size: 16px;
  }
  .neighbor-card>svg {
    top: 20px;
  }
  .post-tags button {
    min-height: 44px;
  }
  .search-result {
    padding: 13px 9px;
  }
  .search-result.is-selected::after {
    display: none;
  }
  .image-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .image-viewer-toolbar {
    padding: calc(9px + env(safe-area-inset-top,0px)) 12px 9px;
    gap: 8px;
  }
  #image-counter {
    font-size: 12px;
  }
  .image-viewer-actions {
    gap: 4px;
  }
  .image-viewer-actions button,
  .image-viewer-actions a {
    padding: 9px 10px;
    font-size: 12px;
  }
  .image-viewer-stage {
    padding: 16px 12px;
  }
  #image-viewer-photo {
    max-height: 60dvh;
  }
  .image-viewer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom,0px));
  }
  .image-viewer-caption {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: left;
  }
  #image-caption {
    font-size: 13px;
  }
  #image-note,
  #image-source {
    font-size: 12px;
  }
  .image-viewer-bottom>button {
    width: 100%;
  }
  .toc-dialog {
    width: 100%;
    max-height: 75dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .toc-dialog-header {
    padding: 12px 18px;
  }
  .toc-dialog>.toc-list {
    padding: 12px 15px calc(19px + env(safe-area-inset-bottom,0px));
  }
  .mobile-reading-bar:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    position: fixed;
    z-index: 85;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom,0px));
    width: calc(100% - 28px);
    max-width: 400px;
    margin: 0 auto;
    padding: 7px 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 32px #14243b24;
  }
  .mobile-reading-bar>button,
  .mobile-reading-bar>.save-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 7px;
    width: auto;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 8px 9px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
  }
  .mobile-reading-bar>button:hover {
    background: var(--soft);
    color: var(--green);
  }
  .mobile-reading-bar>button[data-open-toc] {
    background: var(--soft);
    color: var(--green);
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 0;
  }
  .mobile-reading-bar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .mobile-reading-bar small {
    display: block;
    width: 100%;
    color: var(--muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    text-align: center;
  }
  body.mobile-reader-visible .back-to-top {
    bottom: calc(100px + env(safe-area-inset-bottom,0px));
  }
  body.article-open {
    padding-bottom: calc(90px + env(safe-area-inset-bottom,0px));
  }
  body.mobile-reader-visible .toast {
    bottom: calc(100px + env(safe-area-inset-bottom,0px));
  }
}
@media (max-width:360px) {
  .image-viewer-actions button,
  .image-viewer-actions a {
    padding-left: 8px;
    padding-right: 8px;
  }
  .article-topline {
    flex-direction: column;
  }
  .mobile-reading-bar>button,
  .mobile-reading-bar>.save-button {
    padding-left: 6px;
    padding-right: 6px;
    gap: 5px;
  }
}

/* Home: editorial overview, topic navigation and a quieter reading grid */
.home-page {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 35px auto 58px;
}
.home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 1px 27px;
}
.home-heading .eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}
.home-heading h1 {
  margin-top: 9px;
  color: var(--ink);
  font-size: clamp(27px,2.5vw,36px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.025em;
}
.home-heading h1 span {
  color: var(--gold);
}
.home-heading>p {
  flex-shrink: 0;
  margin-bottom: 3px;
  padding-left: 23px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.home-spotlight {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(0,1fr);
  align-items: stretch;
  gap: 20px;
  margin-bottom: 24px;
}
.home-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  min-width: 0;
  min-height: 340px;
  overflow: hidden;
  background: linear-gradient(125deg,#22334b,#17263c);
  border: 1px solid #263c56;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 12px 35px #1b2b4310;
}
.home-feature::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -95px;
  top: -170px;
  border: 1px solid #e3cc9c15;
  border-radius: 50%;
  pointer-events: none;
}
.home-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 0 23px 32px;
  min-width: 0;
}
.feature-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  gap: 8px;
  padding: 2px 8px;
  border: 1px solid #dfc38d45;
  border-radius: 5px;
  color: #e8cc95;
  background: #e1c48e0c;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.home-feature-copy h2 {
  margin: 14px 0 10px;
  color: #f9f8f4;
  font-size: clamp(26px,2.35vw,32px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.02em;
}
.home-feature-copy>p {
  max-width: 25em;
  color: #bdc9da;
  font-size: 13px;
  line-height: 1.8;
}
.feature-kicker>span {
  font-size: 8px;
  opacity: .72;
  letter-spacing: .08em;
}
.home-feature-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0 12px;
}
.feature-read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e2c994;
  border-radius: 8px;
  background: #ead2a4;
  color: #253449;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s,transform .2s;
}
.feature-read-button:hover {
  background: #f1dfb9;
  transform: translateY(-1px);
}
.feature-read-button svg {
  width: 16px;
  height: 16px;
}
.home-feature-actions .save-button {
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  color: #d3dcea;
}
.home-feature-actions .save-button:hover {
  background: #ffffff0d;
}
.home-feature-actions .save-button svg {
  width: 18px;
  height: 18px;
}
.home-feature-meta {
  display: block;
  margin-top: auto;
  color: #9eaec3;
  font-size: 11px;
  line-height: 1.7;
}
.home-feature-art {
  position: relative;
  align-self: stretch;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-feature-art img {
  width: 133%;
  max-width: none;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  transform: translateX(-3%);
  flex-shrink: 0;
  transition: transform .5s;
}
.home-feature-art:hover img {
  transform: translateX(-3%) translateY(-4px);
}
.home-spotlight-side {
  display: grid;
  grid-template-rows: repeat(2,minmax(0,1fr));
  gap: 16px;
  min-width: 0;
}
.home-mini-feature {
  display: grid;
  grid-template-columns: minmax(0,1fr) 102px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 158px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 18px #22354803;
  transition: border-color .2s,box-shadow .2s;
}
.home-mini-feature:nth-child(2) {
  background: color-mix(in srgb,var(--surface) 92%,var(--gold));
}
.home-mini-feature:hover {
  border-color: #c6d1df;
  box-shadow: 0 7px 24px #22354808;
}
.home-mini-feature>div {
  min-width: 0;
}
.mini-feature-label {
  display: block;
  color: var(--green);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .07em;
  margin-bottom: 7px;
}
.home-mini-feature:nth-child(2) .mini-feature-label {
  color: var(--gold);
}
.home-mini-feature h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}
.home-mini-feature h3 a:hover {
  color: var(--green);
}
.home-mini-feature small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.home-mini-art {
  display: block;
  width: 102px;
  height: 108px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 11px;
}
.home-mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform .5s;
}
.home-mini-art:hover img {
  transform: scale(1.04);
}
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin: 0 0 38px;
}
.home-category-card {
  display: grid;
  grid-template-columns: 39px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 0;
  padding: 19px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 3px 16px #22354802;
  transition: border-color .2s,transform .2s,box-shadow .2s;
}
.home-category-card:hover,
.home-category-card.active,
.home-category-card[aria-current] {
  border-color: #c9b181;
  box-shadow: 0 6px 20px #22354806;
  transform: translateY(-2px);
}
.home-category-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 42px;
  border: 1px solid #306aa50c;
  border-radius: 10px;
  background: var(--soft);
  color: var(--green);
}
.home-category-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.4;
}
.home-category-card:nth-child(2) .home-category-icon,
.home-category-card:nth-child(3) .home-category-icon {
  background: #bc8c3d10;
  border-color: #bc8c3d0c;
  color: var(--gold);
}
.home-category-card h2 {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  white-space: nowrap;
}
.home-category-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.home-category-card>small {
  align-self: start;
  padding-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.home-category-card>svg {
  display: none;
}
.home-main-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 260px;
  align-items: start;
  gap: 28px;
}
.home-main-layout>.feed-section {
  min-width: 0;
  scroll-margin-top: 30px;
}
.home-page .feed-heading {
  align-items: flex-end;
  margin-bottom: 16px;
}
.home-page .feed-heading h2 {
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.home-page .feed-heading h2::before {
  height: 21px;
}
.home-page .feed-heading>span {
  font-size: 12px;
}
.home-page .category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  margin-bottom: 21px;
  border: 0;
  overflow: visible;
}
.home-page .category-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.home-page .category-tabs button:hover {
  color: var(--green);
  background: var(--surface);
}
.home-page .category-tabs button[aria-pressed="true"] {
  background: var(--nav);
  color: #f1e3c7;
  border-color: var(--nav);
  font-weight: 500;
}
.home-page .category-tabs button[aria-pressed="true"]::after {
  display: none;
}
.home-post-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 23px;
}
.home-post-grid .post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  box-shadow: 0 5px 21px #22354804;
  transition: border-color .2s,box-shadow .2s,transform .2s;
}
.home-post-grid .post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #22354809;
}
.home-post-grid .post-card .post-image {
  display: block;
  align-self: stretch;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
  background: var(--soft);
}
.home-post-grid .post-card .post-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.home-post-grid .image-category {
  left: 16px;
  bottom: 14px;
  padding: 4px 8px;
  font-size: 10px;
}
.home-post-grid .post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px 22px 16px;
}
.home-post-grid .post-meta {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}
.home-post-grid .post-content h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.1em;
  margin: 11px 0 10px;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.home-post-grid .post-excerpt {
  -webkit-line-clamp: 2;
  min-height: 3.7em;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
.home-post-grid .post-card .post-bottom {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.home-post-grid .post-card .post-bottom>span {
  font-size: 11px;
  line-height: 1.6;
}
.home-post-grid .post-card .post-bottom .meta-separator {
  margin: 0 4px;
}
.home-post-grid .post-card .post-bottom .read-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}
.home-post-grid .post-card .post-bottom .read-more svg {
  width: 13px;
  height: 13px;
}
.home-post-grid .post-card .save-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 44px;
  margin-left: 0;
  padding: 10px;
  border-radius: 9px;
}
.home-post-grid .post-card .save-button svg {
  width: 17px;
  height: 17px;
}
.home-page .load-more-wrap {
  margin-top: 29px;
}
.home-page .load-more-wrap .outline-button {
  min-height: 46px;
  padding: 10px 25px;
  background: transparent;
  font-size: 13px;
  border-radius: 24px;
}
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding-top: 4px;
}
.home-author {
  padding: 25px 23px 22px;
}
.home-author .brand-mark,
.home-author-mark {
  display: grid;
  place-items: center;
  color: #e3c388;
  background: var(--nav);
  width: 43px;
  height: 43px;
  margin-bottom: 18px;
  border-radius: 12px;
}
.home-author-mark svg {
  width: 25px;
  height: 25px;
}
.home-author>.eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: .1em;
}
.home-author h2 {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 600;
}
.home-author>p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}
.home-author-stats {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 21px 0 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-author-stats>div,
.home-author-stats>a {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-author-stats strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.home-author-stats span,
.home-author-stats small {
  color: var(--muted);
  font-size: 11px;
}
.home-author>a,
.home-author .about {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--green);
  font-size: 12px;
}
.home-author>a svg {
  width: 13px;
  height: 13px;
}
.home-recommendations {
  padding: 23px 21px;
}
.home-recommendations .side-heading {
  padding-bottom: 15px;
  margin-bottom: 6px;
  font-size: 14px;
}
.home-recommendations .side-heading>span {
  font-size: 8px;
  letter-spacing: .06em;
}
.home-recommendations .recommended-post {
  gap: 12px;
  padding: 17px 0;
}
.home-recommendations .recommended-post h3 {
  font-size: 13px;
  line-height: 1.8;
}
.home-recommendations .recommended-post small {
  font-size: 10px;
}
.home-recommendations .rank {
  font-size: 22px;
}
.home-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}
.home-footer-note a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--green);
  white-space: nowrap;
}
.home-footer-note a svg {
  width: 13px;
  height: 13px;
}
.home-page.is-filtered .home-category-grid {
  margin-bottom: 32px;
}
.dark .home-mini-feature:nth-child(2) {
  background: #293341;
}
.dark .home-category-card:hover,
.dark .home-category-card.active,
.dark .home-category-card[aria-current] {
  border-color: #887044;
}
@media (max-width:1180px) {
  .home-page {
    width: calc(100% - 56px);
  }
  .home-spotlight {
    grid-template-columns: minmax(0,1.65fr) minmax(0,1fr);
    gap: 18px;
  }
  .home-feature-copy {
    padding-left: 28px;
  }
  .home-feature-copy h2 {
    font-size: 29px;
  }
  .home-mini-feature {
    grid-template-columns: minmax(0,1fr) 85px;
    gap: 12px;
    padding: 18px;
  }
  .home-mini-art {
    width: 85px;
    height: 100px;
  }
  .home-mini-feature h3 {
    font-size: 16px;
  }
  .home-category-card {
    grid-template-columns: 33px minmax(0,1fr);
    gap: 10px;
    padding: 16px 14px;
  }
  .home-category-icon {
    width: 33px;
    height: 38px;
  }
  .home-category-card>small {
    grid-column: 2;
    padding-top: 0;
  }
  .home-category-card p {
    font-size: 10px;
  }
  .home-main-layout {
    grid-template-columns: minmax(0,1fr) 240px;
    gap: 24px;
  }
  .home-post-grid {
    gap: 19px;
  }
  .home-post-grid .post-content {
    padding: 20px 19px 15px;
  }
  .home-post-grid .post-content h3 {
    font-size: 19px;
  }
  .home-author {
    padding: 23px 20px 19px;
  }
  .home-recommendations {
    padding: 22px 19px;
  }
}
@media (max-width:1050px) {
  .home-heading>p {
    font-size: 12px;
  }
  .home-spotlight {
    grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  }
  .home-feature {
    grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr);
  }
  .home-feature-copy h2 {
    font-size: 27px;
  }
  .home-feature-copy>p {
    font-size: 12px;
  }
  .home-feature-art img {
    width: 160%;
    transform: translateX(-3%);
  }
  .home-mini-feature {
    grid-template-columns: minmax(0,1fr) 75px;
    gap: 10px;
    padding: 17px;
  }
  .home-mini-art {
    width: 75px;
    height: 94px;
  }
  .home-mini-feature h3 {
    font-size: 15px;
  }
  .home-sidebar {
    display: none;
  }
  .home-main-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .home-post-grid .post-content h3 {
    font-size: 20px;
  }
  .home-post-grid .post-content {
    padding: 22px;
  }
}
@media (max-width:860px) {
  .home-page {
    width: calc(100% - 44px);
    margin-top: 27px;
  }
  .home-heading {
    align-items: flex-start;
    gap: 20px;
  }
  .home-heading>p {
    display: none;
  }
  .home-spotlight {
    grid-template-columns: minmax(0,1fr);
  }
  .home-feature {
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    min-height: 310px;
  }
  .home-feature-copy {
    padding: 28px 0 27px 31px;
  }
  .home-feature-copy h2 {
    font-size: 32px;
  }
  .home-feature-copy>p {
    font-size: 14px;
  }
  .home-feature-art img {
    width: 120%;
    max-height: 310px;
  }
  .home-spotlight-side {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: none;
    gap: 16px;
  }
  .home-mini-feature {
    grid-template-columns: minmax(0,1fr) 74px;
    padding: 18px;
  }
  .home-mini-feature h3 {
    font-size: 15px;
  }
  .home-mini-art {
    width: 74px;
    height: 100px;
  }
  .home-category-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }
  .home-category-card {
    grid-template-columns: 39px minmax(0,1fr) auto;
    gap: 12px;
    padding: 19px 18px;
  }
  .home-category-icon {
    width: 39px;
    height: 42px;
  }
  .home-category-card>small {
    grid-column: auto;
    padding-top: 2px;
  }
  .home-category-card p {
    font-size: 11px;
  }
}
@media (max-width:700px) {
  .home-page {
    width: calc(100% - 32px);
    margin: 25px auto 34px;
  }
  .home-heading {
    margin: 0 2px 20px;
  }
  .home-heading .eyebrow {
    font-size: 9px;
    letter-spacing: .08em;
  }
  .home-heading h1 {
    font-size: 28px;
    line-height: 1.55;
    margin-top: 8px;
  }
  .home-spotlight {
    gap: 14px;
    margin-bottom: 20px;
  }
  .home-feature {
    grid-template-columns: minmax(0,1fr);
    min-height: 0;
    border-radius: 18px;
  }
  .home-feature-copy {
    padding: 27px 26px 0;
  }
  .home-feature-copy h2 {
    margin: 17px 0 12px;
    font-size: 31px;
    line-height: 1.4;
  }
  .home-feature-copy>p {
    max-width: 27em;
    font-size: 13px;
    line-height: 1.9;
  }
  .home-feature-actions {
    margin: 21px 0 14px;
  }
  .feature-read-button {
    min-height: 44px;
    padding: 10px 16px;
  }
  .home-feature-meta {
    font-size: 10px;
  }
  .home-feature-art {
    height: 183px;
    margin: -4px 0 0;
  }
  .home-feature-art img {
    width: 93%;
    max-height: 216px;
    height: 216px;
    transform: translateX(6%) translateY(-3px);
  }
  .home-feature-art:hover img {
    transform: translateX(6%) translateY(-6px);
  }
  .home-spotlight-side {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .home-mini-feature {
    grid-template-columns: minmax(0,1fr) 91px;
    min-height: 145px;
    gap: 17px;
    padding: 19px 20px;
    border-radius: 14px;
  }
  .home-mini-feature h3 {
    -webkit-line-clamp: 3;
    margin-bottom: 9px;
    font-size: 17px;
    line-height: 1.55;
  }
  .home-mini-art {
    width: 91px;
    height: 103px;
  }
  .home-mini-feature small {
    font-size: 10px;
  }
  .mini-feature-label {
    font-size: 10px;
  }
  .home-category-grid {
    gap: 10px;
    margin-bottom: 30px;
  }
  .home-category-card {
    grid-template-columns: 32px minmax(0,1fr);
    align-items: start;
    column-gap: 9px;
    row-gap: 6px;
    padding: 17px 13px 15px;
    border-radius: 12px;
  }
  .home-category-icon {
    width: 32px;
    height: 35px;
    border-radius: 9px;
  }
  .home-category-icon svg {
    width: 21px;
    height: 21px;
  }
  .home-category-card h2 {
    font-size: 13px;
    line-height: 1.6;
  }
  .home-category-card p {
    display: none;
  }
  .home-category-card>small {
    grid-column: 2;
    align-self: auto;
    padding: 0;
    font-size: 10px;
  }
  .home-main-layout {
    gap: 0;
  }
  .home-page .feed-heading {
    margin: 0 2px 15px;
  }
  .home-page .feed-heading h2 {
    font-size: 21px;
  }
  .home-page .feed-heading>span {
    font-size: 11px;
  }
  .home-page .category-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 19px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
  }
  .home-page .category-tabs button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .home-post-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 19px;
  }
  .home-post-grid .post-card {
    border-radius: 15px;
  }
  .home-post-grid .post-content {
    padding: 21px 21px 16px;
  }
  .home-post-grid .post-content h3 {
    min-height: 0;
    margin: 11px 0 10px;
    font-size: 20px;
    line-height: 1.55;
  }
  .home-post-grid .post-excerpt {
    min-height: 0;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.85;
  }
  .home-post-grid .post-meta {
    font-size: 11px;
  }
  .home-post-grid .post-card .post-bottom {
    gap: 6px;
    padding-top: 8px;
  }
  .home-post-grid .post-card .post-bottom>span {
    font-size: 11px;
  }
  .home-post-grid .post-card .post-bottom .read-more {
    font-size: 12px;
  }
  .home-post-grid .post-card .save-button {
    width: 38px;
    min-width: 38px;
    height: 44px;
    padding: 10px;
  }
  .home-page .load-more-wrap {
    margin-top: 24px;
  }
  .home-page .load-more-wrap .outline-button {
    font-size: 12px;
    padding: 10px 20px;
  }
  .home-footer-note {
    justify-content: flex-start;
    gap: 4px;
    margin-top: 28px;
    padding: 18px 2px 0;
    font-size: 11px;
  }
  .home-footer-note a {
    font-size: 12px;
  }
  .home-page.is-filtered .home-category-grid {
    margin-bottom: 27px;
  }
}
@media (max-width:360px) {
  .home-page {
    width: calc(100% - 28px);
  }
  .home-heading h1 {
    font-size: 26px;
  }
  .home-feature-copy {
    padding: 25px 21px 0;
  }
  .home-feature-copy h2 {
    font-size: 28px;
  }
  .home-feature-art {
    height: 165px;
  }
  .home-feature-art img {
    height: 195px;
    max-height: 195px;
  }
  .home-mini-feature {
    grid-template-columns: minmax(0,1fr) 78px;
    gap: 11px;
    padding: 17px;
  }
  .home-mini-art {
    width: 78px;
    height: 96px;
  }
  .home-mini-feature h3 {
    font-size: 16px;
  }
  .home-category-card {
    column-gap: 7px;
    padding: 15px 10px 13px;
  }
  .home-category-card h2 {
    font-size: 12px;
  }
  .home-post-grid .post-content {
    padding: 19px 18px 14px;
  }
  .home-post-grid .post-content h3 {
    font-size: 19px;
  }
  .home-post-grid .post-card .post-bottom>span {
    font-size: 10px;
  }
  .home-post-grid .post-card .post-bottom .read-more {
    font-size: 11px;
    gap: 5px;
  }
}

/* Platform-specific referral cards and single-image steps */
.referral-card.referral-card-kraken {
  background: linear-gradient(135deg,#f4f0ff,#eeebfb);
  border-color: #d9cdf4;
  color: #493b72;
}
.referral-card-kraken .referral-kicker,
.referral-card-kraken .referral-code,
.referral-card-kraken p.referral-intro,
.referral-card-kraken p.referral-disclosure { color: #63557d; }
.referral-card-kraken .referral-kicker>span:last-child,
.referral-card-kraken .referral-code button { border-color: #cfc0ec; }
.referral-card-kraken h2,
.referral-card-kraken .referral-code code { color: #382460; }
.referral-card-kraken .referral-link { background: #713ee7; color: #fff; }
.referral-card-kraken .referral-link:hover { background: #5b2ec5; }
.referral-card-kraken p.referral-disclosure { border-top-color: #dbd2eb; }
.dark .referral-card.referral-card-kraken { background: linear-gradient(135deg,#30263f,#29233c); border-color: #5b487a; }
.dark .referral-card-kraken h2,
.dark .referral-card-kraken .referral-code code { color: #ebe1ff; }
.dark .referral-card-kraken .referral-kicker,
.dark .referral-card-kraken .referral-code,
.dark .referral-card-kraken p.referral-intro,
.dark .referral-card-kraken p.referral-disclosure { color: #cbbce0; }
.dark .referral-card-kraken .referral-code button { color: #e7def5; background: #3d3151; border-color: #6b568b; }
.dark .referral-card-kraken p.referral-disclosure { border-top-color: #59466f; }
.step-gallery-grid.step-gallery-single { grid-template-columns: minmax(0,1fr); }
.step-gallery-single .article-step-figure:not(.step-figure-wide) { width: 100%; max-width: 480px; margin: 0 auto; }

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
  }
}
