/* ============================================================
   Thunder Bay AI Hackathon
   Palette drawn from the AI Collective banner (painted orange/blue)
   and the NOIC mark (navy + rust dotted rings).
   ============================================================ */

:root {
  --paper: #faf6f0;
  --paper-tint: #f3ecdf;
  --ink: #1e1b16;
  --ink-soft: #4c453b;
  --orange: #e4571f;
  --orange-deep: #c2410c;
  --blue: #2c6e9e;
  --navy: #1f4e6b;
  --navy-deep: #17384d;
  --rust: #9c4a21;
  --stroke: linear-gradient(100deg, #f07f2e 0%, #e4571f 30%, #b25c46 55%, #2c6e9e 80%, #3b83b5 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a { color: var(--blue); }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 0 var(--orange-deep);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #93300a;
}

.btn-ghost {
  color: var(--navy);
  border: 2px solid rgba(31, 78, 107, 0.35);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(31, 78, 107, 0.06);
}

.btn-light {
  background: var(--paper);
  color: var(--navy-deep);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 4.5rem;
}

/* painted band echoing the AIC banner */
.brushstroke {
  height: 0.65rem;
  background: var(--stroke);
  border-radius: 0 0 3px 3px;
  margin-bottom: 4.5rem;
}

.hero-inner { position: relative; }

.ring-motif {
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: clamp(14rem, 28vw, 22rem);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.25rem;
}

/* the landing headline runs in Archivo, slightly expanded;
   section headings stay in Fraunces */
.hero h1 {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
}

.lede {
  max-width: 36rem;
  margin-top: 1.6rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.25rem;
}

.hosts {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.hosts-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hosts-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.logo { display: block; }

/* shown until the real logo files land in assets/ */
.logo-fallback {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.logo-noic { height: 3.1rem; width: auto; }

.logo-aic {
  height: 2.9rem;
  width: auto;
  border-radius: 4px;
}

/* XPawn is set as a wordmark until a logo file is supplied */
.wordmark {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  color: var(--navy-deep);
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover { color: var(--orange-deep); }

/* ======= Sections ======= */

.section { padding-block: 4.5rem; }

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1.25rem;
}

/* short painted underline on headings */
.underline-stroke {
  display: inline-block;
  padding-bottom: 0.35rem;
  background: var(--stroke) no-repeat left bottom / 4.5rem 0.32rem;
}

.section-intro {
  max-width: 38rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.section-tint { background: var(--paper-tint); }

/* ======= Timeline + perks ======= */

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

.timeline {
  list-style: none;
  border-left: 3px solid rgba(31, 78, 107, 0.2);
}

.timeline li {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--paper);
}

.timeline .time {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15rem;
}

.timeline h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }

.timeline p { color: var(--ink-soft); font-size: 1rem; }

.perks {
  display: grid;
  gap: 1rem;
}

.perk {
  background: #fff;
  border: 1px solid rgba(30, 27, 22, 0.09);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(30, 27, 22, 0.05);
}

.perk h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }

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

/* ======= Participate ======= */

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  border-top: 5px solid;
  border-image: var(--stroke) 1;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 2px 8px rgba(30, 27, 22, 0.07);
}

.team-card .team-size {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.team-card p:not(.team-size) {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.team-card p:not(.team-size) + p { margin-top: 0.85rem; }

/* ======= Steps ======= */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  border: 2px dashed rgba(31, 78, 107, 0.45);
}

.fine-print {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ======= Business card ======= */

.biz-card {
  background: var(--navy-deep);
  color: #eef3f6;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

/* faint painted arc in the card corner */
.biz-card::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1rem dashed rgba(240, 127, 46, 0.18);
}

.biz-body { position: relative; max-width: 38rem; }

.biz-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0a06e;
  margin-bottom: 1rem;
}

.biz-card h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.biz-card p { margin-bottom: 1rem; color: #d5e0e8; }

.biz-card p strong { color: #fff; }

.biz-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.deadline {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0a06e;
}

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

footer {
  border-top: 1px solid rgba(30, 27, 22, 0.12);
  padding: 3rem 0 3.5rem;
  margin-top: 1.5rem;
}

.footer-inner { text-align: center; }

.footer-tag {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-hosts {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

@media (max-width: 46rem) {
  .expect-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .steps { grid-template-columns: 1fr; gap: 1.1rem; }

  .ring-motif { display: none; }

  .brushstroke { margin-bottom: 3rem; }

  .section { padding-block: 3.25rem; }

  .hosts { margin-top: 3rem; }
}

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