/*
 * Шта би радије? — the public site (CLAUDE.md §8). One stylesheet for every page, no build step.
 * Colours are CLAUDE.md §5b's: the two option colours are the brand's in every mode, the rest
 * follow prefers-color-scheme. Nothing is loaded from another host, fonts included.
 */

:root {
  color-scheme: light dark;

  /* Brand, the same in light and dark (§5b). White on optionA passes AA only for large text,
     so optionA carries large bold text alone. */
  --option-a: #d4537e;
  --on-option-a: #ffffff;
  --option-b: #ef9f27;
  --on-option-b: #412402;

  /* Light (§5b). */
  --bg: #fff7fa;
  --surface: #ffffff;
  --text: #412402;
  --accent: #993556;
  --pill-text: #993556;
  --pill-bg: #fbeaf0;
  --muted: #888780;
  --line: #f0dce4;

  --radius: 16px;
  --radius-lg: 22px;
  --gutter: 16px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161417;
    --surface: #221f23;
    --text: #f3edef;
    --accent: #ed93b1;
    --pill-text: #f4c0d1;
    --pill-bg: #3a2330;
    --line: #3a3438;
  }
}

*,
*::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: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--pill-bg);
  padding: 0.05em 0.35em;
  border-radius: 6px;
}

/* Skip link: hidden until focused. */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--surface);
  color: var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

/* The draft banner the owner removes (with the comment and the robots meta) before publishing. */
.draft {
  background: var(--option-b);
  color: var(--on-option-b);
  border-bottom: 3px dashed var(--on-option-b);
  padding: 0.6rem var(--gutter);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
}

.draft strong {
  font-weight: 800;
}

/* Placeholders for the owner's details. */
.ph {
  background: var(--pill-bg);
  color: var(--pill-text);
  font-weight: 700;
  padding: 0 0.3em;
  border-radius: 6px;
  border: 1px dashed var(--pill-text);
}

/* "Coming": marks what a page describes before the game has it. A solid pill, so it never reads as
   one of the owner's dashed placeholders above. Removed, one by one, as each feature ships. */
.soon {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 0.55em;
  border-radius: 999px;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* Header. */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  padding-bottom: 0.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--option-a) 50%, var(--option-b) 50%);
}

.lang {
  flex: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--pill-text);
  background: var(--pill-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.lang:hover {
  text-decoration: underline;
}

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  padding-bottom: 0.7rem;
  font-size: 0.98rem;
}

nav.links a {
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

nav.links a:hover,
nav.links a[aria-current="page"] {
  border-bottom-color: currentColor;
}

nav.links a[aria-current="page"] {
  font-weight: 700;
}

/* Main content. */
main {
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

h1 {
  color: var(--accent);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.6rem;
  margin-bottom: 0.35rem;
}

p,
ul,
ol,
dl {
  margin: 0.6rem 0;
}

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin: 0.35rem 0;
}

li::marker {
  color: var(--accent);
}

.meta {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.lead {
  font-size: 1.15rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1.2rem;
  margin: 1.25rem 0;
}

.card > h2:first-child {
  margin-top: 0.8rem;
}

.address {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  line-height: 1.8;
}

/* Table of contents on the long pages. */
nav.toc {
  margin: 1.5rem 0 0.5rem;
}

nav.toc h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--text);
}

nav.toc ol {
  columns: 2 16rem;
  column-gap: 2rem;
}

nav.toc li {
  margin: 0.2rem 0;
  break-inside: avoid;
}

/* A list of providers or of what is kept. */
dl.providers dt {
  font-weight: 700;
  margin-top: 0.9rem;
}

dl.providers dd {
  margin: 0.15rem 0 0;
}

/* Numbered steps. */
ol.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  min-height: 2rem;
  margin: 0.8rem 0;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--option-b);
  color: var(--on-option-b);
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* The home page's question: the game's two cards and its "or" pill (§5b). */
.hero {
  padding-top: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.5vw, 3.2rem);
}

.duel {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0.5rem;
}

.option {
  width: 100%;
  margin: 0;
  min-height: 6.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.option.a {
  background: var(--option-a);
  color: var(--on-option-a);
}

.option.b {
  background: var(--option-b);
  color: var(--on-option-b);
}

.or {
  background: var(--pill-bg);
  color: var(--pill-text);
  font-weight: 800;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

@media (min-width: 36rem) {
  .duel {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .option {
    min-height: 8.5rem;
  }
}

.features {
  list-style: none;
  padding-left: 0;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.6rem 0;
}

.docs {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
}

.docs a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.docs a:hover {
  border-color: var(--accent);
}

@media (min-width: 36rem) {
  .docs {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer. */
footer.site {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  font-size: 0.95rem;
}

footer.site p {
  margin: 0.3rem 0;
}
