@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Space+Mono:wght@400;700&display=swap");

:root {
  --ink: #17140F;
  --ink-soft: #3C352A;
  --muted: #6B6355;
  --paper: #FAF3E4;
  --card: #FFFDF7;
  --line: #E0DACB;
  --yellow: #FFD23F;
  --blue: #2F5FE0;
  --coral: #FF6B4A;
  --green: #2E9E75;
  --display: "Bricolage Grotesque", Georgia, serif;
  --text: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --shadow: 4px 5px 0 var(--ink);
  --shadow-lg: 6px 7px 0 var(--ink);
  --radius: 18px;
  --pad: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: pretty; }

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

.container { width: min(100% - 2 * var(--pad), 1120px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--yellow); padding: 10px 16px; font-family: var(--mono); font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); overflow: hidden; padding: 7px 0; }
.ticker span {
  display: inline-block; white-space: nowrap; padding-right: 2rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--yellow);
  animation: ticker-scroll 26s linear infinite;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 2px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--yellow); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 17px; font-weight: 800;
}
.nav-links { display: none; gap: 20px; }
.nav-links a { font-family: var(--mono); font-size: 13px; color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); background: transparent;
  display: grid; place-items: center; font-size: 16px; color: var(--ink); text-decoration: none; cursor: pointer;
}
.icon-button:hover { background: var(--yellow); }

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; padding: 8px;
}
.menu-panel a { padding: 10px 12px; border-radius: 9px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--yellow); }
@media (min-width: 860px) { .nav-links { display: flex; } .menu { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.hero-inner { position: relative; padding: 36px 0 34px; }
.hero::after {
  content: "?"; position: absolute; right: -2vw; bottom: -14vw;
  font-family: var(--display); font-weight: 800; font-size: clamp(220px, 34vw, 460px); line-height: 1;
  color: rgba(23, 20, 15, 0.09); pointer-events: none;
}
.kicker, .eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.hero h1 { font-size: clamp(40px, 11vw, 92px); letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 14px; }
.promise { margin: 0; font-size: clamp(16px, 4.2vw, 21px); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; position: relative; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 7px 13px; border-radius: 999px;
  border: 2px solid var(--ink); color: var(--ink); text-decoration: none; background: transparent; white-space: nowrap;
}
.chip:hover { background: var(--yellow); color: var(--ink); }
.chip--active, .chip[aria-current="page"] { background: var(--ink); color: var(--paper); }
.chip-bar { border-bottom: 2px solid var(--ink); }

/* ---------- sections ---------- */
.section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: clamp(22px, 6vw, 34px); }
.text-link { font-family: var(--mono); font-size: 12px; color: var(--blue); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--home { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; background: var(--card); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-media {
  position: relative; border-bottom: 2px solid var(--ink); aspect-ratio: 8 / 5;
  display: grid; place-items: center; overflow: hidden; background: var(--blue);
}
.card-media img { width: 72%; height: auto; position: relative; }
.card-media::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.14) 0 10px, transparent 10px 22px);
}
.card-media { container-type: inline-size; }
.card-media::after {
  content: "?"; position: absolute; right: 2%; top: -18%;
  font-family: var(--display); font-weight: 800; font-size: clamp(140px, 52cqw, 300px); line-height: 1; color: rgba(255, 210, 63, 0.55);
}
.cat--zihin .card-media, .cover--zihin { background: var(--coral); }
.cat--biyoloji .card-media, .cover--biyoloji { background: var(--green); }
.cat--sosyal-psikoloji .card-media, .cover--sosyal-psikoloji { background: var(--yellow); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.card h3 { font-size: clamp(19px, 5vw, 24px); }
.short-answer {
  align-self: flex-start; margin: 0; transform: rotate(-1.5deg);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 5px 11px;
  font-family: var(--display); font-weight: 800; font-size: 15px;
}
.summary { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.card-cta { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--blue); }

.card--featured .card-media { aspect-ratio: 16 / 9; }
@media (min-width: 860px) {
  .card--featured { flex-direction: row; }
  .card--featured .card-media { flex: 1 1 52%; border-bottom: 0; border-right: 2px solid var(--ink); aspect-ratio: auto; }
  .card--featured .card-body { flex: 1 1 48%; justify-content: center; padding: 30px; }
  .card--featured h3 { font-size: 38px; }
  .card--featured .short-answer { font-size: 19px; }
}
.badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px;
}

