/* ============================================================
   Unconventional Robotics Symposium — theme & base styles
   Cream paper, condensed navy caps, teal/orange/tan accents.
   Plain CSS — no framework, no build step.
   ============================================================ */

:root {
  --cream:      #F6EEDC;   /* page background */
  --paper:      #FFF8EA;   /* cards */
  --ink:        #172331;   /* navy/slate — headlines + body text */
  --ink-soft:   #2E3A46;
  --muted:      #5C6660;   /* affiliations, captions */
  --teal:       #2F8F83;
  --teal-dark:  #1F6E66;
  --orange:     #E8773A;   /* primary CTA, "talk" accent */
  --orange-dark:#B9512A;
  --periwinkle: #7E8FB8;
  --tan:        #C9A875;
  --tan-light:  #E1CDA2;
  --line:       rgba(23,35,49,.18);
  --maxw: 1120px;
  --radius: 16px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--teal-dark); }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

h1, h2, h3, .kicker, .kicker-accent, nav a {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .95;
}
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 900; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
p { line-height: 1.6; }
.muted { color: var(--muted); }

.container { width: min(var(--maxw), calc(100% - 2.5rem)); margin-inline: auto; }
.container table th,
.container table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.section { padding: 5rem 0; scroll-margin-top: 84px; background: var(--paper); }
.hero.section { background: none; }
.section + .section { border-top: 1px solid var(--line); }

.kicker, .kicker-accent {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.kicker { color: var(--orange); }
.kicker-accent { color: var(--teal-dark); }

/* ------------------------------------------
   NAV
   ------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem;
  background: rgba(246,238,220,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; margin-left: 1.4rem; font-size: 1.05rem; }
.nav a:hover, .nav a.active { color: var(--orange-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0 0 0 auto;
  z-index: 5;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  margin-left: 0 !important;
}
.brand-kicker {
  color: var(--teal-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ------------------------------------------
   BUTTONS
   ------------------------------------------ */
.button {
  display: inline-block;
  padding: .85rem 1.4rem;
  /* border: 2px solid var(--ink); */
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .2s ease;
  min-height: 44px;
}
.button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(232,119,58,.2);
  text-decoration: none;
}
.button:active {
  transform: scale(.97);
}
.button.secondary { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.button.secondary:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: 0 6px 20px rgba(232,119,58,.2); }
.button-disabled { opacity: .5; pointer-events: none; }

/* ------------------------------------------
   HERO
   ------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  border-bottom: 2px solid var(--ink);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero-inner h1 { font-size: clamp(3rem, 9vw, 7rem); margin: .5rem 0; line-height: .9; }
.hero-inner h1 sup { font-size: .5em; vertical-align: super; line-height: 1; }
.hero-inner .hl { color: var(--orange); }
.hero-inner .theme { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.hero-inner .ethos { font-weight: 600; margin: 1rem 0 1.5rem; }
.hero-inner .cta { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero .doodles {
  position: absolute; inset: 0; z-index: -1; opacity: .15;
  background: url('img/doodles.svg') right center / contain no-repeat;
}
@media (max-width: 800px) {
  .hero { padding: 3rem 0; }
  .hero-inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------
   DARK NAVY BAND
   ------------------------------------------ */
.band-dark { background: var(--ink); color: var(--cream); padding: 5rem 0; }
.band-dark h2 { color: var(--cream); }
.band-dark .accent, .band-dark a { color: var(--orange); }
.band-dark .muted { color: var(--tan-light); }
.band-dark .button { background: var(--orange); color: var(--ink); }
.band-dark .panel {
  background: transparent;
  border-color: var(--ink-soft);
  color: var(--cream);
}
.band-dark .panel h3 { color: var(--cream); }
.band-dark table th,
.band-dark table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(201,168,117,.3);
  color: var(--cream);
}
.band-dark table a { color: var(--orange); }
.band-dark .kicker { color: var(--orange); }
.band-dark .speaker-card:hover {box-shadow: 0 10px 26px var(--ink); }


/* ------------------------------------------
   SECTION DIVIDER
   ------------------------------------------ */
.section-divider {
  height: 30px; padding: 3.5rem auto;
  /* width: min(var(--maxw), calc(100% - 2.5rem)); */
  background: var(--paper);
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/wave-divider.svg') repeat-x;
  background-size: auto 22px;
  opacity: .45;
}

.section > .container > h2::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ------------------------------------------
   SPEAKER CARDS
   ------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.4rem; }
.speaker-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 1.1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.speaker-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px var(--tan); }
.speaker-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 12px; 
  /* border: 2px solid var(--ink); */
}
.speaker-card .aff {
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: .8rem 0 .2rem;
}
.speaker-card h3 { font-size: 1.5rem; margin: 0 0 .3rem; }
.speaker-card .talk { font-size: .95rem; color: var(--ink-soft); }
.tag {
  display: inline-block; margin-top: .5rem; padding: .15rem .55rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-dark);
}

