/* smmdir.com blog — same palette and chrome as the Next public site.
   ink #0A1628 · paper #FFFFFF · verb #1565C0 · gray #536471 · OLED #000 */

:root {
  --palette-ink: #0a1628;
  --palette-paper: #ffffff;
  --palette-gold: #1565c0;
  --palette-gray: #536471;
  --palette-bronze: #0d47a1;
  --bg: #ffffff;
  --fg: #0a1628;
  --card: #ffffff;
  --muted: color-mix(in srgb, #536471 12%, #ffffff);
  --text-muted: #536471;
  --border: color-mix(in srgb, #536471 22%, #ffffff);
  --accent: #1565c0;
  --verb-fill: #1565c0;
  --bl-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --bl-serif: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

html.dark {
  --bg: #000000;
  --fg: #ffffff;
  --card: #000000;
  --muted: #111111;
  --text-muted: color-mix(in srgb, #ffffff 55%, #536471);
  --border: #1a1a1a;
  --accent: color-mix(in srgb, #1565c0 46%, #000000);
  --verb-fill: color-mix(in srgb, #1565c0 20%, #141414);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--bl-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }

.smm-sr, .bl-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;
}
.smm-skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 60;
  background: var(--bg); color: var(--fg); padding: .4rem .7rem;
  transform: translateY(-200%);
}
.smm-skip:focus { transform: none; }

.smm-shell {
  width: 100%;
  min-width: 0;
  max-width: 90vw;
  margin-inline: auto;
  padding-inline: 0.75rem;
}
@media (min-width: 640px) { .smm-shell { padding-inline: 1rem; } }
@media (min-width: 1024px) { .smm-shell { padding-inline: 1.25rem; } }

/* ----- header (Next site-header) ----- */
.smm-topbar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.smm-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
}
.smm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
.smm-brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; display: block; }
.smm-brand span { display: none; }
@media (min-width: 640px) { .smm-brand span { display: inline; } }

.smm-nav {
  display: none;
  margin-inline-start: auto;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .smm-nav { display: flex; } }
.smm-nav a {
  border-radius: 0.375rem;
  padding: 0.375rem 0.5rem;
  color: var(--fg);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
}
.smm-nav a:hover { background: var(--muted); }
.smm-nav a[aria-current="page"] { background: var(--muted); font-weight: 500; }

.smm-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}
@media (min-width: 1024px) { .smm-tools { margin-inline-start: 0.5rem; } }

.smm-locale {
  height: 2rem;
  max-width: 7rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 0 0.5rem;
  font-size: 0.75rem;
}
.smm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.smm-icon:hover { background: var(--muted); }
.smm-burger { border-color: var(--border); }
@media (min-width: 1024px) { .smm-burger { display: none; } }

html:not(.dark) .smm-sun { display: none; }
html.dark .smm-moon { display: none; }

.smm-mobile { border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .smm-mobile { display: none !important; } }
.smm-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem;
}
.smm-mobile a {
  display: block;
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: var(--fg);
  font-size: 0.875rem;
  text-decoration: none;
}
.smm-mobile a:hover { background: var(--muted); }

/* ----- footer (Next site-footer) ----- */
.smm-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 30%, var(--bg));
}
html.dark .smm-footer { background: color-mix(in srgb, #111 30%, #000); }
.smm-footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
}
@media (min-width: 640px) { .smm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .smm-footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.smm-footer-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 500;
}
.smm-footer-name img { width: 1.25rem; height: 1.25rem; border-radius: 0.25rem; }
.smm-footer-tag, .smm-footer-status {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.smm-footer-status { margin-top: 1rem; font-size: 0.75rem; }
.smm-footer-col p { margin: 0; font-weight: 500; }
.smm-footer-col a {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.smm-footer-col a:first-of-type { margin-top: 0.75rem; }
.smm-footer-col a:hover { color: var(--fg); text-decoration: underline; }
.smm-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-block: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (min-width: 640px) {
  .smm-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.smm-footer-legal { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.smm-footer-legal a { color: inherit; text-decoration: none; }
.smm-footer-legal a:hover { color: var(--fg); text-decoration: underline; }
.smm-footer-pref {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
}

.bl-index {
  padding-block: 2.5rem 4rem;
}
.bl-index-head { max-width: 54ch; }
.bl-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palette-bronze);
}
.bl-index-head h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.bl-lede {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.bl-cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .bl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bl-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.bl-card:hover { background: var(--muted); }
.bl-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--muted); }
.bl-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card-body { display: block; padding: 1.25rem; }
.bl-card-meta { margin: 0; font-size: 0.75rem; color: var(--text-muted); }
.bl-card h2 { margin: 0.5rem 0 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.bl-card-dek { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.bl-empty-inline { margin: 2rem 0 0; color: var(--text-muted); }

/* ----- article shells ----- */
.bl-main { min-height: 50vh; flex: 1; }
.bl-wrap {
  width: 100%;
  min-width: 0;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 0.75rem;
}
@media (min-width: 640px) { .bl-wrap { padding: 0 1rem; } }
@media (min-width: 1024px) { .bl-wrap { padding: 0 1.25rem; } }
.bl-muted { color: var(--text-muted); }
.bl-rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

.bl-feed { padding: 0 0 clamp(56px, 9vw, 100px); }
.bl-feed--top { padding-top: clamp(22px, 4vw, 40px); }
.bl-feed--top .bl-item:first-child { border-top: 0; }
.bl-list { list-style: none; margin: 0; padding: 0; }
.bl-item { border-top: 1px solid var(--border); }
.bl-item-link {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: clamp(28px, 4vw, 40px) 0; color: inherit; text-decoration: none;
}
.bl-item.has-thumb .bl-item-link { grid-template-columns: 1fr 184px; column-gap: 32px; align-items: start; }
@media (max-width: 600px) {
  .bl-item.has-thumb .bl-item-link { grid-template-columns: 1fr; }
  .bl-item-thumb { display: none; }
}
.bl-item-text { min-width: 0; }
.bl-cat {
  display: inline-block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-bottom: 11px;
}
a.bl-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-item-title {
  font-weight: 600;
  font-size: clamp(21px, 3vw, 27px); line-height: 1.22; letter-spacing: -0.01em;
  color: var(--fg); margin: 0 0 9px;
}
.bl-item-link:hover .bl-item-title { text-decoration: underline; text-underline-offset: 3px; }
.bl-item-dek { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin: 0 0 13px; }
.bl-item-meta { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.bl-item-thumb {
  aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: var(--muted); border: 1px solid var(--border);
}
.bl-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bl-pager {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; padding: 30px 0 0; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
.bl-pager a { color: var(--fg); text-decoration: none; }
.bl-pager a:hover { text-decoration: underline; }

.bl-empty { padding: clamp(56px, 10vw, 120px) 0; max-width: 50ch; }
.bl-empty-title { font-weight: 600; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; color: var(--fg); margin: 0 0 12px; }
.bl-empty-sub { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0 0 24px; }

.bl-textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.bl-textlink:hover { text-decoration: underline; }
.bl-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
  border-radius: 8px; background: var(--verb-fill); color: var(--palette-paper);
  border: 0; font-size: 14px; font-weight: 600; text-decoration: none;
}

.bl-article { padding: clamp(28px, 4vw, 46px) 0 clamp(56px, 9vw, 100px); }
.bl-crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.bl-crumbs a { color: var(--text-muted); text-decoration: none; }
.bl-crumbs a:hover { color: var(--fg); }
.bl-sep { opacity: .5; }
.bl-title {
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.016em;
  color: var(--fg); margin: 8px 0 16px;
}
.bl-art-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); margin: 0 0 28px; }
.bl-art-meta > * + *::before { content: "·"; margin-right: 8px; opacity: .6; }
.bl-hero {
  width: 100%; height: auto; aspect-ratio: 1200 / 628; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border); margin: 6px 0 30px; display: block;
}
.bl-updated { font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; }

.bl-prose { font-size: 1.05rem; line-height: 1.75; color: var(--fg); }
.bl-prose > * + * { margin-top: 1.3em; }
.bl-prose h2 { font-size: 1.65rem; line-height: 1.25; margin-top: 1.9em; font-weight: 600; letter-spacing: -0.02em; }
.bl-prose h3 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.5em; font-weight: 600; }
.bl-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.bl-prose ul, .bl-prose ol { padding-inline-start: 1.3em; }
.bl-prose li + li { margin-top: .4em; }
.bl-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.bl-prose blockquote { font-style: italic; border-inline-start: 2px solid var(--border); padding-inline-start: 22px; color: var(--text-muted); margin-inline: 0; }
.bl-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; background: var(--muted); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.bl-prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.bl-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.bl-prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bl-prose th, .bl-prose td { border: 1px solid var(--border); padding: 9px 13px; text-align: start; }
.bl-prose th { background: var(--muted); }
.bl-prose details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.bl-prose summary { cursor: pointer; font-weight: 600; }

.bl-reactions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.bl-react {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--fg); cursor: pointer; font: inherit; font-size: 14px;
}
.bl-react:hover { border-color: var(--text-muted); }
.bl-react:disabled { opacity: .55; cursor: default; }
.bl-react.reacted { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.bl-react-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bl-react.reacted .bl-react-count { color: var(--accent); }

.bl-share { display: flex; gap: 18px; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; }
.bl-share-label { color: var(--text-muted); }
.bl-share a { color: var(--accent); text-decoration: none; }
.bl-share a:hover { text-decoration: underline; }

.bl-related-wrap { margin-top: clamp(48px, 7vw, 76px); padding-top: 32px; border-top: 1px solid var(--border); }
.bl-related-wrap h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 600; margin: 0 0 20px; }
.bl-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bl-related a { font-size: 19px; line-height: 1.3; color: var(--fg); text-decoration: none; }
.bl-related a:hover { text-decoration: underline; }
.bl-related .bl-muted { font-size: 15px; }
