/* Tolga, portfolio
   Type: Archivo (variable width and weight), self-hosted.
   Brand: navy #0a111f, warm white #fdfbf8 and mint #69f2c9, taken from the T mark. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --paper: #fdfbf8;
  --ink: #0a111f;
  --ink-2: #485266;
  --ink-3: #636d80;
  --rule: #e2e5ea;
  --rule-strong: #c9cfd8;
  --band: #eef1f5;
  --mint: #69f2c9;
  --tick: #2ed3a5;
  --focus: #0a111f;
  --solid-bg: #0a111f;
  --solid-fg: #fdfbf8;
  --solid-hover: #1c2840;
  --foot-bg: #0a111f;
  --foot-ink: #fdfbf8;
  --foot-ink-2: #a3acbd;
  --foot-rule: rgb(253 251 248 / .14);
  --shot-shadow: 0 34px 70px -28px rgb(10 17 31 / .32), 0 12px 28px -14px rgb(10 17 31 / .2);

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0a111f;
  --ink: #f3f1ec;
  --ink-2: #a9b2c2;
  --ink-3: #8c95a7;
  --rule: #1d2738;
  --rule-strong: #2c384c;
  --band: #0f1829;
  --tick: #69f2c9;
  --focus: #69f2c9;
  --solid-bg: #f3f1ec;
  --solid-fg: #0a111f;
  --solid-hover: #d9f7ec;
  --foot-bg: #0f1829;
  --foot-ink: #f3f1ec;
  --foot-ink-2: #8c95a7;
  --foot-rule: #1f2a3d;
  --shot-shadow: 0 34px 70px -28px rgb(0 0 0 / .7), 0 12px 28px -14px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; }

::selection { background: var(--mint); color: #0a111f; }

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

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--solid-bg);
  color: var(--solid-fg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* type */

.display {
  font-size: clamp(2.375rem, 0.8rem + 6.1vw, 6.125rem);
  font-weight: 780;
  font-stretch: 125%;
  line-height: .98;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(2.125rem, 1.45rem + 2.3vw, 3.25rem);
  font-weight: 760;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

/* header */

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 1.125rem;
  font-weight: 720;
  font-stretch: 118%;
  text-decoration: none;
}

.mark { width: 30px; height: auto; flex: none; }
.mark-t { fill: currentColor; }
.mark-bar { fill: var(--tick); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: .9375rem;
  font-weight: 520;
}
.nav-links a {
  padding-block: 6px;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

.nav-tools { display: flex; gap: 4px; margin-right: -8px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--band); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .logo { fill: currentColor; }

/* language switch: the other language's two-letter code */
.lang {
  font-size: .8125rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: .04em;
  text-decoration: none;
}

.i-sun, .i-moon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .i-moon,
:root:not([data-theme="dark"]) .i-sun { display: none; }

@media (max-width: 760px) {
  .nav { gap: 16px; min-height: 68px; }
  .nav-links li:not(:first-child) { display: none; }
}

/* hero */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(72px, 9vw, 128px); }

.hello {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem);
}

.cursor {
  display: inline-block;
  width: .5em;
  height: .105em;
  margin-left: .1em;
  background: var(--tick);
  transform: skewX(-45deg);
  animation: blink 1.05s 4 .5s both;
}

@keyframes blink {
  0%, 49.9% { opacity: 1; }
  50%, 99.9% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 33rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 28px 48px;
  margin-top: clamp(32px, 4.4vw, 60px);
}
.lede { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 36rem); }
}

@media (max-width: 560px) {
  /* keep each phrase on one line: "New possibilities" is about 10.1em wide */
  .display { font-size: calc((100vw - 2 * var(--gutter)) / 10.4); }
  /* Turkish: "İşe yarayan yazılım." is about 11.5em wide */
  :root[lang="tr"] .display { font-size: calc((100vw - 2 * var(--gutter)) / 11.9); }
  .tabs { gap: 22px; }
}

