/* Murat Kuslu - muratkuslu.com */

:root {
  --ivory: #F7F3EC;
  --ivory-deep: #EFE9DE;
  --ink: #16150F;
  --ink-soft: #5C594F;
  --green: #2D8C5F;
  --green-deep: #1F6B47;
  --line: rgba(22, 21, 15, 0.14);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--ivory); }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em;
  text-decoration: none;
  display: flex; align-items: center; gap: 11px;
}
.brand .dot { color: var(--green); }
.brand-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 1px solid var(--line);
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-deep); }
.nav a.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ink);
}
.nav a.lang:hover { border-color: var(--green-deep); color: var(--green-deep); }

/* ---------- mono eyebrow (signature device) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: block;
  white-space: pre-wrap;
}
.eyebrow .kw { color: var(--green-deep); }
.eyebrow .ty { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 84px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--green-deep);
}
.hero .lede {
  margin-top: 28px;
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 0.82rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn.primary { background: var(--ink); color: var(--ivory); }
.btn.primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); }

/* ---------- sections ---------- */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 42px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
}

/* ---------- focus enum ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.focus-card {
  background: var(--ivory);
  padding: 30px 26px 34px;
  transition: background 0.18s ease;
}
.focus-card:hover { background: var(--ivory-deep); }
.focus-card .case {
  font-family: var(--mono); font-size: 0.78rem; color: var(--green-deep);
  display: block; margin-bottom: 14px;
}
.focus-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  margin-bottom: 10px;
}
.focus-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- work ---------- */
.work-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.18s ease;
}
.work-item:hover { padding-left: 10px; }
.work-item:hover .work-name { color: var(--green-deep); }
.work-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  transition: color 0.15s ease;
}
.work-desc { color: var(--ink-soft); font-size: 0.95rem; max-width: 52ch; }
.work-tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
  white-space: nowrap;
}
.work-note { margin-top: 22px; font-size: 0.88rem; color: var(--ink-soft); font-family: var(--mono); }

/* ---------- skills ---------- */
.skill-list { display: flex; flex-direction: column; }
.skill-row {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.skill-name {
  font-family: var(--mono); font-size: 0.85rem; color: var(--green-deep);
  padding-top: 4px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.skill-link {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--green-deep); text-decoration: none;
}
.skill-link:hover { text-decoration: underline; }

/* ---------- freelance form ---------- */
.freelance-lede { color: var(--ink-soft); max-width: 58ch; margin-bottom: 36px; }
.contact-form { max-width: 640px; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 0.15s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green-deep);
}
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-form .btn { border: 1px solid var(--ink); cursor: pointer; font-size: 0.82rem; }
.contact-form .btn:disabled { opacity: 0.5; cursor: default; }
.form-status { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- experience ---------- */
.xp { display: grid; grid-template-columns: 180px 1fr; gap: 20px 40px; }
.xp-when { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); padding-top: 5px; }
.xp-what h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.xp-what p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 6px; max-width: 62ch; }
.xp-row { display: contents; }
.xp-row + .xp-row .xp-when, .xp-row + .xp-row .xp-what { margin-top: 26px; }

/* ---------- writing ---------- */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-row:hover .post-title { color: var(--green-deep); }
.post-cat { font-family: var(--mono); font-size: 0.72rem; color: var(--green-deep); }
.post-title { font-family: var(--serif); font-weight: 560; font-size: 1.12rem; transition: color 0.15s ease; }
.post-date { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }
.more-link {
  display: inline-block; margin-top: 28px;
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--green-deep); text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* ---------- blog page ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -0.012em;
}
.page-hero p { margin-top: 14px; color: var(--ink-soft); max-width: 58ch; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 8px; }
.filter-btn {
  font-family: var(--mono); font-size: 0.78rem;
  background: none; border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ---------- article ---------- */
.article { padding: 72px 0 96px; }
.article-head { max-width: 720px; margin: 0 auto 48px; }
.article-head .meta {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft);
  display: flex; gap: 18px; margin-bottom: 20px;
}
.article-head .meta .cat { color: var(--green-deep); }
.article-head h1 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.14; letter-spacing: -0.012em;
}
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 20px; color: #2E2C24; }
.article-body h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  margin: 40px 0 14px;
}
.article-body ul { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; color: #2E2C24; }
.article-body code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--ivory-deep);
  padding: 2px 6px; border-radius: 4px;
}
.article-body pre {
  background: #1E1D17; color: #EDEAE0;
  padding: 20px 22px; border-radius: 10px;
  overflow-x: auto; margin-bottom: 22px;
  font-size: 0.84rem; line-height: 1.6;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.back-link {
  display: inline-block; margin-bottom: 34px;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--ink-soft); text-decoration: none;
}
.back-link:hover { color: var(--green-deep); }
.article-figure {
  margin: 30px 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 22px 18px;
  background: var(--ivory-deep);
}
.article-figure svg { width: 100%; height: auto; display: block; }
.article-figure figcaption {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
  margin-top: 14px; text-align: center;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-left h2 {
  font-family: var(--serif); font-weight: 560; font-size: 1.7rem; margin-bottom: 10px;
}
.footer-left a.mail {
  font-family: var(--mono); font-size: 0.9rem; color: var(--green-deep);
  text-decoration: none;
}
.footer-left a.mail:hover { text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--ink-soft); text-decoration: none;
}
.footer-links a:hover { color: var(--green-deep); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .work-item { grid-template-columns: 1fr; gap: 6px; }
  .work-tag { order: -1; }
  .xp { grid-template-columns: 1fr; gap: 4px 0; }
  .xp-row + .xp-row .xp-when { margin-top: 26px; }
  .xp-row + .xp-row .xp-what { margin-top: 0; }
  .post-row { grid-template-columns: 1fr; gap: 4px; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .skill-row { grid-template-columns: 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
