/* caglarakman.com - shared stylesheet for the English (/) and Turkish (/tr/) editions. */

:root {
  --bg:        #0F0F0E;
  --text:      #ECE8E1;
  --muted:     rgba(236, 232, 225, 0.60);
  /* 0.52 rather than 0.40: at 0.40 this lands at 3.3:1 on the page
     background, which fails WCAG AA for the small text that uses it
     (venture numerals, question numerals, footer meta, inactive
     language button). 0.52 measures 4.8:1. */
  --faint:     rgba(236, 232, 225, 0.52);
  --accent:    #C9A66B;
  --accent-dim:rgba(201, 166, 107, 0.35);
  --hairline:  rgba(236, 232, 225, 0.13);

  --measure: 720px;
  --wide:    1000px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --topbar-h: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

.wrap  { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

.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;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover { border-color: var(--accent); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 10px 16px; border: none; font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------
   Top bar: brand, section nav, language switcher
   --------------------------------------------------------------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(15, 15, 14, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.topbar.is-stuck { border-bottom-color: var(--hairline); }

.topbar__inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 24px;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px;
}

.brand {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); border-bottom: none;
  white-space: nowrap;
  display: inline-flex; align-items: center;
  min-height: 40px;
}
.brand:hover { color: var(--accent); }

.nav {
  margin-left: auto;
  display: flex; gap: clamp(14px, 2.2vw, 26px);
}
.nav a {
  font-size: 0.74rem; letter-spacing: 0.09em;
  color: var(--muted); border-bottom: none;
  padding: 6px 0;
}
.nav a:hover { color: var(--text); }

.lang {
  display: flex; gap: 2px;
  border: 1px solid var(--hairline);
  border-radius: 2px; padding: 3px;
  flex: none;
}
.lang a {
  font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--faint); border-bottom: none;
  border-radius: 1px; line-height: 1;
  /* Sized as a touch target, not as text. */
  min-height: 38px; min-width: 44px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--bg); background: var(--accent); }

@media (max-width: 719px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

main { padding-top: var(--topbar-h); }

.hero { padding: clamp(64px, 13vh, 128px) 0 clamp(52px, 8vh, 84px); }

.hero__portrait {
  width: 132px; height: 132px;
  object-fit: cover; object-position: center 42%;
  display: block; margin: 0 0 32px;
  border: 1px solid var(--hairline);
  filter: grayscale(58%) sepia(8%) contrast(1.04) brightness(0.97);
}

.hero__name {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text); margin: 0 0 8px;
}
.hero__role {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--muted); margin: 0 0 clamp(28px, 4.5vw, 42px);
}

h1.hero__line {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.05rem, 6vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.014em;
  margin: 0 0 clamp(24px, 3.5vw, 32px);
  max-width: 17ch;
  text-wrap: balance;
}
h1.hero__line span { display: block; }

.hero__sub {
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  line-height: 1.58;
  max-width: 44ch;
  margin: 0 0 18px;
}
.hero__sub:last-child { margin-bottom: 0; }
.hero__sub--muted { color: var(--muted); }

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */

.section {
  padding: clamp(56px, 9vh, 96px) 0;
  border-top: 1px solid var(--hairline);
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--accent); flex: none;
}

.section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.16; letter-spacing: -0.012em;
  margin: 0 0 24px; max-width: 22ch;
  text-wrap: balance;
}

/* :where() keeps this default at zero specificity for the type selector,
   so single-class component rules below (.pull, .venture__text, ...) can
   still set their own margins. Without it `.section p` (0,1,1) silently
   beats `.pull` (0,1,0) and every component margin collapses to 18px. */
.section :where(p) { margin: 0 0 18px; }
.section :where(p):last-child { margin-bottom: 0; }
.lede { font-size: 1.14rem; line-height: 1.6; max-width: 50ch; }
.muted { color: var(--muted); }
.prose { max-width: 54ch; }
.prose p { color: var(--muted); }
.prose p.strong { color: var(--text); }

.pull {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  line-height: 1.24; letter-spacing: -0.01em;
  color: var(--text);
  max-width: 21ch;
  margin: clamp(44px, 6.5vw, 72px) 0 0;
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 1px solid var(--accent);
  text-wrap: balance;
}

/* ---------------------------------------------------------------
   The pattern device.  Party A --- missing layer --- Party B.
   This is the site's signature visual: two sides, a hairline
   between them, and the venture sitting in the gap.
   --------------------------------------------------------------- */

.patterns {
  list-style: none; padding: 0;
  margin: clamp(38px, 6vw, 60px) 0 clamp(34px, 5vw, 48px);
  display: grid; gap: clamp(26px, 4vw, 38px);
  /* Held to a narrow measure so the device stays anchored to the left
     column instead of floating in the middle of the wide container. */
  max-width: 600px;
}

.pattern {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "a link b"
    ". venture .";
  align-items: center;
  column-gap: clamp(12px, 2.2vw, 24px);
  row-gap: 12px;
}

.pattern__side {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.02rem, 2.5vw, 1.42rem);
  line-height: 1.2; letter-spacing: -0.005em;
  color: var(--text);
}
.pattern__side--a { grid-area: a; text-align: right; }
.pattern__side--b { grid-area: b; text-align: left; }

.pattern__link {
  grid-area: link; position: relative; display: block;
  width: clamp(64px, 17vw, 180px); height: 1px;
  background: var(--hairline);
}
.pattern__link::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 1s var(--ease) 0.15s;
}
.is-in .pattern__link::after { transform: scaleX(1); }

