/* ===========================================================
   EqualFaith Europe — Design tokens
   Ink navy / paper / gold-as-evidence-highlight / margin citation
   =========================================================== */

:root {
  --navy: #161B2E;
  --navy-soft: #232A45;
  --paper: #F3F4EF;
  --paper-dim: #E7E8E1;
  --gold: #C9A15C;
  --gold-dim: #DCC08C;
  --brick: #8B3A3A;
  --ink: #1D2030;
  --gray: #6B6D74;
  --line: #D8D9D2;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1080px;
  --margin-col: 148px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; border-radius: 4px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.58em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -0.012em; }
h3 { font-size: 1.22rem; letter-spacing: -0.005em; margin-bottom: 0.5em; }

p { margin: 0 0 1.2em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
.card p, .col-3 p, .footer-grid p { max-width: none; }

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

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.logo-badge-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-badge-lg img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  border-radius: 0;
}

.founder-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border-top: 2px solid var(--gold);
  box-shadow: 0 1px 3px rgba(22,27,46,0.08);
}

@media (max-width: 620px) {
  .founder-block { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; }
}

.brand-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-soft);
  padding: 8px 0 6px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  opacity: 0.82;
}

.nav-links a:hover {
  border-bottom-color: var(--gold-dim);
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--navy);
  opacity: 1;
}

.nav-cta {
  border: 1px solid var(--gold) !important;
  border-radius: 100px !important;
  padding: 7px 16px !important;
  color: var(--navy) !important;
  background: rgba(201,161,92,0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease !important;
}

.nav-cta:hover {
  background: var(--gold);
  border-bottom-color: var(--gold) !important;
  box-shadow: 0 4px 12px rgba(201,161,92,0.35);
  transform: translateY(-1px);
}

.nav-cta[aria-current="page"] {
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { background: var(--navy); color: var(--paper); }

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 6px 28px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
}

/* ---------------- Eyebrow / tags ---------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 14px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--brick);
  font-weight: 500;
  margin-bottom: 6px;
}

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 6px;
}

/* ---------------- Buttons / CTAs ---------------- */

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid var(--navy);
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(22,27,46,0.18);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); box-shadow: none; }

.btn.primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 3px 10px rgba(201,161,92,0.35);
  font-weight: 500;
}

.btn.primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  box-shadow: 0 8px 22px rgba(201,161,92,0.45);
  transform: translateY(-2px);
}

.link-arrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  display: inline-block;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-arrow:hover { border-bottom-color: var(--gold); transform: translateX(3px); }

/* ---------------- Hero ---------------- */

.hero {
  padding: 96px 0 68px;
  position: relative;
  overflow: hidden;
}

.hero-graphic {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 46%;
  max-width: 620px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-watermark {
  position: absolute;
  top: -14%;
  right: -10%;
  width: 58%;
  max-width: 660px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero-graphic { display: none; }
  .hero-watermark { display: none; }
}

.hero h1 { max-width: 760px; }
.hero .lede { max-width: 620px; font-size: 1.12rem; line-height: 1.65; color: var(--ink); opacity: 0.92; }

.gap-lines {
  position: relative;
  height: 26px;
  max-width: 760px;
  margin: 8px 0 30px;
}

.gap-lines .line {
  position: absolute;
  top: 50%;
  height: 1.5px;
  background: var(--gold);
  width: 46%;
}

.gap-lines .line.left { left: 0; transform: translateX(-14%); }
.gap-lines .line.right { right: 0; transform: translateX(14%); }

.gap-lines .meet-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease 0.95s;
}

.gap-lines.closed .line.left,
.gap-lines.closed .line.right { transform: translateX(0); }

.gap-lines.closed .meet-dot { transform: translate(-50%, -50%) scale(1); }

.gap-lines .line {
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  .gap-lines .line { transition: none; }
  .gap-lines .meet-dot { transition: none; transform: translate(-50%, -50%) scale(1); }
}

/* ---------------- Sections / margin layout ---------------- */

section { padding: 64px 0; }
section.divider-top { border-top: 1px solid rgba(216,217,210,0.7); }

.section-head {
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 14px;
  margin-bottom: 34px;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

.margin-grid {
  display: grid;
  grid-template-columns: var(--margin-col) 1fr;
  gap: 36px;
}

.margin-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.7;
  padding-top: 4px;
}

