/* Agents' Den - an ukiyo-e woodblock print. Aged paper, a black key-block line around every shape, flat blocks of Prussian blue and indigo, and vermilion for the sun, the seal and a vote of "I'm in". Mobile first, system fonts only (fast on venue wifi, no third-party requests). Gradio's component colours live in the theme (app.py). */ :root { --paper: #e4c9a2; --card: #f3e5c9; --card-hi: #f9f0dc; --line: #cdb48a; --ink: #1b1815; --ink-soft: #463d31; --muted: #5e5446; --faint: #716450; --indigo: #1b2f4a; --blue: #1f4e79; --shu: #c8412b; --key: 1.5px solid var(--ink); /* the key-block outline */ --print: 3px 3px 0 var(--indigo); /* a block printed slightly off register */ --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: light; } /* Gradio rewrites this stylesheet: a `background` shorthand containing var() comes out empty, and rules inside @media get scoped under .contain. So page-level rules use longhands and literal colours, and the backdrop lives in view.HEAD. */ body { background-color: #e4c9a2 !important; } gradio-app { background-color: transparent !important; } /* or it paints over the backdrop */ .gradio-container .main.fillable { padding-inline: min(32px, max(0px, calc(100vw - 480px))) !important; } .gradio-container { max-width: 980px !important; margin: 0 auto !important; padding: 10px 16px 40px !important; background: transparent !important; } .gradio-container a { text-underline-offset: 3px; } /* ---------------------------------------------------------------- hero */ .hero { display: flex; gap: 40px; align-items: flex-end; padding: 28px 0 12px; } .hero-text { flex: 1; min-width: 0; } .brand { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--indigo); } .seal { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--shu); color: var(--card-hi); font-family: var(--serif); font-size: 20px; letter-spacing: 0; line-height: 1; box-shadow: inset 0 0 0 2px var(--shu), inset 0 0 0 3.5px var(--card-hi); transform: rotate(-3deg); } /* !important: Gradio's own .prose heading sizes are more specific. */ .hero h1 { font-family: var(--serif); font-weight: 800 !important; font-size: clamp(44px, 12vw, 76px) !important; line-height: .98 !important; letter-spacing: -.03em; color: var(--ink); margin: 22px 0 18px !important; text-shadow: 0 0 14px #e4c9a2, 0 0 4px #e4c9a2; } /* a paper halo where it crosses the painting */ .hero h1 em { font-style: italic; font-weight: 700; color: var(--shu); } .lede { font-size: 18px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; max-width: 34ch; font-weight: 500; } .fine { margin: 0; display: inline-block; font-size: 13px; line-height: 1.55; padding: 4px 10px; border: var(--key); background: var(--card); color: var(--indigo); font-weight: 600; letter-spacing: .04em; } .qr { display: none; flex-shrink: 0; text-align: center; text-decoration: none !important; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.45; padding: 12px 12px 10px; background: var(--card); border: var(--key); box-shadow: var(--print); } .qr svg { width: 136px; height: 136px; display: block; margin: 0 auto 10px; } /* ---------------------------------------------------------------- stages */ .stage { gap: 12px !important; margin-top: 34px; } /* Each heading is a cartouche, the title box of a print: a vermilion sun for the number, a paper tab for the words, and a double rule running on to the edge. */ .step { position: relative; isolation: isolate; display: flex; align-items: center; margin: 0 0 12px; font-family: var(--serif); font-weight: 700 !important; font-size: 25px !important; letter-spacing: -.01em; color: var(--ink); } .step::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; border-bottom: 3px double var(--ink); z-index: -1; } .step .num { position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--shu); border: var(--key); font-size: 21px; line-height: 1; color: var(--card-hi); } .step .title { margin-left: -14px; padding: 5px 26px 5px 24px; background: var(--card); border: var(--key); border-radius: 0 22px 22px 0; line-height: 1.15; } .step .hint { margin-left: auto; padding: 4px 9px; background: var(--card); border: var(--key); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); } .stage textarea { font-size: 16px !important; line-height: 1.6 !important; } /* 16px: iOS never zooms in */ .ghost { align-self: flex-start; width: auto !important; min-height: 44px; } /* Audio waveforms are drawn 1580px wide; without containment they widen the whole page on a phone. */ .player, .recorder { contain: inline-size; overflow: hidden; min-width: 0; max-width: 100%; } /* Browsers hide microphone names until the visitor allows access, so Gradio's picker says "No microphone found" while Record works fine. Record asks for access itself. */ .recorder .mic-select:disabled { display: none; } /* Our own progress bar is the only indicator: Gradio's "processing | 1.7s" and queue timers stay hidden. */ .gradio-container .progress-text, .gradio-container .eta-bar { display: none !important; } .gradio-container button:focus-visible, .picker label:has(input:focus-visible) { outline: 2px solid var(--shu) !important; outline-offset: 3px; } .go, .reveal { min-height: 58px; border: var(--key) !important; border-radius: 2px !important; box-shadow: 3px 3px 0 var(--ink); font-family: var(--serif); font-size: 19px !important; font-weight: 600 !important; letter-spacing: .04em; transition: transform .12s ease, box-shadow .12s ease; } .go::after { content: "→"; margin-left: 12px; } .go:hover:not(:disabled), .reveal:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); } .go:active:not(:disabled), .reveal:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); } .go:disabled { opacity: .55; } .transcript, .about, .eleven { border: var(--key) !important; border-radius: 2px !important; } /* ---------------------------------------------------------------- the judge picker */ /* Five portrait cards in a row; on a phone, a list with the portrait on the left. */ .picker .wrap { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px !important; } .picker label { position: relative; display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin: 0 !important; padding: 8px 8px 12px !important; cursor: pointer; background: var(--card) !important; border: var(--key) !important; border-radius: 2px !important; transition: transform .2s ease, box-shadow .2s ease; } .picker label:not(.selected) { border-color: var(--faint) !important; } .picker label:not(.selected) span, .picker label:not(.selected)::after { color: var(--faint); } .picker label.selected { background: var(--card-hi) !important; box-shadow: var(--print); transform: translate(-1px, -1px); } .picker label::before { content: ""; width: 100%; aspect-ratio: 1; margin-bottom: 8px; border: var(--key); background: center / cover no-repeat; filter: grayscale(.85); opacity: .55; transition: filter .2s ease, opacity .2s ease; } .picker label:hover::before, .picker label.selected::before { filter: none; opacity: 1; } .picker label::after { white-space: pre-line; font-size: 12px; line-height: 1.4; color: var(--blue); } .picker label span { margin: 0 !important; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); } .picker label input { position: absolute; top: 14px; right: 14px; width: 22px !important; height: 22px !important; margin: 0 !important; accent-color: var(--shu); } /* ---------------------------------------------------------------- status and progress */ .notice { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); text-align: center; } .progress { padding: 14px 16px 13px; border: var(--key); border-radius: 2px; background: var(--card); } .progress .stages { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); } .progress .stages .done { color: var(--muted); } .progress .stages .now { color: var(--shu); } .progress .bar { position: relative; height: 8px; margin: 12px 0; border: var(--key); background: var(--card-hi); overflow: hidden; } .progress .bar i { position: relative; display: block; height: 100%; width: var(--to); overflow: hidden; background: var(--blue); animation: fill var(--eta) cubic-bezier(.15, .7, .3, 1) both; } .progress .bar i::after { content: ""; position: absolute; inset: 0; animation: shimmer 1.6s linear infinite; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); } .progress p { margin: 0; text-align: center; font-size: 14px; color: var(--ink); } /* ---------------------------------------------------------------- who is speaking */ .speakers { display: grid; gap: 10px; padding: 14px 12px 12px; border: var(--key); border-radius: 2px; background: var(--card); } .speakers .faces { display: flex; justify-content: center; gap: 18px; } .speakers figure { margin: 0; display: grid; justify-items: center; gap: 4px; transition: opacity .2s ease, filter .2s ease, transform .2s ease; } .speakers.live figure:not(.speaking) { opacity: .45; filter: grayscale(.8); } .speakers figure.speaking { transform: translateY(-3px); } .speakers figure.speaking img { box-shadow: 0 0 0 3px var(--shu); } .speakers figcaption { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); } .speakers figure.speaking figcaption { color: var(--shu); } .speakers img { width: 68px; height: 68px; } .caption { min-height: 4.4em; margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--ink); } .caption b { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--shu); } /* ---------------------------------------------------------------- verdict */ .empty { display: grid; gap: 6px; place-items: center; text-align: center; color: var(--muted); padding: 38px 18px; border: 1.5px dashed var(--ink-soft); border-radius: 2px; font-size: 15px; background: var(--card); } .empty b { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--ink); } .cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } .card { position: relative; min-width: 0; overflow-wrap: anywhere; padding: 14px; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; align-items: start; border: var(--key); border-radius: 2px; background: var(--card); box-shadow: var(--print); animation: rise .5s cubic-bezier(.2, .9, .25, 1) both; } .card:nth-child(2) { animation-delay: .5s; } .card:nth-child(3) { animation-delay: 1s; } .card > * { grid-column: 1 / -1; } .card > img { grid-column: 1; grid-row: 1; width: 92px; height: 92px; } .card .who { grid-column: 2; min-width: 0; } .who b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--ink); } .who small { display: block; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .04em; } .score { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink-soft); line-height: 1; } .score b { display: inline; font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; } /* Votes are stamped, like a hanko: vermilion for "I'm in", indigo on the fence, ink when out. */ .vote { justify-self: start; display: inline-flex; white-space: nowrap; align-items: center; gap: 7px; margin-top: 14px; padding: 5px 10px 4px 8px; border-radius: 3px; font-family: var(--serif); font-size: 16px; font-weight: 700; font-style: italic; letter-spacing: .02em; color: var(--blue); border: 2px solid currentColor; box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3px currentColor; transform: rotate(-4deg); } .vote i { font-style: normal; font-size: 13px; } .card.in .vote { color: var(--shu); } .card.out .vote { color: var(--ink-soft); } .card blockquote { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--shu); background: var(--card-hi); font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--ink); } .card dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .card dt { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); } .card dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); } .next { margin-top: 18px; padding: 16px 18px; border: var(--key); border-radius: 2px; background: var(--card); box-shadow: var(--print); } .next h3 { margin: 0 0 4px !important; font-family: var(--serif); font-size: 23px !important; font-weight: 700 !important; color: var(--ink); } .next ol { margin: 0; padding: 0; list-style: none; counter-reset: move; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; } .next li { counter-increment: move; position: relative; margin: 10px 0 0; padding: 10px 0 0 40px; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; color: var(--ink); } .next li::before { content: counter(move); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--shu); border: var(--key); color: var(--card-hi); font-family: var(--serif); font-size: 15px; font-weight: 700; } .next li b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); } /* ---------------------------------------------------------------- conversation */ .talk { display: grid; gap: 12px; padding: 4px 0; } .line { display: flex; gap: 12px; align-items: flex-start; } .line p { margin: 0; padding: 10px 14px; border-radius: 2px; font-size: 15px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; border: var(--key); background: var(--card-hi); } .line p b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); } .portrait { display: block; flex-shrink: 0; object-fit: cover; border: var(--key); background: var(--paper); } .line img { width: 40px; height: 40px; margin-top: 2px; } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } @keyframes fill { from { width: var(--from); } to { width: var(--to); } } @keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } } /* ---------------------------------------------------------------- screen sizes */ /* On a phone the print sits above the words rather than behind them, and the panel becomes a list. */ @media (max-width: 700px) { .hero { padding-top: 78vw; } .picker .wrap { grid-template-columns: minmax(0, 1fr); gap: 10px !important; } .picker label { display: grid !important; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; padding: 8px 48px 8px 8px !important; } .picker label::before { grid-row: 1 / span 2; width: 76px; margin: 0; } .picker label span { align-self: end; } .picker label::after { align-self: start; } .picker label input { top: 50%; right: 16px; transform: translateY(-50%); } .card { grid-template-columns: 80px minmax(0, 1fr); } .card > img { width: 80px; height: 80px; } } @media (max-width: 480px) { .step .hint { display: none; } .step { font-size: 23px !important; } } @media (min-width: 760px) { .qr { display: block; } .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card dl { grid-template-columns: 1fr; } .next ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }