/* =============================================================
   FIDJU INK — Landing page styles
   Cape Verdean · pan-African streetwear · founding drop
   Design system per build brief §4. Do not use off-system
   colours or fonts.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bone:    #EAE4D8; /* off-white base — echoes 250gsm fabric */
  --ink:     #0E0E0E; /* near-black — the brand's "Ink" */
  --oxblood: #7A1E1E; /* accent — buttons, key words */
  --gold:    #C29A46; /* highlight — numbering / fine rules only */
  --grey:    #8A8377; /* secondary text, metadata, borders */

  --ink-2:   #171717; /* subtle raised dark surface */
  --oxblood-hover: #611818;

  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-soul:    "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--oxblood);
  color: var(--bone);
  padding: 0.75rem 1rem;
  z-index: 200;
  border-radius: 0 0 3px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--ink  { background: var(--ink);  color: var(--bone); }
.section--bone { background: var(--bone); color: var(--ink);  }

/* Optional very-subtle film grain on dark sections */
.section--ink { position: relative; }
.section--ink > .wrap { position: relative; z-index: 1; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .grain::after { display: none; }
}

/* ---------- Typography roles ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  font-size: clamp(2rem, 1.3rem + 4.2vw, 4rem);
}
.display--sm { font-size: clamp(1.6rem, 1.2rem + 2.6vw, 2.75rem); }

.soul {
  font-family: var(--font-soul);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); }

.oxblood { color: var(--oxblood); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  background: var(--oxblood);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.05s ease;
}
.btn:hover { background: var(--oxblood-hover); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}
.btn--ghost:hover { background: rgba(234, 228, 216, 0.08); }

/* ---------- Sticky top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
  background: transparent;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.topbar.is-scrolled {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(234, 228, 216, 0.08);
}
.topbar__brand {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: var(--bone);
  text-decoration: none;
  line-height: 0;
}
.brand-logo { height: 30px; width: auto; display: block; }
@media (min-width: 768px) { .brand-logo { height: 34px; } }
.topbar .btn--ghost { color: var(--bone); border-color: rgba(234,228,216,0.5); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(1.12) contrast(1.02);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,0.28) 0%, rgba(14,14,14,0.55) 58%, rgba(14,14,14,0.90) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.8rem + 6vw, 5.5rem);
  line-height: 0.98;
  margin: 0 0 0.4rem;
}
.hero__subline {
  color: var(--grey);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  letter-spacing: 0.02em;
}
.hero__supporting {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 38rem;
  margin: 0 0 2rem;
}
.hero__micro {
  color: var(--grey);
  font-size: 0.9rem;
  margin: 1.1rem 0 0;
  max-width: 34rem;
}

/* On small screens: artwork above, text below */
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    display: block;
    padding-top: 4.75rem;
  }
  .hero__media {
    position: relative;
    height: 56vw;
    max-height: 340px;
    margin-inline: calc(-1 * var(--gutter));
  }
  .hero__media img { object-position: center 25%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(14,14,14,0.15) 0%, rgba(14,14,14,0.85) 88%, var(--ink) 100%);
  }
  .hero__inner { margin-top: 1.75rem; }
}

/* ---------- Generic section heads ---------- */
.section__head { max-width: 52rem; margin-bottom: 2.5rem; }
.section__head .display { margin-bottom: 0.5rem; }

.prose { max-width: 46rem; }
.prose p + p { margin-top: 0; }
.prose .soul { font-size: 1.05em; }

/* ---------- Manifesto ---------- */
.manifesto .display { max-width: 18ch; }
.manifesto blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  max-width: 44rem;
}
.manifesto strong { font-weight: 700; }

/* ---------- Heroes grid ---------- */
.heroes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(234, 228, 216, 0.14); /* thin rules between cards */
  border: 1px solid rgba(234, 228, 216, 0.14);
}
@media (min-width: 560px) { .heroes__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .heroes__grid { grid-template-columns: 1fr 1fr 1fr; } }

