/* Archivo, SIL Open Font License 1.1 (fonts/OFL.txt). Değişken font: wght 100–900, wdth 62–125. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f0f0eb;
  --ink: #1c1838;
  --muted: #5d5a6c;
  --line: #d4d3d9;
  --accent: #5227d8;

  /* İletişim bloğu ve alt bilgi */
  --block: #5227d8;
  --on-block: #f3f1ff;
  --on-block-muted: #cdc2ff;
  --block-line: rgb(243 241 255 / 0.3);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 80rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  --space: clamp(4.5rem, 3rem + 6vw, 9rem);

  --text-sm: 0.9375rem;
  --text-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --text-h2: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  --text-h3: 1.375rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13111d;
    --ink: #ebe9f3;
    --muted: #a3a0b5;
    --line: #2e2b40;
    --accent: #a995ff;

    --block: #3a1db0;
    --on-block: #f1eeff;
    --on-block-muted: #c4b8ff;
    --block-line: rgb(241 238 255 / 0.24);
  }
}

/* Temel */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

/* Kısa sayfalarda (404) alt bilgi en altta kalsın. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 48em) {
  body {
    font-size: 1.125rem;
  }
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}

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: var(--paper);
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Üst satır */

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: var(--text-sm);
}

.topbar__place {
  color: var(--muted);
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 2.2vw, 2.25rem);
}

.topbar__nav a {
  text-decoration: none;
}

.topbar__nav a:hover {
  text-decoration: underline;
}

@media (max-width: 34em) {
  .topbar__place {
    display: none;
  }
}

/* Giriş: ad alta yaslı, tanıtım sağ üstte */

.hero {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gap);
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100svh - 4.25rem);
  padding-block: clamp(2.5rem, 8vh, 6rem) clamp(1.25rem, 3vh, 2.5rem);
}

.hero__intro {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  max-width: 36rem;
}

