/* ==========================================================================
   RELMUN '26 — Editorial / underground-dispatch design system
   ========================================================================== */

:root{
  --ink:        #14161c;
  --ink-soft:   #1d2028;
  --cream:      #f2ead9;
  --cream-dim:  #e9e0cc;
  --paper:      #efe6d4;
  --blue:       #1e3fd1;
  --blue-deep:  #142c99;
  --blue-ink:   #101f6b;
  --gold:       #c9a24b;
  --line:       rgba(20,22,28,0.16);
  --line-light: rgba(242,234,217,0.22);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body:    "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --wrap: 1180px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a{ color: inherit; text-decoration: none; }

ul{ list-style: none; margin:0; padding:0; }

h1,h2,h3{ font-family: var(--font-display); margin: 0; }

.section-inner{
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--edge);
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--blue); color:var(--cream); padding:.75rem 1.25rem; z-index:999;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

/* Fixed grain overlay -- never applied to scrolling containers */
.grain-overlay{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
  animation: grain-shift 8s steps(6) infinite;
}
@keyframes grain-shift{
  0%,100%{ transform: translate(0,0); }
  20%{ transform: translate(-2%,-1%); }
  40%{ transform: translate(1%,2%); }
  60%{ transform: translate(-1%,1%); }
  80%{ transform: translate(2%,-2%); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(242,234,217,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}

.navbar{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}
.brand-mark{ color: var(--ink); }
.brand-year{ color: var(--blue); }

.nav-menu{
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-link:hover, .nav-link:focus-visible{
  border-color: var(--blue);
  color: var(--blue-deep);
}
.nav-link--cta{
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-bottom: none;
}
.nav-link--cta:hover, .nav-link--cta:focus-visible{
  background: var(--blue);
  color: var(--cream);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar{
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem var(--edge) 4rem;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-texture{
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(180deg, rgba(242,234,217,0.035) 0px, rgba(242,234,217,0.035) 1px, transparent 1px, transparent 3px),
    radial-gradient(circle at 15% 20%, rgba(30,63,209,0.28), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(30,63,209,0.16), transparent 50%);
}

.hero-brushstroke{
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(60vw, 720px);
  height: 340px;
  z-index: 0;
  background-image: url("../images/brush-stroke.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  animation: brush-drift 14s ease-in-out infinite;
}
@keyframes brush-drift{
  0%,100%{ transform: translate(0,0) rotate(0deg); }
  50%{ transform: translate(-1.5%, 1.5%) rotate(-1.5deg); }
}

.hero-tape{
  position: absolute;
  width: 130px;
  height: 40px;
  background: rgba(242,234,217,0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 2;
}
.hero-tape--tl{ top: 4.5rem; left: -1.5rem; transform: rotate(-8deg); }
.hero-tape--br{ bottom: 3.5rem; right: 2rem; transform: rotate(6deg); display:none; }

.hero-kicker{
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--blue);
  padding-left: 0.75rem;
}

.hero-title{
  position: relative; z-index: 1;
  font-weight: 900;
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0;
}
.hero-title-year{
  color: var(--blue);
  -webkit-text-stroke: 2px var(--cream);
  margin-left: 0.15em;
}

.hero-tagline{
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.16em;
  margin-top: 1.5rem;
  color: var(--cream);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 0.6rem 0;
}

.hero-sub{
  position: relative; z-index: 1;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 32ch;
  margin-top: 1.5rem;
  color: rgba(242,234,217,0.82);
  font-style: italic;
}

.hero-actions{
  position: relative; z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-reg-status{
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,234,217,0.75);
}
.hero-reg-status strong{ color: var(--gold); }
.hero-reg-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-scroll{
  position: absolute;
  bottom: 2rem;
  left: var(--edge);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,234,217,0.6);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-scroll span{
  display: inline-block;
  width: 1px;
  height: 32px;
  background: rgba(242,234,217,0.5);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse{
  0%,100%{ transform: scaleY(1); opacity: .5; }
  50%{ transform: scaleY(0.55); opacity: 1; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 2px solid currentColor;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible{ transform: translate(-2px,-2px); }

.btn--primary{
  background: var(--blue);
  color: var(--cream);
  border-color: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover, .btn--primary:focus-visible{
  background: var(--blue-deep);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--outline{
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 4px 4px 0 var(--blue);
}
.btn--outline:hover, .btn--outline:focus-visible{
  background: var(--cream);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}

.btn--large{
  font-size: 1rem;
  padding: 1.3rem 2.5rem;
}

.btn--disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn--disabled:hover, .btn--disabled:focus-visible{
  transform: none;
}

/* ==========================================================================
   Shared section chrome
   ========================================================================== */

.section{ padding: 6rem 0; position: relative; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}
.eyebrow--light{ color: var(--gold); }

.section-title{
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.section-title--light{ color: var(--cream); }

.section-lede{
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.ink-line{
  width: 90px;
  height: 6px;
  margin-top: 1.5rem;
  background: var(--blue);
  clip-path: polygon(0 40%, 100% 0, 100% 60%, 0 100%);
}

/* ==========================================================================
   About
   ========================================================================== */

.about{ background: var(--cream); border-bottom: 2px solid var(--ink); }

.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.about-heading{ position: sticky; top: 6rem; }

.about-copy .lead{
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 0;
}
.about-copy p{ color: var(--ink-soft); max-width: 62ch; }

/* ==========================================================================
   Committees
   ========================================================================== */

.committees{
  background: var(--paper);
  background-image:
    radial-gradient(circle, rgba(20,22,28,0.09) 1px, transparent 1px);
  background-size: 7px 7px;
  border-bottom: 2px solid var(--ink);
}

.committee-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.committee-card{
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 2.25rem 1.75rem 2rem;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.committee-card:nth-child(2){ transform: translateY(1.5rem); }
.committee-card:hover{
  transform: translate(-4px,-4px);
  box-shadow: 12px 12px 0 var(--ink);
}
.committee-card:nth-child(2):hover{ transform: translate(-4px, calc(1.5rem - 4px)); }

.committee-stamp{
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.15rem 0.5rem;
  transform: rotate(3deg);
}

.committee-acronym{
  font-size: 3rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.committee-card--unsc .committee-acronym{ color: var(--blue-deep); }
.committee-card--unhrc .committee-acronym{ color: var(--ink); }
.committee-card--unodc .committee-acronym{ color: var(--blue-ink); }

.committee-name{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1rem;
}

.committee-desc{
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.committee-link{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  transition: color .18s ease, gap .18s ease;
}
.committee-link:hover, .committee-link:focus-visible{
  color: var(--blue-deep);
  gap: 0.7rem;
}

/* ==========================================================================
   Executive Board
   ========================================================================== */

.board{ background: var(--ink); color: var(--cream); }

.board-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.board-card{ text-align: left; }

.board-photo{
  width: 128px;
  aspect-ratio: 1;
  border: 2px solid var(--cream);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.board-photo svg{ width: 100%; height: 100%; }

.board-photo--empty{
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(242,234,217,0.35);
  border-style: dashed;
}

.board-name{
  font-size: 1.5rem;
  font-weight: 700;
}
.board-name--placeholder{ color: rgba(242,234,217,0.5); }

.board-role{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 0.35rem;
}

.board-cta{
  margin-top: 3rem;
}

.board-note{
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(242,234,217,0.5);
  border-top: 1px solid var(--line-light);
  padding-top: 1.25rem;
}

/* ==========================================================================
   Register
   ========================================================================== */

.register{
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}

.register-texture{
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(20,22,28,0.06) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.register-inner{ position: relative; text-align: center; }

.register-title{
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin-top: 1rem;
}

.register-sub{
  font-size: 1.15rem;
  margin-top: 1.25rem;
  color: rgba(242,234,217,0.85);
}

.register-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.register-panel{
  background: rgba(20,22,28,0.18);
  border: 2px solid var(--cream);
  padding: 2rem 2rem 2.25rem;
}

.register-panel-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
}

.register-panel-title{
  font-weight: 800;
  font-size: 1.6rem;
  margin-top: 1rem;
}

.register-panel-copy{
  margin-top: 0.85rem;
  font-size: 0.98rem;
  color: rgba(242,234,217,0.85);
}
.register-panel-copy a{
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.register-panel .btn{ margin-top: 1.5rem; }

.register-date{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin-top: 0.5rem;
  color: var(--cream);
}

.register-mymun{
  position: relative;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(242,234,217,0.75);
  text-align: center;
}
.register-mymun a{
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.register .btn--primary{
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
}
.register .btn--primary:hover, .register .btn--primary:focus-visible{
  background: var(--ink-soft);
  box-shadow: 6px 6px 0 var(--gold);
}

.register .btn--outline{
  color: var(--cream);
  border-color: var(--cream);
}
.register .btn--outline:hover, .register .btn--outline:focus-visible{
  background: var(--cream);
  color: var(--ink);
}

/* ==========================================================================
   Important information
   ========================================================================== */

.info{ background: var(--cream); border-top: 2px solid var(--ink); }

.info-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.info-card{
  background: var(--cream);
  padding: 1.75rem;
}

.info-label{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.info-value{
  margin-top: 0.75rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.info-value--placeholder{
  color: var(--ink-soft);
  font-style: italic;
}
.info-value a{ text-decoration: underline; text-decoration-color: var(--blue); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
}

.footer-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  margin: 0;
}
.footer-tagline{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 0.4rem;
}

.footer-links{ display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(242,234,217,0.85);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.footer-links a:hover, .footer-links a:focus-visible{
  color: var(--cream);
  border-color: var(--blue);
}

.placeholder-tag{
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.05rem 0.35rem;
  margin-left: 0.4rem;
}

.footer-fine{
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(242,234,217,0.4);
  margin-top: 3rem;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(18px);
}
.reveal-in{
  animation: reveal-up .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal--1.reveal-in{ animation-delay: .05s; }
.reveal--2.reveal-in{ animation-delay: .15s; }
.reveal--3.reveal-in{ animation-delay: .28s; }
.reveal--4.reveal-in{ animation-delay: .4s; }
.reveal--5.reveal-in{ animation-delay: .52s; }

@keyframes reveal-up{
  to{ opacity: 1; transform: translateY(0); }
}

.scroll-reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.scroll-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .grain-overlay, .hero-brushstroke, .hero-scroll span{ animation: none; }
  .reveal, .scroll-reveal{ opacity: 1; transform: none; }
  html{ scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-heading{ position: static; }
  .committee-grid{ grid-template-columns: 1fr; }
  .committee-card:nth-child(2){ transform: none; }
  .committee-card:hover{ transform: translate(-3px,-3px); }
  .info-grid{ grid-template-columns: 1fr; }
  .register-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav-toggle{ display: flex; }

  .nav-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-menu.is-open{ max-height: 400px; }
  .nav-menu li{ border-top: 1px solid var(--line); }
  .nav-link{
    display: block;
    padding: 1rem var(--edge);
    border-bottom: none;
  }
  .nav-link--cta{ margin: 0.75rem var(--edge); text-align: center; }

  .hero-tape--tl{ top: 5.5rem; }
  .hero{ padding-top: 8rem; }
}

@media (max-width: 560px){
  .committee-card{ box-shadow: 5px 5px 0 var(--ink); }
  .committee-card:hover{ box-shadow: 7px 7px 0 var(--ink); }
  .btn{ width: 100%; justify-content: center; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
}