.card--row { flex-direction: row; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; }
.card--row .cover {
  flex: none; width: 78px; height: 78px; border-radius: 11px; border: 2px solid var(--ink);
  display: grid; place-items: center; background: var(--blue);
  font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--ink);
}
.card--row .card-body { padding: 0; gap: 5px; }
.card--row h3 { font-size: 17px; font-weight: 600; }
.card--row .short-answer { transform: none; background: none; border: 0; padding: 0; font-size: 14px; color: var(--blue); }

/* ---------- page hero ---------- */
.page-hero { padding: 30px 0 24px; }
.page-hero--blue { background: var(--blue); border-bottom: 2px solid var(--ink); color: var(--paper); }
.page-hero--blue .eyebrow { color: #C9D8FF; }
.page-hero--ink { background: var(--ink); border-bottom: 2px solid var(--ink); color: var(--paper); }
.page-hero--ink .eyebrow { color: var(--yellow); }
.page-hero-inner { padding: 30px 0 26px; }
.page-title { font-size: clamp(34px, 9vw, 68px); }
.lede { font-size: clamp(16px, 4vw, 20px); line-height: 1.5; margin: 14px 0 0; max-width: 46ch; }
.page-hero--blue .lede, .page-hero--ink .lede { color: rgba(250, 243, 228, 0.86); }

/* ---------- detail ---------- */
.detail-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 12px; }
.detail-bar a { color: var(--ink); text-decoration: none; }
.progress { height: 4px; background: var(--line); position: sticky; top: 62px; z-index: 11; }
.progress > i { display: block; height: 100%; width: 0; background: var(--coral); }
.detail-header { padding: 26px 0 24px; border-bottom: 2px solid var(--ink); }
.detail-title { font-size: clamp(32px, 8.5vw, 66px); letter-spacing: -0.035em; margin-bottom: 18px; max-width: 20ch; }
.answer-stamp {
  display: inline-flex; align-items: center; gap: 12px; margin: 0; transform: rotate(-1.2deg);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 15px; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 4.6vw, 22px);
}
.answer-stamp::before { content: "Kısa cevap"; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail-header .lede { color: var(--ink-soft); margin-top: 18px; }

.article-layout { display: flex; flex-direction: column; gap: 26px; padding: 26px 0 10px; max-width: 760px; }
.detail-figure { margin: 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--blue); display: grid; place-items: center; padding: 22px; }
.detail-figure img { width: min(100%, 460px); }
.article-section { display: flex; flex-direction: column; gap: 10px; }
.article-section h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 5vw, 27px); }
.step-no { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--blue); color: var(--paper); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
.article-section p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.article-section--limits { border: 2px dashed var(--coral); background: rgba(255, 107, 74, 0.09); border-radius: var(--radius); padding: 16px 18px; }
.article-section--limits h2 { color: #C23F22; }
.limit-note { margin: 0; }

.citation { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.citation p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--paper); }
.citation .doi { font-family: var(--mono); font-size: 12px; color: #8A8172; }
.primary-button {
  align-self: flex-start; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 10px; padding: 11px 16px; font-family: var(--display); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
}
.primary-button:hover { background: var(--paper); color: var(--ink); }

.share { display: flex; flex-direction: column; gap: 10px; }
.share-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.share-links { display: flex; gap: 8px; flex-wrap: wrap; }
.share-links a, .share-links button {
  flex: 1 1 100px; text-align: center; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px;
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); background: transparent; text-decoration: none; cursor: pointer;
}
.share-links a:hover, .share-links button:hover { background: var(--yellow); }
.transparency { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--muted); border-top: 2px solid var(--line); padding-top: 14px; margin: 0; }

.related { background: var(--yellow); border-top: 2px solid var(--ink); padding: 28px 0 34px; margin-top: 30px; }
.related h2 { font-size: clamp(22px, 6vw, 32px); margin-bottom: 16px; }