/* buttons */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .logo { fill: currentColor; }
.btn svg:not(.logo) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-solid {
  border-color: var(--solid-bg);
  background: var(--solid-bg);
  color: var(--solid-fg);
}
.btn-solid:hover { border-color: var(--solid-hover); background: var(--solid-hover); }

/* Ajandam */

.project {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--band);
}

.project-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 24px;
}

.app-icon {
  width: 84px;
  height: 84px;
  margin: -6px -4px -6px -8px;
}

.project-lede {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem);
}

.project-cta {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.release {
  color: var(--ink-3);
  font-size: .9375rem;
  text-align: right;
}

.project-intro {
  max-width: 40rem;
  margin-top: clamp(28px, 3.4vw, 44px);
}

@media (max-width: 900px) {
  .project-head { grid-template-columns: auto minmax(0, 1fr); }
  .project-cta { grid-column: 1 / -1; justify-items: start; }
  .release { text-align: left; }
}

/* film: native player, poster and captions (English on /, Turkish on /tr/) */
.film { margin-top: clamp(40px, 5vw, 64px); }
.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0a111f;
  box-shadow: var(--shot-shadow);
}
.film figcaption {
  max-width: 52rem;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: .9375rem;
}
.film figcaption a { color: var(--ink-2); }
.film figcaption a:hover { color: var(--ink); }

.gallery { margin-top: clamp(40px, 5vw, 64px); }

.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--rule-strong);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs.more-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.tab {
  position: relative;
  flex: none;
  padding: 12px 0 14px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline-offset: -2px; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
}

.shot-link { display: block; border-radius: 10px; cursor: zoom-in; }

.shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: .84% / 1.26%;
  box-shadow: var(--shot-shadow);
  transition: opacity .2s ease;
}
.shot.is-loading img { opacity: .4; }

.shot figcaption {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: .9375rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 40px;
  margin-top: clamp(56px, 7vw, 96px);
}
.features h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 7px;
  margin: 0 0 18px 7px;
  background: var(--tick);
  transform: skewX(-45deg);
}
.features p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (max-width: 1040px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
}

.built {
  max-width: 52rem;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-3);
  font-size: .9375rem;
}

/* sections */

.section { padding-top: clamp(80px, 10vw, 136px); }
.section > h2 { margin-bottom: clamp(32px, 4vw, 56px); }

.focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
}
.focus p { margin-top: 10px; color: var(--ink-2); }

@media (max-width: 860px) {
  .focus { grid-template-columns: minmax(0, 36rem); }
}

.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 40px;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.tools h3 {
  color: var(--ink-3);
  font-size: 1rem;
  font-weight: 600;
}
.tools ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  font-weight: 640;
  font-stretch: 112%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.steps li {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.step-n {
  display: block;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.5rem);
  font-weight: 760;
  font-stretch: 125%;
  line-height: 1;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.belief {
  max-width: 46rem;
  margin-top: clamp(56px, 7vw, 88px);
  font-size: clamp(1.25rem, 1rem + .9vw, 1.625rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.005em;
}

/* footer */

.foot {
  margin-top: clamp(96px, 12vw, 160px);
  padding-block: clamp(64px, 8vw, 104px) 32px;
  background: var(--foot-bg);
  color: var(--foot-ink);
}

.foot-line {
  max-width: 17ch;
  font-size: clamp(2rem, 1rem + 3.4vw, 3.75rem);
  font-weight: 760;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--foot-rule);
  color: var(--foot-ink-2);
  font-size: .9375rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { color: var(--foot-ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot :focus-visible { outline-color: var(--mint); }

/* 404 */

.lost { padding-block: clamp(72px, 12vw, 160px); }
.lost p { max-width: 34rem; margin: 24px 0 36px; color: var(--ink-2); }
.lost .lost-tr { margin: 32px 0 0; color: var(--ink-3); font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn, .shot img { transition: none; }
}
