:root {
  color-scheme: light;
  --panel: rgba(255, 252, 246, 0.76);
  --panel-strong: #fffaf2;
  --border: rgba(70, 55, 40, 0.12);
  --text: #2d241f;
  --muted: #6d6259;
  --accent: #b46a3c;
  --accent-soft: rgba(180, 106, 60, 0.14);
  --shadow: 0 24px 80px rgba(55, 35, 18, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1380px;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(180deg, #f7f1e8 0%, #eee5d8 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

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

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

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

p {
  margin: 0;
}

.page-shell {
  position: relative;
  overflow: hidden;
  padding: 28px 18px 44px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-left {
  top: -80px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 238, 217, 0.95), transparent 70%);
}

.ambient-right {
  top: 180px;
  right: -90px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(207, 224, 217, 0.82), transparent 72%);
}

.masthead,
.tab-nav-shell,
.tab-panels {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.site-masthead {
  gap: 12px;
  margin-bottom: 14px;
}

.masthead-copy,
.masthead-card,
.tab-nav,
.tab-panel,
.essay-card,
.about-card,
.tool-list-wrap {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.masthead-copy,
.masthead-card,
.tab-panel,
.about-card,
.tool-list-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.masthead-copy {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.card-label,
.section-label,
.about-label,
.meta {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.site-masthead-copy {
  padding: 20px 22px;
}

#site-title {
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.site-masthead .eyebrow,
.site-masthead .card-label {
  margin-bottom: 8px;
}

.site-masthead-card {
  gap: 8px;
  padding: 14px 16px;
}

.masthead-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(253, 245, 232, 0.92)),
    var(--panel);
}

.card-title {
  font-size: 1.45rem;
  line-height: 1.2;
}

.tab-nav-shell {
  position: sticky;
  top: 16px;
  z-index: 2;
  margin-bottom: 20px;
}

.tab-nav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(58, 44, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 20px 60px rgba(63, 40, 18, 0.08);
}

.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 16px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.tab-link:hover,
.tab-link:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  outline: none;
}

.tab-link.is-active {
  background: var(--text);
  color: #fff6ef;
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.tab-panel.is-active {
  display: block;
  animation: fade-in 260ms ease;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 34rem;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading.is-detail-view h2 {
  max-width: 720px;
}

.essay-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-top: 18px;
}

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

.filter-controls,
.essay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-filter,
.post-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(73, 58, 45, 0.12);
  font-size: 0.9rem;
  line-height: 1;
}

.tag-filter {
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.tag-filter:hover,
.tag-filter:focus-visible {
  outline: none;
  color: var(--text);
  border-color: rgba(73, 58, 45, 0.2);
}

.tag-filter.is-active {
  background: var(--text);
  color: #fff6ef;
  border-color: var(--text);
}

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

.essay-grid.is-detail-view {
  grid-template-columns: 1fr;
  gap: 0;
}

.essay-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: 0 16px 40px rgba(52, 38, 25, 0.06);
}

.essay-card-link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.essay-card-link:hover,
.essay-card-link:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(73, 58, 45, 0.18);
  box-shadow: 0 20px 44px rgba(52, 38, 25, 0.08);
}

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

.essay-content {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.essay-content .meta {
  margin-bottom: 0;
}

.essay-content h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.essay-content .essay-tags {
  gap: 6px;
}

.essay-excerpt,
.about-card p:last-child,
.section-empty,
.filter-empty {
  color: var(--muted);
  line-height: 1.65;
}

.essay-detail {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
}

.essay-detail > * {
  min-width: 0;
}

.essay-detail .meta {
  margin-bottom: 0;
}

.essay-detail-excerpt {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.essay-detail-image {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 320px;
  border-radius: 22px;
  border: 1px solid rgba(73, 58, 45, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.essay-detail-body {
  width: 100%;
  max-width: 100%;
  padding-top: 4px;
  overflow-wrap: anywhere;
}

.essay-detail-empty {
  min-height: 240px;
  align-content: center;
}

.essay-detail .essay-tags {
  max-width: 100%;
}

.essay-body {
  display: grid;
  gap: 12px;
  padding-top: 6px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.essay-body p,
.essay-body ul,
.essay-body ol,
.essay-body blockquote {
  margin: 0;
}

.essay-body h2,
.essay-body h3,
.essay-body h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.essay-body u,
.essay-body s,
.essay-body del,
.essay-body sup,
.essay-body sub {
  color: inherit;
}

.essay-body ul,
.essay-body ol {
  padding-left: 1.3rem;
}

.essay-body ul {
  list-style-type: disc;
}

.essay-body ul ul > li::marker,
.essay-body ul ul ul ul ul > li::marker {
  content: "\25E6  ";
}

.essay-body ul ul ul > li::marker,
.essay-body ul ul ul ul ul ul > li::marker {
  content: "\25AA  ";
}

.essay-body ul ul ul ul > li::marker,
.essay-body ul ul ul ul ul ul ul > li::marker {
  content: "\2022  ";
}

.essay-body ol {
  list-style-type: decimal;
}

.essay-body ol ol {
  list-style-type: lower-alpha;
}

.essay-body ol ol ol {
  list-style-type: lower-roman;
}

.essay-body ol ol ol ol {
  list-style-type: decimal;
}

.essay-body ol ol ol ol ol {
  list-style-type: lower-alpha;
}

.essay-body ol ol ol ol ol ol {
  list-style-type: lower-roman;
}

.essay-body li > ul,
.essay-body li > ol {
  margin-top: 0.45rem;
}

.essay-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.essay-body blockquote {
  padding-left: 14px;
  border-left: 3px solid rgba(180, 106, 60, 0.24);
  color: var(--muted);
}

.essay-body details {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(73, 58, 45, 0.1);
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.82);
  padding: 12px 14px;
  overflow: hidden;
}

.essay-body details summary {
  display: block;
  max-width: 100%;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.essay-body details > :not(summary) {
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
}

.essay-body pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 14px;
  background: #241d18;
  color: #f7efe7;
  line-height: 1.55;
}

.essay-body code {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.92em;
}

.essay-body figure {
  margin: 0;
}

.essay-body img,
.essay-body video,
.essay-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(73, 58, 45, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.essay-body audio {
  width: 100%;
  max-width: 100%;
}

.essay-body iframe {
  min-height: 320px;
}

.essay-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.9);
}

.essay-body th,
.essay-body td {
  padding: 12px 14px;
  border: 1px solid rgba(73, 58, 45, 0.1);
  text-align: left;
  vertical-align: top;
}

.essay-body hr {
  width: 100%;
  height: 0;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid rgba(73, 58, 45, 0.14);
}

.essay-body p code,
.essay-body li code,
.essay-body blockquote code {
  padding: 0.14em 0.38em;
  border-radius: 6px;
  background: rgba(45, 36, 31, 0.08);
  color: var(--text);
}

.post-tag {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.essay-empty-card {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
}

.tool-list-wrap {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
  min-height: 620px;
  overflow: hidden;
}

.tool-index {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid rgba(73, 58, 45, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 245, 232, 0.78)),
    rgba(255, 249, 242, 0.76);
}

.tool-index-header {
  display: grid;
  gap: 8px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(73, 58, 45, 0.1);
}

.tool-index-label,
.tool-doc-kicker,
.tool-doc-section-label,
.tool-doc-placeholder-label {
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-index-meta,
.tool-doc-updated {
  color: var(--muted);
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.86rem;
}

.tool-list {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 10px 10px 12px;
  overflow-y: auto;
}

.tool-nav-group {
  display: grid;
  gap: 4px;
}

.tool-nav-group-label {
  margin: 0;
  padding: 0 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-nav-group-list {
  display: grid;
  gap: 2px;
}

.tool-nav-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 8px 7px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.tool-nav-item::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.tool-nav-item:hover,
.tool-nav-item:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.62);
}

.tool-nav-item.is-active {
  background: rgba(180, 106, 60, 0.12);
  color: var(--text);
}

.tool-nav-item.is-active::before {
  background: var(--accent);
}

.tool-nav-name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.35;
}

.tool-doc-panel {
  display: grid;
  align-content: start;
  padding: 28px 30px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 249, 242, 0.72)),
    rgba(255, 251, 246, 0.66);
}

.tool-doc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 28px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(73, 58, 45, 0.1);
}

