/* How to win a hackathon. Same look as the /resources hub (resources.css): white canvas, system type, quiet colour,
   and the photos shown large with rounded corners. The navbar is styled by site-nav.css. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --kicker: #bf4800;
  --radius: 24px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --maxw: 1040px;
  --gutter: max(clamp(20px, 5vw, 40px), calc((100% - var(--maxw)) / 2));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.paper,
.tape {
  display: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Kickers and section heads */
.eyebrow,
.section-label {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

article > section {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  scroll-margin-top: 52px;
}

.trust,
.steps,
.checklist {
  background: var(--bg-soft);
}

h2 {
  max-width: 800px;
  margin-top: 8px;
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 740px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

/* Hero: the headline next to the winning moment */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 104px);
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(46px, 7.4vw, 92px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
}

.lede {
  max-width: 560px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.jump a {
  padding: 7px 14px;
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.jump a:hover {
  background: #e3e3e8;
}

/* Photos: no frames, no tilt, room to breathe */
.hero-polaroid,
.polaroid {
  position: relative;
  margin: 0;
}

.hero-polaroid img,
.polaroid img {
  width: 100%;
  background: var(--bg-soft);
  object-fit: cover;
}

.hero-polaroid img {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}

.hero-polaroid figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  margin-top: clamp(28px, 4vw, 48px);
}

.polaroid {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e8ed;
}

.polaroid img {
  height: 100%;
  aspect-ratio: 4 / 5;
  transition: transform 0.6s var(--ease);
}

.polaroid:hover img {
  transform: scale(1.03);
}

/* The landscape shot spans two columns and fills the row the portrait next to it sets. */
.polaroid.wide {
  grid-column: span 2;
}

.polaroid.wide img {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.polaroid figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  margin: clamp(12px, 1.8vw, 22px) 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
}

.stats strong {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stats span {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.42;
}

/* Rules: grey cards on white */
.rule-list {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.rule-list > li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(24px, 3.6vw, 40px);
  border-radius: 28px;
  background: var(--bg-soft);
}

.rule-no {
  color: var(--ink-faint);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rule-list h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.rule-list p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--ink-soft);
}

.rule-list .how {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.rule-list .how strong {
  font-weight: 600;
}

.rule-list .how a,
.step-list li a {
  color: var(--accent-ink);
  text-decoration: none;
}

.rule-list .how a:hover,
.step-list li a:hover {
  text-decoration: underline;
}

/* Steps */
.phase {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.steps .section-intro + .phase {
  margin-top: clamp(28px, 4vw, 48px);
}

.phase-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.phase-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--kicker);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.step-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 32px;
  padding-left: 50px;
  color: var(--ink-soft);
}

.step-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.step-list li em {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px;
  border-radius: 980px;
  background: #e8e8ed;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: 0.1em;
}

.step-list li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  content: counter(list-item, decimal-leading-zero);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Pitch */
.pitch-script {
  display: grid;
  max-width: 840px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 6px 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  list-style: none;
}

.pitch-script li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  margin: 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-soft);
}

.pitch-script li:first-child {
  border-top: 0;
}

.pitch-script strong {
  color: var(--ink);
  font-weight: 600;
}

.time {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.aside {
  max-width: 740px;
  margin-top: 22px;
  color: var(--ink-soft);
}

/* Video: the black band */
.video {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  background: #000;
  color: #f5f5f7;
}

.video .section-label {
  color: #a1a1a6;
}

.video-copy p:last-child {
  max-width: 420px;
  margin-top: 16px;
  color: #a1a1a6;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

.video-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #a1a1a6;
}

.video-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.video-list strong {
  color: #f5f5f7;
  font-weight: 600;
}

/* Checklist */
.check-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(28px, 4vw, 48px);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 26px 26px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
}

/* Floated so the legend sits inside the card instead of on its edge. */
legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  clear: both;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  font-size: 16px;
  line-height: 1.42;
  cursor: pointer;
}

fieldset legend + label {
  border-top: 0;
}

fieldset input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

fieldset label:has(input:checked) {
  color: var(--ink-faint);
  text-decoration: line-through;
}

/* Reading */
.reading-list {
  display: grid;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.reading-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  transition: background 0.2s;
}

.reading-list a:hover {
  background: var(--bg-soft);
}

.reading-list strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.reading-list a:hover strong {
  color: var(--accent-ink);
}

.reading-list em {
  color: var(--ink-soft);
  font-size: 15px;
  font-style: normal;
}

/* Closing statement */
.closing {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  background: #000;
  color: #f5f5f7;
  text-align: center;
}

.closing p {
  color: #a1a1a6;
  font-size: clamp(18px, 2vw, 21px);
}

.closing strong {
  display: block;
  max-width: 24ch;
  margin: 12px auto 0;
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover {
  background: #0077ed;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px var(--gutter) 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer a {
  color: var(--accent-ink);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

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

  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polaroid.wide img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .phase,
  .video {
    grid-template-columns: 1fr;
  }

  .phase {
    gap: 18px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero-polaroid img {
    border-radius: var(--radius);
  }

  .polaroid {
    border-radius: 18px;
  }

  .polaroid figcaption {
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 10px;
    font-size: 12px;
  }

  .rule-list > li {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .check-columns {
    grid-template-columns: 1fr;
  }

  .pitch-script li {
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0 22px;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .polaroid:hover img {
    transform: none;
  }
}