.hero__name {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  margin-top: 2rem;
  margin-left: -0.055em;
  font-size: 17.5vw;
  /* Genişliğe oturur; alçak ekranlarda (1366×768 gibi) ilk ekrana sığsın diye yükseklikle de sınırlı. */
  font-size: min(19.6cqi, 25svh);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.hero__name span {
  display: block;
  animation: stretch 1.3s cubic-bezier(0.16, 0.8, 0.12, 1) both;
}

.hero__name span + span {
  animation-delay: 0.09s;
}

/* Ad, açılışta dar kesimden geniş kesime açılır. */
@keyframes stretch {
  from {
    font-stretch: 62%;
  }
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.34;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button--line {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

/* Dar ekranda ad üstte, tanıtım altında; ekranı doldurmaya çalışmaz. */
@media (max-width: 59.99em) {
  .hero {
    grid-template-rows: auto auto;
    min-height: 0;
    padding-block: clamp(2rem, 6vh, 4rem) 0;
  }

  .hero__name {
    grid-row: 1;
    margin-top: 0;
  }

  .hero__intro {
    grid-row: 2;
    margin-top: 2.25rem;
  }
}

@media (min-width: 60em) {
  .hero__intro {
    grid-column: 7 / -1;
  }
}

/* Bölümler */

.section {
  padding-top: var(--space);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.section__title {
  grid-column: 1 / -1;
  font-size: var(--text-h2);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section__body {
  grid-column: 1 / -1;
  min-width: 0;
}

.section__text {
  max-width: 34em;
  color: var(--muted);
}

@media (min-width: 60em) {
  .section__title {
    grid-column: 1 / 5;
  }

  .section__body {
    grid-column: 5 / -1;
  }
}

/* Şu an */

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem 2rem;
  margin-bottom: 1.5rem;
}

.job__title {
  grid-column: 1 / -1;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.job__place {
  font-weight: 600;
}

.job__since {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.duties {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.duties li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
}

.duties li::before {
  content: "";
  position: absolute;
  top: calc(0.9rem + 0.78em);
  left: 0;
  width: 0.9rem;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 34em) {
  .job {
    grid-template-columns: 1fr;
  }

  .job__since {
    text-align: left;
  }
}

/* Uzmanlık: başlık solda, açıklama sağda satırlar */

.rows {
  margin-top: 2rem;
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  gap: 0.6rem var(--gap);
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--line);
}

.row__title {
  font-size: var(--text-h3);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.row__text {
  max-width: 34em;
  text-wrap: pretty;
}

@media (min-width: 48em) {
  .row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

/* Sık sorulan sorular */

.faq {
  border-bottom: 1px solid var(--line);
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__question {
  position: relative;
  display: block;
  padding: 1.1rem 3rem 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

/* Artı işareti; açıkken eksiye döner */
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.faq__question::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__question::after {
  transform: rotate(0deg);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__answer {
  max-width: 36em;
  padding-bottom: 1.4rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* Teknolojiler */

.stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem var(--gap);
}

.stack__title {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.stack__list li {
  padding-block: 0.12rem;
}

@media (min-width: 72em) {
  .stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Hakkımda */

.about p {
  max-width: 35em;
  text-wrap: pretty;
}

.about p + p {
  margin-top: 1.1em;
}

.about p:first-child {
  font-size: var(--text-lead);
  line-height: 1.38;
  letter-spacing: -0.01em;
  max-width: 30em;
}

/* Geçmiş */

.subhead {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  font-size: var(--text-h3);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.012em;
}

.timeline {
  border-bottom: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.25rem var(--gap);
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.timeline__period {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline__title {
  font-weight: 600;
}

.timeline__place {
  color: var(--muted);
}

@media (max-width: 34em) {
  .timeline__item {
    grid-template-columns: 1fr;
  }
}

/* İletişim */

.contact {
  margin-top: var(--space);
  padding-top: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  background: var(--block);
  color: var(--on-block);
}

.contact ::selection {
  background: var(--on-block);
  color: var(--block);
}

.contact :focus-visible {
  outline-color: var(--on-block);
}

.contact__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1rem;
}

.contact__text {
  grid-column: 1 / -1;
  max-width: 30em;
  color: var(--on-block-muted);
  font-size: var(--text-lead);
  line-height: 1.34;
}

.contact__text time {
  color: var(--on-block);
  font-variant-numeric: tabular-nums;
}

.contact__links {
  margin-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--block-line);
}

.contact__links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: clamp(0.6rem, 0.3rem + 1vw, 1.25rem);
  border-bottom: 1px solid var(--block-line);
  color: var(--on-block);
  text-decoration: none;
}

.contact__label {
  font-size: clamp(2.5rem, 1rem + 7vw, 6.5rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: font-stretch 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.contact__handle {
  color: var(--on-block-muted);
  font-size: 1rem;
}

.contact__links a:hover .contact__label {
  font-stretch: 92%;
}

.contact__links a:hover .contact__handle {
  color: var(--on-block);
}

@media (max-width: 34em) {
  .contact__links a {
    flex-direction: column;
  }
}

@media (min-width: 60em) {
  .contact__head .section__title {
    grid-column: 1 / 5;
  }

  .contact__text {
    grid-column: 5 / -1;
  }
}

/* Alt bilgi */

.footer {
  background: var(--block);
  color: var(--on-block-muted);
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 2rem 2.25rem;
}

/* Hata sayfaları */

.status {
  padding-block: clamp(3rem, 10vh, 8rem) var(--space);
}

.status__code {
  font-size: clamp(6rem, 3rem + 18vw, 18rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-left: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.status__title {
  margin-top: 2.5rem;
  font-size: var(--text-h2);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.status__text {
  max-width: 32em;
  margin-top: 1rem;
  color: var(--muted);
}

.status__meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.status .actions {
  margin-top: 2.5rem;
}

/* Hareket azaltma */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__name span {
    animation: none;
  }

  .contact__label,
  .faq__question::before,
  .faq__question::after {
    transition: none;
  }

  .contact__links a:hover .contact__label {
    font-stretch: 125%;
    text-decoration: underline;
    text-decoration-thickness: 0.05em;
    text-underline-offset: 0.12em;
  }
}

/* Yazdırma */

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --muted: #444;
    --line: #bbb;
    --accent: #000;
    --block: #fff;
    --on-block: #000;
    --on-block-muted: #444;
    --block-line: #bbb;
  }

  .topbar__nav,
  .actions,
  .skip {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero__name span {
    animation: none;
  }

  .section {
    padding-top: 2.5rem;
    break-inside: avoid;
  }

  .contact__links a::after {
    content: " " attr(href);
    font-size: 0.8rem;
  }
}
