/* =============================================================================
   Studentët në Protestë, editorial protest-manifesto design system.

   Aesthetic: warm "paper" pamphlet, deep warm ink, the flamingo's rose-pink as
   the singular accent (the movement's own symbol), a deep botanical green as
   secondary (the Vjosë–Nartë ecosystem). Display: Fraunces. Body/UI: Archivo.
   Subtle paper grain, hairline rules, staggered reveals. Dignified, grassroots.
   ============================================================================= */

:root {
  --paper:      #f3ece0;
  --paper-2:    #ece1cf;
  --paper-3:    #e6d9c3;
  --ink:        #1b160e;
  --ink-soft:   #574e3e;
  --ink-faint:  #8a8070;
  --flamingo:   #e85a7c;
  --flamingo-d: #bd2f56;
  --green:      #2c5749;
  --green-d:    #1f3f34;
  --line:       rgba(27, 22, 14, 0.16);
  --line-soft:  rgba(27, 22, 14, 0.08);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Archivo', system-ui, sans-serif;

  --maxw: 1140px;
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain overlay. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--flamingo); color: #fff; }

/* ---- layout helpers ------------------------------------------------------- */
.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: clamp(64px, 11vw, 140px) 0; position: relative; z-index: 1; }
.section--paper2 { background: var(--paper-2); }
.kicker {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--flamingo-d);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 30px; height: 2px; background: var(--flamingo);
}
.eyebrow-line { height: 1px; background: var(--line); border: 0; margin: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
.serif-italic { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand__mark {
  width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover;
}
.brand__name { font-family: var(--body); font-size: 0.98rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--flamingo); transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.lang-btn {
  font-family: var(--body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em;
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: all 0.2s var(--ease);
}
.lang-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.btn--primary { background: var(--flamingo); color: #fff; box-shadow: 0 10px 26px -12px var(--flamingo-d); }
.btn--primary:hover { background: var(--flamingo-d); transform: translateY(-2px); box-shadow: 0 16px 34px -14px var(--flamingo-d); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- hero ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 48px; align-items: center; }
.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  margin: 20px 0 26px;
}
.hero__title em { font-style: italic; color: var(--flamingo-d); }
.hero__subtitle { font-size: clamp(1.05rem, 1.9vw, 1.32rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note {
  margin-top: 30px; font-size: 0.86rem; color: var(--ink-faint); letter-spacing: 0.02em;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
}
.hero__art { position: relative; aspect-ratio: 4 / 5; }
.hero__art-frame {
  position: absolute; inset: 0; margin: 0; border-radius: var(--r);
  overflow: hidden; background: var(--paper-2);
  box-shadow: 0 30px 60px -34px rgba(27, 22, 14, 0.5);
}
/* Thin flamingo-pink mat around the photo. */
.hero__art-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 6px solid var(--paper); border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--flamingo);
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
/* Subtle warm vignette so the photo sits in the paper palette. */
.hero__art-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--green-d) 55%, transparent)),
    radial-gradient(120% 80% at 70% 20%, color-mix(in srgb, var(--flamingo) 14%, transparent), transparent 60%);
  mix-blend-mode: multiply; opacity: 0.55;
}
.hero__credit {
  position: absolute; left: 12px; bottom: 10px; z-index: 3;
  font-family: var(--body); font-size: 0.64rem; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero__stamp {
  position: absolute; right: -14px; bottom: -14px; z-index: 4;
  font-family: var(--display); font-style: italic; font-size: 0.92rem;
  background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px;
  transform: rotate(-4deg); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}

/* ---- event section -------------------------------------------------------- */
.event__head { max-width: 60ch; }
.event__title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 6px 0 22px; }
.event__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; }
.point {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 32px; position: relative; overflow: hidden;
}
.section--paper2 .point { background: var(--paper); }
.point__num {
  font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 1;
  color: var(--flamingo); opacity: 0.9; margin-bottom: 16px;
}
.point h3 { font-size: 1.55rem; margin-bottom: 10px; }
.point p { color: var(--ink-soft); }
.point::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: color-mix(in srgb, var(--flamingo) 12%, transparent);
}
/* event date / time / place */
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.event-meta__item {
  flex: 1 1 190px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px;
}
.event-meta__item:first-child { border-top: 3px solid var(--flamingo); }
.event-meta__label {
  display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--flamingo-d); margin-bottom: 8px;
}
.event-meta__val { font-family: var(--display); font-size: 1.2rem; line-height: 1.3; color: var(--ink); }

.hero__when {
  margin-top: 22px; font-weight: 600; font-size: 0.96rem; color: var(--green-d);
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
}
.hero__when .hero__dot { color: var(--flamingo); }

.event__spontaneous {
  margin-top: 30px; font-family: var(--display); font-style: italic; font-size: 1.25rem;
  color: var(--green-d); display: flex; gap: 14px; align-items: flex-start;
}
.event__spontaneous::before { content: "“"; font-size: 2.6rem; line-height: 0.7; color: var(--flamingo); }

