/* ==========================================================================
   muratcanaykan.com — site stilleri
   Açık tema: yumuşak, iCloud hissi. Koyu tema: terminal/hacker hissi.
   ========================================================================== */

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f3f3f8;
  --glow-1: rgba(118, 98, 255, .17);
  --glow-2: rgba(0, 184, 255, .10);
  --card: #ffffff;
  --card-2: #f5f5fa;
  --text: #0d0e13;
  --muted: #5a5f6f;
  --faint: #8b91a2;
  --line: rgba(16, 18, 40, .08);
  --line-2: rgba(16, 18, 40, .14);
  --shadow: 0 1px 2px rgba(16, 18, 40, .04), 0 8px 28px -10px rgba(16, 18, 40, .10);
  --shadow-lift: 0 2px 4px rgba(16, 18, 40, .05), 0 22px 44px -16px rgba(16, 18, 40, .22);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .7);

  --accent: #5b4bff;
  --on-accent: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 32%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 88%, var(--text));

  --ok: #15994a;
  --err: #d92d2d;

  --term-bg: #0c0e12;
  --term-line: rgba(255, 255, 255, .07);
  --term-text: #e4e9f1;
  --term-dim: #8792a4;
  --term-green: #3ddc97;

  --r: 26px;
  --r-sm: 16px;
  --r-xs: 11px;
  --maxw: 1240px;
  --gap: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #08090b;
  --glow-1: color-mix(in srgb, var(--accent) 9%, transparent);
  --glow-2: rgba(70, 110, 255, .07);
  --card: #0f1114;
  --card-2: #15181d;
  --text: #e8ebf0;
  --muted: #98a0af;
  --faint: #636b7a;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --shadow: 0 0 0 0 transparent;
  --shadow-lift: 0 24px 48px -20px rgba(0, 0, 0, .8);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .035);
  --accent-text: var(--accent);
  --term-bg: #0a0b0e;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  /* Üst menünün margin'i body'nin dışına taşıp sayfayı ekrandan 12px uzun yapmasın. */
  display: flow-root;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -12%, var(--glow-1), transparent 62%),
    radial-gradient(760px 520px at 102% -4%, var(--glow-2), transparent 60%);
}
:root[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  color: var(--muted);
  line-height: 1.4;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }

.ico { width: 18px; height: 18px; flex: none; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(var(--maxw), calc(100% - 32px));
  height: 58px;
  margin: 12px auto 0;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 76%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow), var(--inset);
  view-transition-name: topbar;
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.brand-dir { color: var(--faint); }
.brand-cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }

.nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 4px;
  border-radius: 999px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background-color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }

.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav + .tools { margin-left: 0; }
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s, background-color .2s;
}
.tool:hover { color: var(--text); background: var(--card-2); }
.tool-search { border: 1px solid var(--line); padding: 0 6px 0 12px; }
.tool-search .tool-label { font-weight: 500; }
.tool-lang { font-family: var(--mono); font-size: 12px; }
.i-moon, :root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

/* ---------------------------------------------------------------- layout */

.page {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
  outline: none;
  view-transition-name: app;
}
.page-home { padding-bottom: 18px; }

