/* ============================================================
   nuritas.tr
   PlanetScale-style: monospace, markdown-like, dark, minimal
   ============================================================ */

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

:root {
  --bg:       #0c1117;
  --surface:  #151b23;
  --border:   #252d38;
  --text:     #c5cdd8;
  --text-dim: #6b7a8d;
  --heading:  #e2e8f0;
  --link:     #4e9af5;
  --orange:   #e8853a;
  --mono:     ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
}

::selection {
  background: rgba(78, 154, 245, 0.25);
}

/* --- Links ------------------------------------------------ */
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

strong {
  color: var(--heading);
  font-weight: 700;
}

/* --- Nav -------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.nav-left a,
.nav-right a {
  color: var(--heading);
  padding: 4px 8px;
  transition: color 0.15s;
}
.nav-left a:hover,
.nav-right a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--heading) !important;
  letter-spacing: -0.02em;
  margin-right: 16px;
}
.nav-logo:hover { text-decoration: none; }

.nav-sep {
  color: var(--text-dim);
  user-select: none;
}

/* --- Language switcher ------------------------------------ */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.nav-lang a {
  font-size: 12px;
  padding: 2px 6px !important;
  border-radius: 3px;
  color: var(--text-dim) !important;
}
.nav-lang a:hover {
  color: var(--heading) !important;
}
.nav-lang a.active {
  color: var(--heading) !important;
  background: var(--border);
}

.nav-cta {
  color: var(--orange) !important;
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 4px 12px !important;
}
.nav-cta:hover {
  background: rgba(232, 133, 58, 0.1);
}

/* --- Content ---------------------------------------------- */
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero ------------------------------------------------- */
.hero {
  padding-top: 64px;
}

/* --- Blockquote (orange left bar, like PlanetScale) ------- */
blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin: 24px 0;
}

blockquote p {
  color: var(--heading);
  font-weight: 700;
}

.hero-title {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.attribution {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: -16px;
  margin-left: 20px;
}

/* --- Paragraphs ------------------------------------------- */
p {
  margin: 16px 0;
}

/* --- Headings --------------------------------------------- */
h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
}

h2 u {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 4px;
}

/* --- Lists (asterisk-style, like PlanetScale) ------------- */
ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

ul li::before {
  content: '*';
  position: absolute;
  left: 4px;
  color: var(--text-dim);
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* --- Sub list (indented) ---------------------------------- */
.sub-list {
  padding-left: 20px;
}

/* --- Stack label ------------------------------------------ */
.stack {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* --- Meta (role + dates) ---------------------------------- */
.meta {
  font-size: 13px;
  color: var(--text-dim);
  margin: 2px 0 12px;
}

/* --- Logo / Tech grid ------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  margin: 20px 0;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--heading);
  text-align: center;
}

/* --- Dividers --------------------------------------------- */
.divider {
  border: none;
  margin: 48px 0;
  text-align: center;
  line-height: 1;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 4px;
}

.divider::after {
  content: '· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·';
}

.divider-sm {
  border: none;
  margin: 28px 0;
  border-top: 1px dashed var(--border);
}

/* --- Sections --------------------------------------------- */
section {
  padding: 8px 0;
}

/* --- Footer ----------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 20px 0;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

/* --- CV download bar -------------------------------------- */
.cv-downloads {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  background: var(--surface);
}

.cv-downloads-label {
  color: var(--text-dim);
  margin-right: 4px;
}

.cv-downloads a {
  color: var(--link);
  padding: 2px 6px;
}

.cv-downloads a:hover {
  color: #fff;
}

/* --- Markdown body (rendered CV) -------------------------- */
.md-body {
  padding-top: 64px;
}

.md-body h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin-bottom: 8px;
}

.md-body h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.md-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 4px;
}

.md-body hr {
  border: none;
  margin: 40px 0;
  text-align: center;
  line-height: 1;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 4px;
}

.md-body hr::after {
  content: '· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·';
}

.md-body ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.md-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.md-body ul li::before {
  content: '*';
  position: absolute;
  left: 4px;
  color: var(--text-dim);
}

.md-body ul ul {
  margin: 4px 0;
}

.md-body ul ul li {
  padding-left: 20px;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .content {
    padding: 0 16px;
  }

  body {
    font-size: 13px;
  }
}
