/* Dotwyn — dotwyn.com
   Boje i font iz finalnog brenda (dotwyn-logo.md). Sora se hostuje lokalno.
   Izgled v2 (2026-10-23): koralni krug i tačkasta mreža u heroju, sekcija igara u drugom tonu,
   kartica sa senkom, tamno podnožje, Tessa „tiles only”. */

@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/sora-latin-400-normal.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: "Sora"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/sora-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "Sora"; font-style: normal; font-display: swap; font-weight: 500;
  src: url("fonts/sora-latin-500-normal.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: "Sora"; font-style: normal; font-display: swap; font-weight: 500;
  src: url("fonts/sora-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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: "Sora"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("fonts/sora-latin-600-normal.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: "Sora"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("fonts/sora-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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; }

/* ---------- Boje ---------- */
:root {
  --accent: #E8553D;   /* tačka */
  --ink: #1B1B1F;
  --cream: #F4F2EE;
  --bg: var(--cream);
  --band: #ECE8E1;     /* druga ravan: sekcija igara */
  --surface: #FFFFFF;
  --text: var(--ink);
  --muted: #55555B;
  --line: #E2DFD8;
  --grid-dot: rgba(27, 27, 31, .14);
  --foot-bg: #1B1B1F;
  --foot-text: #A1A1A8;
  --foot-strong: #F4F2EE;
  --shadow: 0 1px 2px rgba(27,27,31,.04), 0 10px 30px -14px rgba(27,27,31,.18);
  --shadow-up: 0 2px 4px rgba(27,27,31,.05), 0 18px 40px -12px rgba(27,27,31,.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1B1F; --band: #212127; --surface: #2A2A31; --text: #F4F2EE; --muted: #A1A1A8; --line: #36363E;
    --grid-dot: rgba(244, 242, 238, .10); --foot-bg: #141417;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 12px 30px -14px rgba(0,0,0,.6);
    --shadow-up: 0 2px 4px rgba(0,0,0,.3), 0 20px 40px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1B1F; --band: #212127; --surface: #2A2A31; --text: #F4F2EE; --muted: #A1A1A8; --line: #36363E;
  --grid-dot: rgba(244, 242, 238, .10); --foot-bg: #141417;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 12px 30px -14px rgba(0,0,0,.6);
  --shadow-up: 0 2px 4px rgba(0,0,0,.3), 0 20px 40px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent);
    text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; display: flex; flex-direction: column; }

/* Tačka u boji na kraju rečenice: potpis brenda */
.dot { color: var(--accent); }

/* ---------- Zaglavlje ---------- */
.site-header { padding: 28px 0; position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { height: 26px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Naslovi i tekst ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }

/* Hero: tekst ispred, koralni krug i tačkasta mreža iza */
.hero { position: relative; padding: 64px 0 104px; overflow: hidden; overflow: clip; }
.hero .wrap { position: relative; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art .disc {
  position: absolute; right: -250px; top: -24px;
  width: 360px; height: 360px; border-radius: 50%; background: var(--accent);
}
.hero-art .grid {
  position: absolute; right: 60px; top: 0; width: 300px; height: 300px;
  background-image: radial-gradient(var(--grid-dot) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.hero-text { position: relative; }
.hero h1 { font-size: clamp(38px, 8.2vw, 64px); line-height: 1.06; letter-spacing: -0.04em; max-width: 11ch; }
.hero p { margin: 22px 0 0; color: var(--muted); font-size: 19px; max-width: 28ch; }

.descriptor {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
}
.descriptor i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--accent); display: inline-block; }

.section { padding: 0 0 88px; }
.section-label { margin: 0 0 20px; }
/* druga ravan: traka do podnožja */
.band { background: var(--band); padding: 56px 0 96px; flex: 1; }

/* ---------- Kartica igre ---------- */
.game {
  display: grid; grid-template-columns: 76px 1fr; gap: 26px; align-items: center;
  background: var(--surface); border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow);
}
.game img { width: 76px; height: 76px; }
.game h3 { font-size: 22px; }
.game p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Tekstualne stranice (podrška, pravne) ---------- */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(32px, 6.4vw, 46px); }
.page .lead { margin: 18px 0 0; color: var(--muted); font-size: 19px; max-width: 38ch; }
.page h2 { font-size: 21px; margin: 48px 0 10px; }
.page p, .page ul, .page ol { margin: 0 0 14px; max-width: 62ch; }
.page ul, .page ol { padding-left: 1.2em; }
.page li { margin: 4px 0; }
.page .meta { color: var(--muted); font-size: 14px; margin-top: 14px; }

.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.1em;
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; display: grid; place-items: center;
}
.path { font-weight: 500; white-space: nowrap; }

.callout {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 20px 22px; margin: 18px 0; max-width: 62ch;
}
.callout p:last-child { margin-bottom: 0; }

/* Zaglavlje igre na stranicama igre */
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.game-head img { width: 40px; height: 40px; }
.game-head div { line-height: 1.3; }
.game-head strong { display: block; font-weight: 600; }
.game-head span { color: var(--muted); font-size: 14px; }

/* Šablon: mesto za tekst koji još ne postoji */
.todo {
  border: 1.5px dashed var(--accent); border-radius: 14px; padding: 14px 16px;
  color: var(--muted); font-size: 15px; max-width: 62ch;
}

/* ---------- Podnožje ---------- */
.site-footer { background: var(--foot-bg); padding: 30px 0 38px; font-size: 14px; color: var(--foot-text); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--foot-text); text-decoration: none; }
.site-footer a:hover { color: var(--foot-strong); }
.site-footer a:focus-visible { outline-color: var(--accent); }

/* ---------- Telefon ---------- */
/* srednja širina: krug ide dalje udesno da ne pređe naslov */
@media (max-width: 900px) {
  .hero-art .disc { right: -270px; }
  .hero-art .grid { right: 20px; }
}
/* telefon: krug izlazi ispod teksta i sedi na ivici sekcije igara */
@media (max-width: 600px) {
  .hero { padding: 40px 0 136px; }
  .hero-art .disc { width: 220px; height: 220px; right: -60px; top: auto; bottom: -240px; }
  .hero-art .grid { right: 120px; top: auto; bottom: -150px; width: 200px; height: 170px; background-size: 16px 16px; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .hero p, .page .lead { font-size: 17px; }
  .site-header { padding: 20px 0; }
  .brand svg { height: 22px; }
  .band { padding: 44px 0 72px; }
  .game { grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 20px; }
  .game img { width: 56px; height: 56px; margin-top: 2px; }
  .game h3 { font-size: 19px; }
  .pill { font-size: 12px; padding: 5px 10px; gap: 6px; }
}

/* ---------- Pokret ---------- */
@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s ease; }
  .game { transition: transform .25s ease, box-shadow .25s ease; }
  .game:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
}
