/* ===================================================================
   IDS — Inicijativa za Demokratski Socijalizam
   =================================================================== */

:root {
  --coral: #f3615c;
  --coral-deep: #e14b46;
  --navy: #3d58d1;
  --navy-deep: #2c3fa0;
  --ink: #1c1d21;
  --ink-soft: #4a4b52;
  --paper: #ffffff;
  --mist: #eef1f8;
  --mist-line: #dbe0ee;

  --font-display: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 640px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- shared logo ---------- */

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
}

.logo--on-coral .logo__mark {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: #fff;
}

.logo--on-coral .logo__tagline {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.logo--on-white .logo__mark {
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  color: var(--navy);
  line-height: 1;
}

/* ===================================================================
   HERO
   =================================================================== */

.hero {
  background: var(--coral);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5.6vw, 3.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.hero__title span:first-child { color: #fff; }
.hero__title-accent { color: var(--navy); }

.hero__lede {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

.hero__lede strong { font-weight: 700; color: #fff; }

.hero__photo {
  line-height: 0;
  background: var(--coral);
}

.hero__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===================================================================
   ABOUT / MANIFEST
   =================================================================== */

.about {
  background: var(--paper);
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(2rem, 6vw, 3rem);
}

.about__inner {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__subtitle {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.5;
}

.about__intro {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.about__intro p { margin: 0; }

.about__lead-line {
  color: var(--ink);
}
.about__lead-line strong { color: var(--navy); font-weight: 600; }

.manifest {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.manifest p { margin: 0; }

.manifest__closing {
  font-weight: 600;
  color: var(--ink);
}

.pledge-card {
  margin-top: 2.75rem;
  width: 100%;
  background: var(--coral);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 5vw, 3rem) clamp(2.25rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.pledge-card p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  max-width: 46ch;
}

.pledge-card__seal {
  width: 64px;
  height: 64px;
  color: rgba(255,255,255,0.85);
}

.statement {
  margin: 2.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
}

/* ===================================================================
   AKTA I ODLUKE
   =================================================================== */

.acts {
  background: var(--paper);
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem clamp(4rem, 8vw, 6rem);
}

.acts__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.acts__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--ink);
}

.acts__subtitle {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.acts__list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  text-align: left;
}

.acts__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--mist);
  border: 1px solid var(--mist-line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  height: 100%;
}

.acts__list li a:hover,
.acts__list li a:focus-visible {
  background: #e4e9f5;
  border-color: var(--navy);
}

.acts__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--coral-deep);
}

/* ===================================================================
   FOOTER
   =================================================================== */

.footer__band {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  text-align: center;
}

.footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.footer__title span { color: var(--coral); }

.footer__subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}

.footer__social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.footer__social a:hover,
.footer__social a:focus-visible {
  background: rgba(255,255,255,0.28);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

.footer__photo {
  line-height: 0;
}

.footer__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 640px) {
  .acts__list {
    grid-template-columns: 1fr;
  }
}
