/* ============================================================
   SERTAN ÖZBUDUN — Amsterdam
   Monokrom, editöryel, sakin.
   Fontlar: Newsreader (başlık) · Source Serif 4 (metin) · Familjen Grotesk (etiket)
   ============================================================ */

:root {
  --paper: #f4f2ee;        /* kâğıt beyazı */
  --paper-deep: #eceae4;   /* hafif gölgeli kâğıt */
  --ink: #161514;          /* mürekkep */
  --ink-soft: #45433f;     /* yumuşak mürekkep */
  --ink-faint: #807d77;    /* solgun mürekkep */
  --hairline: rgba(22, 21, 20, 0.18);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-label: "Familjen Grotesk", Helvetica, sans-serif;

  --measure: 33em;         /* okuma genişliği */
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.28rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Monokrom dünya: her fotoğraf siyah-beyaz */
  filter: grayscale(1) contrast(1.04);
}

/* Kâğıt dokusu — çok hafif bir gren */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ============ GİRİŞ PERDESİ ============ */

.entry {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--gutter);
  transition: opacity 0.9s ease, visibility 0.9s;
}

/* Daha önce dil seçmiş ziyaretçi: giriş perdesi anında kapalı (JS beklemeden) */
html.returning .entry { display: none; }

.entry.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.entry-site {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
  animation: entryFade 1.2s ease both;
}

.entry-lines {
  display: flex;
  flex-direction: column;
  width: min(46rem, 100%);
}

.entry-line {
  appearance: none;
  background: none;
  border: 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  text-align: left;
  padding: clamp(1.4rem, 3.5vh, 2.4rem) 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--ink-soft);
  transition: color 0.45s ease, padding-left 0.45s ease;
  animation: entryRise 1s ease both;
}
.entry-line:nth-child(1) { animation-delay: 0.15s; }
.entry-line:nth-child(2) { animation-delay: 0.3s; }
.entry-line:nth-child(3) { animation-delay: 0.45s; }
.entry-line:last-child { border-bottom: 1px solid var(--hairline); }

.entry-line:hover,
.entry-line:focus-visible {
  color: var(--ink);
  padding-left: 1.25rem;
  outline: none;
}

.entry-sentence {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.15rem);
  line-height: 1.32;
}

.entry-label {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.entry-line:hover .entry-label { color: var(--ink); }

@keyframes entryFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes entryRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ KENAR CETVELİ ============ */

.ruler {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  z-index: 50;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--hairline) 0 1px,
      transparent 1px 12px
    );
  border-right: 1px solid var(--hairline);
  opacity: 0.6;
}

@media (max-width: 720px) { .ruler { display: none; } }

/* ============ ÜST BAŞLIK ============ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.masthead-name {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-nav {
  display: flex;
  gap: 1.75rem;
}

.masthead-nav a {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.masthead-nav a:hover { color: var(--ink); }

.masthead-lang { display: flex; gap: 0.25rem; }

.lang-btn {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.45rem;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  color: var(--paper);
  background: var(--ink);
}

.masthead-right { display: flex; align-items: baseline; gap: 1.5rem; }

.masthead-journal {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.masthead-journal:hover { color: var(--ink); }

@media (max-width: 860px) {
  .masthead-nav { display: none; }
}

@media (max-width: 480px) {
  .masthead { padding: 0.9rem 1.1rem; }
  .masthead-name { font-size: 0.7rem; letter-spacing: 0.18em; }
  .lang-btn { font-size: 0.74rem; padding: 0.2rem 0.35rem; }
  .colophon-contact { flex-direction: column; gap: 1.1rem; }
  .footer { flex-direction: column; gap: 1.25rem; }
}

/* ============ AÇILIŞ ============ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gutter);
  align-items: end;
  min-height: calc(100svh - 4rem);
  padding: var(--gutter);
  padding-top: clamp(3rem, 9vh, 6rem);
}

.kicker {
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink-faint);
  vertical-align: middle;
  margin-right: 1rem;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.1rem, 1.2rem + 4.3vw, 4.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 14em;
}

.hero-sub {
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  font-size: 1.05em;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: -1px;
}

.hero-figure img {
  transform: scale(1.03);
  transition: transform 2.5s ease;
}
.hero-figure:hover img { transform: scale(1); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }
  .hero-figure { max-width: 28rem; }
}

/* ============ BÖLÜM ORTAK ============ */

.section {
  padding: clamp(4.5rem, 12vh, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 7vh, 4.5rem);
}

.section-no {
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  letter-spacing: -0.01em;
}

.section-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

/* ============ 01 PORTRE ============ */

.section-portrait {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  column-gap: var(--gutter);
}

.section-portrait .section-head { grid-column: 1; flex-direction: column; gap: 0.5rem; }
.section-portrait .prose { grid-column: 2; }
.section-portrait .marginalia { grid-column: 3; }

.prose p {
  max-width: var(--measure);
  margin-bottom: 1.6em;
}
.prose p:last-child { margin-bottom: 0; }

.has-dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 400;
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  padding-right: 0.12em;
  padding-top: 0.05em;
}

.marginalia {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  align-self: start;
  position: sticky;
  top: 7rem;
}

.marginalia p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .section-portrait { grid-template-columns: 1fr; }
  .section-portrait .section-head,
  .section-portrait .prose,
  .section-portrait .marginalia { grid-column: 1; }
  .marginalia { position: static; margin-top: 3rem; max-width: 24em; }
}

