/* Selin Kaya — personal website. Implemented from "Selin Kaya Website v4.dc.html". */

:root {
  --bg: #f5efe4;
  --ink: #2b1a1a;
  --muted: #5c4a45;
  --red: #790d16;
  --red-dark: #5e0a11;
  --sand: #e5d3af;
  --blue: #b1c4d4;
  --white: #ffffff;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--sand); }

h1, h2, h3, p { margin: 0; }
svg { display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.display { font-family: var(--font-display); }
.accent { color: var(--red); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.pill {
  align-self: flex-start;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Nav ---------- */
.nav {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.logo span { color: var(--red); }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--red-dark); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border-radius: 999px;
}
.btn-primary { background: var(--red); color: var(--bg); padding: 16px 26px; }
.btn-primary:hover { background: var(--red-dark); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 14px 24px;
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--sand); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 48px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-tag { background: var(--blue); color: var(--ink); font-size: 14px; padding: 6px 14px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-art { width: 100%; max-width: 580px; justify-self: end; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-head p { font-size: 18px; line-height: 1.5; color: var(--muted); }

.bg-sand { background: var(--sand); }
.bg-blue { background: var(--blue); }
.bg-white { background: var(--white); }

/* ---------- Facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.fact { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.fact-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.fact-sub { font-size: 15px; color: var(--muted); }

/* ---------- Experience ---------- */
.jobs { display: flex; flex-direction: column; gap: 16px; }
.job {
  background: var(--white);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px 40px;
}
.job-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.job-dates { background: var(--sand); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.job-place { font-size: 15px; color: var(--muted); }
.job-body {
  grid-column: span 2;
  min-width: min(100%, 240px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.job h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.job h3 .note { font-weight: 500; color: var(--muted); }
.job-company { font-size: 17px; font-weight: 600; color: var(--red); }
.job ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
}
.job-ref { font-size: 14px; color: var(--muted); }
.job-ref a { font-weight: 600; }

/* On narrow screens the grid collapses to one column; don't force span 2 */
@media (max-width: 620px) {
  .job { padding: 28px; }
  .job-body { grid-column: auto; }
}

/* ---------- Skills ---------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.skill-group { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.skill-group h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; background: var(--white); color: var(--ink); border-radius: 999px; padding: 6px 14px; }
.skill-group.bg-white .chips li { background: var(--bg); }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  border-top: 2px solid var(--sand);
  padding-top: 32px;
}
.tool { display: flex; flex-direction: column; gap: 4px; }
.tool-value { font-size: 17px; font-weight: 600; }

/* ---------- Blog ---------- */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); text-decoration: none; }
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.post {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(121, 13, 22, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .post { transition: none; }
  .post:hover { transform: none; }
}
.post svg { width: 100%; height: auto; }
.post-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-tag { background: var(--bg); color: var(--red); font-size: 13px; padding: 4px 12px; }
.post h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: pretty;
}
.post p { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.post-read { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 48px; }
.contact-panel {
  background: var(--red);
  color: var(--bg);
  border-radius: 36px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  align-items: center;
}
.contact-copy { display: flex; flex-direction: column; gap: 32px; }
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px;
}
.contact-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.contact-item .eyebrow { color: var(--sand); }
.contact-value { font-size: 18px; font-weight: 600; color: var(--bg); word-break: break-word; }
a.contact-item:hover .contact-value { text-decoration: underline; text-underline-offset: 4px; }
.contact :focus-visible { outline-color: var(--bg); }
.contact-art { display: flex; justify-content: center; }
.contact-art svg { width: 100%; max-width: 260px; height: auto; }

/* ---------- Blog page ---------- */
.nav-link[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.blog-hero {
  padding-top: 32px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 880px;
  text-wrap: balance;
}
.back-link:hover { color: var(--red-dark); }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-list a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
}
.topic-list a:hover { background: var(--sand); color: var(--ink); }
.topic {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.topic:hover { background: var(--sand); }
.topic[aria-pressed="true"] { background: var(--red); color: var(--bg); }
.post-count { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: -16px; }
[hidden] { display: none !important; }
a.post-tag { text-decoration: none; }
a.post-tag:hover { background: var(--sand); color: var(--red-dark); }

.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-row {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  scroll-margin-top: 24px;
}
.post-row:target { box-shadow: 0 0 0 3px var(--red); }
.post-row svg { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.post-row .post-body { padding: clamp(28px, 4vw, 44px); justify-content: center; }
.post-row h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}
.post-row p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.post-status {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-cta { grid-template-columns: 1fr; }
.btn-light { background: var(--bg); color: var(--red); padding: 16px 26px; }
.btn-light:hover { background: var(--sand); color: var(--red-dark); }
.btn-outline-light { color: var(--bg); padding: 14px 24px; border: 2px solid var(--bg); }
.btn-outline-light:hover { background: var(--red-dark); color: var(--bg); }

.post-row .post-read { text-decoration: none; align-self: flex-start; }
.post-row .post-read:hover { color: var(--red-dark); }
.post-row h2 a { color: inherit; text-decoration: none; }
.post-row h2 a:hover { color: var(--red); }

/* ---------- Post (article) pages ---------- */
.article-head {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.article-head .post-tag { background: var(--white); }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 900px;
  text-wrap: balance;
}
.article-meta { font-size: 15px; color: var(--muted); }
.article-art { border-radius: 28px; overflow: hidden; }
.article-art svg { width: 100%; height: auto; max-height: 440px; }

.prose {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 0 96px;
  font-size: 18px;
  line-height: 1.7;
}
.prose > * + * { margin-top: 1.1em; }
.prose .lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}
.prose h2 {
  margin-top: 1.9em;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.prose h2 + p, .prose h2 + ul { margin-top: 0.6em; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.prose li::marker { color: var(--red); }
.prose strong { font-weight: 700; }
.prose > p:last-child {
  border-top: 2px solid var(--sand);
  padding-top: 1.1em;
  margin-top: 1.6em;
  font-weight: 500;
}
.more-posts { border-top: 2px solid var(--sand); padding-top: 64px; }

/* ---------- Footer ---------- */
.footer {
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 18px; }
}
.post-list:not(:has(> :not([hidden]))) { display: none; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  list-style: none;
  background: var(--white);
  border-radius: 999px;
}
.lang-switch a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--red); }
.lang-switch a[aria-current="true"] { background: var(--sand); color: var(--ink); }

/* Blog cards everywhere (home, blog page, "More posts"): smaller "Read" arrows */
.post-read { gap: 6px; }
.post-read svg { width: 14px; height: 14px; }

/* ---------- Education & highlights ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.edu {
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edu-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.edu .job-dates { background: var(--white); }
.edu h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.edu .job-company { font-size: 16px; font-weight: 600; color: var(--red); }
.edu-grade { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.edu-grade-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.edu-grade-value { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
.edu-grade-value small { font-size: 16px; font-weight: 700; color: var(--muted); }
.edu-thesis { font-size: 15px; line-height: 1.5; color: var(--ink); margin-top: auto; }
.edu-thesis .eyebrow { display: block; margin-bottom: 4px; }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.highlight {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.highlight h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.highlight p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.lang-levels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lang-levels li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sand);
  font-weight: 600;
}
.lang-levels li:last-child { border-bottom: 0; }
.lang-levels .level { font-weight: 500; color: var(--muted); }

/* ---------- Services page ---------- */
.services-hero { padding-bottom: 72px; }
.services-art { width: 100%; max-width: 560px; justify-self: end; border-radius: 36px; overflow: hidden; }
.services-art svg { width: 100%; height: auto; }

.services-main { display: flex; flex-direction: column; gap: 16px; }
.service-main {
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px 48px;
  scroll-margin-top: 24px;
}
.service-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.service-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red);
}
.service-badge { background: var(--red); color: var(--bg); font-size: 13px; padding: 4px 12px; }
.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.service-main h3 { font-size: clamp(28px, 3vw, 38px); }
.service-tagline { font-size: 18px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.service-body { display: flex; flex-direction: column; gap: 12px; }
.service-intro { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
.service-list {
  margin: 0 0 8px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.55;
}
.service-list li::marker { color: var(--red); }
.service-based {
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid rgba(43, 26, 26, 0.12);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.service-based .eyebrow { display: block; margin-bottom: 2px; }

.services-also {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.service-also {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 24px;
}
.service-also h3 { font-size: 22px; }
.service-also .service-tagline { font-size: 16px; }
.service-also .service-list { font-size: 15px; }
.service-also .service-based { border-top-color: var(--sand); }

/* Long job titles (e.g. Italian) can wrap on phones: keep the label tidy */
.hero-tag { border-radius: 18px; text-wrap: balance; line-height: 1.35; }

/* Contact panel: item with more than one link (e.g. two email addresses) */
.contact-item a.contact-value { text-decoration: none; }
.contact-item a.contact-value:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--bg); }