/* ------------------------------------------
   SCHEDULE TIMELINE
   ------------------------------------------ */
.day {
  display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem;
  border-top: 3px solid var(--ink); padding: 2.5rem 0;
}
.day-label { font-weight: 800; letter-spacing: .08em; }
.day:nth-child(odd) .day-label { color: var(--teal); }
.day:nth-child(even) .day-label { color: var(--orange-dark); }
.day h2 { font-size: 2.2rem; }
.timeline { border-left: 3px solid var(--ink); }
.slot {
  display: grid; grid-template-columns: 86px 1fr; gap: 1rem;
  padding: 1.1rem 0 1.1rem 1.4rem; position: relative;
}
.slot::before {
  content: '';
  position: absolute; left: -10px; top: 1.5rem;
  width: 14px; height: 14px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--orange);
}
.slot.break::before  { background: var(--tan); }
.slot.poster::before { background: var(--teal); }
.slot.social::before { background: var(--periwinkle); }
.slot time { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.5rem; }
.slot h3 { margin: 0 0 .15rem; }
@media (max-width: 700px) { .day { grid-template-columns: 1fr; gap: 1rem; } }

/* ------------------------------------------
   FOOTER
   ------------------------------------------ */
.footer { background: var(--ink); color: var(--cream); padding: 2.5rem 0; border-top: 3px solid var(--orange); }
.footer a { color: var(--orange); }
.footer a:hover { color: var(--tan-light); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-title { margin: 0 0 .25rem; font-size: 1rem; font-weight: 800; color: var(--cream); }
.footer-meta { margin: 0 0 .35rem; font-size: .85rem; color: var(--tan-light); }
.footer-ethos { margin: 0; font-size: .85rem; color: var(--tan-light); font-style: italic; }
.footer-heading { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { font-size: .9rem; }
.footer-col p { margin: 0 0 .35rem; font-size: .9rem; }
.footer-ri { margin-top: .5rem; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer { padding: 2rem 0; }
}

/* ------------------------------------------
   CONTENT PANELS
   ------------------------------------------ */
.content-grid { display: grid; gap: 14px; }
.content-grid + .content-grid { margin-top: 14px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
}
.panel h3 { margin: 0 0 .5rem; }
.panel p + p { margin-top: .5rem; }
.panel ul, .panel ol { margin: .5rem 0; padding-left: 1.25rem; }

/* ------------------------------------------
   ORGANIZERS
   ------------------------------------------ */
.organizer-meta { display: grid; gap: 20px; margin-top: 14px; }
.organizer-banner {
  display: flex; align-items: center; gap: 20px;
}
.organizer-logo { width: 80px; height: auto; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 2px; }
.organizer-banner-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sponsor-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 2px dashed var(--line);
  border-radius: var(--radius); padding: 32px 18px; min-height: 100px;
  color: var(--muted); font-size: .85rem; font-weight: 500; opacity: .7;
}

/* ------------------------------------------
   MAP
   ------------------------------------------ */
.map-panel { padding: 12px; }
.map-frame { width: 100%; min-height: 380px; border: 0; border-radius: 12px; }
.custom-marker-icon { background: transparent; border: 0; }
.custom-marker-pin {
  position: relative; display: block; width: 20px; height: 20px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(23,35,49,.2);
}
.custom-marker-pin::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(255,255,255,.9); }
.custom-marker-pin--blue { background: var(--teal); }
.custom-marker-pin--green { background: var(--teal-dark); }
.custom-marker-pin--orange { background: var(--orange); }

/* ------------------------------------------
   FORMS
   ------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; }
input, select, textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--paper);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,143,131,.15);
}
textarea { min-height: 120px; resize: vertical; }
.full-width { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------
   GALLERY / LIGHTBOX
   ------------------------------------------ */
.gallery-item { cursor: pointer; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid .speaker-card { padding: 0px; }
.gallery-grid .speaker-card img { aspect-ratio: 4/3; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px); cursor: pointer;
}
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: min(85vw, 900px); max-height: 85vh; cursor: default; }
.lightbox-img {
  display: block; width: 100%; height: auto; max-height: 85vh;
  object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 2.4rem; cursor: pointer; padding: 4px 12px;
  line-height: 1; opacity: .8; transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }

/* ------------------------------------------
   RESPONSIVE
   ------------------------------------------ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(246,238,220,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 14px 14px; gap: 2px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 1.05rem; border-radius: 10px; margin-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-up, .form-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 20px, var(--maxw)); }
  .section { padding: 3rem 0; }
  .button { width: 100%; }
  .form-actions { align-items: stretch; }
  .form-actions .button { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
  .organizer-banner { flex-direction: column; text-align: center; }
  .sponsor-grid { grid-template-columns: 1fr; }
}
