/* dogukany.com — personal site and blog.
   Same language as walti.app / motlo.app / kumbo.app: one narrow column,
   system type, hairlines instead of boxes. Plain neutrals; the only colour
   on the page is the app icons. */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --line: #e7e6e2;
  --ink: #161616;
  --ink-2: #55575a;
  --ink-3: #7a7c80;
  --shadow: 0 1px 2px rgba(22, 22, 22, .05), 0 12px 32px -14px rgba(22, 22, 22, .16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1c1c1c;
    --line: #2c2c2c;
    --ink: #ededeb;
    --ink-2: #b0b1b3;
    --ink-3: #85878a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  }
}

/* Safari 26 on iPhone colours the status-bar strip from the first
   position:fixed element with a plain background-color near the top edge.
   This band is hit-testable but paints nothing (background-clip). */
.status-tint {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 0;
  padding-top: max(12px, env(safe-area-inset-top));
  background-color: var(--bg);
  background-clip: content-box;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  color: var(--ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 96px) 0 8px;
}

/* ── home ────────────────────────────────────────────────── */

.intro h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.intro p {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(16px, 4.2vw, 18px);
  text-wrap: pretty;
}

.intro .lead { max-width: none; color: var(--ink); font-weight: 600; }
.intro .lead + p { margin-top: 8px; }

.section-title {
  margin: 56px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* a small "→" link under each item */
.more {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.more:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* apps: icon on the left, name + status pill, one line, link */
.apps { margin: 10px 0 0; padding: 0; list-style: none; }

.apps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.apps li:last-child { border-bottom: 1px solid var(--line); }

.apps img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 1px 3px rgba(22, 22, 22, .12);
}

.apps h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.apps p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; text-wrap: pretty; }

/* status: a quiet line under the name */
.status { display: block; margin-top: 1px; color: var(--ink-3); font-size: 13px; line-height: 1.4; }

/* Walti is out: a bigger icon and name, and a dot on its status */
.apps .featured { grid-template-columns: 60px 1fr; column-gap: 16px; padding: 20px 0; }
.featured img { width: 60px; height: 60px; border-radius: 14px; }
.featured h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
.featured p { font-size: 15px; }
.featured .status { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.featured .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34a36b; }

/* writing */
.posts { margin: 10px 0 0; padding: 0; list-style: none; }

.posts li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts time { display: block; color: var(--ink-3); font-size: 13px; }
.posts h3 { margin: 2px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.posts h3 a { text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.posts p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

.note a,
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
}

.note a:hover,
.prose a:hover { border-bottom-color: currentColor; }

/* ── post ────────────────────────────────────────────────── */

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.top .home { font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.top .crumb { color: var(--ink-3); font-size: 14px; text-decoration: none; }
.top .crumb:hover { color: var(--ink); }

.meta { margin: 48px 0 0; color: var(--ink-3); font-size: 14px; }

.post h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.prose { margin-top: 28px; font-size: 17px; line-height: 1.65; }
.prose p, .prose li { color: var(--ink-2); }
.prose > p:first-child { color: var(--ink); }
.prose p { margin: 0; }
.prose p + p, .prose ul + p, .prose ol + p, .prose pre + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -.015em; line-height: 1.3; }

.prose code {
  font: 14.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.prose pre {
  margin: 16px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose pre code { padding: 0; border: 0; background: none; }

/* the one line under a post */
.endnote {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.endnote a { color: var(--ink); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.endnote a:hover { border-bottom-color: currentColor; }

/* ── footer ──────────────────────────────────────────────── */

footer {
  width: 100%;
  max-width: 640px;
  margin-top: auto;
  padding: 56px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  color: var(--ink-3);
  font-size: 13px;
}

footer nav { display: flex; align-items: center; gap: 8px; }
footer nav span { opacity: .6; }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--ink); }
