/* Typecho Go — public theme */
:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --bg-elevated: #fbfbf9;
  --surface: #ffffff;
  --surface-soft: #f1f2ee;
  --text: #20242a;
  --text-soft: #4d5560;
  --muted: #737b86;
  --border: #e4e4dd;
  --border-strong: #d1d2ca;
  --accent: #275ecb;
  --accent-strong: #19469f;
  --accent-soft: #e9f0ff;
  --danger: #b93535;
  --success: #24784f;
  --code-bg: #f1f2ee;
  --code-text: #b13b52;
  --shadow: 0 18px 45px rgba(32, 36, 42, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
  --content-width: 720px;
  --font-sans: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1116;
    --bg-elevated: #12161d;
    --surface: #171c24;
    --surface-soft: #1e242e;
    --text: #e9edf3;
    --text-soft: #bdc5d1;
    --muted: #8b95a4;
    --border: #262d38;
    --border-strong: #394252;
    --accent: #7aa6ff;
    --accent-strong: #a8c5ff;
    --accent-soft: #182742;
    --danger: #ff8e8e;
    --success: #75d4a4;
    --code-bg: #1d232d;
    --code-text: #ff9bad;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, var(--accent-soft) 0, transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 34px 24px;
}

.brand {
  min-width: 0;
}

.brand-link {
  display: inline-block;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--accent);
}

