/* ==========================================================================
   Neribo Summit
   Palette:  cobalt #1D2FBF, night navy #0B1240, danfo yellow #FFC627,
             sky tint #EEF0FF, white, ink #14183A
   Type:     Archivo (headings, countdown), Public Sans (body, buttons)
   ========================================================================== */

:root {
  --cobalt: #1d2fbf;
  --cobalt-dark: #16239a;
  --night: #0b1240;
  --yellow: #ffc627;
  --yellow-light: #ffd45c;
  --tint: #eef0ff;
  --paper: #ffffff;
  --ink: #14183a;
  --muted: #4b5079;
  --line: #d6daf3;

  --font-head: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 5px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1rem; max-width: 62ch; }
h1, h2, h3, h4 { margin: 0; overflow-wrap: anywhere; }
ul, ol, dl, dd { margin: 0; padding: 0; }
figure { margin: 0; }

a { color: var(--cobalt); text-underline-offset: 0.2em; }
a:hover { color: var(--night); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--yellow-light); }

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  background: var(--yellow);
  color: var(--night);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-yellow { background: var(--yellow); color: var(--night); }
.btn-yellow:hover { background: var(--yellow-light); color: var(--night); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--cobalt); border-color: #fff; }
.btn-lg { min-height: 3.3rem; padding-inline: 1.7rem; font-size: 1.1rem; }
.btn-xl { min-height: 4.4rem; padding: 1rem 2.6rem; font-size: 1.35rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cobalt);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand-mark {
  flex: none;
  width: auto;
  height: 2.75rem;
  padding: 0.3rem 0.4rem;
  background: #fff;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--yellow); color: #fff; }

.bar-cta { min-height: 2.75rem; padding-inline: 1.15rem; white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.15rem; height: 2px;
  background: #fff;
  content: "";
  position: relative;
}
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 34rem) {
  .bar { gap: 0.5rem; }
  .brand { font-size: 1.05rem; gap: 0.45rem; }
  .brand span { white-space: normal; line-height: 1.1; max-width: 5.2rem; }
  .brand-mark { height: 2.4rem; padding: 0.25rem 0.35rem; }
  .bar-cta { padding-inline: 0.8rem; font-size: 0.95rem; min-height: 2.6rem; }
  .menu-toggle { width: 2.6rem; height: 2.6rem; }
}
@media (max-width: 24rem) {
  .bar { gap: 0.4rem; }
  .brand { font-size: 0.88rem; gap: 0.3rem; }
  .brand span { white-space: normal; line-height: 1.1; max-width: 4.4rem; }
  .brand-mark { height: 2rem; padding: 0.2rem 0.3rem; }
  .bar-cta { padding-inline: 0.5rem; font-size: 0.82rem; }
  .menu-toggle { width: 2.3rem; height: 2.3rem; }
}

@media (max-width: 56rem) {
  .bar-cta { margin-left: auto; }
  .site-nav { margin-left: 0; }

  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cobalt);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.5rem 1.25rem 1rem;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a {
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .js .site-nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.2); }

  /* Without JavaScript the links simply wrap under the logo */
  html:not(.js) .bar { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
}

/* ---------- Photos ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #2a3dd0, #16239a);
  border-radius: var(--radius);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-wide { aspect-ratio: 4 / 3; }
.photo-portrait { aspect-ratio: 4 / 5; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cobalt);
  color: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: end;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}
.hero-copy { min-width: 0; }

.hero-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--yellow-light);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.7rem, 1.2rem + 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero h1 .year { display: block; color: var(--yellow); }

.facts { display: grid; gap: 0.2rem; margin-bottom: 1.6rem; }
.facts div { display: flex; flex-direction: column; margin-bottom: 0.5rem; }
.facts dt { color: #c9d0ff; font-size: 1rem; }
@media (min-width: 40rem) {
  .facts div { flex-direction: row; gap: 1rem; margin-bottom: 0; }
  .facts dt { flex: 0 0 6.5rem; font-size: 1.05rem; }
}
.facts dd { font-weight: 700; font-size: 1.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-photo { min-width: 0; }
.hero-photo .photo { aspect-ratio: 16 / 9; }
@media (min-width: 56rem) { .hero-photo .photo { aspect-ratio: 1 / 1; } .hero-photo .photo img { object-position: 52% 50%; } }
.hero-photo .photo { border-radius: 0; }
@media (min-width: 56rem) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3.5rem; }
}

/* ---------- Danfo stripe ---------- */
.stripe {
  height: 1rem;
  background: repeating-linear-gradient(-45deg, var(--night) 0 14px, var(--yellow) 14px 28px);
}

