/* ÜniCraft type system — one place for every font decision.
   display : MC Ten UC      — headings (MC Ten Lowercase Alt by Patred + Turkish glyphs, CC BY-SA 3.0, see /hakkinda)
   mc      : Minecraftia UC — buttons, labels, subtitles, small numerals (Andrew Tyler, CC BY-SA; baseline fixed)
   body    : Outfit         — paragraphs, forms, long reading text
   No other pixel fonts: Pixelify Sans and Press Start 2P were removed site-wide (2026-11-09).

   MC Ten is drawn on a 13-unit em (157.5 units per font pixel, 2048 upm), so one font pixel
   = font-size / 13. Display sizes below are whole multiples of 13px to keep edges crisp.
   Cedillas hang ~0.23em below the baseline and Ö/Ü/İ/Ğ marks reach 1.0em, so line-height
   >= 1.25 keeps marks of stacked lines apart. Never go below --fs-d4 with this font. */

@font-face {
  font-family: 'Minecraftia UC';
  src: url('/fonts/MinecraftiaUC.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'MC Ten UC';
  src: url('/fonts/MCTenUC.woff2') format('woff2');
  font-display: swap;
}

:root {
  --font-display: 'MC Ten UC', 'Minecraftia UC', sans-serif;
  /* Minecraftia UC: in-game look, 8-px em → crisp only at 16px or 24px. Baseline fixed for web. */
  --font-mc: 'Minecraftia UC', 'Outfit', sans-serif;
  --font-ui: var(--font-mc);
  --font-body: 'Outfit', sans-serif;

  --fs-d1: 65px;  /* 5 px grid — hero */
  --fs-d2: 52px;  /* 4 px grid — page titles (desktop) */
  --fs-d3: 39px;  /* 3 px grid — page titles (phone), section titles */
  --fs-d4: 26px;  /* 2 px grid — card / step titles (smallest allowed) */
}

.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  -webkit-font-smoothing: none;
}

/* ── Shared roles (use these instead of inline font-family) ── */
.t-display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.t-d1 { font-size: var(--fs-d1); } .t-d2 { font-size: var(--fs-d2); }
.t-d3 { font-size: var(--fs-d3); } .t-d4 { font-size: var(--fs-d4); }

/* small uppercase eyebrow / tag — replaces tiny Press Start labels (they lacked Turkish glyphs) */
.t-label { font-family: var(--font-mc); font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: uppercase; line-height: 1.25; }
.t-label-sm { font-family: var(--font-mc); font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: uppercase; line-height: 1.25; }

/* pixel numerals in badges / step markers */
.t-num { font-family: var(--font-mc); font-weight: 400; line-height: 1; }

/* "UNICRAFT" wordmark — MC Ten on its 1:1 grid */
.t-brand { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0; }

/* page title: 39px on phones, 52px from tablet up */
.t-page-title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.25; font-size: var(--fs-d3); }
@media (min-width: 768px) { .t-page-title { font-size: var(--fs-d2); } }

/* section title: 26px on phones, 39px from tablet up */
.t-section-title { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.25; font-size: var(--fs-d4); }
@media (min-width: 768px) { .t-section-title { font-size: var(--fs-d3); } }

/* MC Ten reads as Minecraft only in capitals (its lowercase looks like a different genre).
   Every display role is uppercased here; text-transform follows <html lang> (tr: i→İ, de: ß→SS). */
.font-display, .t-display, .t-page-title, .t-section-title { text-transform: uppercase; }

/* ── Shared small-screen nav fix (every page loads this file) ──
   On phones the logo label + Giriş/Kayıt (16px pixel button) + hamburger did not fit and pushed the menu button off-screen. */
@media (max-width: 419px) {
  #navbar .nav-home-label { display: none; }
  #navbar > div { padding-left: 16px; padding-right: 16px; }
}

/* very narrow phones (<360px): one long word ("TOPLULUĞUMUZ") must still fit → drop page titles one grid step */
@media (max-width: 359px) { .t-page-title { font-size: var(--fs-d4); } }

