/* Minimal, light-only personal blog. Serve the site directory as the web root.
   No framework, remote fonts, tracking, or client-side runtime.
   HTML stylesheet links use the first 12 hex digits of this file's SHA-256
   to invalidate CDN caches after CSS changes. */
:root {
  color-scheme: light;
  --bg: #fdfdfb;
  --fg: #303539;
  --muted: #626a70;
  --accent: #17664d;
  --line: #dedfda;
  --surface: #f1f2ef;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.8 Menlo, Monaco, Consolas, "Liberation Mono", monospace; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-shell { width: min(720px, calc(100% - 48px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.site-header { padding-top: 82px; margin-bottom: 44px; }
.site-name { margin: 0 0 8px; font-size: 28px; font-weight: 700; line-height: 1.35; letter-spacing: .2px; }
.site-name a { text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); text-decoration: none; line-height: 1.3; }
.site-nav a + a { border-left: 1px dotted var(--accent); margin-left: 16px; padding-left: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
main { min-width: 0; }
p { margin: 0 0 20px; }
.introduction { max-width: 680px; }
.certificates { color: var(--muted); white-space: nowrap; }
.introduction > p:first-child { margin-bottom: 16px; }
.social-links { margin-top: 24px; }
/* Decorative link icons keep the visible link text as the accessible name. */
a[href="https://github.com/talha"]::before,
a[href="https://www.linkedin.com/in/atalhaaydin/"]::before,
a[href="https://twitter.com/atalhaaydin"]::before,
a[href="/feed.xml"]::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-inline-end: 6px;
  vertical-align: -2px;
  background: currentColor;
}
a[href="https://github.com/talha"]::before { mask: url("/assets/icons/github.svg") center / contain no-repeat; }
a[href="https://www.linkedin.com/in/atalhaaydin/"]::before { mask: url("/assets/icons/linkedin.svg") center / contain no-repeat; }
a[href="https://twitter.com/atalhaaydin"]::before { mask: url("/assets/icons/x.svg") center / contain no-repeat; }
a[href="/feed.xml"]::before { mask: url("/assets/icons/rss.svg") center / contain no-repeat; }
.writing-section { margin-top: 44px; }
h2 { margin: 38px 0 17px; color: var(--accent); font-size: 20px; line-height: 1.5; font-weight: 700; }
h2 a { text-decoration: none; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.section-heading h2 { margin: 0; }
.quiet-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.post-list { list-style: none; padding: 0; margin: 24px 0 0; }
.post-list > li + li { margin-top: 28px; }
.post-list h2, .post-list h3 { color: inherit; font-size: 14px; line-height: 1.7; font-weight: 400; margin: 0 0 8px; }
.post-list h2 a { text-decoration: underline; }
.post-summary { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 8px; max-width: 650px; }
.post-meta { font-size: 11px; color: var(--muted); margin: 0; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: auto; padding: 76px 0 30px; color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; }
.skip { position: fixed; z-index: 10; top: -100px; left: 20px; background: var(--accent); color: var(--bg); padding: 8px 14px; }
.skip:focus { top: 12px; }
.page-title { font-size: 25px; line-height: 1.45; color: var(--fg); margin: 0 0 22px; }
.page-intro { color: var(--muted); }
.article-header { margin-bottom: 32px; }
.article-title { margin: 0 0 16px; font-size: clamp(25px, 4vw, 32px); font-weight: 700; line-height: 1.4; letter-spacing: -.6px; text-wrap: balance; }
.article-subtitle { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.byline { color: var(--muted); font-size: 12px; margin: 0; }
.byline a { text-decoration: none; }
.article-body { overflow-wrap: anywhere; }
.article-body h2 { scroll-margin-top: 24px; font-size: 19px; }
.article-body h3 { font-size: 15px; margin: 28px 0 14px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--fg); }
code { font: .92em/1.7 Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: var(--fg); background: var(--surface); padding: 2px 4px; border-radius: 2px; }
pre { max-width: 100%; overflow-x: auto; margin: 20px 0 26px; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); line-height: 1.7; tab-size: 4; }
pre code { background: transparent; padding: 0; font-size: 12px; }
.table-wrap { overflow-x: auto; margin: 20px 0 26px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--fg); }
td { color: var(--muted); }
.note { border-left: 2px solid var(--accent); padding: 3px 0 3px 18px; margin: 24px 0; color: var(--muted); font-size: 13px; }
.note p:last-child { margin-bottom: 0; }
.toc { border-block: 1px solid var(--line); padding-block: 18px; margin-block: 28px 34px; }
.toc p { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 23px; font-size: 13px; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.article-end { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-size: 13px; }
.article-end p { color: var(--muted); font-size: 12px; margin-top: 14px; }
.about-contact { margin-top: 30px; }
@media (max-width: 540px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { padding-top: 42px; margin-bottom: 34px; }
  .site-name { font-size: 25px; }
  .site-nav { font-size: 12px; }
  .writing-section { margin-top: 34px; }
  .site-footer { padding-top: 54px; padding-bottom: 24px; font-size: 10px; }
  .site-footer nav { gap: 14px; }
  .article-title { font-size: 25px; }
  pre { padding: 15px; }
  th, td { padding: 10px 8px; }
}
@media print {
  :root { color-scheme: light; --bg: white; --fg: #222; --muted: #444; --accent: #17654d; --line: #ccc; --surface: #f3f3f3; }
  body { font-size: 11px; }
  .site-shell { width: 100%; }
  .site-header { padding-top: 0; margin-bottom: 25px; }
  .site-nav, .site-footer, .skip, .toc, .article-end { display: none; }
  .article-body strong, code { color: #222; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