/* ---------- Countdown ---------- */
.countdown-band {
  background: var(--yellow);
  color: var(--night);
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}
.countdown-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}
.countdown-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.1;
  margin: 0;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 44rem;
}
.countdown[hidden], .countdown-label[hidden] { display: none; }
.tile { display: flex; flex-direction: column; }
.tile .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 1.2rem + 6.2vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tile .unit { font-weight: 700; font-size: 1rem; margin-top: 0.15rem; }
.countdown-done {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  line-height: 1.2;
  max-width: 30rem;
}
.countdown-done[hidden] { display: none; }

@media (min-width: 56rem) {
  .countdown-inner { grid-template-columns: 12rem minmax(0, 1fr); gap: 2.5rem; }
}

/* ---------- Shared section styles ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--tint); }

.h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--cobalt);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-head { margin-bottom: 2.5rem; max-width: 40rem; }
.section-head .h2 { margin-bottom: 0.75rem; }
.section-intro { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 40rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.lead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 34rem;
}
.about-copy p { max-width: 38rem; }
.minor {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--cobalt);
  margin: 1.75rem 0 0.75rem;
}
.audience { list-style: none; max-width: 36rem; }
.audience li {
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.audience li:last-child { border-bottom: 1px solid var(--line); }
.audience li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 0.7rem; height: 0.7rem;
  background: var(--yellow);
  border: 2px solid var(--night);
  border-radius: 50%;
}
@media (min-width: 58rem) {
  .about { grid-template-columns: 6fr 5fr; gap: 4.5rem; }
}

/* ---------- Agenda timeline ---------- */
.agenda { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.timeline { list-style: none; position: relative; }
.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 1.25rem 0 1.4rem 1.6rem;
  position: relative;
  border-left: 3px solid var(--cobalt);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem; top: 1.7rem;
  width: 0.95rem; height: 0.95rem;
  background: var(--yellow);
  border: 3px solid var(--night);
  border-radius: 50%;
}
.timeline li + li { border-top: 1px solid transparent; }
.when {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cobalt);
}
.what h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.what p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }

@media (min-width: 58rem) {
  .agenda { grid-template-columns: 4fr 8fr; gap: 4.5rem; align-items: start; }
  .agenda-head { position: sticky; top: 6rem; }
  .timeline li { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding-left: 2rem; }
  .timeline li::before { top: 1.75rem; }
}

/* ---------- Speakers ---------- */
.speakers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.speaker { max-width: 24rem; }
.speaker .photo { margin-bottom: 1rem; }
.speaker h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.speaker .topic {
  font-weight: 700;
  color: var(--cobalt);
  margin: 0.25rem 0 0.5rem;
}
.speaker p:last-child { margin: 0; font-size: 1.05rem; color: var(--muted); }

@media (min-width: 40rem) and (max-width: 61.99rem) {
  .speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}
@media (min-width: 62rem) {
  .speakers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .speaker:nth-child(2) { margin-top: 3rem; }
  .speaker:nth-child(3) { margin-top: 6rem; }
}

/* ---------- Register ---------- */
.register {
  background: var(--cobalt);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1rem solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--night) 0 14px, var(--yellow) 14px 28px) 1;
}
.register-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.register h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.register p { font-size: 1.2rem; color: #dfe3ff; max-width: 34rem; }
.register-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
.register-actions .btn-xl { width: 100%; }

@media (min-width: 58rem) {
  .register-inner { grid-template-columns: 7fr 5fr; gap: 4.5rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #cdd3f5;
  padding-top: 3rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow-light); }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.site-footer h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }

.footer-base {
  margin-top: 2.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}
.footer-base p { margin: 0; max-width: none; }

@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