.tile {
  position: relative;
  min-width: 0;
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow), var(--inset);
}
a.tile, .card-link, .post-row {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
a.tile:hover, .card:hover .card-link, a.post-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), var(--inset);
  border-color: var(--line-2);
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tile-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}
.tile-head h2 .ico { width: 16px; height: 16px; color: var(--accent); }
.count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tile-more {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.tile-more .ico { width: 16px; height: 16px; }
.tile-more:hover, a.tile:hover .tile-more { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.tile-empty { color: var(--faint); font-size: 14px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--faint); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 8px 22px -10px var(--accent);
}
.btn-primary:hover { border-color: transparent; box-shadow: 0 12px 28px -10px var(--accent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--muted);
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--faint); transform: translateY(-1px); }
.icon-btn .ico { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- home bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1.15fr 1fr .82fr;
  gap: var(--gap);
  height: clamp(580px, calc(100dvh - 106px), 860px);
}
.bento > .tile { overflow: hidden; display: flex; flex-direction: column; }
.hero { grid-column: span 2; grid-row: span 2; justify-content: space-between; padding: 30px; }
.term { grid-column: span 2; }
.skills-tile { grid-column: span 2; }

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 22px;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  border: 1px solid var(--accent-line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; border-radius: 26px; font-size: 28px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
  animation: pulse 2.2s infinite;
}
.hero-body { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.eyebrow::before { content: "> "; color: var(--faint); }
.hero h1 {
  font-size: clamp(30px, 3.15vw, 48px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -.04em;
  text-wrap: balance;
  max-width: 15ch;
}
.lead {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* terminal */
.term {
  padding: 0;
  background: var(--term-bg);
  border-color: var(--term-line);
  color: var(--term-text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  cursor: text;
}
:root:not([data-theme="dark"]) .term { box-shadow: 0 20px 40px -24px rgba(12, 14, 30, .55); }
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--term-line);
  flex: none;
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.term-title { margin: 0 auto; font-size: 12px; color: var(--term-dim); transform: translateX(-24px); }
.term-out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.term-out pre { margin: 0; font: inherit; white-space: pre-wrap; }
.term-out .l { white-space: pre-wrap; word-break: break-word; }
.term-out .l-cmd::before { content: "$ "; color: var(--term-green); }
.term-out .l-out { color: var(--term-dim); }
.term-out .l-ok { color: var(--term-green); }
.term-out .l-err { color: #ff7b72; }
.term-out a { color: var(--term-green); text-decoration: underline; text-underline-offset: 3px; }
.term-line { display: flex; align-items: center; gap: 8px; padding: 8px 18px 14px; flex: none; }
.prompt { color: var(--term-green); }
.term-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--term-text);
  font: inherit;
  caret-color: var(--term-green);
}
.term-line input::placeholder { color: #4b5463; }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--term-green); animation: blink 1s steps(1) infinite; }

/* list rows */
.rows { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 14px;
  transition: background-color .2s;
}
.row:hover { background: var(--card-2); }
.row-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  overflow: hidden;
  border-radius: 11px;
  background: hsl(var(--h) 85% 94%);
  color: hsl(var(--h) 55% 38%);
  font-weight: 700;
  font-size: 15px;
}
:root[data-theme="dark"] .row-ico { background: hsl(var(--h) 30% 16%); color: hsl(var(--h) 70% 72%); }
.row-ico img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.row-main b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-go { width: 16px; height: 16px; color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.row:hover .row-go { color: var(--accent); transform: translate(2px, -2px); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
}
.skills-tile .chips { overflow: hidden; }

/* son yazı: başlığın hemen altında tarih, yazı adı ve özet; özet kalan yere sığdığı kadar görünür */
.post-tile .tile-head, .contact-tile .tile-head { margin-bottom: 12px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 6px; flex: none; }
.post-title {
  flex: none;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
a.post-tile:hover .post-title { color: var(--accent-text); }
.post-excerpt {
  margin-top: 6px;
  min-height: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* iletişim: dönen başlık (her cümle aynı hücrede üst üste durur, kutu en uzun cümle kadar yer açar) */
.rotator {
  display: grid;
  overflow: hidden;
  flex: none;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.rot-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(110%);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.rot-item.is-on { opacity: 1; transform: none; }
.rot-item.is-out { opacity: 0; transform: translateY(-110%); }
.contact-sub { margin-top: 6px; min-height: 0; overflow: hidden; font-size: 14px; line-height: 1.5; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- inner pages */

.page-head { padding: 34px 4px 26px; }
.crumb { font-family: var(--mono); font-size: 13px; color: var(--accent-text); margin-bottom: 10px; }
.crumb span { color: var(--faint); }
.page-head h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -.045em;
}
.page-head .lead { margin-top: 12px; font-size: 18px; }

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s var(--ease);
}
.chip span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.chip[aria-pressed="true"] span { color: inherit; opacity: .6; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--faint);
  min-width: min(260px, 100%);
  margin-left: auto;
}
.search-field:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card.is-hidden { display: none; }
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow), var(--inset);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(140deg, hsl(var(--h) 90% 94%), hsl(calc(var(--h) + 50) 80% 88%));
}
:root[data-theme="dark"] .thumb { background: linear-gradient(140deg, hsl(var(--h) 35% 15%), hsl(calc(var(--h) + 50) 40% 9%)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.035); }
.ph {
  width: 68%;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: 0 14px 30px -14px hsl(var(--h) 50% 30% / .45);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.card:hover .ph { transform: translateY(-4px) rotate(-1deg); }
.ph-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ph-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.ph-bar span { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-body {
  display: grid;
  place-items: center;
  height: 84px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: hsl(var(--h) 55% 45%);
}
:root[data-theme="dark"] .ph-body { color: hsl(var(--h) 70% 70%); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.card-go { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.card:hover .card-go { color: var(--accent); transform: translate(2px, -2px); }
.card-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: -4px; }
.card-text { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 64px 20px;
  text-align: center;
  color: var(--faint);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.empty-state .ico { width: 28px; height: 28px; color: var(--accent); }
.empty-state[hidden] { display: none; }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.service { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.service-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 8px;
}
.service-ico .ico { width: 22px; height: 22px; }
.service-no { position: absolute; top: 24px; right: 26px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.service h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.service p { color: var(--muted); font-size: 15px; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 30px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 65%), var(--card);
}
.cta h2 { font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.cta p { color: var(--muted); margin-top: 4px; }

/* blog */
.posts { display: flex; flex-direction: column; gap: 12px; }
.post-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 22px 16px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow), var(--inset);
}
.post-row:not(:has(.post-cover)) { grid-template-columns: 1fr auto; padding-left: 24px; }
.post-cover { width: 168px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.post-row-main time { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.post-row-main h2 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin: 4px 0 6px; }
.post-row-main p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all .25s var(--ease); }
.post-row:hover .post-row-go { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.article { max-width: 740px; margin: 0 auto; padding-top: 26px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); padding: 6px 12px 6px 8px; margin-left: -8px; border-radius: 999px; }
.back:hover { color: var(--text); background: var(--card); }
.back .ico { width: 16px; height: 16px; }
.article-head { padding: 26px 0 28px; }
.article-head time { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.article-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; font-weight: 650; letter-spacing: -.04em; margin-top: 10px; text-wrap: balance; }
.article-cover { width: 100%; border-radius: var(--r); margin-bottom: 30px; border: 1px solid var(--line); }

.prose { font-size: 17px; line-height: 1.75; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5 { color: var(--text); letter-spacing: -.025em; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 26px; font-weight: 650; }
.prose h3 { font-size: 21px; font-weight: 600; }
.prose h4, .prose h5 { font-size: 18px; font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: "›"; position: absolute; left: -1.1em; color: var(--accent); font-family: var(--mono); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose code { font-family: var(--mono); font-size: .86em; padding: .15em .45em; border-radius: 7px; background: var(--card-2); border: 1px solid var(--line); }
.prose pre {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--term-bg);
  color: var(--term-text);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid var(--term-line);
}
.prose pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 8px; right: 12px; font-family: var(--mono); font-size: 11px; color: var(--term-dim); }
.prose pre code { padding: 0; background: none; border: 0; font-size: inherit; color: inherit; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); border-radius: 0; color: var(--muted); }
.prose img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.about-main { padding: 32px; }
.about-id { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.about-name { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.about-role { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.about-role .ico { width: 15px; height: 15px; }
.about-side { display: flex; flex-direction: column; gap: 16px; }
.skill-group + .skill-group { margin-top: 16px; }
.skill-label { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.link-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.link-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; font-size: 15px; font-weight: 500; transition: background-color .2s; }
.link-list a:hover { background: var(--card-2); }
.link-list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.link-list .ico { color: var(--muted); }
.link-go { width: 15px; height: 15px; color: var(--faint); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-form-tile { padding: 30px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { font-size: 13px; color: var(--err); }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 15px; font-weight: 500; }
.notice-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.notice-err { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); }
.contact-side { padding: 26px; }
.email-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 14px; }
.email-box a { font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* 404 */
.notfound { max-width: 620px; margin: 0 auto; padding: 60px 0 20px; text-align: center; }
.notfound-code { text-align: left; margin: 0 0 30px; padding: 18px 20px; border-radius: var(--r-sm); background: var(--term-bg); color: var(--term-dim); font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.notfound h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 650; letter-spacing: -.035em; }
.notfound .lead { margin: 12px auto 26px; }

/* footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--faint);
}
.foot-links { display: flex; gap: 4px; }
.foot-links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: var(--muted); }
.foot-links a:hover { color: var(--text); background: var(--card); }

/* ---------------------------------------------------------------- dock (mobile nav) */

.dock { display: none; }

/* ---------------------------------------------------------------- command palette */

.palette {
  width: min(620px, calc(100% - 24px));
  max-height: min(560px, 76dvh);
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 80px -24px rgba(10, 12, 30, .45);
  overflow: hidden;
}
.palette[open] { display: flex; flex-direction: column; animation: pop .22s var(--ease); }
.palette::backdrop { background: rgba(8, 10, 20, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.palette-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--faint); }
.palette-head input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--text); }
.palette-list { flex: 1; overflow-y: auto; padding: 8px; }
.palette-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
}
.palette-list li[aria-selected="true"] { background: var(--accent-soft); }
.palette-list .p-glyph { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); flex: none; }
.palette-list li[aria-selected="true"] .p-glyph { color: var(--accent-text); border-color: var(--accent-line); }
.palette-list .p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.palette-list .p-main small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-list .p-kind { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.palette-list .p-empty { color: var(--faint); cursor: default; justify-content: center; padding: 24px; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.palette-foot kbd { margin-right: 2px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------------------------------- kod renklendirme (blog) */

.prose pre .tok-comment { color: #6b7587; font-style: italic; }
.prose pre .tok-string { color: #a5e3b7; }
.prose pre .tok-keyword { color: #c4a7ff; }
.prose pre .tok-number { color: #ffb37a; }
.prose pre .tok-function { color: #7cc7ff; }
.prose pre .tok-variable { color: #ff9cbd; }
.prose pre .tok-tag { color: #7cc7ff; }
.prose pre .tok-attr { color: #ffd479; }

/* ---------------------------------------------------------------- küçük parçalar */

.mono { font-family: var(--mono); }
.page-tools { display: flex; gap: 8px; margin: -8px 0 20px; }
.page-tools .chip .ico { width: 15px; height: 15px; color: var(--accent); }
.foot-legal { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot-legal:hover { color: var(--text); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-note { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 220px; font-size: 13px; color: var(--faint); line-height: 1.5; }
.form-note .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.section-title { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 14px; }

/* ---------------------------------------------------------------- referans detay */

.ref { padding-top: 26px; }
.ref-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: end; margin: 26px 0 30px; }
.ref-intro h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; font-weight: 650; letter-spacing: -.045em; }
.ref-intro .lead { margin-top: 14px; font-size: 18px; }
.ref-intro .actions { margin-top: 22px; }
.ref-facts { margin: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ref-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ref-facts dt { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ref-facts dd { margin: 0; font-size: 15px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.ref-facts .tags { margin: 0; padding: 0; }

.browser { margin: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-lift); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.browser-bar .dots i { background: var(--line-2); }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: auto; }
.ref-shot { margin-bottom: 30px; }
/* Tam sayfa ekran görüntüleri çok uzun olabilir: üst kısmı göster, tıklayınca tamamı açılır. */
.ref-shot .shot img { max-height: min(72vh, 760px); object-fit: cover; object-position: top; }

.ref-quote { position: relative; margin: 0 0 30px; padding: 30px 32px 28px 76px; background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--card); }
.ref-quote .quote-mark { position: absolute; left: 26px; top: 28px; width: 30px; height: 30px; color: var(--accent); }
.ref-quote p { font-size: 20px; line-height: 1.5; letter-spacing: -.015em; font-weight: 500; }
.ref-quote footer { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; font-size: 14px; }
.ref-quote footer span { color: var(--muted); }
.ref-quote footer span::before { content: "· "; color: var(--faint); }

.ref-body { max-width: 740px; margin-bottom: 30px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-bottom: 40px; }
.gallery .shot { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--card-2); }
.gallery .shot img { height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.gallery .shot:hover img { transform: scale(1.03); }
.ref-others { margin-top: 10px; }

.lightbox { max-width: min(1200px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 8, 14, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .22s var(--ease); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--r-sm); }
.lightbox-close { position: absolute; top: 10px; right: 10px; }

@media (max-width: 860px) {
  .ref-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ref-quote { padding: 70px 22px 22px; }
  .ref-quote .quote-mark { left: 22px; top: 24px; }
  .ref-quote p { font-size: 17px; }
}

/* ---------------------------------------------------------------- social rail (sağ kenar, masaüstü) */

.rail { display: none; }

@media (min-width: 1061px) {
  /* Şerit içerikle çakışmasın diye iki yanda simetrik boşluk bırak. */
  .has-rail .topbar, .has-rail .page { width: min(var(--maxw), calc(100% - 152px)); }

  .rail {
    position: fixed;
    right: 22px;
    top: 50%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 76%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow), var(--inset);
    animation: rail-in .7s var(--ease) .25s both;
  }
  .rail::before, .rail::after {
    content: "";
    position: absolute;
    left: calc(50% - .5px);
    width: 1px;
    height: 56px;
  }
  .rail::before { bottom: calc(100% + 10px); background: linear-gradient(to top, var(--line-2), transparent); }
  .rail::after { top: calc(100% + 10px); background: linear-gradient(to bottom, var(--line-2), transparent); }
  .rail a {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--muted);
    transition: color .2s, background-color .2s, transform .25s var(--ease);
  }
  .rail a:hover, .rail a:focus-visible { color: var(--accent-text); background: var(--accent-soft); transform: translateX(-2px); }
  .rail a::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity .2s, transform .25s var(--ease);
  }
  .rail a:hover::after, .rail a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

  /* Masaüstünde ikonlar şeritte; iletişim kutusunda ve sayfa altında tekrar etmesin. */
  .has-rail .tile-social, .has-rail .foot-links { display: none; }
}

@keyframes rail-in { from { opacity: 0; transform: translate(14px, -50%); } }

/* ---------------------------------------------------------------- animations */

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.bento > .tile, .cards > .card, .services > .tile, .posts > a, .page-head, .about > *, .contact > * {
  animation: rise .6s var(--ease) both;
}
.bento > .tile:nth-child(2), .cards > .card:nth-child(2), .services > .tile:nth-child(2), .posts > a:nth-child(2) { animation-delay: .05s; }
.bento > .tile:nth-child(3), .cards > .card:nth-child(3), .services > .tile:nth-child(3), .posts > a:nth-child(3) { animation-delay: .1s; }
.bento > .tile:nth-child(4), .cards > .card:nth-child(4), .services > .tile:nth-child(4) { animation-delay: .15s; }
.bento > .tile:nth-child(5), .cards > .card:nth-child(5) { animation-delay: .2s; }
.bento > .tile:nth-child(6), .cards > .card:nth-child(6) { animation-delay: .25s; }
.bento > .tile:nth-child(7) { animation-delay: .3s; }

::view-transition-old(app), ::view-transition-new(app) { animation-duration: .22s; }

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

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .tool-search .tool-label { display: none; }
  .nav a { padding: 8px 11px; }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .tools, .nav + .tools { margin-left: auto; }
  .tool-search .tool-label { display: inline; }

  .dock {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    gap: 2px;
    padding: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 80%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 16px 40px -16px rgba(10, 12, 30, .35), var(--inset);
    max-width: calc(100% - 20px);
  }
  .dock a {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 46px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .25s, color .25s;
  }
  .dock a .ico { width: 20px; height: 20px; }
  .dock a span { display: none; }
  .dock a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
  .dock a[aria-current="page"] span { display: inline; }

  .page { padding-bottom: 110px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; }
  .hero { grid-row: auto; gap: 34px; }
  .term { height: 300px; }
  .list-tile { min-height: 230px; }
}

@media (max-width: 720px) {
  :root { --r: 22px; --gap: 12px; }
  .topbar { height: 54px; padding-left: 16px; top: 8px; margin-top: 8px; width: calc(100% - 20px); }
  .page { width: calc(100% - 20px); }
  .tool-search { border: 0; padding: 0 10px; }
  .tool-search .tool-label, .tool-search kbd { display: none; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .hero, .term, .skills-tile { grid-column: auto; }
  .hero { padding: 24px; }
  .list-tile { min-height: 0; }
  .contact-actions { padding-top: 18px; }

  .page-head { padding: 22px 2px 18px; }
  .page-head .lead { font-size: 16.5px; }
  .search-field { margin-left: 0; width: 100%; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -10px; padding: 0 10px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .about-main, .contact-form-tile { padding: 22px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .post-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; gap: 14px; }
  .post-row .post-cover { grid-column: 1 / -1; width: 100%; }
  .post-row-main h2 { font-size: 18px; }
  .prose { font-size: 16.5px; }
  .foot { flex-direction: column-reverse; align-items: flex-start; }
  .palette { margin-top: 8vh; }
  .palette-foot { display: none; }
}

@media (max-width: 520px) {
  .dock { gap: 0; padding: 5px; }
  .dock a { height: 44px; padding: 0 12px; }
  .dock a[aria-current="page"] span { display: none; }
}

@media (max-width: 360px) {
  .dock a { padding: 0 9px; }
  .dock a .ico { width: 19px; height: 19px; }
}
