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94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
"""
Build Small β€” Gradio + Hugging Face Hackathon
Org README Space.

This Space renders the hackathon landing page using gr.HTML().
Custom CSS strips Gradio's default container so the design renders edge-to-edge.
"""

import gradio as gr


HEAD_HTML = """
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Caveat:wght@500;700&display=swap" rel="stylesheet">
"""

# Override Gradio's default container so the landing page renders edge-to-edge
CUSTOM_CSS = """
.gradio-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F2EAD8 !important;
}
.gradio-container > .main, .gradio-container > .wrap, .main, .wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
.app, .container, .contain {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
footer { display: none !important; }
.show-api { display: none !important; }
.built-with { display: none !important; }
body { background: #F2EAD8 !important; }
"""

LANDING_HTML = r"""
<style>
  :root {
    --paper: #F2EAD8;
    --paper-deep: #E8DEC6;
    --ink: #1E1A12;
    --ink-soft: #4A3F2E;
    --moss: #3D5A3A;
    --moss-deep: #2A3F28;
    --ember: #B8501E;
    --ember-soft: #D67A3F;
    --gold: #B98C2C;
    --sage: #8FA689;
    --twilight: #2C3338;
    --rule: rgba(30, 26, 18, 0.18);
  }

  /* Scoped reset for the landing wrapper only */
  .build-small * { box-sizing: border-box; margin: 0; padding: 0; }
  .build-small {
    background: var(--paper);
    color: var(--ink);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 19px;
    line-height: 1.55;
    overflow-x: hidden;
    background-image:
      radial-gradient(circle at 20% 10%, rgba(184,80,30,0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 90%, rgba(61,90,58,0.05) 0%, transparent 45%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.07  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    width: 100%;
    min-height: 100vh;
  }
  .build-small .display { font-family: 'Fraunces', 'Times New Roman', serif; font-variation-settings: "SOFT" 100, "opsz" 144; }
  .build-small .hand { font-family: 'Caveat', cursive; }

  /* ========= NAV ========= */
  .build-small nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(242, 234, 216, 0.85);
    border-bottom: 1px solid var(--rule);
  }
  .build-small nav .inner {
    max-width: 1200px; margin: 0 auto;
    padding: 18px 32px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px;
  }
  .build-small .brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    font-variation-settings: "SOFT" 100;
  }
  .build-small .brand .sm { color: var(--ember); font-style: italic; }
  .build-small nav ul {
    display: flex; gap: 28px; list-style: none;
    font-family: 'EB Garamond', serif;
    font-size: 16px;
  }
  .build-small nav a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
  .build-small nav a:hover { color: var(--ember); }
  .build-small .register-btn {
    background: var(--ink);
    color: var(--paper);
    padding: 10px 22px;
    border-radius: 999px;
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
  }
  .build-small .register-btn:hover { background: var(--ember); color: var(--paper); transform: translateY(-1px); }

  /* ========= HERO ========= */
  .build-small .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 60px;
    position: relative;
    text-align: center;
  }
  .build-small .hero .kicker {
    font-family: 'Caveat', cursive;
    font-size: 26px;
    color: var(--ember);
    margin-bottom: 12px;
    transform: rotate(-1.5deg);
    display: inline-block;
  }
  .build-small .hero h1 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 600;
    font-size: clamp(64px, 12vw, 168px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 8px 0 24px;
  }
  .build-small .hero h1 em {
    font-style: italic;
    color: var(--ember);
    font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
  }
  .build-small .hero .lede {
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 36px;
  }
  .build-small .hero .meta-row {
    display: inline-flex;
    gap: 32px;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    font-size: 15px;
    color: var(--ink-soft);
    flex-wrap: wrap;
    justify-content: center;
  }
  .build-small .hero .meta-row .dot { color: var(--ember); }
  .build-small .hero .meta-row strong { color: var(--ink); font-weight: 500; }

  .build-small .scribble {
    display: block;
    margin: 0 auto;
    width: 120px;
    color: var(--ember);
    opacity: 0.6;
  }

  /* ========= INTRO ========= */
  .build-small .intro {
    max-width: 720px;
    margin: 80px auto;
    padding: 0 32px;
    text-align: center;
  }
  .build-small .intro h2 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "SOFT" 80;
    font-size: 38px;
    font-weight: 400;
    font-style: italic;
    color: var(--moss-deep);
    margin-bottom: 24px;
    line-height: 1.2;
  }
  .build-small .intro p {
    font-size: 19px;
    color: var(--ink-soft);
    margin-bottom: 18px;
  }
  .build-small .intro p strong { color: var(--ink); font-weight: 600; }

  /* ========= TRACKS ========= */
  .build-small .tracks {
    max-width: 1280px;
    margin: 100px auto 80px;
    padding: 0 32px;
  }
  .build-small .section-label {
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--ember);
    margin-bottom: 8px;
    transform: rotate(-1deg);
  }
  .build-small .section-title {
    text-align: center;
    font-family: 'Fraunces', serif;
    font-variation-settings: "SOFT" 100;
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 60px;
    color: var(--ink);
  }

  .build-small .track-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .build-small .track {
    padding: 56px 48px;
    position: relative;
  }
  .build-small .track:first-child { border-right: 1px solid var(--rule); }
  .build-small .track .chapter {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--ember);
    margin-bottom: 12px;
  }
  .build-small .track .illustration {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
  .build-small .track h3 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "SOFT" 100, "wght" 500;
    font-size: 42px;
    line-height: 1.05;
    margin-bottom: 18px;
  }
  .build-small .track-1 h3 { color: var(--moss-deep); }
  .build-small .track-2 h3 { color: var(--ember); font-style: italic; }
  .build-small .track .subtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--ink-soft);
    margin-bottom: 28px;
  }
  .build-small .track .body { color: var(--ink-soft); margin-bottom: 28px; }
  .build-small .track .judging {
    border-top: 1px dashed var(--rule);
    padding-top: 24px;
  }
  .build-small .track .judging-label {
    font-family: 'Fraunces', serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    margin-bottom: 12px;
  }
  .build-small .track .judging ul { list-style: none; }
  .build-small .track .judging li {
    padding: 8px 0;
    font-size: 17px;
    color: var(--ink);
    display: flex;
    gap: 12px;
  }
  .build-small .track .judging li::before {
    content: "✦";
    color: var(--ember);
    flex-shrink: 0;
  }
  .build-small .track-1 .judging li::before { color: var(--moss); }

  /* ========= RULES ========= */
  .build-small .rules {
    max-width: 1080px;
    margin: 100px auto;
    padding: 0 32px;
  }
  .build-small .rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .build-small .rule-card {
    padding: 36px 28px;
    text-align: center;
    border-right: 1px solid var(--rule);
  }
  .build-small .rule-card:last-child { border-right: none; }
  .build-small .rule-card .icon {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    color: var(--ember);
    margin-bottom: 12px;
    font-variation-settings: "SOFT" 100;
    font-style: italic;
  }
  .build-small .rule-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    font-variation-settings: "SOFT" 100;
  }
  .build-small .rule-card p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .build-small .rule-card .pending {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Caveat', cursive;
    font-size: 15px;
    color: var(--ember);
  }

  /* ========= HOW IT WORKS (new section, from README) ========= */
  .build-small .how-it-works {
    max-width: 1080px;
    margin: 100px auto;
    padding: 0 32px;
  }
  .build-small .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
  }
  .build-small .step {
    padding: 32px 24px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: rgba(255,255,255,0.35);
    position: relative;
  }
  .build-small .step .num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: "SOFT" 100;
    font-size: 48px;
    color: var(--ember);
    line-height: 1;
    margin-bottom: 14px;
  }
  .build-small .step h4 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    font-variation-settings: "SOFT" 80;
    margin-bottom: 8px;
    color: var(--ink);
  }
  .build-small .step p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.5;
  }
  .build-small .step p strong { color: var(--ink); font-weight: 600; }

  /* ========= BONUS QUESTS ========= */
  .build-small .bonus {
    background: var(--paper-deep);
    padding: 100px 32px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
  }
  .build-small .bonus::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
    opacity: 0.5;
  }
  .build-small .bonus-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
  }
  .build-small .bonus .intro-text {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 50px;
    color: var(--ink-soft);
    font-size: 18px;
  }
  .build-small .bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
  .build-small .badge {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 24px 20px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
  }
  .build-small .badge:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: 0 12px 30px rgba(30,26,18,0.10);
  }
  .build-small .badge .name {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--ember);
    margin-bottom: 6px;
    font-variation-settings: "SOFT" 100;
    font-style: italic;
  }
  .build-small .badge .desc {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.45;
  }
  .build-small .badge.tentative::after {
    content: "tentative";
    position: absolute;
    top: 10px;
    right: 12px;
    font-family: 'Caveat', cursive;
    font-size: 13px;
    color: var(--ember-soft);
    transform: rotate(8deg);
  }

  /* ========= TIMELINE ========= */
  .build-small .timeline-section {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 32px;
  }
  .build-small .timeline {
    position: relative;
    padding-left: 28px;
    border-left: 2px dashed var(--rule);
  }
  .build-small .milestone {
    margin-bottom: 36px;
    position: relative;
  }
  .build-small .milestone::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ember);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 1px var(--ember);
  }
  .build-small .milestone .date {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--ember);
    margin-bottom: 4px;
  }
  .build-small .milestone .title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
    font-variation-settings: "SOFT" 80;
  }
  .build-small .milestone .desc {
    color: var(--ink-soft);
    font-size: 17px;
  }

  /* ========= SUBMIT BLOCK ========= */
  .build-small .submit {
    max-width: 1080px;
    margin: 100px auto;
    padding: 0 32px;
  }
  .build-small .submit-card {
    background: var(--twilight);
    color: var(--paper);
    padding: 80px 60px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .build-small .submit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(184,80,30,0.25), transparent 60%),
                radial-gradient(circle at 80% 90%, rgba(143,166,137,0.18), transparent 55%);
  }
  .build-small .submit-card > * { position: relative; }
  .build-small .submit-card .scribble-light { color: var(--ember-soft); opacity: 0.8; }
  .build-small .submit-card h2 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    margin: 24px 0 20px;
  }
  .build-small .submit-card h2 em { color: var(--ember-soft); font-style: italic; }
  .build-small .submit-card p {
    color: rgba(242, 234, 216, 0.8);
    font-size: 19px;
    max-width: 540px;
    margin: 0 auto 36px;
  }
  .build-small .submit-btn {
    display: inline-block;
    background: var(--paper);
    color: var(--ink);
    padding: 18px 40px;
    border-radius: 999px;
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
  }
  .build-small .submit-btn:hover { background: var(--ember-soft); color: var(--paper); transform: translateY(-2px); }

  /* ========= SPONSORS ========= */
  .build-small .sponsors {
    max-width: 1080px;
    margin: 0 auto 100px;
    padding: 0 32px;
    text-align: center;
  }
  .build-small .sponsors h3 {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ink-soft);
    margin-bottom: 32px;
  }
  .build-small .sponsor-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.7;
  }
  .build-small .sponsor-placeholder {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ink-soft);
    font-size: 18px;
    border: 1px dashed var(--rule);
    padding: 16px 32px;
    border-radius: 4px;
  }

  /* ========= FOOTER ========= */
  .build-small .page-footer {
    border-top: 1px solid var(--rule);
    padding: 40px 32px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 15px;
  }
  .build-small .page-footer a { color: var(--ember); text-decoration: none; }

  /* ========= RESPONSIVE ========= */
  @media (max-width: 760px) {
    .build-small .track-grid { grid-template-columns: 1fr; }
    .build-small .track:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
    .build-small .rules-grid { grid-template-columns: 1fr; }
    .build-small .rule-card { border-right: none; border-bottom: 1px solid var(--rule); }
    .build-small .rule-card:last-child { border-bottom: none; }
    .build-small .steps { grid-template-columns: 1fr 1fr; }
    .build-small nav ul { display: none; }
    .build-small .submit-card { padding: 56px 28px; }
    .build-small .submit-card h2 { font-size: 44px; }
    .build-small .hero { padding: 56px 24px 40px; }
    .build-small .section-title { font-size: 40px; }
    .build-small .track { padding: 40px 28px; }
  }
  @media (max-width: 480px) {
    .build-small .steps { grid-template-columns: 1fr; }
  }

  /* ========= ANIMATION ========= */
  @keyframes build-small-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .build-small .hero .kicker, .build-small .hero h1, .build-small .hero .lede, .build-small .hero .meta-row {
    animation: build-small-rise 0.8s ease-out backwards;
  }
  .build-small .hero .kicker { animation-delay: 0.05s; }
  .build-small .hero h1 { animation-delay: 0.18s; }
  .build-small .hero .lede { animation-delay: 0.4s; }
  .build-small .hero .meta-row { animation-delay: 0.55s; }
</style>

<div class="build-small">

<nav>
  <div class="inner">
    <div class="brand">Build <span class="sm">Small</span></div>
    <ul>
      <li><a href="#tracks">Tracks</a></li>
      <li><a href="#rules">Rules</a></li>
      <li><a href="#how">How it works</a></li>
      <li><a href="#bonus">Extra Credit</a></li>
      <li><a href="#timeline">Timeline</a></li>
    </ul>
    <a href="#register" class="register-btn">Register</a>
  </div>
</nav>

<!-- ============================ HERO ============================ -->
<section class="hero">
  <div class="kicker">~ a hackathon for small things ~</div>
  <h1>Build <em>Small.</em></h1>
  <p class="lede">A two-week hackathon for tiny weights, big ideas, and the things you can build close to home β€” hosted by Gradio &amp; Hugging Face.</p>

  <div class="meta-row">
    <span><strong>Two tracks</strong></span>
    <span class="dot">✦</span>
    <span><strong>Models ≀ 22GB</strong></span>
    <span class="dot">✦</span>
    <span><strong>Built on Gradio</strong></span>
    <span class="dot">✦</span>
    <span><strong>Open to everyone</strong></span>
  </div>
</section>

<!-- ============================ INTRO ============================ -->
<section class="intro">
  <svg class="scribble" viewBox="0 0 120 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
    <path d="M2 12 Q15 2, 30 12 T60 12 T90 12 T118 12" />
  </svg>
  <h2 style="margin-top: 32px;">The internet is full of giant models doing giant things. This isn't that.</h2>
  <p>For two weeks, we want to see what you can do with <strong>small models</strong>, <strong>tight constraints</strong>, and <strong>care for the people right around you</strong>. Build for one neighbor. Build something that runs on the laptop you already own. Build something a child could love.</p>
  <p style="margin-top: 24px;">Pick a track, ship a Gradio app, and tell us a story.</p>
</section>

<!-- ============================ TRACKS ============================ -->
<section class="tracks" id="tracks">
  <div class="section-label">~ choose your path ~</div>
  <h2 class="section-title">Two Tracks.</h2>

  <div class="track-grid">
    <!-- TRACK 1 -->
    <div class="track track-1">
      <div class="chapter">Chapter One</div>
      <div class="illustration">
        <svg width="180" height="120" viewBox="0 0 180 120" fill="none" stroke="#3D5A3A" stroke-width="1.4" stroke-linecap="round">
          <path d="M0 95 Q90 88, 180 95" />
          <path d="M50 95 L50 65 L75 50 L100 65 L100 95 Z" />
          <path d="M68 95 L68 80 L82 80 L82 95" />
          <circle cx="62" cy="72" r="2.5" />
          <circle cx="88" cy="72" r="2.5" />
          <path d="M85 50 L85 42" />
          <path d="M84 38 Q86 36, 88 38 Q86 40, 88 42" stroke-dasharray="2 2" opacity="0.6" />
          <path d="M135 95 L135 75" />
          <circle cx="135" cy="68" r="14" />
          <path d="M10 95 L10 86 M18 95 L18 86 M26 95 L26 86 M34 95 L34 86 M42 95 L42 86" />
          <path d="M8 88 L44 88" />
          <circle cx="155" cy="22" r="8" />
          <path d="M155 8 L155 4 M155 36 L155 40 M141 22 L137 22 M169 22 L173 22 M145 12 L142 9 M165 12 L168 9" />
        </svg>
      </div>
      <h3>Backyard AI</h3>
      <p class="subtitle">Solve a real problem for someone you actually know.</p>
      <p class="body">Pick a person β€” a neighbor, a parent, a small business owner on your street β€” and build something that makes their day measurably better. Walk over. Watch them use it. The closer the problem, the better the project.</p>
      <div class="judging">
        <div class="judging-label">Judging Criteria</div>
        <ul>
          <li>The problem is specific and real (not invented for the demo)</li>
          <li>The person it was built for actually used it</li>
          <li>Honest fit between problem, solution, and the small-model constraint</li>
          <li>Polish and craft of the Gradio app</li>
        </ul>
      </div>
    </div>

    <!-- TRACK 2 -->
    <div class="track track-2">
      <div class="chapter">Chapter Two</div>
      <div class="illustration">
        <svg width="180" height="120" viewBox="0 0 180 120" fill="none" stroke="#B8501E" stroke-width="1.4" stroke-linecap="round">
          <path d="M0 100 Q90 92, 180 100" />
          <path d="M30 100 Q60 80, 90 90 T160 70" stroke-dasharray="3 3" opacity="0.6" />
          <path d="M48 100 L48 95 Q43 95, 43 90 Q43 85, 53 85 Q63 85, 63 90 Q63 95, 58 95 L58 100" />
          <circle cx="48" cy="89" r="0.8" fill="#B8501E" />
          <circle cx="55" cy="87" r="0.8" fill="#B8501E" />
          <path d="M22 100 L22 96 Q19 96, 19 93 Q19 90, 25 90 Q31 90, 31 93 Q31 96, 28 96 L28 100" />
          <path d="M85 100 L85 70" />
          <path d="M78 75 L85 70 L92 75 M75 80 L85 75 L95 80 M73 86 L85 80 L97 86" />
          <path d="M125 100 L125 65" />
          <path d="M117 70 L125 65 L133 70 M114 76 L125 70 L136 76 M111 83 L125 76 L139 83" />
          <path d="M155 25 L155 19 L159 22 L153 22 L157 19 Z" />
          <circle cx="148" cy="35" r="1" fill="#B8501E" />
          <circle cx="170" cy="40" r="1" fill="#B8501E" />
        </svg>
      </div>
      <h3>An Adventure in Thousand Token Wood</h3>
      <p class="subtitle">Build something delightful that wouldn't exist without AI.</p>
      <p class="body">Wander somewhere weirder. A toy, a tiny game, a strange interactive story, an art experiment that surprises you. The AI should be doing the fun thing β€” not just helping you build it. Strange is good. Joyful is the bar.</p>
      <div class="judging">
        <div class="judging-label">Judging Criteria</div>
        <ul>
          <li>Genuinely delightful β€” would you show a friend?</li>
          <li>The AI is load-bearing for the experience</li>
          <li>Originality of concept (we've seen the chatbot)</li>
          <li>Polish and craft of the Gradio app</li>
        </ul>
      </div>
    </div>
  </div>
</section>

<!-- ============================ RULES ============================ -->
<section class="rules" id="rules">
  <div class="section-label">~ rules of the land ~</div>
  <h2 class="section-title">The Constraints.</h2>

  <div class="rules-grid">
    <div class="rule-card">
      <div class="icon">β‘ </div>
      <h4>Small Models Only</h4>
      <p>Any model that fits inside <strong>22 GB</strong> of memory.</p>
      <span class="pending">↳ pending team sign-off</span>
    </div>
    <div class="rule-card">
      <div class="icon">β‘‘</div>
      <h4>Built on Gradio</h4>
      <p>Your app must be a Gradio app, hosted as a Hugging Face Space.</p>
    </div>
    <div class="rule-card">
      <div class="icon">β‘’</div>
      <h4>Show, Don't Tell</h4>
      <p>A short demo video and a social-media post about your project are part of the submission.</p>
    </div>
  </div>
</section>

<!-- ============================ HOW IT WORKS ============================ -->
<section class="how-it-works" id="how">
  <div class="section-label">~ getting started ~</div>
  <h2 class="section-title">How It Works.</h2>

  <div class="steps">
    <div class="step">
      <div class="num">1</div>
      <h4>Register</h4>
      <p>Join this Hugging Face org. That's your ticket in β€” no application, no waitlist.</p>
    </div>
    <div class="step">
      <div class="num">2</div>
      <h4>Find Your People</h4>
      <p>Hop into the Gradio Discord channel. Office hours, AMAs, and teammates live there.</p>
    </div>
    <div class="step">
      <div class="num">3</div>
      <h4>Build &amp; Ship</h4>
      <p>Build your Gradio app and host it as a Space under this org during the hack window.</p>
    </div>
    <div class="step">
      <div class="num">4</div>
      <h4>Submit</h4>
      <p>Drop your <strong>Space link</strong>, a short <strong>demo video</strong>, and a <strong>social post</strong> by the deadline.</p>
    </div>
  </div>
</section>

<!-- ============================ BONUS ============================ -->
<section class="bonus" id="bonus">
  <div class="bonus-inner">
    <div class="section-label">~ extra credit ~</div>
    <h2 class="section-title">Bonus Quests.</h2>
    <p class="intro-text">None of these are required. Each one bumps you up the leaderboard. Stack them like badges on a scout sash.</p>

    <div class="bonus-grid">
      <div class="badge">
        <div class="name">Off the Grid</div>
        <div class="desc">No cloud APIs. The whole thing runs on the model in front of you.</div>
      </div>
      <div class="badge">
        <div class="name">Well-Tuned</div>
        <div class="desc">Your app uses a fine-tuned model you've published on Hugging Face.</div>
      </div>
      <div class="badge">
        <div class="name">Off-Brand</div>
        <div class="desc">A custom frontend that pushes past the default Gradio look.</div>
      </div>
      <div class="badge">
        <div class="name">Llama ChamPion</div>
        <div class="desc">Your model runs through the llama.cpp runtime.</div>
      </div>
      <div class="badge">
        <div class="name">Sharing is Caring</div>
        <div class="desc">You shared your agent trace on the Hub.</div>
      </div>
      <div class="badge tentative">
        <div class="name">Field Notes</div>
        <div class="desc">You wrote a blog post or report about what you built and what you learned.</div>
      </div>
    </div>
  </div>
</section>

<!-- ============================ TIMELINE ============================ -->
<section class="timeline-section" id="timeline">
  <div class="section-label">~ when ~</div>
  <h2 class="section-title">Timeline.</h2>

  <div class="timeline">
    <div class="milestone">
      <div class="date">Week of [date TBD]</div>
      <div class="title">Registration opens</div>
      <div class="desc">Sign up on the Hugging Face org, join the Discord channel, start sketching ideas.</div>
    </div>
    <div class="milestone">
      <div class="date">[date TBD]</div>
      <div class="title">Hack window begins</div>
      <div class="desc">Two weeks to build, ship, and demo.</div>
    </div>
    <div class="milestone">
      <div class="date">Mid-window</div>
      <div class="title">Live AMA + office hours</div>
      <div class="desc">Drop in to ask the Gradio team anything about your build.</div>
    </div>
    <div class="milestone">
      <div class="date">[date TBD]</div>
      <div class="title">Submissions close</div>
      <div class="desc">Demo video, public Space, and social post β€” locked in.</div>
    </div>
    <div class="milestone">
      <div class="date">[date TBD]</div>
      <div class="title">Winners announced</div>
      <div class="desc">Per track, plus the leaderboard for bonus quests stacked.</div>
    </div>
  </div>
</section>

<!-- ============================ SUBMIT ============================ -->
<section class="submit" id="register">
  <div class="submit-card">
    <svg class="scribble scribble-light" viewBox="0 0 120 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
      <path d="M2 12 Q15 2, 30 12 T60 12 T90 12 T118 12" />
    </svg>
    <h2>Build something <em>small.</em></h2>
    <p>Two weeks. Two tracks. The model on your laptop. The neighbor next door. Let's make some little things.</p>
    <a href="#" class="submit-btn">Register on Hugging Face β†’</a>
  </div>
</section>

<!-- ============================ SPONSORS ============================ -->
<section class="sponsors">
  <h3>Hosted by Β· Sponsored by</h3>
  <div class="sponsor-row">
    <div class="sponsor-placeholder">Gradio</div>
    <div class="sponsor-placeholder">Hugging Face</div>
    <div class="sponsor-placeholder">[ Sponsor TBD ]</div>
    <div class="sponsor-placeholder">[ Sponsor TBD ]</div>
  </div>
</section>

<div class="page-footer">
  <p>Made with care by the Gradio team β€” questions? <a href="#">Find us on Discord</a></p>
</div>

</div>
"""


with gr.Blocks(
    title="Build Small β€” A Gradio + Hugging Face Hackathon",
) as demo:
    gr.HTML(LANDING_HTML)


if __name__ == "__main__":
    demo.launch(
        css=CUSTOM_CSS,
        head=HEAD_HTML,
        theme=gr.themes.Base(),
    )