/* ==========================================================
   UnMask Cyprus – shared stylesheet
   Edit the colours and fonts in :root below to retheme the site.
   ========================================================== */

/* ---------- 1. VARIABLES (colours, fonts, sizes) ---------- */
:root {
  --bg: #FAF9F6;            /* calm off-white page background */
  --card: #FFFFFF;          /* cards */
  --text: #18181B;          /* main text (deep charcoal) */
  --text-soft: #3F3F46;     /* secondary text */
  --primary: #5B3A8C;       /* buttons + links (indigo/violet) */
  --accent: #D94E67;        /* hover states (terracotta/coral) */
  --line: #E4E1DA;          /* subtle dividers and borders */

  /* Spectrum bar inspired by the rainbow logo – edit freely */
  --spectrum: linear-gradient(90deg,
    #E5484D, #F08A3C, #F2C230, #4CAF6A, #3B9AE1, #5B3A8C, #B04FA0);

  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --page-width: 1100px;
  --reading-width: 65ch;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.container { width: min(100% - 2.5rem, var(--page-width)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-top: 5px solid transparent;
  border-image: var(--spectrum) 1;     /* spectrum bar */
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.logo-link img { height: 48px; width: auto; display: block; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--card); color: var(--text);
  border: 2px solid var(--primary); border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font: 500 1rem var(--font-body);
  cursor: pointer;
}

.nav-links {
  display: none;                       /* hidden on mobile until toggled */
  list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-links.open { display: block; }
.nav-links a {
  display: block; padding: 0.8rem 0.25rem;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-links a:hover { color: var(--accent); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; gap: 1.75rem; position: static;
    padding: 0; border: 0; background: none;
  }
  .nav-links a { padding: 0.4rem 0; border: 0; }
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-block;
  background: var(--primary); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
  padding: 0.9rem 1.75rem; border-radius: 999px;
  text-decoration: none;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- 5. SECTIONS (landing page) ---------- */
.section { padding: 4rem 0; }
.section-white { background: var(--card); border-block: 1px solid var(--line); }
.section-text { max-width: var(--reading-width); }

.hero { padding: 5rem 0 4.5rem; }
.hero .tagline {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--text-soft);
  max-width: 40ch;
  margin-bottom: 2rem;
}

/* Principle cards */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 2rem 0 2.5rem;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { margin: 0; color: var(--text-soft); }

/* ---------- 6. MANIFESTO PAGE ---------- */
.reading { padding: 3rem 0 4rem; }
.reading-column { max-width: var(--reading-width); margin-inline: auto; width: min(100% - 2.5rem, var(--reading-width)); }
.reading-column p, .reading-column li { line-height: 1.75; }
.reading-column h2 { margin-top: 0.2em; }
.reading-column hr { border: 0; border-top: 1px solid var(--line); margin: 2.75rem 0; }
.back-link { display: inline-block; font-weight: 500; margin: 0 0 2rem; }
.back-link.bottom { margin: 2rem 0 0; }

/* ---------- 7. FOOTER ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-soft);
}
.site-footer img { height: 56px; width: auto; margin-bottom: 0.75rem; }
.site-footer p { margin: 0; font-size: 0.95rem; }

/* ---------- 8. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