.brand-link img {
  max-height: 60px;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-form {
  display: flex;
  align-items: center;
  width: min(320px, 38vw);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 4px 4px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 7px 8px 7px 0;
}

.search-form input::placeholder {
  color: var(--muted);
}

.search-form button {
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 650;
}

.site-nav {
  border-top: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 12px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
}

.nav-inner a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.nav-inner a:hover,
.nav-inner a.active {
  color: var(--text);
}

.nav-inner a:hover::after,
.nav-inner a.active::after {
  transform: scaleX(1);
}

.nav-inner .nav-feed {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Layout */
.site-main {
  min-height: 55vh;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
  padding-block: 54px 78px;
}

.content-column {
  min-width: 0;
  max-width: var(--content-width);
}

/* Article cards */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-card {
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.post-card:first-child {
  padding-top: 0;
}

.post-title {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.26;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.post-meta a {
  color: inherit;
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--accent);
}

.post-meta-large {
  font-size: 14px;
}

.dot {
  opacity: 0.55;
}

.post-excerpt {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 16px;
}

.post-excerpt > :first-child {
  margin-top: 0;
}

.post-excerpt > :last-child {
  margin-bottom: 0;
}

.post-excerpt p {
  margin: 0 0 0.8em;
}

.post-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.chip-muted {
  background: transparent;
  color: var(--muted);
}

.read-more {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.read-more span {
  display: inline-block;
  transition: transform 160ms ease;
}

.read-more:hover span {
  transform: translateX(3px);
}

/* Archive heading */
.archive-header {
  margin: 0 0 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.archive-header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(31px, 5vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.archive-description {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.widget:last-child {
  border-bottom: 0;
}

.widget-title {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.widget-list a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.5;
  text-decoration: none;
}

.widget-list a:hover {
  color: var(--accent);
}

.widget-list time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.widget-comments li p {
  margin: 0;
}

.widget-comments .comment-snippet {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.widget-taxonomy {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-taxonomy li + li {
  margin-top: 2px;
}

.widget-taxonomy a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
}

.widget-taxonomy a:hover {
  color: var(--accent);
}

.widget-taxonomy .count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.tag-cloud a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.tag-cloud a:hover {
  color: var(--accent);
}

.widget-about p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.page-arrow,
.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--text-soft);
  text-decoration: none;
}

.page-arrow:hover,
.page-number:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.page-number.current {
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
}

.page-arrow.disabled {
  color: var(--muted);
  opacity: 0.55;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 3px;
}

.page-gap {
  color: var(--muted);
  padding-inline: 4px;
}

/* Single post */
.single-header {
  margin-bottom: 34px;
}

.single-header h1 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.8vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.post-body {
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.88;
  overflow-wrap: break-word;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body table {
  margin: 1.25em 0;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.post-body h1 {
  margin: 1.8em 0 0.7em;
  font-size: 1.75em;
}

.post-body h2 {
  margin: 1.75em 0 0.65em;
  font-size: 1.45em;
}

.post-body h3 {
  margin: 1.6em 0 0.55em;
  font-size: 1.2em;
}

.post-body h4 {
  margin: 1.5em 0 0.5em;
  font-size: 1.05em;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.post-body a:hover {
  text-decoration-color: currentColor;
}

.post-body ul,
.post-body ol {
  padding-left: 1.35em;
}

.post-body li + li {
  margin-top: 0.38em;
}

.post-body li::marker {
  color: var(--accent);
}

.post-body blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.post-body blockquote > :first-child {
  margin-top: 0;
}

.post-body blockquote > :last-child {
  margin-bottom: 0;
}

.post-body code {
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.16em 0.38em;
}

.post-body pre {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  padding: 18px 20px;
  line-height: 1.65;
  tab-size: 2;
}

.post-body pre code {
  display: block;
  background: transparent;
  color: var(--text);
  font-size: 0.82em;
  padding: 0;
}

.post-body img {
  margin: 1.8em auto;
  border-radius: var(--radius-sm);
}

.post-body hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.post-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
}

.post-body th {
  background: var(--surface-soft);
  color: var(--text);
}

.post-body input[type="checkbox"] {
  accent-color: var(--accent);
  margin-right: 6px;
}

.single-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.post-near {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.near-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.near-next {
  text-align: right;
}

.near-item > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.near-item a {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.5;
  text-decoration: none;
}

.near-item a:hover {
  color: var(--accent);
}

.near-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

/* Comments */
.comments {
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.count-pill {
  display: inline-flex;
  min-width: 26px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.comment-list,
.children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 21px 0;
  border-bottom: 1px solid var(--border);
}

.comment-avatar {
  display: flex;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.comment-main {
  min-width: 0;
  flex: 1;
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.comment-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.comment-head time {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.comment-author-link {
  font-size: 11px;
  text-decoration: none;
}

.comment-body {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.comment-body > :first-child {
  margin-top: 0;
}

.comment-body > :last-child {
  margin-bottom: 0;
}

.comment-body p {
  margin: 0.45em 0;
}

.reply-button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 0;
  font-size: 12px;
  font-weight: 600;
}

.reply-button:hover,
.link-button:hover {
  color: var(--accent);
}

.children {
  margin-top: 15px;
  padding-left: 17px;
  border-left: 1px solid var(--border);
}

.children .comment {
  padding-bottom: 0;
  border-bottom: 0;
}

.children .comment + .comment {
  padding-top: 18px;
}

.empty-state {
  margin: 0;
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state.large {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 56px 0;
}

.empty-state h2 {
  margin: 8px 0 6px;
  color: var(--text);
}

.empty-mark {
  margin: 0;
  color: var(--accent);
  font-size: 34px;
}

.reply-hint {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.reply-hint strong {
  color: var(--text-soft);
}

.comment-form-wrap {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.comment-form label,
.unlock-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.comment-form textarea {
  resize: vertical;
  min-height: 140px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.required {
  color: var(--danger);
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button.primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

.comment-form > .button {
  align-self: flex-start;
}

.comments-closed {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin: 0 0 18px;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.6;
}

.notice-success {
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  color: var(--success);
}

.notice-error {
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
}

/* Protected content and errors */
.locked-panel,
.error-panel {
  max-width: 620px;
  margin: 34px auto 0;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.lock-mark,
.error-code {
  margin: 0 auto 18px;
  color: var(--accent);
}

.lock-mark {
  display: flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 30px;
}

.locked-panel h1,
.error-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

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

.unlock-form {
  margin: 28px auto 0;
  max-width: 390px;
  text-align: left;
}

.unlock-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.unlock-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 10px 12px;
  outline: 0;
}

.unlock-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.back-link {
  margin: 28px 0 0;
  font-size: 13px;
}

.error-code {
  color: var(--border-strong);
  font-family: var(--font-serif);
  font-size: clamp(76px, 16vw, 130px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  padding-block: 30px 34px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  margin: 0 0 7px;
}

.footer-inner strong {
  color: var(--text-soft);
}

.footer-note {
  max-width: 68ch;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 14px;
}

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

.footer-links a:hover {
  color: var(--accent);
}

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

@media (max-width: 920px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-block: 38px 60px;
  }

  .content-column {
    max-width: none;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
  }

  .widget {
    padding-bottom: 22px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 30px, 1120px);
  }

  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding-block: 25px 18px;
  }

  .search-form {
    width: 100%;
  }

  .nav-inner a {
    padding-inline: 10px;
  }

  .post-title {
    font-size: 25px;
  }

  .post-card {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .post-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .post-body {
    font-size: 17px;
    line-height: 1.82;
  }

  .single-header h1 {
    font-size: 34px;
  }

  .form-row,
  .post-near,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .near-next {
    text-align: left;
  }

  .comment-form-wrap {
    padding: 18px;
  }

  .comment-head time {
    width: 100%;
    margin-left: 0;
  }

  .pagination {
    gap: 8px;
  }

  .page-arrow {
    padding-inline: 7px;
  }

  .page-numbers {
    display: none;
  }

  .post-near {
    gap: 24px;
  }
}

@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .post-near,
  .comments,
  .pagination,
  .search-form,
  .site-nav {
    display: none !important;
  }

  .layout {
    display: block;
    padding: 0;
  }

  body {
    background: #fff;
    color: #000;
  }

  .content-column {
    max-width: none;
  }
}