/* Pixel fonts have one weight: never let the browser fake bold/italic (it smears the pixels). */
html { font-synthesis: none; }

/* Tailwind font-pixel / font-brand utilities now point at the pixel fonts; snap their text-* sizes to the grids. */
.font-pixel { font-weight: 400 !important; letter-spacing: 0; }
.font-pixel.text-xs, .font-pixel.text-sm, .font-pixel.text-base, .font-pixel.text-lg { font-size: 16px; line-height: 1.3; }
.font-pixel.text-xl, .font-pixel.text-2xl { font-size: 24px; line-height: 1.3; }
.font-brand { text-transform: uppercase; letter-spacing: 0; font-weight: 400 !important; }

/* Buttons read like Minecraft's menu buttons: one pixel size everywhere (pages used ad-hoc 12–18px overrides). */
/* every button class used across the site (layout helpers like .btn-row are not buttons) */
.btn-secondary, .btn-sec, .btn-gold, .btn-orange, .btn-discord, .btn-wa, .btn-submit,
.btn-danger, .btn-stone, .btn-oak, .btn-grass, .btn-ghost, .btn-later {
  font-family: var(--font-mc) !important; font-size: 16px !important; font-weight: 400 !important; letter-spacing: 0 !important;
}

/* Responsive MC Ten sizes for page-specific rules (long Turkish words like SÜRDÜRÜLEBİLİRLİK
   overflow phones at 39px+). Phones step one grid size down; tablet/desktop get the full size. */
:root { --fs-ten-39: 26px; --fs-ten-52: 39px; --fs-ten-65: 52px; }
@media (min-width: 768px) { :root { --fs-ten-39: 39px; --fs-ten-52: 52px; --fs-ten-65: 65px; } }
@media (max-width: 359px) { :root { --fs-ten-52: 26px; --fs-ten-65: 39px; } }
.font-display, .t-display, .t-page-title, .t-section-title, [style*="MC Ten UC"] { overflow-wrap: break-word; }

/* MineDings item icons (The Dab Master, CC BY-NC-SA 3.0 — license next to the file). 16px em, 1px = 128 units
   → crisp at 16/32/48px. Always: <i class="mc-ico notranslate" translate="no" aria-hidden="true">B</i> */
@font-face { font-family: 'MineDings'; src: url('/fonts/MineDings/MineDings.woff2') format('woff2'); font-display: block; }
.mc-ico { font-family: 'MineDings'; font-style: normal; font-weight: 400; font-size: 16px; line-height: 1; letter-spacing: 0;
  text-transform: none; display: inline-block; vertical-align: -0.2em; speak: never; user-select: none; }
.mc-ico-32 { font-size: 32px; } .mc-ico-48 { font-size: 48px; }

/* Green primary buttons, modelled on the Minecraft launcher's PLAY: flat Minecraft green, light top edge,
   dark bottom edge, white MC Ten caps with a soft 1px shadow. 19.5px (crisp at 2x/3x phone screens); navbar CTA 13px. */
.btn-primary {
  background: #3C8527 !important;
  border: 2px solid #1D4D13 !important;
  box-shadow: inset 0 2px 0 #52A535, inset 0 -4px 0 #2A641C, 0 3px 0 rgba(0,0,0,0.35) !important;
  font-family: var(--font-display) !important; font-size: 19.5px !important; font-weight: 400 !important;
  letter-spacing: 0 !important; text-transform: uppercase; line-height: 1.1;
  color: #FFFFFF !important; text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.btn-primary:hover { background: #45952D !important; }
.btn-primary:active { box-shadow: inset 0 4px 0 #2A641C !important; transform: translateY(2px); }
.btn-primary.text-sm { font-size: 13px !important; }
.btn-primary svg { color: #FFFFFF; }
.btn-primary[aria-disabled="true"], .btn-primary:disabled {
  background: #33452A !important; border-color: #1C2716 !important;
  box-shadow: inset 0 2px 0 #3F5734, inset 0 -4px 0 #26361F !important;
  color: rgba(255,255,255,0.45) !important; text-shadow: none; transform: none;
}
