/*
 * Cezalı 101 — cezali101.com (static site: home, privacy, terms, account deletion)
 * One stylesheet, no JavaScript, no external requests. Colours follow the game: deep green felt,
 * warm gold, cream tiles. Fonts are the game's own offline copies (SIL OFL, fonts/OFL.txt).
 * Owner rule: only plain neutral shapes — no stars, crescents, crosses or flag-like stripes.
 */

/* ---------- fonts (Turkish needs latin + latin-ext: ş ğ İ live in latin-ext) ---------- */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/baloo2-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/baloo2-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: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/nunito-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/nunito-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;
}

/* ---------- tokens ---------- */
:root {
  --felt: #0b4a31;          /* page felt (text on it stays above 4.5:1) */
  --felt-deep: #062e1f;
  --felt-lamp: 42, 166, 110; /* the lamp light of the logo badge, used only behind the logo */
  --gold: #f4c95d;
  --gold-2: #e0a43a;
  --gold-3: #8a5a12;
  --gold-hair: rgba(244, 201, 93, 0.38);
  --ink: #f6f1e6;           /* cream text on felt */
  --ink-dim: #cfe0d6;
  --tile-hi: #fffffb;       /* cream tile face, top to bottom */
  --tile: #fcf5e4;
  --tile-lo: #efe1c0;
  --tile-edge: #b39766;
  --paper-ink: #2a2118;     /* text on cream */
  --paper-dim: #5c4f3d;
  --paper-line: #d9c8a2;
  --paper-link: #0b5a40;
  --red: #b81d26;           /* the four tile inks, darkened for text on cream */
  --black: #1a1a1d;
  --blue: #1a5aa8;
  --amber: #8a5600;
  --font-display: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  color-scheme: only light; /* the cream paper is the design: browsers must not auto-darken it */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--felt) linear-gradient(180deg, var(--felt) 0, var(--felt) 520px, var(--felt-deep) 100%);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 5;
  background: var(--gold); color: #2b1a05; font-weight: 700;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 8px; color: #2b1a05; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 56px; padding: 0 2.1em;
  font: 800 1.3rem/1 var(--font-display); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border-radius: 999px;
}
.btn-gold {
  color: #2b1a05;
  background: linear-gradient(180deg, #ffe9a6 0%, var(--gold) 42%, var(--gold-2) 100%);
  border: 1px solid var(--gold-3);
  box-shadow: 0 3px 0 var(--gold-3), 0 12px 26px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}
.btn-gold:hover { color: #2b1a05; filter: brightness(1.06); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-3), 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.65); }
.btn-sm { min-height: 44px; padding: 0 1.2em; font-size: 1.05rem; }
.btn svg { width: 0.8em; height: 0.8em; flex: none; }

/* ---------- home: hero ---------- */
.hero {
  position: relative;
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 28px var(--gutter) 30px;
  display: grid; justify-items: center; gap: 16px;
  text-align: center;
}
.hero::before { /* lamp light on the felt, only behind the logo */
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; top: 0; height: 400px; /* stays inside the hero: never widens the page */
  background: radial-gradient(50% 50% at 50% 30%, rgba(var(--felt-lamp), 0.55) 0%, rgba(var(--felt-lamp), 0.18) 55%, rgba(var(--felt-lamp), 0) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-logo { display: block; width: min(100%, 560px); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); }
.hero-home { display: block; width: min(100%, 560px); line-height: 0; border-radius: 8px; } /* 404: the logo is the way home */
.hero-home .hero-logo { width: 100%; }
.hero h1 {
  font-size: clamp(1.65rem, 6.2vw, 2.6rem); font-weight: 800; color: var(--ink);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}
.hero h1 b { color: var(--gold); font-weight: 800; white-space: nowrap; }
.lead { max-width: 34em; font-size: 1.06rem; color: var(--ink); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); text-wrap: balance; }
.cta { display: grid; justify-items: center; gap: 12px; margin-top: 4px; }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px dashed var(--gold-hair); background: rgba(4, 30, 20, 0.5);
  color: var(--ink-dim); font-size: 0.95rem; font-weight: 600; line-height: 1.3;
}
.soon svg { width: 16px; height: 16px; flex: none; }

/* ---------- home: cream tiles ---------- */
.tiles {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 4px var(--gutter) 34px;
  display: grid; gap: 14px; grid-template-columns: 1fr;
  list-style: none;
}
.tile {
  background: linear-gradient(180deg, var(--tile-hi) 0%, var(--tile) 45%, var(--tile-lo) 100%);
  color: var(--paper-ink);
  border-radius: 14px;
  padding: 15px 18px 17px;
  box-shadow: 0 4px 0 var(--tile-edge), 0 16px 26px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.tile h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.tile p { font-size: 0.98rem; line-height: 1.5; text-wrap: pretty; }
.tile a { color: var(--paper-link); font-weight: 700; }
.tile a:hover { color: #063a29; }
.tile :focus-visible, .paper :focus-visible { outline-color: var(--paper-link); }
.t-red h2 { color: var(--red); }
.t-black h2 { color: var(--black); }
.t-blue h2 { color: var(--blue); }
.t-amber h2 { color: var(--amber); }

/* ---------- inner pages: top bar + paper ---------- */
.bar {
  width: 100%; max-width: 820px; margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bar-home { display: block; line-height: 0; border-radius: 8px; }
.bar-home img { display: block; width: 158px; }
.doc { width: 100%; max-width: 820px; margin: 0 auto; padding: 4px var(--gutter) 30px; flex: 1 0 auto; }
.paper {
  background: linear-gradient(180deg, var(--tile-hi) 0, var(--tile) 220px);
  color: var(--paper-ink);
  border-radius: 16px;
  padding: 22px 18px 26px;
  box-shadow: 0 4px 0 var(--tile-edge), 0 18px 34px rgba(0, 0, 0, 0.34);
}
.paper h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800; color: var(--paper-ink); }
.updated { margin-top: 2px; color: var(--paper-dim); font-size: 0.93rem; font-weight: 600; }
.intro { margin-top: 12px; }
.paper h2 {
  font-size: 1.28rem; font-weight: 800; color: #0b4a31;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--paper-line);
}
.paper h3 { font-size: 1.06rem; font-weight: 700; margin-top: 16px; color: var(--paper-ink); }
.paper p { margin-top: 10px; }
.paper ul, .paper ol { margin: 8px 0 0; padding-left: 1.25em; }
.paper li { margin-top: 5px; }
.paper li::marker { color: var(--amber); font-weight: 700; }
.paper a { color: var(--paper-link); font-weight: 700; }
.paper a:hover { color: #063a29; }
.paper strong { font-weight: 800; }

.brief { /* "Kısaca": the short version at the top of a page */
  margin-top: 16px; padding: 12px 14px 14px;
  background: #f5e9c9; border: 1px solid var(--paper-line); border-left: 5px solid var(--gold-2);
  border-radius: 10px;
}
.brief h2 { margin: 0; padding: 0; border: 0; font-size: 1.08rem; color: var(--amber); }
.brief ul { margin-top: 4px; }

.paper .note { /* dated notice: deleted from the page on the day the release it names goes live */
  margin-top: 14px; padding: 10px 14px;
  background: #fff8df; border: 1px dashed var(--gold-3); border-radius: 10px;
  font-size: 0.97rem;
}
.note strong { color: var(--amber); }

.toc { margin-top: 14px; border: 1px solid var(--paper-line); border-radius: 10px; background: rgba(255, 255, 255, 0.45); }
.toc summary { cursor: pointer; padding: 11px 14px; font-weight: 800; min-height: 44px; }
.toc ol { margin: 0; padding: 0 14px 10px 2.4em; }
.toc li { margin-top: 0; break-inside: avoid; }
.toc a { display: block; padding: 6px 0; } /* block: the number stays on the first line of a wrapped entry */

.keep { margin: 10px 0 0; display: grid; grid-template-columns: 1fr; }
.keep dt { font-weight: 800; padding-top: 9px; border-top: 1px solid var(--paper-line); }
.keep dd { margin: 0; padding-bottom: 9px; color: var(--paper-ink); }
.keep dt:first-of-type { border-top: 0; padding-top: 0; }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; padding-left: 2.5em; margin-top: 10px; min-height: 1.9em; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -0.05em;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  display: grid; place-items: center;
  background: #0b4a31; color: var(--gold); font: 800 0.95rem/1 var(--font-display);
}
.path { font-weight: 800; } /* a menu path in the game: Hesap → Hesabı Sil */
.mail { white-space: nowrap; }

/* ---------- footer ---------- */
.foot {
  width: 100%; max-width: 1040px; margin: auto auto 0;
  padding: 16px var(--gutter) 22px;
  border-top: 1px solid var(--gold-hair);
  text-align: center; font-size: 0.95rem; color: var(--ink-dim);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.foot a { display: inline-block; padding: 10px 8px; font-weight: 700; }
.foot a[aria-current='page'] { color: var(--ink); text-decoration: none; }
.foot p { margin-top: 4px; }

/* ---------- narrow phones: every pixel of text width counts ---------- */
@media (max-width: 420px) {
  .doc, .bar { padding-left: 10px; padding-right: 10px; }
  .paper { padding: 20px 16px 24px; line-height: 1.55; }
  .foot a { padding: 10px 6px; }
}

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 18px; }
  .paper { padding: 30px 34px 36px; }
  .bar-home img { width: 190px; }
  .toc ol { columns: 2; column-gap: 48px; } /* the second column's numbers hang in the gap: keep it wider than "14." */
  .keep { grid-template-columns: minmax(180px, 34%) 1fr; column-gap: 20px; }
  .keep dt, .keep dd { padding: 9px 0; border-top: 1px solid var(--paper-line); }
  .keep dt:first-of-type, .keep dt:first-of-type + dd { border-top: 0; padding-top: 0; }
}
@media (min-width: 900px) {
  .hero { padding-top: 44px; gap: 18px; }
  .hero-logo { width: 620px; }
  .lead { font-size: 1.15rem; }
  .tiles { padding-bottom: 48px; } /* stays 2 × 2: four columns inside 1040 px gave 20-character lines */
}

/* ---------- phones held sideways: logo left, text and button right, nothing below the fold ---------- */
@media (orientation: landscape) and (max-height: 480px) and (min-width: 560px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); /* the right column holds the one-line store pill at 560 px */
    grid-template-areas: 'logo title' 'logo lead' 'logo cta';
    align-items: center; justify-items: start; text-align: left;
    column-gap: 24px; row-gap: 8px;
    padding-top: 16px; padding-bottom: 18px;
  }
  .hero::before { right: 50%; height: 100%; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--felt-lamp), 0.5) 0%, rgba(var(--felt-lamp), 0.16) 55%, rgba(var(--felt-lamp), 0) 100%); }
  .hero-logo, .hero-home { grid-area: logo; width: 100%; justify-self: center; }
  .hero h1 { grid-area: title; font-size: 1.55rem; align-self: end; }
  .lead { grid-area: lead; font-size: 0.98rem; line-height: 1.45; }
  .cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 8px 12px; }
  .btn { min-height: 48px; font-size: 1.15rem; padding: 0 1.5em; }
  .btn-sm { min-height: 44px; font-size: 1rem; padding: 0 1.1em; }
  .soon { font-size: 0.84rem; padding: 6px 10px; gap: 6px; white-space: nowrap; } /* one line; drops under the button when it does not fit */
  .bar { padding-top: 8px; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-gold { transition: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .bar .btn, .skip, .foot ul { display: none; }
  .paper { box-shadow: none; background: #fff; padding: 0; }
  .toc { display: none; }
}