/* ---------- about ---------- */
.about-copy { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.about-copy p { margin: 0; max-width: 58ch; font-size: clamp(17px, 4.4vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.principles { display: grid; gap: 12px; padding: 10px 0 30px; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); padding: 16px; }
.principle:first-child { background: var(--yellow); }
.principle .no { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.principle h3 { font-size: 18px; margin-bottom: 4px; }
.principle p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }

.cta-band { background: var(--coral); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 30px 0; }
.cta-band h2 { font-size: clamp(22px, 6vw, 34px); margin-bottom: 10px; }
.cta-band p { margin: 0 0 16px; max-width: 48ch; color: var(--ink-soft); }
.cta-band .primary-button { background: var(--ink); color: var(--yellow); }

.newsletter { background: var(--ink); color: var(--paper); padding: 32px 0; }
.newsletter h2 { color: var(--paper); font-size: clamp(22px, 6vw, 34px); margin-bottom: 14px; max-width: 22ch; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.newsletter-form input {
  flex: 1 1 200px; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px;
  font-family: var(--text); font-size: 15px; background: var(--paper); color: var(--ink);
}
.newsletter small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: #8A8172; }

/* ---------- search ---------- */
.search-panel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.search-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.search-input {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 16px; font-family: var(--text); font-size: 17px; background: var(--card); color: var(--ink);
}
.result-count { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.empty { font-size: 16px; color: var(--muted); }

.drafts { border-top: 2px solid var(--line); margin-top: 30px; padding-top: 22px; }
.drafts .share-label { display: block; margin-bottom: 12px; }
.draft-list { display: grid; gap: 10px; }
@media (min-width: 720px) { .draft-list { grid-template-columns: repeat(2, 1fr); } }
.draft {
  border: 2px dashed #B8B0A0; border-radius: 12px; padding: 12px 14px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 30px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 16px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: 12px; color: #C8C1B2; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-note { width: 100%; font-family: var(--mono); font-size: 10.5px; color: #8A8172; margin: 0; }

/* ---------- mobile integration ---------- */
@media (max-width: 719px) {
  :root { --pad: 16px; --radius: 14px; --shadow: 3px 4px 0 var(--ink); }
  body { overflow-x: hidden; font-size: 16px; }
  .ticker { padding: 6px 0; }
  .ticker span { padding-right: 1.5rem; font-size: 9px; letter-spacing: .15em; animation-duration: 18s; }

  .site-header { top: 0; }
  .nav { min-height: 58px; gap: 8px; padding: 10px 0; }
  .brand { min-width: 0; gap: 7px; font-size: 14px; white-space: nowrap; }
  .brand-mark { flex: 0 0 28px; width: 28px; height: 28px; }
  .nav-actions { flex: 0 0 auto; gap: 6px; }
  .icon-button { width: 34px; height: 34px; }
  .menu-panel { position: fixed; top: 98px; right: var(--pad); left: var(--pad); min-width: 0; }

  .hero-inner { padding: 34px 0 30px; }
  .hero::after { right: -28px; bottom: -62px; font-size: 190px; }
  .kicker, .eyebrow { font-size: 9px; line-height: 1.5; }
  .hero h1 { max-width: 9ch; font-size: clamp(42px, 13.5vw, 58px); }
  .promise { max-width: 28ch; font-size: 17px; }

  .chip-bar { overflow: hidden; }
  .chips { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding: 12px var(--pad); scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; scroll-snap-align: start; padding: 7px 12px; font-size: 10px; }

  .section { padding: 26px 0; }
  .section-head { align-items: center; gap: 10px; }
  .section-title { font-size: 27px; }
  .text-link { flex: 0 0 auto; font-size: 10px; }
  .grid { gap: 16px; }
  .card { border-radius: 14px; }
  .card-body { gap: 9px; padding: 15px 15px 17px; }
  .card h3 { font-size: clamp(21px, 6.4vw, 25px); }
  .card-media img { width: 78%; }
  .card--featured .card-media { aspect-ratio: 8 / 5; }
  .card--row { align-items: flex-start; gap: 11px; padding: 10px; }
  .card--row .cover { width: 66px; height: 66px; font-size: 36px; }
  .card--row h3 { font-size: 16px; }

  .page-hero, .page-hero-inner { padding-top: 25px; padding-bottom: 22px; }
  .page-title { font-size: clamp(38px, 12vw, 52px); overflow-wrap: anywhere; }
  .lede { font-size: 16px; }
  .detail-bar { gap: 10px; font-size: 10px; }
  .detail-bar span { text-align: right; }
  .progress { top: 58px; }
  .detail-header { padding: 22px 0; }
  .detail-title { font-size: clamp(34px, 10.5vw, 48px); overflow-wrap: anywhere; }
  .answer-stamp { max-width: 100%; flex-wrap: wrap; gap: 6px 10px; padding: 9px 12px; }
  .article-layout { gap: 22px; padding-top: 22px; }
  .detail-figure { padding: 14px; border-radius: 14px; }
  .article-section p { font-size: 16px; }
  .citation { padding: 15px; overflow-wrap: anywhere; }
  .primary-button { width: 100%; text-align: center; }
  .share-links a, .share-links button { flex-basis: calc(50% - 4px); }

  .newsletter { padding: 28px 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { flex-basis: auto; width: 100%; }
  .newsletter-form .primary-button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-links { gap: 12px; }
}
