/* Gökhan Altay — personal site, draft v1 */

:root {
  --ink: #122433;
  --ink-soft: #3d4f5c;
  --navy: #0f2c46;
  --navy-deep: #0a1e30;
  --paper: #f3eee6;
  --paper-deep: #e8e0d4;
  --card: #fbf8f3;
  --line: #d5cbbe;
  --gold: #a68445;
  --gold-soft: #c4a35a;
  --cream: #f7f1e6;
  --teal: #1a6b61;
  --focus: #0f2c46;
  --shadow: 0 18px 40px rgba(18, 36, 51, 0.08);
  --serif: "Source Serif 4", "Source Serif Pro", "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(198, 163, 90, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 44, 70, 0.06), transparent 45%);
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(15, 44, 70, 0.35);
}

a:hover { color: var(--teal); text-decoration-color: currentColor; }

:focus { outline: none; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.skip:focus { top: 12px; color: var(--cream); }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 230, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.brand:hover { color: var(--navy); text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav a:hover { color: var(--navy); background: rgba(15, 44, 70, 0.05); }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  line-height: 1;
}

.lang button:hover { color: var(--navy); }

.lang button[aria-pressed="true"] {
  color: var(--navy);
  background: rgba(15, 44, 70, 0.08);
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 6.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.role {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ink-soft);
}

.lead {
  margin: 0 0 36px;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { text-decoration: none; }

.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}

.btn-primary:hover { background: var(--navy-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(255, 252, 248, 0.7);
}

/* Portrait placeholder
   ------------------------------------------------------------------ */
.portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(198, 163, 90, 0.14), transparent 32%),
    linear-gradient(165deg, #1a3e5c 0%, #0f2c46 48%, #0a1e30 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(198, 163, 90, 0.45);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(198, 163, 90, 0.28);
  border-radius: 10px;
  pointer-events: none;
}

.portrait-name {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cream);
}

.portrait-name span {
  display: block;
}

/* Sections
   ------------------------------------------------------------------ */
.section {
  position: relative;
  padding: 72px 0;
}

.section-head {
  margin-bottom: 36px;
  max-width: 40rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold-soft);
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.15;
}

.section-head p,
.prose p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 42rem;
}

.prose p:last-child { margin-bottom: 0; }

#about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px 72px;
  align-items: start;
}

.about-grid .section-head { margin-bottom: 0; }

/* Align the first line of body type with the heading, not the 01 eyebrow */
.about-grid .prose { padding-top: 2.05rem; }

.nowrap { white-space: nowrap; }

/* Ventures
   ------------------------------------------------------------------ */
#ventures {
  border-top: 1px solid var(--line);
  padding-bottom: 88px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: #c4b8a8;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.25;
}

.card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--navy);
}

.card-link:hover { color: var(--teal); }

.card-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 0.2s var(--ease);
}

.card-link:hover svg { transform: translateX(3px); }

/* Contact
   ------------------------------------------------------------------ */
#contact {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 80px 0;
  border-top: 0;
}

#contact .eyebrow { color: var(--gold-soft); }

#contact .eyebrow::after { background: rgba(196, 163, 90, 0.55); }

#contact h2 { color: var(--cream); }

#contact .section-head p { color: #d5ddd8; }

.contact-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 252, 248, 0.04);
  border: 1px solid rgba(247, 241, 230, 0.12);
  border-radius: 14px;
  padding: 22px 22px;
  text-decoration: none;
  color: var(--cream);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-card:hover {
  background: rgba(255, 252, 248, 0.08);
  border-color: rgba(196, 163, 90, 0.45);
  color: #fff;
  text-decoration: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: rgba(196, 163, 90, 0.12);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-card small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.contact-card span {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #071421;
  color: #c5cfd6;
  padding: 48px 0 36px;
  border-top: 1px solid rgba(196, 163, 90, 0.22);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-mark {
  width: 44px;
  height: 44px;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.footer-rule {
  width: 48px;
  height: 1px;
  background: var(--gold-soft);
  border: 0;
  margin: 4px 0;
}

.footer-meta {
  margin: 0;
  font-size: 0.92rem;
  color: #b7c3cb;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  max-width: 44rem;
}

.footer-meta .sep {
  margin: 0 0.55em;
  color: #8b9ba6;
}

.footer-meta a {
  color: #d5ddd8;
  text-decoration: none;
}

.footer-meta a:hover { color: var(--gold-soft); }

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #8b9ba6;
}

/* Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .contact-rows {
    grid-template-columns: 1fr;
  }

  .hero { padding: 48px 0 64px; }

  .hero-grid { gap: 40px; }

  .portrait { width: min(100%, 240px); }

  .about-grid { grid-template-columns: 1fr; gap: 0; }

  .about-grid .section-head { margin-bottom: 28px; }

  .about-grid .prose { padding-top: 0; }

  .portrait-col { align-items: flex-start; }

  .card { min-height: 0; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 0;
    padding: 12px 0 10px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .lang {
    border-left: 0;
    padding-left: 0;
  }

  .nav a { padding: 8px 8px; }

  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }

  .lead, .section-head p, .prose p { font-size: 1.05rem; }

  .section { padding: 56px 0; }

  #contact { padding: 64px 0; }

  .portrait { width: min(100%, 220px); }

  .portrait-col { align-items: center; }

  .portrait-name { font-size: 2.15rem; }

  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }

  .footer-meta .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .card-link svg, .contact-card { transition: none; }
  .card:hover { transform: none; }
}
