/* 251inc · bekleme listesi
   Dünya: 90'lar arabesk kaset kapağı + kendin-kaydet boş kaset. Zemin uzun kollunun güneşte solmuş kırmızısı. */

/* Google Fonts'tan indirildi (SIL Open Font License). Sadece latin + latin-ext (Türkçe). */
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 600 800; font-display: swap; src: url("/fonts/sofia-sans-extra-condensed-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 600 800; font-display: swap; src: url("/fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans"; font-weight: 400 600; font-display: swap; src: url("/fonts/sofia-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-weight: 400 600; font-display: swap; src: url("/fonts/sofia-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("/fonts/caveat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("/fonts/caveat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --shirt: #c43d41;        /* güneşte solmuş kırmızı (2026-10-21 modeli): zemin; kumaş greniyle birlikte krem yazıya 4.8:1 (düz renk 4.2:1) */
  --shirt-deep: #ad3339;   /* boyanın koyu tuttuğu yerler */
  --motif: #640a1a;        /* baskıdaki kedi çizgilerinin koyu bordosu */
  --motif-ink: #4a0612;
  --cream: #f4e7d7;        /* yazı ve etiket kâğıdı */
  --cream-shade: #e6d4bf;
  --shell: #1a0e10;        /* kasetin isli plastiği */
  --shell-hi: #2c1a1d;
  --tape: #3a2018;
  --ink: #1a0e10;          /* keçeli kalem */
  --pencil: #93505a;       /* etiketteki silik yazı, krem üstünde 4.8:1 */

  --condensed: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --sans: "Sofia Sans", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--motif) var(--shirt);
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--shirt);
  /* Pigment boyanın düzensizliği + kumaş greni */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .02 0 0 0 0 .04 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"),
    radial-gradient(38% 22% at 18% 8%, var(--shirt-deep), transparent 70%),
    radial-gradient(26% 30% at 92% 34%, var(--shirt-deep), transparent 70%),
    radial-gradient(44% 18% at 30% 62%, var(--shirt-deep), transparent 72%),
    radial-gradient(30% 26% at 80% 88%, var(--shirt-deep), transparent 70%);
  color: var(--cream);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cream); color: var(--motif); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 2px;
}

main {
  display: grid;
  max-width: 76rem;
  margin: 0 auto;
}

/* --- Kapak (J-kart ön yüzü) ------------------------------------------------- */

.cover {
  background: var(--motif);
  color: var(--cream);
  padding: max(env(safe-area-inset-top), 0.75rem) 0.75rem 0;
}

.cover__frame {
  border: 1.5px solid color-mix(in srgb, var(--cream) 55%, transparent);
  padding: 0.5rem 1rem 1.25rem;
  position: relative;
}

.cover__shirt {
  display: block;
  width: 108%;
  max-width: none;
  height: auto;
  margin: -0.25rem -4% 0;
  transform: rotate(-3deg);
  filter: drop-shadow(0 1.25rem 1.5rem rgb(30 4 10 / 0.55));
}

.cover__title {
  margin: 0.25rem 0 0;
  font-family: var(--condensed);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;      /* 0.86, "KOLLU"nun O'sunu alt satırdaki Ğ şapkasıyla çakıştırıyordu */
  letter-spacing: -0.01em;
  font-size: clamp(3.4rem, 17.5vw, 6rem);
  text-wrap: balance;
}

.cover__line { display: block; }

.cover__scrawl {
  display: block;
  width: max-content;
  margin: 0.1em 0 0 auto;
  padding-right: 0.15em;
  font-family: var(--hand);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82em;
  line-height: 1;
  transform: rotate(-6deg);
  transform-origin: right center;
}

.cover__lede {
  margin: 0.9rem 0 0;
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.spine {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.55rem 0.25rem 0.6rem;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Kayıt destesi ------------------------------------------------------------ */

.deck {
  padding: 2.25rem var(--gutter) 3rem;
  scroll-margin-top: 1rem;
}

.deck__title {
  margin: 0 0 1rem;
  font-family: var(--condensed);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 0.95;
}

.deck__form { display: grid; gap: 1.5rem; }

/* Kaset gövdesi: üretilmiş raster, üç parça (tools/slice_cassette.py).
   Üst ve alt parça genişlikle orantılı ölçeklenir, ortadaki ray bandı dikeyde tekrar eder;
   böylece etiket uzayıp kısalsa da gövde bozulmaz. Yüzdeler genişliğe oran. */
.cassette {
  position: relative;
  filter: drop-shadow(0 1.25rem 1.25rem rgb(30 4 10 / 0.55));
}
.cassette__cap {
  background: url("/img/cassette-top.webp") 0 0 / 100% 100% no-repeat;
  padding-top: 9.85%;
}
.cassette__cap--bottom {
  background-image: url("/img/cassette-bottom.webp");
  padding-top: 23.01%;
}
.cassette__body {
  background: url("/img/cassette-mid.webp") 0 0 / 100% auto repeat-y;
  padding: 0 7.2% 0 8.05%;
}

.label {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: 0.2rem;
  padding: 0 0.85rem 0.85rem;
  margin: -2.9% 0 -6.25%;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
}

.label__band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -0.85rem 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--motif);
  color: var(--cream);
  font-family: var(--condensed);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
}