/* ============ 02 UĞRAŞLAR ============ */

.pursuits {
  list-style: none;
  max-width: 52rem;
}

.pursuit {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0;
  border-top: 1px solid var(--hairline);
}

.pursuit-no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink-faint);
  grid-row: span 2;
  padding-top: 0.2rem;
}

.pursuit h3 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pursuit p {
  color: var(--ink-soft);
  max-width: var(--measure);
}

@media (max-width: 640px) {
  .pursuit { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.5rem 1rem; }
}

/* ============ 03 FRAGMANLAR ============ */

.section-fragments { background: var(--paper-deep); }

.fragments-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.fragment { position: relative; }

.fragment img { transition: filter 0.8s ease; }
.fragment:hover img { filter: grayscale(1) contrast(1.12); }

.fragment figcaption {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  margin-top: 0.9rem;
  max-width: 26em;
}

/* Asimetrik dergi yerleşimi */
.fragment-a { grid-column: 1 / span 5; margin-top: clamp(2rem, 8vh, 6rem); }
.fragment-b { grid-column: 7 / span 6; }
.fragment-c { grid-column: 4 / span 5; margin-top: clamp(2rem, 8vh, 6rem); }

.fragment-a img { aspect-ratio: 1 / 1.03; }
.fragment-b img { aspect-ratio: 4 / 3; }
.fragment-c img { aspect-ratio: 4 / 5; }

@media (max-width: 860px) {
  .fragments-grid { grid-template-columns: 1fr; }
  .fragment-a, .fragment-b, .fragment-c {
    grid-column: 1;
    margin-top: 0;
    max-width: 30rem;
  }
  .fragment-b { margin-left: auto; }
}

/* ============ 04 KÜNYE ============ */

.section-colophon {
  background: var(--ink);
  color: var(--paper);
  min-height: 80svh;
  display: flex;
  flex-direction: column;
}

.section-colophon .section-no,
.section-colophon .section-head h2 { color: var(--paper); }
.section-colophon .section-no { opacity: 0.5; }

.colophon-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.25;
  max-width: 18em;
  margin-bottom: clamp(2rem, 6vh, 3.5rem);
}

.colophon-invite {
  color: rgba(244, 242, 238, 0.65);
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.colophon-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
}

.colophon-link {
  font-family: var(--font-label);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 242, 238, 0.4);
  padding-bottom: 0.35rem;
  transition: border-color 0.3s ease;
  white-space: nowrap;
}
.colophon-link:hover { border-color: var(--paper); }

.colophon-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.5rem;
  align-self: flex-start;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  padding: 0.85rem 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.colophon-whatsapp svg { flex: none; }
.colophon-whatsapp:hover {
  background: transparent;
  color: var(--paper);
}

.footer {
  margin-top: auto;
  padding-top: clamp(4rem, 10vh, 7rem);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-notes { display: flex; flex-direction: column; gap: 0.4rem; }

.footer p {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(244, 242, 238, 0.5);
}

.footer-admin {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.55);
  text-decoration: none;
  border: 1px solid rgba(244, 242, 238, 0.25);
  padding: 0.5rem 1.1rem;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.footer-admin:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

/* ============ SCROLL ANİMASYONU ============ */

/* İçerik öntanımlı GÖRÜNÜR — JS hiç çalışmazsa bile sayfa boş kalmaz.
   Gizle-sonra-belir animasyonu yalnızca JS sağlam çalıştığında (html.js) devreye girer. */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ GÜNCE / JOURNAL ============ */

.section-journal { border-top: 0; max-width: 62rem; }

.journal-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vh, 7rem);
}

.journal-loading {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* Kenar filtresi — masaüstünde solda, mobilde üstte yatay */
.journal-layout {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.journal-filter {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.filter-item {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.7rem 0.1rem;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.filter-item:hover { color: var(--ink); padding-left: 0.35rem; }
.filter-item.active { color: var(--ink); }
.filter-item.active span:first-child {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.filter-item.empty { opacity: 0.45; }
.filter-count {
  font-size: 0.72em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .journal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .journal-filter {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    border-top: 0;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 1rem;
  }
  .filter-item {
    border-bottom: 0;
    padding: 0.3rem 0;
  }
  .filter-item:hover { padding-left: 0; }
}

.entry-post { max-width: 44rem; }

.entry-post-figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.entry-post-figure img { transition: transform 2.5s ease; }
.entry-post:hover .entry-post-figure img { transform: scale(1.02); }

.entry-post-date {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}

.entry-post-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

.entry-post-body p {
  max-width: var(--measure);
  margin-bottom: 1.2em;
}
.entry-post-body p:last-child { margin-bottom: 0; }

.post-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 0.3s ease;
  word-break: break-word;
}
.post-link:hover { border-color: var(--ink); }

/* ---- Paylaşım satırı ---- */
.entry-post-share {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}

.share-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.share-btn svg { flex: none; }
.share-btn:hover { color: var(--ink); border-color: var(--ink); }
.share-btn.done { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* Paylaşılan linkle gelinen yazı kısaca vurgulanır */
.entry-post {
  transition: box-shadow 0.6s ease;
  scroll-margin-top: 6rem;
}
.entry-post.highlight {
  box-shadow: -1.5rem 0 0 -1.35rem var(--ink);
}
