:root {
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 2.6vw, 40px);
}

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

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

body {
  background: #3A0F14;
  color: #F0DCC8;
  font: 400 0.8125rem/1.2 "Jost", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

/* Logo ve alt yazi ekranin tam ortasinda. */
main {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: 64px var(--gutter);
}

h1 { position: relative; font-size: 0; }

h1 img { display: block; width: min(76vw, 110svh, 820px); height: auto; }

/* Harf araligi sagda bosluk biraktigi icin ayni kadar soldan telafi edilir. */
.soon {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  letter-spacing: 0.56em;
  padding-left: 0.56em;
}

.corner {
  position: absolute;
  top: calc(var(--gutter) + env(safe-area-inset-top, 0px));
  letter-spacing: 0.08em;
  color: #C9B4A2;
}

.corner.left { left: var(--gutter); font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }

.corner.right { right: var(--gutter); font-variant-numeric: tabular-nums; }

/* Dongu: ince cizgi logoyu yazar, bekler, silip gecer ve yeniden baslar. */
.sweep {
  position: absolute;
  inset: -14% 0;
  opacity: 0;
  pointer-events: none;
}

.sweep::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: #F0DCC8;
}

@media (prefers-reduced-motion: no-preference) {
  h1 img { animation: write 11s linear infinite both; }
  .sweep { animation: sweep 11s linear infinite both; }
  .soon, .corner { animation: appear 500ms var(--ease-out) 800ms both; }
}

@keyframes write {
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--ease-in-out); }
  20% { clip-path: inset(0 0 0 0); }
  68% { clip-path: inset(0 0 0 0); animation-timing-function: var(--ease-in-out); }
  88% { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 100%); }
}

@keyframes sweep {
  0% { opacity: 1; transform: translateX(0); animation-timing-function: var(--ease-in-out); }
  20% { opacity: 1; transform: translateX(100%); }
  21% { opacity: 0; transform: translateX(100%); }
  67% { opacity: 0; transform: translateX(0); }
  68% { opacity: 1; transform: translateX(0); animation-timing-function: var(--ease-in-out); }
  88% { opacity: 1; transform: translateX(100%); }
  89%, 99% { opacity: 0; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
