/* gokhanng.com — single stylesheet. No web fonts: system stack only. */

:root {
  --paper: #f5f5f3;
  --surface: #ffffff;
  --ink: #292b2e;
  --ink-2: #45484d;
  --muted: #65696f;
  --line: #d8dadd;
  --line-soft: #e5e7ea;
  --accent: #3c4045;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.5rem, 6vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- One-page home ---------- */

.page {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(4rem, 16vh, 10rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.intro h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.intro .role {
  margin: 0.75rem 0 0;
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
  color: var(--accent);
}
.intro .bio {
  margin-top: 2rem;
  color: var(--ink-2);
}

.block {
  margin-top: clamp(3rem, 7vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.block h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.projects { list-style: none; display: grid; gap: 1rem; }
.projects li { color: var(--ink-2); }
.projects b { font-weight: 600; color: var(--ink); }

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: clamp(3rem, 7vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.links li + li::before {
  content: "·";
  color: var(--muted);
  padding: 0 0.75rem;
}

/* ---------- Log ---------- */
.back { margin: 0 0 1.5rem; font-size: 0.9375rem; color: var(--muted); }
.log { display: grid; gap: clamp(2.5rem, 6vh, 3.5rem); }
.log .entry h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.log .entry h2 a { text-decoration: none; }
.log .entry h2 a:hover { text-decoration: underline; }
.log .meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.log .entry p:not(.meta) { color: var(--ink-2); }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