/* ---- why / manifesto ------------------------------------------------------ */
.why__lead {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08; max-width: 18ch; margin-bottom: 28px;
}
.why__body { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; margin-bottom: 56px; }
.manifesto { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.manifesto__cell { background: var(--paper); padding: 36px 34px; transition: background 0.3s var(--ease); }
.manifesto__cell:hover { background: var(--paper-3); }
.manifesto__cell h3 { font-size: 1.45rem; margin-bottom: 12px; }
.manifesto__cell h3 span { color: var(--flamingo-d); }
.manifesto__cell p { color: var(--ink-soft); }

/* ---- timeline ------------------------------------------------------------- */
.timeline { margin-top: 56px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--flamingo), var(--green)); opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 40px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--flamingo);
}
.tl-item:last-child::before { border-color: var(--green); background: var(--green); }
.tl-date {
  font-family: var(--body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--flamingo-d); margin-bottom: 6px;
}
.tl-title { font-size: 1.4rem; margin-bottom: 7px; }
.tl-body { color: var(--ink-soft); max-width: 64ch; }

/* ---- form ----------------------------------------------------------------- */
.register { background: var(--green-d); color: var(--paper); }
.register .kicker { color: #f6c6d3; }
.register .kicker::before { background: var(--flamingo); }
.register__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.register__intro h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 8px 0 18px; color: var(--paper); }
.register__intro p { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 1.08rem; max-width: 40ch; }
.register__seal { margin-top: 34px; font-family: var(--display); font-style: italic; font-size: 1.3rem; color: #f6c6d3; }

.form-card {
  background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5);
}
.field { margin-bottom: 20px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .label {
  display: block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px;
}
.label .opt { color: var(--ink-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.input, .select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:focus, .select:focus {
  outline: none; border-color: var(--flamingo); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--flamingo) 18%, transparent);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23574e3e' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.conditional { display: none; }
.conditional.is-active { display: block; animation: fadeSlide 0.4s var(--ease); }
.demo-note { font-size: 0.82rem; color: var(--ink-faint); margin: -6px 0 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: color-mix(in srgb, var(--flamingo) 14%, var(--paper));
  border: 1px solid var(--flamingo); color: var(--flamingo-d);
  border-radius: 10px; padding: 11px 14px; font-size: 0.92rem; font-weight: 600;
  margin-bottom: 18px; display: none;
}
.form-error.is-active { display: block; }

.form-success { display: none; text-align: center; padding: 18px 6px; }
.form-success.is-active { display: block; animation: fadeSlide 0.5s var(--ease); }
.form-success__check {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
}
.form-success h3 { font-size: 1.9rem; margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); margin-bottom: 22px; }

/* ---- footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer__tagline { font-family: var(--display); font-style: italic; font-size: 1.5rem; }
.site-footer__note { color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 0.9rem; max-width: 34ch; }

/* ---- reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(18px); }
[data-stagger].is-in > * { animation: rise 0.6s var(--ease) forwards; }
[data-stagger].is-in > *:nth-child(2) { animation-delay: 0.08s; }
[data-stagger].is-in > *:nth-child(3) { animation-delay: 0.16s; }
[data-stagger].is-in > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

/* ---- accessibility + anchor offset ---------------------------------------- */
/* Keep #anchor targets clear of the 66px sticky header. */
.section, .hero, [id] { scroll-margin-top: 80px; }
/* Visible keyboard/switch focus on every interactive element. */
.btn:focus-visible, .lang-btn:focus-visible, .nav__links a:focus-visible,
a:focus-visible, button:focus-visible, .input:focus-visible, .select:focus-visible {
  outline: 2px solid var(--flamingo-d); outline-offset: 3px;
}

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* Show the flamingo as a banner above the copy on smaller screens. */
  .hero__art { aspect-ratio: 16 / 10; order: -1; margin-bottom: 8px; }
  .hero__photo { object-position: 50% 45%; }
  .register__grid { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav { gap: 14px; }
  .points { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 32px, var(--maxw)); }

  /* Hero: stack full-width CTAs, larger tap targets, tidy banner + stamp. */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding: 16px 24px; font-size: 1rem; }
  .lang-btn { padding: 11px 15px; }
  .brand__name { font-size: 0.9rem; }
  .hero__art { aspect-ratio: 3 / 2; }
  .hero__stamp { right: 6px; bottom: 6px; font-size: 0.82rem; padding: 7px 13px; }
  .hero__when { flex-direction: column; align-items: flex-start; gap: 3px; }
  .hero__when .hero__dot { display: none; }
}
@media (max-width: 430px) {
  /* Drop the long brand name so the lang toggle + CTA always fit the header. */
  .brand__name { display: none; }
  .nav { gap: 10px; }
}