.pattern__dot {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
  transition: transform 0.3s var(--ease);
}
.pattern:hover .pattern__dot { transform: scale(1.45); }

.pattern__venture {
  grid-area: venture; text-align: center;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.pattern:hover .pattern__venture { color: var(--accent); }

@media (max-width: 380px) {
  .pattern__side { font-size: 0.96rem; }
  .pattern__link { width: 42px; }
  .pattern { column-gap: 10px; }
}

.pattern-note {
  max-width: 46ch;
  color: var(--muted);
}
.pattern-note strong {
  color: var(--text); font-weight: 400;
}

/* ---------------------------------------------------------------
   Ventures
   --------------------------------------------------------------- */

.ventures { margin-top: clamp(30px, 4.5vw, 46px); }

.venture {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(18px, 4vw, 48px);
  padding: clamp(38px, 5.5vw, 60px) 0;
  border-top: 1px solid var(--hairline);
}
/* No closing rule on the last item of a list: the next section's
   border-top already draws it, and doubling them leaves a dead band. */

.venture__index {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.7em;
}

.venture__body > *:first-child { margin-top: 0; }

.venture__pair {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.venture__pair i {
  font-style: normal; color: var(--accent);
  margin: 0 0.5em; letter-spacing: 0;
}

.venture__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.014em;
  margin: 0 0 18px;
}

.venture__text {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 16px;
}

.venture__claim {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.32rem);
  line-height: 1.4; color: var(--text);
  max-width: 40ch;
  margin: 0 0 8px;
}

.venture__cta {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 10px 0;
  font-size: 0.98rem; letter-spacing: 0.01em;
  border-bottom: none;
}
.venture__cta span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.venture__cta u {
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s ease;
}
.venture__cta:hover u { border-bottom-color: var(--accent); }
.venture__cta:hover span { transform: translateX(5px); }

.venture__pending {
  display: inline-block; padding: 10px 0;
  font-size: 0.88rem; color: var(--faint);
  letter-spacing: 0.02em;
}

@media (max-width: 599px) {
  .venture { grid-template-columns: 1fr; row-gap: 12px; }
  .venture__index { padding-top: 0; }
}

/* ---------------------------------------------------------------
   Proof figures
   --------------------------------------------------------------- */

.stats {
  list-style: none; padding: 0;
  margin: clamp(28px, 4vw, 40px) 0 0;
  display: grid;
  /* Capped track width keeps two figures sitting together instead of
     being flung to opposite ends of the container. */
  grid-template-columns: repeat(auto-fit, minmax(185px, 255px));
  justify-content: start;
  gap: clamp(26px, 4vw, 44px);
}
.stat__num {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 5.5vw, 3.1rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  font-size: 0.94rem; line-height: 1.5;
  color: var(--muted);
  max-width: 24ch;
}
.stats-note {
  margin-top: clamp(28px, 4vw, 40px);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--text);
}

/* ---------------------------------------------------------------
   Questions (the filter applied before building anything)
   --------------------------------------------------------------- */

.questions {
  list-style: none; padding: 0;
  margin: clamp(26px, 4vw, 38px) 0 0;
  counter-reset: q;
}
.questions li {
  counter-increment: q;
  position: relative;
  padding: 16px 0 16px 42px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 2.3vw, 1.2rem);
  line-height: 1.45;
  max-width: 46ch;
}
.questions li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute; left: 0; top: 1.35em;
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.12em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.questions li.is-key { color: var(--text); }
.questions li.is-key::before { color: var(--accent); }

/* ---------------------------------------------------------------
   Thinking / writing topics
   --------------------------------------------------------------- */

.topics {
  list-style: none; padding: 0;
  margin: clamp(22px, 3.5vw, 32px) 0 0;
  max-width: 760px;
}
.topics li {
  padding: 17px 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 2.3vw, 1.2rem);
  line-height: 1.42;
  color: var(--text);
}
.topics a {
  color: var(--text); border-bottom: none;
  display: inline-block; min-height: 30px;
}
.topics a:hover { color: var(--accent); }

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */

.reasons {
  list-style: none; padding: 0;
  margin: clamp(24px, 3.5vw, 34px) 0 clamp(28px, 4vw, 38px);
  display: grid; gap: 12px;
  max-width: 46ch;
}
.reasons li {
  position: relative; padding-left: 22px;
  color: var(--muted);
}
.reasons li::before {
  content: ""; position: absolute;
  left: 0; top: 0.82em;
  width: 10px; height: 1px; background: var(--accent);
}

.cta-major {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 48px; padding: 11px 0;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 3vw, 1.55rem);
  border-bottom: none;
}
.cta-major u {
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s ease;
}
.cta-major span {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.cta-major:hover u { border-bottom-color: var(--accent); }
.cta-major:hover span { transform: translateX(5px); }

/* ---------------------------------------------------------------
   Footer signature
   --------------------------------------------------------------- */

.foot {
  padding: clamp(64px, 11vh, 112px) 0 clamp(44px, 7vh, 72px);
  border-top: 1px solid var(--hairline);
}
.foot__name {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.foot__line {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  line-height: 1.18; letter-spacing: -0.014em;
  color: var(--accent);
  margin: 0 0 clamp(32px, 5vw, 48px);
  max-width: 20ch;
  text-wrap: balance;
}
.foot__meta {
  font-size: 0.82rem; color: var(--faint);
  letter-spacing: 0.02em; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px;
}
.foot__meta a {
  color: var(--muted); border-bottom-color: var(--hairline);
  display: inline-flex; align-items: center; min-height: 30px;
}

/* ---------------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; }
  .pattern__link::after { transform: scaleX(1) !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