.line {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  column-gap: 0.5rem;
  align-items: end;
  padding-top: 0.4rem;
}

.line__side {
  grid-row: 1 / span 2;
  align-self: end;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.35rem;
  border: 1.5px solid var(--motif);
  border-radius: 50%;
  color: var(--motif);
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1rem;
}

.line__label {
  grid-column: 2;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--motif);
}

.line__input {
  grid-column: 2;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.1rem 0 0;
  border: 0;
  border-bottom: 1.5px solid var(--motif);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 600 1.75rem/1.2 var(--hand);
  caret-color: var(--motif);
}
.line__input::placeholder { color: var(--pencil); opacity: 1; }
.line__input:focus { outline: none; border-bottom-width: 2.5px; }
.line__input:focus-visible { outline: none; }
.line:focus-within .line__side { background: var(--motif); color: var(--cream); }
.line__input:read-only { border-bottom-style: dotted; }
.cassette[data-state="saved"] .line__input::placeholder { color: transparent; }

.line__hint,
.line__error {
  grid-column: 2;
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.line__hint { color: var(--motif); }
.line__error { color: var(--motif-ink); font-weight: 600; }
.line__error:empty { display: none; }
.line[data-invalid] .line__input { border-bottom-color: var(--motif-ink); border-bottom-width: 2.5px; }
.line[data-invalid] .line__side { background: var(--motif-ink); color: var(--cream); border-color: var(--motif-ink); }

/* Pencere ve makaralar */
.window {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem auto 0;
  width: min(100%, 17rem);
  height: 4rem;
  padding: 0 1.1rem;
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.06), transparent 40%),
    #2a1a1c;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.6);
  position: relative;
}
.window::before {
  /* iki makara arasındaki bant */
  content: "";
  position: absolute;
  left: 2.6rem;
  right: 2.6rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--tape);
}

.reel { width: 3rem; height: 3rem; position: relative; }
.reel__tape { fill: var(--tape); }
.reel__tape--thin { fill: var(--tape); }
.reel__hub { fill: var(--cream-shade); }
.reel__teeth { stroke: #2a1a1c; stroke-width: 2.2; stroke-linecap: round; }

/* Mühür */
.stamp {
  position: absolute;
  right: 0.6rem;
  top: 2.4rem;
  margin: 0;
  padding: 0.2rem 0.6rem 0.1rem;
  border: 3px solid var(--motif);
  border-radius: 0.3rem;
  color: var(--motif);
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  mix-blend-mode: multiply;
  opacity: 0;
  transform: rotate(-12deg) scale(1.6);
  pointer-events: none;
}


/* Beden tuşları */
.keys { border: 0; margin: 0; padding: 0; min-width: 0; }

.keys__legend {
  padding: 0;
  margin-bottom: 0.6rem;
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.keys__legend span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.keys__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  padding: 0.4rem;
  background: var(--shell);
  border-radius: 0.5rem;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.5);
}

