/* mubash.com — shared stylesheet
   Direction: Casework — IBM Plex Sans for interface and headings,
   IBM Plex Serif for the body of posts, IBM Plex Mono for dates and labels. */

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #101828;
  --muted: #4d5764;
  --faint: #858e9b;
  --line: #dfe3e8;
  --accent: #16506b;
  --accent-soft: #e7eff3;
  --maxw: 44rem;
  --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-read: "IBM Plex Serif", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1319;
    --surface: #161b23;
    --text: #e7ebf0;
    --muted: #a6b0bd;
    --faint: #79838f;
    --line: #262d38;
    --accent: #5da8c9;
    --accent-soft: #16202a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: .6rem 1rem; border: 1px solid var(--line); border-radius: var(--r); z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 1.15rem; padding-bottom: 1.15rem;
}

.wordmark {
  font-weight: 600; font-size: 1rem; letter-spacing: -0.015em;
  color: var(--text); white-space: nowrap;
}
.wordmark:hover { text-decoration: none; color: var(--accent); }

.site-nav { display: flex; gap: 1.4rem; font-size: .91rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.current { color: var(--text); font-weight: 500; }

/* ---------- page shell ---------- */

main { display: block; padding: 3.2rem 0 4rem; }

.page-title {
  font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.025em;
  margin: 0 0 .5rem; font-weight: 600; text-wrap: balance;
}
.page-intro { color: var(--muted); margin: 0 0 2.4rem; font-size: 1rem; }

/* ---------- home hero ---------- */

.hero { margin-bottom: 3rem; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.65rem); line-height: 1.1;
  letter-spacing: -0.035em; font-weight: 600; margin: 0 0 .8rem; text-wrap: balance;
}
.hero .tagline { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 34rem; }
.hero p { max-width: 36rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.pill {
  font-family: var(--font-mono);
  font-size: .76rem; letter-spacing: -0.01em; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r); padding: .24rem .6rem;
  background: var(--surface);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 2.8rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); font-weight: 500; margin: 0 0 1.1rem;
}

/* ---------- post list ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { padding-top: 0; }
.post-list li:last-child { border-bottom: 0; }

.post-list h3 { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.post-list h3 a { color: var(--text); }
.post-list h3 a:hover { color: var(--accent); text-decoration: none; }
.post-meta {
  font-family: var(--font-mono);
  font-size: .78rem; color: var(--faint); margin: 0 0 .35rem; letter-spacing: -0.01em;
}
.post-list p.dek { margin: 0; color: var(--muted); font-size: .94rem; }

.empty-note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r);
  padding: 1rem 1.2rem; color: var(--muted); font-size: .93rem; background: var(--surface);
}

/* ---------- article ---------- */

.article-head { margin-bottom: 2.2rem; }
.article-head h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.16;
  letter-spacing: -0.03em; font-weight: 600; margin: 0 0 .5rem; text-wrap: balance;
}
.article-body { font-family: var(--font-read); font-size: 1.06rem; line-height: 1.72; }
.article-body p { margin: 0 0 1.3rem; }
.article-body h2 {
  font-family: var(--font-ui); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.015em; margin: 2.3rem 0 .75rem;
}
.article-body ul { margin: 0 0 1.3rem; padding-left: 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  margin: 1.7rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}

.back-link { display: inline-block; margin-top: 2.4rem; font-size: .9rem; font-family: var(--font-ui); }

/* ---------- about ---------- */

.credentials { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); }
.credentials li {
  display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; align-items: baseline;
}
.credentials li:last-child { border-bottom: 0; }
.credentials .cred-key {
  font-family: var(--font-mono);
  flex: 0 0 9rem; color: var(--faint); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.credentials .cred-val { color: var(--text); }

/* ---------- contact ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  font-family: var(--font-mono);
  display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); font-weight: 500; margin-bottom: .2rem;
}
.contact-list .value { font-size: 1.02rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.7rem 0 2.5rem;
  font-size: .85rem; color: var(--faint);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.1rem; }
.footer-links a { color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .header-inner { padding-top: 1rem; padding-bottom: 1rem; gap: .8rem; }
  .site-nav { gap: 1.05rem; font-size: .88rem; }
  main { padding: 2.3rem 0 3rem; }
  .credentials li { flex-direction: column; gap: .15rem; }
  .credentials .cred-key { flex: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-nav, .site-footer, .back-link, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header { background: #fff; }
}
