/* emrecansepetci.com — düşünce günlüğü
   Fraunces (başlık) + Spectral (metin), editöryel kâğıt teması */

:root {
  --paper: #f7f3ea;
  --paper-2: #f1ebdd;
  --ink: #211f1b;
  --ink-soft: #4a463e;
  --muted: #837a6a;
  --line: #e0d8c6;
  --accent: #7c3a2d;        /* oxblood */
  --accent-soft: #a9694f;
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.72;
  font-feature-settings: "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(124,58,45,0.018) 1px, transparent 1px);
  background-size: 4px 4px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

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

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
  padding-bottom: 22px;
}
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.brand { display: flex; flex-direction: column; gap: 2px; }
.brand a.name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.brand .tag {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.head-right { display: flex; align-items: center; gap: 18px; }
.nav { display: flex; gap: 16px; font-size: 15px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: "Fraunces", serif;
  font-size: 13px;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 13px; color: var(--muted);
  font: inherit; letter-spacing: 0.06em;
}
.lang-toggle button.active { background: var(--ink); color: var(--paper); }

/* ---------- intro / hero ---------- */
.intro { padding: 64px 0 30px; border-bottom: 1px solid var(--line); }
.intro h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.intro h1 em { font-style: italic; color: var(--accent); }
.intro p.lede { font-size: 21px; color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* ---------- essay list ---------- */
.list { padding: 30px 0 70px; }
.list h2.section-title {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.entry {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.entry:hover h3 { color: var(--accent); }
.entry .meta {
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  display: flex; gap: 12px; align-items: center;
}
.entry .cat { color: var(--accent); }
.entry h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.22;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .15s;
}
.entry p.dek { margin: 0; color: var(--ink-soft); font-size: 18px; }

/* ---------- essay page ---------- */
.article { padding: 56px 0 40px; }
.article .meta {
  font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; display: flex; gap: 12px;
}
.article .cat { color: var(--accent); }
.article h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.article .dek { font-size: 21px; color: var(--ink-soft); margin: 0 0 8px; font-style: italic; }

.prose { font-size: 19.5px; }
.prose p { margin: 0 0 22px; }
.prose h2 {
  font-family: "Fraunces", serif;
  font-weight: 500; font-size: 25px; letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}
.prose blockquote p { margin: 0; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.back {
  display: inline-block; margin-top: 40px;
  font-family: "Fraunces", serif; font-size: 15px;
  color: var(--muted);
}
.back:hover { color: var(--accent); }

/* drop cap on first paragraph */
.prose p.first::first-letter {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 3.1em;
  line-height: 0.78;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--accent);
}

/* ---------- elsewhere / work ---------- */
.links { padding: 8px 0 64px; }
.linkrow {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.linkrow:first-of-type { border-top: 1px solid var(--line); }
.lk-left { display: flex; flex-direction: column; gap: 2px; }
.lk-name {
  font-family: "Fraunces", serif; font-weight: 500; font-size: 21px;
  color: var(--ink); letter-spacing: -0.01em; transition: color .15s;
}
.linkrow:hover .lk-name { color: var(--accent); }
.lk-name .arrow { color: var(--muted); font-size: 15px; }
.linkrow:hover .lk-name .arrow { color: var(--accent-soft); }
.lk-domain {
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
}
.lk-desc { color: var(--ink-soft); font-size: 16.5px; text-align: right; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 60px;
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--accent); }

/* ---------- language visibility ---------- */
html[data-lang="tr"] .en { display: none; }
html[data-lang="en"] .tr { display: none; }

@media (max-width: 600px) {
  body { font-size: 18px; }
  .intro { padding: 44px 0 24px; }
  .head-right { width: 100%; justify-content: space-between; }
  .prose p.first::first-letter { font-size: 2.7em; }
}
