/* Whitepaper Day standalone page (/whitepaper-day/). Copied to site/static by
   export-web.mjs. */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #05030f; --term: #0b0820; --bar: #151032; --line: #2a2160;
  --fg: #e8e4f4; --dim: #8f88b0; --blue: #6a40ff; --orange: #ff6400; --green: #3ddc84;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--fg);
       font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
       display: flex; align-items: center; justify-content: center; padding: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.win { width: 100%; max-width: 1600px; background: var(--term); border: 2px solid var(--line); border-radius: 14px;
       overflow: hidden; box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(73, 0, 242, .25); }
.bar { height: 40px; background: var(--bar); border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 9px; padding: 0 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.bar .t { flex: 1; min-width: 0; text-align: center; color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Language switch: same options, place (top right) and behaviour as the main site's,
   terminal look: the current locale in [brackets], the others as dim commands. */
.lang { display: flex; gap: 4px; flex: none; font-size: 13px; font-weight: 700; }
.lang a, .lang span { padding: 4px 5px; border-radius: 4px; text-decoration: none; }
.lang a { color: var(--dim); }
.lang a:hover, .lang a:focus-visible { color: var(--green); background: rgba(61, 220, 132, .1); outline: none; }
.lang span { color: var(--orange); }
.lang span::before { content: '['; color: var(--dim); } .lang span::after { content: ']'; color: var(--dim); }

/* Mobile first: one column — logo + title, data, drawing, prompt. */
.body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "data" "draw" "end";
        gap: 22px; padding: 22px 18px 20px; }
.top { grid-area: top; } .data { grid-area: data; } .draw { grid-area: draw; } .end { grid-area: end; }
.top, .draw { min-width: 0; }

.prompt { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.u { color: var(--green); font-weight: 700; } .p { color: var(--blue); font-weight: 700; } .c { color: var(--fg); }
.cursor { display: inline-block; width: .6em; height: 1.05em; background: var(--orange); vertical-align: -0.17em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.head { display: flex; align-items: center; gap: 4%; margin-top: 14px; }
.name { font-size: clamp(11px, 3.3vw, 25px); font-weight: 700; letter-spacing: .3em; line-height: 1.35; }
.name .o { color: var(--orange); } .name .b { color: var(--blue); }

/* ANSI art as SVG (square pixels, 1 cell = 1x2): widths as in the slide, capped
   there, and scaled down with the column. */
svg.art { display: block; height: auto; max-width: 100%; }
svg.art.logo { width: 30%; max-width: 250px; flex: none; }
svg.art.title { width: 100%; max-width: 990px; margin-top: 18px; }
svg.art.pic { width: 85%; max-width: 640px; margin: 0 auto; }

.lunch { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.lunch::before { content: '> '; color: var(--orange); }
dl { display: grid; grid-template-columns: 7ch minmax(0, 1fr); column-gap: 1ch; font-size: 15px; line-height: 1.55; }
dt { color: var(--dim); } dd { color: var(--fg); overflow-wrap: anywhere; }
dd .sep { color: var(--orange); } dd .btc, dd .nw { white-space: nowrap; } dd .btc { color: var(--orange); font-weight: 700; }
dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
dd a:hover, dd a:focus-visible { color: #fff; text-decoration-color: var(--orange); }

/* Tickets: on mobile the link comes first (nobody scans their own screen), QR below. */
.tickets { margin-top: 22px; }
.tp { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.tp::before { content: '> '; color: var(--orange); }
.tk { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tlink { display: block; width: 100%; padding: 12px 14px; border: 2px solid var(--orange); border-radius: 6px;
         color: var(--fg); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.tlink::before { content: '$ open '; color: var(--orange); }
.tlink:hover, .tlink:focus-visible { background: var(--orange); color: var(--bg); }
.tlink:hover::before, .tlink:focus-visible::before { color: var(--bg); }
svg.art.qr { width: 180px; border-radius: 4px; }

/* Invitation to the conference: outgoing link to the home page, same language. */
.bcc { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); }
.bcc .inv { font-size: 16px; font-weight: 700; line-height: 1.4; }
.bcc .tag { margin-top: 4px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.bcc .when { margin-top: 6px; font-size: 15px; color: var(--blue); font-weight: 700; }
.bcc .tbc { color: var(--dim); font-weight: 400; white-space: nowrap; }
.tlink.home { margin-top: 14px; border-color: var(--blue); }
.tlink.home::before { content: '$ cd '; color: var(--blue); }
.tlink.home:hover, .tlink.home:focus-visible { background: var(--blue); color: #fff; }
.tlink.home:hover::before, .tlink.home:focus-visible::before { color: #fff; }

/* Desktop: as the slide — text left, drawing right. */
@media (min-width: 900px) {
  body { padding: 32px; }
  .bar { height: 48px; } .bar .t { font-size: 18px; } .lang { font-size: 15px; } .dot { width: 15px; height: 15px; }
  .body { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); grid-template-rows: auto auto 1fr;
          grid-template-areas: "top draw" "data draw" "end draw"; column-gap: 40px; row-gap: 26px; padding: 34px 48px 30px; }
  .draw { align-self: center; }
  svg.art.pic { width: 100%; }
  .end { align-self: end; }
  .prompt { font-size: clamp(16px, 1.4vw, 24px); }
  .lunch { font-size: clamp(22px, 1.9vw, 32px); }
  dl { font-size: clamp(16px, 1.45vw, 25px); grid-template-columns: 8ch minmax(0, 1fr); }
  .tp { font-size: clamp(16px, 1.45vw, 25px); }
  .tk { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 28px; }
  .tlink { width: auto; font-size: clamp(14px, 1.15vw, 19px); }
  .tlink.home { display: inline-block; }
  .bcc .inv { font-size: clamp(16px, 1.45vw, 25px); } .bcc .tag { font-size: clamp(14px, 1.15vw, 19px); } .bcc .when { font-size: clamp(15px, 1.3vw, 22px); }
  svg.art.qr { width: clamp(170px, 14vw, 240px); }
}