.tool-doc-title-group {
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.tool-doc-title-group h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.tool-doc-description {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.tool-doc-meta {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-content: start;
}

.tool-doc-body {
  display: grid;
  gap: 28px;
}

.tool-doc-section {
  padding: 0;
}

.tool-doc-section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.tool-doc-section-heading h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.tool-doc-section-content {
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--text);
  line-height: 1.68;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tool-doc-section-content > :first-child {
  margin-top: 0;
}

.tool-doc-section-content > :last-child {
  margin-bottom: 0;
}

.tool-doc-placeholder {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px dashed rgba(180, 106, 60, 0.24);
  border-radius: 18px;
  background: rgba(180, 106, 60, 0.08);
  color: var(--muted);
}

.section-empty {
  margin-top: 16px;
}

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

.about-card {
  padding: 22px;
  border-radius: 22px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .essay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
  }

  .essay-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .tool-list-wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tool-index {
    border-right: 0;
    border-bottom: 1px solid rgba(73, 58, 45, 0.1);
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .tool-doc-panel {
    padding-top: 24px;
  }

  .tool-doc-meta {
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 18px 14px 32px;
  }

  .masthead-copy,
  .masthead-card,
  .tab-panel {
    padding: 22px;
  }

  .site-masthead-copy,
  .site-masthead-card {
    padding: 18px;
  }

  .essay-detail-image {
    max-height: 220px;
  }

  .tool-index-header,
  .tool-doc-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tool-list {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .tool-nav-item {
    padding: 7px 8px 7px 16px;
  }

  .tool-doc-header {
    padding-bottom: 18px;
    margin-bottom: 18px;
  }

  .tool-doc-title-group h3 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .tool-doc-section {
    padding: 0;
  }

  .tab-nav-shell {
    position: static;
  }

  .tab-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tab-link {
    text-align: center;
  }

  .section-heading h2 {
    max-width: 100%;
  }
}

/* ── Preview mode badges ───────────────────────────────────────────────────── */

.preview-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
  pointer-events: none;
}

.preview-status-draft {
  background: rgba(180, 106, 60, 0.15);
  color: var(--accent);
  border: 1px solid rgba(180, 106, 60, 0.3);
}

.preview-status-hidden {
  background: rgba(109, 98, 89, 0.12);
  color: var(--muted);
  border: 1px solid rgba(109, 98, 89, 0.25);
}

/* ── Pins timeline ─────────────────────────────────────────────────────────── */

.pins-timeline {
  position: relative;
  padding-left: 36px;
  max-width: 680px;
}

.pins-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.pins-month-group {
  margin-bottom: 8px;
}

.pins-month-label {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 12px;
  padding-left: 4px;
}

.pins-month-label::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  box-shadow: 0 0 0 3px var(--panel-strong);
}

.pin-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.pin-item:hover {
  background: var(--panel-strong);
  border-color: rgba(70, 55, 40, 0.2);
  transform: translateX(3px);
}

.pin-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--panel-strong);
}