.hero-card {
  background: var(--ink);
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem) 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-card__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.hero-card__meta {
  font-size: 0.8rem;
  color: var(--grey);
  letter-spacing: 0.02em;
}
/* Death-cause: clean stamp-like line — NOT a badge/pill */
.hero-card__cause {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 600;
  margin-block: 0.15rem 0.35rem;
}
.hero-card__desc {
  font-size: 0.95rem;
  color: var(--bone);
  margin: 0;
}

/* ---------- Media + text split (artist, piece) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img {
  width: 100%;
  border-radius: 4px;
}
.figure figcaption {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* ---------- The Piece ---------- */
.spec-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.spec-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--oxblood);
}
.badge-drop {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 0.4rem 0;
}
.detail-crops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.detail-crops img { border-radius: 3px; }

/* ---------- Capture / form ---------- */
.capture .display { max-width: 20ch; }
.capture__body { max-width: 42rem; margin-bottom: 2.25rem; }
.capture__micro { color: var(--grey); font-size: 0.85rem; margin-top: 1rem; text-align: center; }

/* Wrapper the systeme.io embed is dropped into (styled per companion spec) */
.fidju-form-wrap {
  max-width: 460px;
  margin: 0 auto;
  font-family: var(--font-body);
}

/* Placeholder shown until the systeme.io embed is pasted in. Delete with the placeholder markup. */
.form-placeholder {
  border: 1px dashed var(--grey);
  border-radius: 4px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.form-placeholder label {
  display: block;
  color: var(--bone);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.form-placeholder input,
.form-placeholder select {
  width: 100%;
  box-sizing: border-box;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-size: 16px;
  font-family: var(--font-body);
}
.form-placeholder input::placeholder { color: var(--grey); }
.form-placeholder .consent-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.5;
}
.form-placeholder .consent-row a { color: var(--bone); }
.form-placeholder .btn { width: 100%; }
.form-placeholder__note {
  font-size: 0.72rem;
  color: var(--grey);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid rgba(234, 228, 216, 0.1);
}
.site-footer__brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.footer-logo { height: 54px; width: auto; display: block; margin-bottom: 1rem; }
.site-footer__tagline { color: var(--grey); margin-bottom: 1.5rem; }
.social {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(234, 228, 216, 0.25);
  border-radius: 3px;
  color: var(--bone);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.social a:hover { background: rgba(234,228,216,0.08); border-color: var(--bone); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--grey);
  border-top: 1px solid rgba(234,228,216,0.1);
  padding-top: 1.5rem;
}
.footer__meta a { color: var(--grey); text-decoration: underline; }
.footer__meta a:hover { color: var(--bone); }
.footer__meta .sep { opacity: 0.4; }

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--section-y);
}
.thanks__inner { max-width: 40rem; margin-inline: auto; }
.thanks h1 { font-size: clamp(2.2rem, 1.6rem + 4vw, 4rem); margin-bottom: 1.25rem; }
.thanks .soul { font-size: 1.4rem; color: var(--oxblood); display: block; margin: 1.75rem 0; }
.thanks__follow { margin-top: 2.25rem; }
.thanks__follow p { color: var(--grey); font-size: 0.9rem; margin-bottom: 1rem; }
.thanks .social { justify-content: center; }
.thanks__back { display: inline-block; margin-top: 2rem; color: var(--grey); text-decoration: underline; }
.thanks__back:hover { color: var(--bone); }