.key { position: relative; display: block; cursor: pointer; }
.key input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.key span {
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  border-radius: 0.25rem 0.25rem 0.4rem 0.4rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0.2rem 0.35rem rgb(0 0 0 / 0.55);
  transform: translateY(0);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background 120ms;
  position: relative;
}
.key span::after {
  /* basılı tuşun kırmızı lambası */
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: transparent;
}
.key:hover span { background: #fbf1e4; }
.key input:checked + span {
  transform: translateY(0.25rem);
  background: var(--cream-shade);
  box-shadow: 0 0.05rem 0.1rem rgb(0 0 0 / 0.5), inset 0 2px 4px rgb(0 0 0 / 0.3);
}
.key input:checked + span::after { background: var(--shirt); box-shadow: inset 0 -1px 1px rgb(0 0 0 / 0.35); }
.key input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Bant sayacı (eşik aşılınca görünür) */
.counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0 0;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.counter[hidden] { display: none; }
.counter__digits {
  display: inline-flex;
  gap: 2px;
  padding: 0.2rem;
  background: var(--shell);
  border-radius: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.counter__digits b {
  display: inline-block;
  width: 1.1em;
  overflow: hidden;
  height: 1.5em;
  line-height: 1.5em;
  text-align: center;
  background: linear-gradient(180deg, #e9dccb, var(--cream) 50%, #d9c7b2);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 2px;
}
.counter__digits b > span { display: block; transition: transform 900ms var(--ease-out); }

/* Onaylar */
.consents { display: grid; gap: 1rem; }

.consent {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.consent label { cursor: pointer; }
.consent__box {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  border: 2px solid var(--cream);
  border-radius: 0.2rem;
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent__box::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: var(--motif);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
  transform: scale(0);
  transition: transform 140ms var(--ease-out);
}
.consent__box:checked { background: var(--cream); }
.consent__box:checked::before { transform: scale(1); }
.consent__error {
  grid-column: 2;
  margin: 0;
  font-weight: 600;
}
.consent__error:empty { display: none; }
.consent[data-invalid] .consent__box { border-width: 3px; box-shadow: 0 0 0 3px var(--motif); }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* KAYIT tuşu */
.rec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: calc(100% - 0.8rem);
  margin: 0.4rem auto 0;
  min-height: 4.25rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--motif);
  color: var(--cream);
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 0.4rem var(--shell), 0 0.7rem 1.1rem rgb(30 4 10 / 0.6);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.rec:hover { background: #7a1424; }
.rec:active,
.rec[aria-busy="true"] {
  transform: translateY(0.25rem);
  box-shadow: 0 0 0 0.4rem var(--shell), inset 0 3px 6px rgb(0 0 0 / 0.45);
}
.rec:disabled { cursor: progress; }
.rec__dot { width: 1.5rem; height: 1.5rem; fill: var(--cream); }
.rec[aria-busy="true"] .rec__dot { animation: rec-blink 700ms steps(2, jump-none) infinite; }

.form-status { margin: -0.5rem 0 0; font-weight: 600; min-height: 1.5em; }
.form-status:empty { min-height: 0; margin: 0; }

/* Kayıt sonrası */
.done {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--motif);
  border-radius: 0.5rem;
}
.done:focus { outline: none; }
.done__title {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
}
.done__text { margin: 0.6rem 0 1.25rem; max-width: 38ch; }
.done__actions { display: grid; gap: 0.75rem; }

.share,
.copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.share { background: var(--cream); color: var(--ink); }
.share:hover { background: #fbf1e4; }
.copy { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.copy:hover { background: rgb(244 231 215 / 0.1); }

/* --- Drop günü notu ---------------------------------------------------------- */

.tracks {
  padding: 2.5rem var(--gutter) 2.5rem;
  border-top: 1.5px solid color-mix(in srgb, var(--cream) 45%, transparent);
  margin: 0 var(--gutter);
  padding-inline: 0;
}

.tracks__note { margin: 0; }

.foot {
  padding: 1.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.foot p { margin: 0 0 0.35rem; }
.foot p:first-child {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* --- KVKK sayfası ------------------------------------------------------------ */

.legal {
  display: block;
  max-width: 42rem;
  padding: max(env(safe-area-inset-top), 1.5rem) var(--gutter) 3rem;
}
.legal__title {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--condensed);
  font-weight: 800;
  font-size: clamp(2.25rem, 10vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.legal__meta { margin: 0 0 2rem; font-size: 0.9375rem; }
.legal h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.legal p, .legal li { max-width: 68ch; line-height: 1.55; }
.legal ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.legal li { margin-bottom: 0.4rem; }
.legal li::marker { color: var(--cream); }
.legal__back {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal__back--end { margin-top: 2.5rem; }

/* --- Kayıt anı: tek hareket ------------------------------------------------- */

.cassette[data-state="recording"] .reel { animation: reel-spin 1.1s linear infinite; }
.cassette[data-state="recording"] .reel--r { animation-duration: 0.8s; }

.cassette[data-state="saved"] .stamp {
  opacity: 0.92;
  transform: rotate(-12deg) scale(1);
  transition: opacity 120ms ease-out, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reel-spin { to { transform: rotate(-360deg); } }
@keyframes rec-blink { 0% { opacity: 1; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Geniş ekran: kapak solda, kaset sağda ------------------------------------ */

@media (min-width: 60rem) {
  main {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    padding: 2.5rem var(--gutter) 0;
    align-items: start;
  }
  .cover { padding: 0.9rem 0.9rem 0; position: sticky; top: 2rem; }
  .cover__frame { padding: 1rem 1.75rem 2rem; }
  .cover__title { font-size: clamp(4rem, 6.6vw, 6rem); margin-top: 1rem; }
  .deck { padding: 0 0 3rem; }
  .tracks, .foot { grid-column: 2; margin: 0; }
  .foot { padding-inline: 0; }
}
