:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f5f7f3;
  --text: #111111;
  --muted: #666c67;
  --line: #e5e9e3;
  --accent: #179553;
  --accent-soft: #e6f5ec;
  --overlay: rgba(8, 12, 9, 0.3);
  --shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 17, 17, 0.05);
  --max: 1240px;
  --content: 860px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(23, 149, 83, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff, #fbfcfa 72%, #f6f8f4 100%);
  color: var(--text);
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

body.has-modal-open {
  overflow: hidden;
}

.wrap {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border: 1px solid var(--line);
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.logo-serp {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.logo-serp::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 999px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.86rem;
  color: var(--muted);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--panel-soft);
}

.hero-search {
  display: grid;
  place-items: center;
  padding: clamp(42px, 8vw, 92px) 0 26px;
}

.hero-search__inner {
  width: min(760px, 100%);
  text-align: center;
}

.hero-search__eyebrow,
.results-board__eyebrow,
.modal-panel__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-search__title {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-search__intro {
  width: min(60ch, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 10px 12px 10px 54px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search-shell__icon {
  position: absolute;
  left: 22px;
  width: 18px;
  height: 18px;
  border: 2px solid #121212;
  border-radius: 50%;
}

.search-shell__icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: #121212;
  transform: rotate(45deg);
  border-radius: 999px;
}

.search-shell__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.04rem;
}

.search-shell__input::placeholder {
  color: #969c96;
}

button,
.search-shell__button,
.results-board__button,
.hero-pill--button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.search-shell__button,
.results-board__button,
.hero-pill--button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-search__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #175b38;
  text-decoration: none;
  font-size: 0.93rem;
}

.hero-pill:hover,
.hero-pill--button:hover,
.results-board__button:hover,
.search-shell__button:hover {
  filter: brightness(0.98);
}

.site-main {
  padding: 10px 0 64px;
}

body.is-post .site-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.results-board,
.paper {
  width: min(100%, var(--content));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.results-board {
  padding: clamp(24px, 4vw, 38px);
}

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

.results-board__title,
.modal-panel__title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.result-grid {
  display: grid;
  gap: 14px;
}

.result-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.result-card__kind,
.search-result-card__kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #175b38;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-card__title,
.search-result-card__title,
.paper h1,
.paper h2,
.paper h3 {
  color: var(--text);
}

.result-card__title {
  margin: 12px 0 8px;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.result-card__title a,
.search-result-card__title a {
  color: inherit;
  text-decoration: none;
}

.result-card__desc,
.search-result-card__desc {
  margin: 0;
  color: var(--muted);
}

.result-card__snippet,
.search-result-card__snippet {
  margin: 8px 0 0;
  color: #262b27;
}

.result-card__actions {
  margin-top: 14px;
}

.result-card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.paper {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
}

.paper--drawer {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.paper > h1:first-child {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.paper > h1:first-child + h2,
.paper > h1:first-child + p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.paper h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.paper h3 {
  margin: 24px 0 10px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.paper p,
.paper li,
.paper blockquote,
.paper time,
.paper .post-excerpt,
.paper .pager-meta {
  color: #242824;
}

.paper a {
  color: var(--accent);
}

.paper ul,
.paper ol {
  padding-left: 20px;
}

.paper blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
}

.paper hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.paper img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.paper pre,
.paper code {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.paper pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #111111;
  color: #f5f5f5;
}

.paper code {
  padding: 0.1em 0.35em;
  border-radius: 8px;
  background: #f1f3ef;
}

.post-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.post-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.post-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.post-date,
.post-excerpt {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.pager-link {
  color: var(--accent);
  text-decoration: none;
}

.pager-link.is-disabled {
  color: #b0b6b1;
}

.tool-frame,
.tool-error,
.md-table-wrap {
  margin: 20px 0;
}

.paper .cgv-wrap,
.paper .signature-block,
.paper [id^="paypal-button-container-"] {
  width: 100%;
  max-width: 100%;
}

.paper .cgv-wrap {
  margin: 26px 0;
}

.paper .cgv__summary::-webkit-details-marker {
  display: none;
}

.paper .cgv__summary::marker {
  content: "";
}

.paper .cgv__summary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.paper .cgv:not([open]) .cgv__state::before {
  content: "Déplier";
}

.paper .cgv[open] .cgv__state::before {
  content: "Replier";
}

.paper .cgv[open] .cgv__state {
  background: rgba(23, 149, 83, 0.12) !important;
  border-color: rgba(23, 149, 83, 0.3) !important;
}

.paper .cgv__chev {
  transition: transform 0.18s ease;
}

.paper .cgv[open] .cgv__chev {
  transform: rotate(180deg);
}

.paper .cgv[open] .cgv__summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.paper .cgv-check input:checked + .cgv-box {
  background: rgba(23, 149, 83, 0.16) !important;
  border-color: rgba(23, 149, 83, 0.55) !important;
}

.paper .cgv-check input:checked + .cgv-box::after {
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

.paper .cgv-check:hover .cgv-box {
  border-color: rgba(23, 149, 83, 0.55) !important;
}

.paper [id^="paypal-button-container-"] {
  margin: 26px 0;
}

.paper .signature-block {
  margin: 22px 0 30px !important;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
}

.paper .signature-block img {
  max-width: min(220px, 100%);
}

.paper .signature-block + h2 {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.md-table-wrap {
  overflow: auto;
}

.md-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.md-table-wrap th,
.md-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.post-sidebar {
  position: sticky;
  top: 94px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.sidebar-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

.sidebar-brand {
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.02;
  font-weight: 700;
}

.sidebar-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-block span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.18);
  overflow: hidden;
}

.modal-panel--search {
  width: min(980px, calc(100vw - 24px));
}

.modal-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-panel__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.modal-panel__body {
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 0 26px 26px;
}

.search-modal__meta {
  padding: 18px 0 8px;
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.search-result-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-result-card__url {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.search-result-card__title {
  margin: 12px 0 6px;
  font-size: 1.35rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.search-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: var(--panel-soft);
}

.search-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 36px;
}

.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-credit,
.footer-tagline {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

@media (max-width: 980px) {
  body.is-post .site-main {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100vw - 24px));
  }

  .header-inner {
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }

  .hero-search {
    padding-top: 30px;
  }

  .search-shell {
    flex-wrap: wrap;
    padding: 14px;
  }

  .search-shell__icon {
    left: 16px;
    top: 16px;
  }

  .search-shell__input {
    width: 100%;
    padding-left: 32px;
  }

  .search-shell__button,
  .results-board__button {
    width: 100%;
    justify-content: center;
  }

  .results-board__head,
  .modal-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .paper,
  .results-board,
  .modal-panel__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .modal-panel {
    width: calc(100vw - 16px);
    margin: 8px;
    max-height: calc(100vh - 16px);
  }
}

@media (max-width: 720px) {
  .paper .cgv__grid {
    grid-template-columns: 1fr !important;
  }
}

.paper > h2:first-child {
  margin-top: 0;
}

.paper > h1:first-child + h2,
.paper > h1:first-child + p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.02;
}

h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.06em;
}

h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

p,
ul,
ol,
blockquote,
pre,
img,
.tool-frame,
.tool-error,
.highlight,
.md-table-wrap,
.md-video,
hr,
.post-list,
.pager {
  margin: 0 0 20px;
}

p,
li {
  color: #222222;
}

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

ul,
ol {
  padding-left: 20px;
}

blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

pre,
code {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #111111;
  color: #f5f5f5;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 8px;
  background: #f0f0ec;
}

.post-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.sidebar-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.sidebar-brand {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.02;
  font-weight: 700;
}

.sidebar-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-block span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-block strong {
  color: var(--text);
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.post-list a:hover {
  border-color: rgba(27, 155, 88, 0.28);
}

.site-footer {
  padding: 0 0 36px;
}

.footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-credit,
.footer-tagline {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

@media (max-width: 980px) {
  body.is-post .site-main {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100vw - 24px, var(--max));
  }

  .header-inner {
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-search {
    padding-top: 30px;
  }

  .search-shell {
    flex-wrap: wrap;
    padding: 14px;
  }

  .search-shell__icon {
    left: 16px;
    top: 16px;
  }

  .search-shell__input {
    width: 100%;
    padding-left: 34px;
  }

  .search-shell__button {
    width: 100%;
  }

  .paper {
    padding: 24px 18px;
    border-radius: 22px;
  }
}
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  margin-top: 28px;
}

p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  max-width: 74ch;
}

ul,
ol {
  margin: 0 0 18px 22px;
}

li {
  margin: 8px 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: #8cf0bc;
}

body.is-post a:hover {
  color: var(--accent-2);
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 30px 0;
}

body.is-post hr {
  border-top-color: var(--line-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0b;
}

body.is-post img {
  border-color: var(--line-dark);
  background: var(--surface-2);
}

.paper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

body.is-post blockquote {
  background: rgba(30, 211, 125, 0.06);
}

code {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.92em;
}

body.is-post code {
  background: #eef7f1;
  border-color: rgba(16, 16, 16, 0.08);
}

pre {
  padding: 22px;
  overflow: auto;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7f7f7;
}

body.is-post pre {
  background: #101010;
}

pre code {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
}

.tool-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d0d;
}

body.is-post .tool-frame {
  border-color: var(--line-dark);
  background: #fff;
}

.tool-error {
  padding: 14px 16px;
  border-left: 4px solid #ff5b3d;
  background: rgba(255, 91, 61, 0.12);
  color: #ffd4cb;
}

body.is-post .tool-error {
  background: #faeee9;
  color: #722918;
}

.highlight {
  padding: 1.3rem;
  background: var(--accent);
  color: #03120b;
}

.post-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-post .post-item {
  border-top-color: var(--line-dark);
}

.post-item:first-child {
  border-top: none;
  padding-top: 0;
}

.post-link {
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  display: inline-block;
  max-width: 24ch;
}

.post-date {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.is-post .post-date,
body.is-post .post-excerpt,
body.is-post .pager-meta,
body.is-post .muted {
  color: var(--muted-dark);
}

.post-excerpt {
  margin-top: 10px;
  color: var(--muted);
  max-width: 58ch;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-post .pager {
  border-top-color: var(--line-dark);
}

.pager-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-post .pager-link {
  color: var(--text-dark);
  border-color: var(--line-dark);
}

.pager-link:hover {
  border-color: rgba(30, 211, 125, 0.55);
  background: rgba(30, 211, 125, 0.08);
}

.pager-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pager-meta,
.muted {
  color: var(--muted);
}

.site-footer {
  margin-top: 0;
  padding-top: 26px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-credit,
.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
}

.footer-tagline a {
  margin-left: 8px;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.22);
}

.md-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

body.is-post table {
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

body.is-post th,
body.is-post td {
  border-color: var(--line-dark);
}

.md-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

body.is-post .md-table thead th {
  background: #f2f6f3;
  color: var(--text-dark);
}

.md-table tbody tr:hover {
  background: rgba(30, 211, 125, 0.06);
}

.md-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  margin: 1.5rem 0;
}

.md-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1080px) {
  body.is-post .site-main {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 18px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-link {
    padding: 9px 12px;
  }

  body.is-home .paper > h1:first-child,
  body.is-page:not(.is-post) .paper > h1:first-child {
    min-height: calc(88vh - 88px);
    padding: 32px 18px 28px;
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  body.is-home .paper > :not(h1:first-child),
  body.is-page:not(.is-post) .paper > :not(h1:first-child) {
    width: 100%;
  }

  body.is-post .paper {
    padding: 24px 20px 18px;
  }

  body.is-post .paper > h1:first-child {
    font-size: clamp(2.4rem, 13vw, 4.1rem);
  }

  .pager {
    flex-direction: column;
    align-items: flex-start;
  }
}
