/* osmanboyaci.com — the only stylesheet.
 *
 * One theme, deliberately: a dark, mono-forward technical page. There is no
 * light variant and no prefers-color-scheme block. Adding one would mean
 * maintaining two palettes for a six-page site.
 *
 * Edit the variables below before adding selectors.
 */

:root {
  --bg:        #0d1117;
  --surface:   #151b23;
  --border:    #26303c;
  --border-sm: #1c242e;
  --fg:        #e6edf3;
  --fg-dim:    #c3ced9;
  --muted:     #8b949e;
  --accent:    #39d0d8;
  --accent-dim: #1f7f85;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 44rem;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 4rem;
  max-width: var(--measure);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-dim); color: #04161a; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: var(--accent);
  color: #04161a;
  font-family: var(--mono);
  font-size: 0.8rem;
  border-radius: 3px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.wordmark::after {        /* terminal-style cursor; drawn, not a character,
                             so screen readers have nothing to read out */
  content: "";
  display: inline-block;
  width: 0.46em;
  height: 0.95em;
  margin-left: 0.14em;
  vertical-align: -0.1em;
  background: var(--accent);
}
.wordmark:hover { color: var(--accent); }

.tagline {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ── Nav: bracketed, lowercase, monospace ────────────────────────────────── */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  padding: 0.65rem 0 2.6rem;
  border-top: 1px solid var(--border-sm);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a::before { content: "["; color: var(--border); margin-right: 0.1em; }
.site-nav a::after  { content: "]"; color: var(--border); margin-left: 0.1em; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::before,
.site-nav a[aria-current="page"]::after { color: var(--accent-dim); }

/* ── Prose ───────────────────────────────────────────────────────────────── */

main > :first-child { margin-top: 0; }

h1 {
  margin: 0 0 1.6rem;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.9rem 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
h2::after {
  content: "";
  display: block;
  width: 1.6rem;
  margin-top: 0.55rem;
  border-top: 1px solid var(--accent-dim);
}
h2 + * { margin-top: 1.1rem; }

h3 {
  margin: 1.9rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: var(--accent); }

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

strong { color: #f2f7fb; font-weight: 600; }
em { color: var(--fg-dim); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--border); }

hr {
  margin: 2.6rem 0;
  border: 0;
  border-top: 1px solid var(--border-sm);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  background: var(--surface);
  border: 1px solid var(--border-sm);
  border-radius: 3px;
  color: var(--fg-dim);
}

pre {
  margin: 0 0 1.3rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border-sm);
  border-radius: 4px;
  line-height: 1.5;
}
pre code { padding: 0; background: none; border: 0; }

blockquote {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  color: var(--fg-dim);
}

/* ── lede: the opening paragraph of a page ───────────────────────────────── */

.lede {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--fg);
}
.lede p:last-child { margin-bottom: 1.3rem; }

/* ── facts: a monospace key/value block (degrees, roles) ─────────────────── */

.facts dl {
  margin: 0 0 1.2rem;
  display: grid;
  /* max-content, not a fixed width: the labels differ in length between
     English and Turkish and should not be clipped or wrapped. */
  grid-template-columns: minmax(4.5rem, max-content) 1fr;
  gap: 0.1rem 1.1rem;
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--muted);
  padding-top: 0.12rem;
}
.facts dd { margin: 0 0 0.55rem; }

@media (max-width: 34rem) {
  .facts dl { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.9rem; }
}

/* ── pubs: the selected-work list ────────────────────────────────────────── */

.pubs ol {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: pub;
}
.pubs li {
  counter-increment: pub;
  position: relative;
  margin: 0 0 1.35rem;
  padding-left: 2.4rem;
}
.pubs li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.18rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent-dim);
}
.pub-title { display: block; line-height: 1.45; }
.pub-meta {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── linklist: the Links page ────────────────────────────────────────────── */

.linklist ul { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.linklist li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-sm);
}
.linklist li:first-child { border-top: 1px solid var(--border-sm); }
.link-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

table {
  width: 100%;
  margin: 0 0 1.4rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th, td {
  padding: 0.5rem 0.7rem 0.5rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-sm);
}
th {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
/* Pandoc emits an empty thead for headerless pipe tables; hide it. */
thead:empty, tr:empty { display: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-sm);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* Pandoc wraps loose list items and definitions in <p>; drop the trailing
 * margin so the block spacing comes from the li/dd rules above. */
.pubs li > p:last-child,
.linklist li > p:last-child,
.facts dd > p:last-child { margin-bottom: 0; }