/* ---------- Privacy / legal page ---------- */
.legal { padding-top: 6.5rem; }
.legal__body { max-width: 46rem; }
.legal__body h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem,1.4rem+2vw,2.75rem); margin-bottom: 0.5rem; }
.legal__updated { color: var(--grey); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal__body h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 2.5rem 0 0.75rem;
}
.legal__body ul { padding-left: 1.2rem; }
.legal__body li { margin-bottom: 0.4rem; }
.legal__body a { color: var(--oxblood); text-decoration: underline; }
.legal__body hr { border: none; border-top: 1px solid var(--grey); opacity: 0.4; margin: 2.5rem 0; }
.legal__consent {
  background: rgba(122,30,30,0.06);
  border-left: 3px solid var(--oxblood);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  background: var(--ink-2);
  color: var(--bone);
  border-top: 1px solid rgba(234, 228, 216, 0.15);
  padding: 1.25rem var(--gutter);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
.cookie-banner__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text { font-size: 0.88rem; max-width: 46rem; color: var(--bone); }
.cookie-banner__text a { color: var(--gold); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
/* Equal weight for Accept / Reject — no dark patterns */
.cookie-banner__actions .btn { min-width: 120px; }
.cookie-banner__actions .btn--reject {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(234, 228, 216, 0.5);
}
.cookie-banner__actions .btn--reject:hover { background: rgba(234,228,216,0.08); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; }

/* =============================================================
   systeme.io EMBED STYLING — companion spec
   (Fidju_Ink_systemeio_Form_Style.md, block B)
   Scoped to .fidju-form-wrap so the pasted embed matches the page.
   The SAME CSS is also pasted into systeme.io's custom-CSS field.
   Targets elements by type (not systeme.io class names); uses
   !important to beat systeme.io inline defaults.
   ============================================================= */
.fidju-form-wrap { --bone:#EAE4D8; --ink:#0E0E0E; --oxblood:#7A1E1E; --gold:#C29A46; --grey:#8A8377; }

.fidju-form-wrap label {
  color: var(--bone) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem !important;
  display: block;
}
.fidju-form-wrap input[type="text"],
.fidju-form-wrap input[type="email"],
.fidju-form-wrap select {
  width: 100% !important;
  box-sizing: border-box;
  background: var(--bone) !important;
  color: var(--ink) !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  padding: 0.85rem 1rem !important;
  font-size: 16px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  margin-bottom: 1rem !important;
  line-height: 1.3;
  appearance: none;
}
.fidju-form-wrap input::placeholder { color: var(--grey) !important; opacity: 1; }
.fidju-form-wrap input:focus,
.fidju-form-wrap select:focus {
  outline: 2px solid var(--gold) !important;
  outline-offset: 1px;
  border-color: var(--gold) !important;
}
.fidju-form-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230E0E0E' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
}
.fidju-form-wrap input[type="checkbox"] {
  accent-color: var(--oxblood);
  width: 16px; height: 16px;
  margin-top: 3px;
}
.fidju-form-wrap .consent,
.fidju-form-wrap label[for*="consent"],
.fidju-form-wrap p {
  color: var(--grey) !important;
  font-size: 0.8rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
.fidju-form-wrap a { color: var(--bone) !important; text-decoration: underline; }
.fidju-form-wrap button,
.fidju-form-wrap input[type="submit"],
.fidju-form-wrap [type="submit"] {
  width: 100% !important;
  background: var(--oxblood) !important;
  color: var(--bone) !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 1rem 1.25rem !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  margin-top: 0.25rem !important;
}
.fidju-form-wrap button:hover,
.fidju-form-wrap [type="submit"]:hover { background: #611818 !important; }
.fidju-form-wrap button:active,
.fidju-form-wrap [type="submit"]:active { transform: translateY(1px); }
.fidju-form-wrap .error,
.fidju-form-wrap [class*="error"] { color: #E7A0A0 !important; font-size: 0.8rem !important; }
@media (max-width: 480px) { .fidju-form-wrap { max-width: 100%; } }

/* systeme.io renders the form inside a cross-origin <iframe> (fixed width=460).
   The rules above can't reach inside the iframe — style the FORM ITSELF via
   systeme.io's own custom-CSS field (paste block B there). These rules only keep
   the iframe responsive so it never overflows the viewport on mobile. */
.fidju-form-wrap iframe {
  width: 100% !important;
  max-width: 460px !important;
  left: auto !important;
  transform: none !important;
  margin: 0 auto !important;
  display: block !important;
  border: 0 !important;
}