.pin-item-type-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.pin-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pin-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-item-source {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.pin-item-subtitle {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* ── Pins side panel ───────────────────────────────────────────────────────── */

.pins-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 31, 0.22);
  backdrop-filter: blur(2px);
  z-index: 100;
}

.pins-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(50vw, 100vw);
  background: var(--panel-strong);
  border-left: 1px solid var(--border);
  box-shadow: -32px 0 80px rgba(55, 35, 18, 0.1);
  z-index: 101;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.pins-panel-open {
  overflow: hidden;
}

.pins-panel-close {
  position: sticky;
  top: 0;
  padding: 14px 20px;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.pins-panel-close-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}

.pins-panel-close-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.pins-panel-body {
  padding: 28px 28px 48px;
  flex: 1;
}

.pins-panel-type-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pins-panel-title {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 6px;
}

.pins-panel-source {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.pins-panel-source a {
  color: var(--accent);
}

.pins-panel-commentary {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.pins-panel-commentary-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pins-panel-commentary p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.5em;
}

.pins-panel-commentary p:last-child {
  margin-bottom: 0;
}

.pins-panel-commentary blockquote {
  margin: 0 0 0.5em;
  padding-left: 14px;
  border-left: 3px solid rgba(180, 106, 60, 0.35);
  color: var(--muted);
  font-style: italic;
}

.pins-panel-commentary blockquote:last-child {
  margin-bottom: 0;
}

.pin-embed-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.pin-embed-tweet {
  margin-bottom: 20px;
}

.pin-embed-page {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pin-embed-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.pin-embed-page-domain {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-embed-page-open {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.pin-embed-page-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
  background: #fff;
}

.pin-embed-page-fallback {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.pin-embed-page-fallback a {
  color: var(--accent);
}

.pins-panel-content-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.pins-panel-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.12s;
}

.pins-panel-read-link:hover {
  background: var(--accent-soft);
}

@media (max-width: 540px) {
  .pins-timeline {
    padding-left: 24px;
  }

  .pins-timeline::before {
    left: 6px;
  }

  .pins-month-label::before,
  .pin-item::before {
    left: -19px;
  }

  .pins-panel {
    width: 100vw;
  }

  .pins-panel-body {
    padding: 20px 20px 40px;
  }
}
