:root {
  --bg: #f3efe7;
  --panel: #f7f4ed;
  --paper: #fbf8f1;
  --line: rgba(28, 26, 23, 0.12);
  --line-strong: rgba(28, 26, 23, 0.26);
  --text: #1c1a17;
  --muted: #666158;
  --accent: #4f5b67;
  --accent-soft: rgba(79, 91, 103, 0.1);
  --shadow: 0 18px 40px rgba(54, 45, 36, 0.06);
  --content-width: min(1120px, calc(100vw - 48px));
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121315;
  --panel: #17191d;
  --paper: #1d2126;
  --line: rgba(234, 236, 240, 0.14);
  --line-strong: rgba(234, 236, 240, 0.24);
  --text: #f1f2f4;
  --muted: #a8afb8;
  --accent: #b7c1d0;
  --accent-soft: rgba(183, 193, 208, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 12rem),
    repeating-linear-gradient(
      180deg,
      rgba(28, 26, 23, 0.018) 0,
      rgba(28, 26, 23, 0.018) 1px,
      transparent 1px,
      transparent 34px
    ),
    linear-gradient(180deg, #f6f2ea 0%, #efe9de 100%);
}

html[data-theme="dark"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12rem),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 34px
    ),
    linear-gradient(180deg, #101114 0%, #16191d 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
ul,
ol,
blockquote {
  margin: 0;
}

.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--content-width);
  margin: 24px auto 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .site-nav {
  background: rgba(23, 25, 29, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-brand__label,
.site-menu__link,
.page-intro__eyebrow,
.meta-line,
.post-meta,
.tag,
.hero-note__label,
.section-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-brand__label {
  font-size: 0.72rem;
  color: var(--muted);
}

.site-brand__name {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-menu-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-menu__link {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.site-menu__link:hover,
.site-menu__link.is-active {
  color: var(--text);
  background: white;
  border-color: var(--line);
}

html[data-theme="dark"] .site-menu__link:hover,
html[data-theme="dark"] .site-menu__link.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle__icon {
  position: absolute;
  font-size: 1rem;
  line-height: 1;
  transition: opacity 120ms ease;
}

.theme-toggle__icon--moon {
  opacity: 0;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
}

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

.site-frame {
  width: var(--content-width);
  margin: 0 auto;
  padding: 32px 0 48px;
}

.page-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}

.home-hero,
.section-block,
.article-body,
.article-sidebar,
.page-intro {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page-intro,
.section-block {
  padding: 28px;
}

.page-intro {
  display: grid;
  gap: 18px;
}

.page-intro__eyebrow {
  width: fit-content;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

h1, h2, h3, h4 {
  font-family: "Bitter", serif;
}

.post-content,
.playground-card__desc,
.claude-notice {
  font-family: "Be Vietnam Pro", sans-serif;
  letter-spacing: 0;
}

.page-intro__title,
.hero-title,
.section-title,
.post-card__title,
.article-body h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
}

.page-intro__summary,
.page-intro__summary p,
.page-intro__lede,
.hero-summary,
.hero-note p,
.post-card p,
.post-content p,
.post-content li,
.gallery-card__meta span {
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

.site-home .site-frame {
  padding-top: 30px;
  padding-bottom: 30px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  padding: 28px;
  min-height: min(calc(100vh - 60px), 900px);
  align-content: center;
  position: relative;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  background: none;
  border: none;
  outline: none;
  padding: 0;
  appearance: none;
  cursor: pointer;
  display: flex;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
  transition: color 120ms ease;
}

.hero-scroll:hover {
  color: var(--text);
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.5; }
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-summary {
  max-width: 60ch;
}

.hero-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait__img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3 / 4;
}

html[data-theme="dark"] .hero-portrait__img {
  filter: invert(1) hue-rotate(180deg);
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.hero-social__link {
  color: var(--muted);
  transition: color 200ms;
}

.hero-social__link:hover {
  color: var(--text);
}

.home-top-bar {
  position: fixed;
  top: 16px;
  right: 40px;
  z-index: 100;
  grid-column: 1 / -1;
  pointer-events: none;
}

.home-top-bar .theme-toggle {
  pointer-events: auto;
}

.hero-nav {
  display: flex;
  gap: 4px;
  margin-top: 24px;
}

.hero-nav__link {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease, text-decoration-color 120ms ease;
}

.hero-nav__link:hover,
.hero-nav__link.is-active {
  color: var(--text);
  background: white;
  border-color: var(--line);
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[data-theme="dark"] .hero-nav__link:hover,
html[data-theme="dark"] .hero-nav__link.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

html[data-theme="dark"] .button {
  background: rgba(255, 255, 255, 0.04);
}

.button--primary {
  background: var(--text);
  color: #fcfaf6;
  border-color: transparent;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-note,
.post-card,
.gallery-card,
.article-body,
.article-sidebar {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-note::after,
.post-card::after,
.article-body::after,
.article-sidebar::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

.hero-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 600;
}

.hero-note__label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
}

.section-link {
  font-size: 0.82rem;
  color: var(--muted);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 220px;
  cursor: pointer;
}

.post-card__title,
.page-intro--article .page-intro__title {
  font-size: 1.55rem;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  color: inherit;
  transition: text-decoration-color 120ms ease;
}

.post-content a:hover {
  text-decoration-color: var(--text);
}

.post-content .anchor-link > a {
  text-decoration: none;
}

.post-card__title a:hover,
.section-link:hover,
.site-brand:hover,
.site-menu__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.meta-line,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(28, 26, 23, 0.045);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
}

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
}

.article-body {
  padding: 28px;
}

.article-body--single {
  padding: 28px;
}

.giscus-wrap {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.post-content {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  display: grid;
  gap: 10px;
}

.post-content blockquote {
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted);
  font-style: italic;
}

.post-content pre {
  margin: 0;
  overflow: auto;
  padding: 18px;
  background: #171512;
  color: #f4ede1;
  max-width: 100%;
}

html[data-theme="dark"] .post-content pre {
  background: #0f1114;
  color: #eef2f7;
}

.post-content code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.post-content :not(pre) > code {
  padding: 2px 6px;
  background: rgba(28, 26, 23, 0.05);
}

.post-content img {
  width: 100%;
  border: 1px solid var(--line);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

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

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

.gallery-grid--preview .gallery-card {
  padding: 0;
}

.gallery-grid--photos .gallery-card img {
  aspect-ratio: 1 / 1;
}

.gallery-grid--auto {
  grid-auto-rows: auto;
}

.gallery-card {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.gallery-card a {
  display: block;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  transition: transform 360ms ease;
}

.gallery-card a:hover img {
  transform: scale(1.04);
}

.gallery-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 32px 16px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3) 60%, transparent);
  pointer-events: none;
}

.gallery-card__meta .gallery-card__date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}

.gallery-card__meta .gallery-card__caption {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #fff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 240ms ease, opacity 240ms ease;
}

.gallery-card:hover .gallery-card__caption,
.gallery-card:focus-within .gallery-card__caption {
  max-height: 100px;
  opacity: 1;
}

.gallery-card__link {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 240ms ease;
}

.gallery-card:hover .gallery-card__link,
.gallery-card:focus-within .gallery-card__link {
  opacity: 1;
}

button.gallery-card__link {
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.gallery-card__link:hover {
  background: rgba(0,0,0,0.75);
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links li {
  display: inline-flex;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border, rgba(128,128,128,0.25));
  border-radius: 6px;
  transition: border-color 200ms, color 200ms;
}

.social-link:hover {
  color: var(--accent, currentColor);
  border-color: var(--accent, currentColor);
}

.gallery-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.grid > div {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
}

.grid > div > a {
  display: block;
}

.grid > div > a > img,
.grid > div > img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
}

.site-footer {
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .home-hero,
  .post-list,
  .gallery-grid,
  .grid,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: min(100vw - 24px, 1120px);
  }

  .home-top-bar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
  }

  .hero-scroll {
    left: auto;
    right: 20px;
    bottom: 20px;
    transform: none;
    animation: hero-scroll-bounce-mobile 2s ease-in-out infinite;
  }

  @keyframes hero-scroll-bounce-mobile {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
  }

  .site-nav-wrap {
    position: static;
    margin-top: 12px;
  }

  .site-nav,
  .page-intro,
  .section-block,
  .home-hero,
  .article-body,
  .article-sidebar {
    padding: 20px;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .site-brand__name {
    font-size: 1.3rem;
  }

  .site-menu-wrap {
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .site-menu {
    justify-content: flex-start;
    flex: 1 1 auto;
    gap: 6px;
  }

  .site-menu__link {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .page-intro__title,
  .hero-title {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
    line-height: 1.06;
  }

  .section-title,
  .post-card__title,
  .page-intro--article .page-intro__title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
    line-height: 1.12;
  }

  .article-layout {
    gap: 16px;
  }

  .article-body,
  .article-body--single,
  .article-sidebar {
    padding: 18px;
  }

  .article-body::after,
  .article-sidebar::after,
  .post-card::after,
  .hero-note::after {
    inset: 8px;
  }

  .page-intro__summary,
  .page-intro__summary p,
  .page-intro__lede,
  .hero-summary,
  .hero-note p,
  .post-card p,
  .post-content p,
  .post-content li,
  .gallery-card__meta span {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .post-content {
    gap: 18px;
  }

  .post-content pre,
  .post-content blockquote {
    padding: 14px;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 18px;
  }

  .site-frame {
    padding-top: 20px;
  }
}

.site-menu__link:focus-visible,
.button:focus-visible,
.theme-toggle:focus-visible,
.gallery-card a:focus-visible,
.site-brand:focus-visible,
.post-card__title a:focus-visible,
.section-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card img,
  .theme-toggle__icon,
  .site-menu__link,
  .button {
    transition: none;
  }

  .gallery-card a:hover img {
    transform: none;
  }
}

.playground-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.playground-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.playground-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.playground-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.playground-card__name a {
  color: var(--text);
  text-decoration: none;
}

.playground-card__name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.playground-card__icon {
  flex-shrink: 0;
  color: var(--muted);
  margin-top: 2px;
}

.playground-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .playground-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.claude-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.claude-notice__icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.claude-notice__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claude-notice__body p {
  margin: 0;
}

.claude-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mermaid {
  margin: 20px 0;
  text-align: center;
}

.playground-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.playground-card__badges img {
  height: 20px;
}

.site-brand__avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

html[data-theme="dark"] .site-brand__avatar {
  filter: invert(1) hue-rotate(180deg);
}

.site-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-title__logo {
  width: 1em;
  height: 1em;
  object-fit: contain;
  flex-shrink: 0;
}

html[data-theme="dark"] .hero-title__logo {
  filter: invert(1) hue-rotate(180deg);
}

.font-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.font-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.font-modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.font-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.font-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.font-modal__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 120ms;
}

.font-modal__close:hover {
  color: var(--text);
}

.font-modal__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding: 8px;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}

.font-modal__option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background 120ms, border-color 120ms;
}

.font-modal__option:hover {
  background: rgba(28, 26, 23, 0.04);
  border-color: var(--line);
}

html[data-theme="dark"] .font-modal__option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.font-modal__option.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.font-modal__name {
  font-size: 0.9rem;
  font-weight: 500;
}

.font-modal__preview {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0;
}

.font-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.font-modal__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.font-modal__toggle input {
  accent-color: var(--accent);
}

.font-modal__reset {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 120ms, border-color 120ms;
}

.font-modal__reset:hover {
  color: var(--text);
  border-color: var(--text);
}

.font-modal__tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--line);
}

.font-modal__tab {
  flex: 1;
  padding: 10px 14px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms, border-color 120ms;
}

.font-modal__tab:hover {
  color: var(--text);
}

.font-modal__tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.hero-quote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-family: "Bitter", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.post-content .social-links {
  display: flex;
  flex-direction: row;
  padding-left: 0;
}