.margin-note strong { color: var(--brick); display: block; font-weight: 500; }

@media (max-width: 700px) {
  .margin-grid { grid-template-columns: 1fr; gap: 6px; }
  .margin-note { display: flex; gap: 10px; padding-top: 0; }
}

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.card {
  border-top: 2px solid var(--gold);
  border-radius: 0 6px 6px 6px;
  padding: 20px 22px 22px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 1px 3px rgba(22,27,46,0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.card:hover {
  box-shadow: 0 10px 26px rgba(22,27,46,0.09);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.78);
}

.card p { color: var(--ink); font-size: 0.97rem; }

/* ---------------- Trust strip ---------------- */

.strip {
  background: var(--navy);
  color: var(--paper);
  padding: 54px 0;
}

.strip h2, .strip h3 { color: var(--paper); }
.strip .eyebrow { color: var(--gold-dim); }
.strip a.link-arrow { color: var(--gold-dim); }
.strip p { color: var(--paper-dim); }

.strip .btn { border-color: var(--gold); color: var(--paper); }
.strip .btn:hover { background: var(--gold); color: var(--navy); }
.strip .btn.primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.strip .btn.primary:hover { background: var(--gold-dim); }

/* ---------------- Three-column ---------------- */

.col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

@media (max-width: 860px) {
  .col-3 { grid-template-columns: 1fr; }
}

/* ---------------- Table (transparency) ---------------- */

.proceedings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22,27,46,0.06);
}

.proceedings th {
  background: var(--navy);
  color: var(--paper);
  text-align: left;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.proceedings td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s ease;
}

.proceedings tr:hover td { background: rgba(255,255,255,0.85); }
.proceedings tr:last-child td { border-bottom: none; }

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid currentColor;
}

.status.pending { color: var(--brick); background: rgba(139,58,58,0.09); }
.status.review { color: #A8802F; background: rgba(201,161,92,0.14); }
.status.submitted { color: #3E7A52; background: rgba(62,122,82,0.1); }

.table-scroll { overflow-x: auto; }

/* ---------------- Filters (publications) ---------------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-pill {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--gray);
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--gold-dim);
  color: var(--navy);
}

.filter-pill.active {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(201,161,92,0.14);
}

.pub-entry {
  padding: 28px 4px 28px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 6px;
  transition: background 0.2s ease, border-left-color 0.2s ease, padding-left 0.2s ease;
}

.pub-entry:hover { background: rgba(255,255,255,0.45); border-left-color: var(--gold); padding-left: 20px; }
.pub-entry:first-child { padding-top: 4px; }

/* ---------------- Priorities numbered ---------------- */

.priority {
  padding: 24px 4px 24px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 6px;
  transition: background 0.2s ease, border-left-color 0.2s ease, padding-left 0.2s ease;
}

.priority:hover { background: rgba(255,255,255,0.45); border-left-color: var(--gold); padding-left: 20px; }

.priority .num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------------- Note box ---------------- */

.note-box {
  background: var(--paper-dim);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(22,27,46,0.04);
}

/* ---------------- Forms ---------------- */

.form-grid { display: grid; gap: 22px; max-width: 560px; }

label {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder { color: var(--gray); opacity: 0.7; }

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,161,92,0.15);
  outline: none;
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--brick);
}

textarea { resize: vertical; min-height: 140px; }

/* ---------------- Article pages ---------------- */

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.byline-info { font-size: 0.9rem; color: var(--gray); }
.byline-info strong { color: var(--navy); display: block; font-family: var(--serif); font-size: 1rem; }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.article-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--gray);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
}

.article-body h2 {
  margin-top: 42px;
  font-size: 1.35rem;
}

.article-body h3 {
  margin-top: 34px;
  font-size: 1.1rem;
  color: var(--brick);
}

.article-body p { font-size: 1.02rem; }

.article-source-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy);
  color: var(--paper-dim);
  padding: 50px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}

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

.site-footer h3 {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--paper-dim);
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer a:hover { color: var(--gold-dim); padding-left: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(243,244,239,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(243,244,239,0.5);
  font-family: var(--mono);
}
