/* umutisik.com */

:root {
  --bg: #0e0e0f;
  --fg: #ecebe8;
  --muted: #8a8884;
  --line: rgba(236, 235, 232, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--muted); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 24px var(--gutter);
  background: rgba(14, 14, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 15px;
}
.nav__name { font-weight: 500; }
.nav nav { display: flex; gap: 28px; color: var(--muted); }
.nav nav a:hover { color: var(--fg); }

/* ---------- Layout ---------- */
main, .contact {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  padding: clamp(48px, 10vh, 120px) 0 clamp(72px, 14vh, 140px);
}
.intro__title {
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}
.intro__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.intro__sub {
  margin-top: 28px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.intro__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: #19191b;
}
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; align-items: start; }
  .intro__photo { order: -1; max-width: 360px; }
}

/* ---------- Blocks ---------- */
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 32px;
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}
.block__label {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.block__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px 40px;
}
@media (max-width: 760px) {
  .block { grid-template-columns: 1fr; gap: 24px; }
}

.item { display: flex; flex-direction: column; gap: 10px; }
.item__head h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.item__head span { font-size: 14px; color: var(--muted); }
.item p { color: var(--muted); font-size: 15.5px; max-width: 36ch; }
.item .item__meta { font-size: 13.5px; }
.item__link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.item__link::after { content: " ↗"; color: var(--muted); }
.item__link:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- Experience rows ---------- */
.block__body--list {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
@media (max-width: 900px) {
  .block__body--list { grid-template-columns: 1fr; }
}
.rows li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.rows li:first-child { padding-top: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows__when { color: var(--muted); font-size: 14px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.rows__what em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 14.5px;
}
.rows__what a:hover { color: var(--fg); }

/* ---------- Contact / footer ---------- */
.contact {
  padding-top: clamp(64px, 12vh, 120px);
  padding-bottom: 32px;
}
.contact__line {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.contact__line a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.contact__foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(64px, 12vh, 120px);
  font-size: 14px;
  color: var(--muted);
}
.contact__links { display: flex; gap: 24px; }
.contact__links a:hover { color: var(--fg); }

/* ---------- Fade-in (enabled by boot.js) ---------- */
.motion [data-fade] {
  opacity: 0;
  transform: translateY(12px);
}
