:root {
  --black: #000;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --rule: 1px solid var(--white);
}

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

html { min-width: 320px; background: var(--black); }

body {
  margin: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Sayfa: sol yarı siyah, sağ yarı beyaz. Metinler "difference" ile her iki yarıda da okunur. */
.memorial {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 31px 28px 26px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--black) 50%, var(--white) 50%);
}

.topline, .hero, .counter, .footer {
  color: var(--white);
  mix-blend-mode: difference;
}

/* Üst şerit */
.topline {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(100%, 1100px);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
}
.topline::before { content: "\2733\FE0E"; content: "\2733\FE0E" / ""; font-size: 14px; }
.topline::after { content: ""; flex: 1; height: 1px; background: var(--white); }

/* Başlık alanı */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(36px, 7vh, 72px) 0 23px;
  text-align: center;
}

.eyebrow {
  --line: 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 19px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .32em;
}
.eyebrow::before, .eyebrow::after { content: ""; width: var(--line); height: 1px; background: var(--white); }

/*
  İsim: iki sütunlu grid. "Umran" sol sütunun sağ kenarına, "Yiğiter" sağ sütunun
  sol kenarına yaslanır; aradaki boşluk (--gap) tam sayfa ortasında kalır,
  yani yarısı siyah, yarısı beyaz alana düşer.
*/
.name {
  --gap: .26em;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  width: 100%;
  margin: 0;
  font: 400 clamp(48px, 9vw, 92px) / 1.1 var(--serif);
  letter-spacing: -.045em;
  white-space: nowrap;
}
/* padding: kelime sonundaki negatif harf aralığını telafi eder, boşluk simetrik kalır */
.name span:first-child { justify-self: end; padding-right: .045em; }
.name span:last-child { justify-self: start; }

.tribute {
  margin: 19px 0 31px;
  font-family: var(--serif);
  font-size: clamp(15px, 2.1vw, 19px);
  letter-spacing: .025em;
}

.day-count { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.total-number { font-family: var(--serif); font-size: clamp(36px, 5.5vw, 57px); line-height: 1; }
.since-label { margin: 10px 0 0; font-size: 9px; font-weight: 600; letter-spacing: .25em; }

/* Sayaç */
.counter { width: min(100%, 850px); padding: 17px 0 15px; border-block: var(--rule); }
.time-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.time-unit { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 3px 5px 8px; }
.time-unit + .time-unit { border-left: var(--rule); }
.time-unit:nth-child(4) { border-left: 0; }
.number { font-size: clamp(22px, 4vw, 37px); letter-spacing: .015em; line-height: 1; font-variant-numeric: tabular-nums; }
.unit-label { font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }

/* Kartal: sol yarı siyah, sağ yarı beyaz zeminli görsel; kesim çizgisi sayfa ortasında */
.eagle-date {
  --eagle-size: min(25vh, 230px, 72vw);
  --back-offset: calc(var(--eagle-size) * .078); /* kartalı boyutuyla orantılı sola kaydırır; her ekranda aynı görünür */
  position: relative;
  flex: none;
  width: min(100%, 850px);
  height: clamp(160px, 25vh, 230px);
}
.eagle-art { position: absolute; inset: 0; }
.eagle-side {
  position: absolute;
  top: 50%;
  left: calc(50% - var(--back-offset));
  display: block;
  width: var(--eagle-size);
  height: auto;
  transform: translate(-50%, -50%);
  /*filter: contrast(4);  görseller zaten gri tonlu; kontrast küçültülmüş çizime uygulanınca ince çizgiler net kalır */
}
.eagle-side--black { clip-path: inset(0 calc(50% - var(--back-offset)) 0 0); }
.eagle-side--white { clip-path: inset(0 0 0 calc(50% + var(--back-offset))); }

.eagle-date-label {
  position: absolute;
  z-index: 1;
  top: 82%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  mix-blend-mode: difference;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
  white-space: nowrap;
}

/* Alt bilgi */
.footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: auto; padding-top: 24px; }
.footer::before, .footer::after { content: "✦"; content: "✦" / ""; font-size: 9px; }
.footer p { margin: 0; font-family: var(--serif); font-size: 12px; letter-spacing: .04em; }

@media (max-width: 560px) {
  .memorial { padding: 24px 19px 22px; }
  .topline { gap: 9px; font-size: 8px; letter-spacing: .15em; }
  .hero { padding: 30px 0 16px; }
  .eyebrow { --line: 14px; gap: 8px; font-size: 8px; letter-spacing: .2em; }
  .name { font-size: clamp(34px, 11vw, 66px); }
  .tribute { margin: 16px 0 26px; }
  .day-count { margin-top: 25px; }
  .since-label { max-width: 90vw; margin-top: 9px; font-size: 8px; letter-spacing: .14em; }
  .counter { padding: 15px 0 12px; }
  .time-unit { gap: 8px; padding-inline: 2px; }
  .number { font-size: clamp(20px, 6vw, 28px); }
  .unit-label { font-size: 7px; letter-spacing: .05em; }
  .eagle-date { --eagle-size: min(24vh, 210px, 72vw); height: clamp(150px, 24vh, 210px); }
}
