/* The prompt library's plain pages: one page per prompt, the hub pages and the stats page (built by tools/build_seo.py).
   Self-contained: same tokens and type as the rest of the site, no script needed to read a page. */
@font-face {
  font-family: 'Archivo';
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #121211;
  --bg-1: #1a1a18;
  --bg-2: #222220;
  --bg-3: #2c2c29;
  --line: rgba(255, 249, 235, .08);
  --line-2: rgba(255, 249, 235, .14);
  --text: #edebe6;
  --text-2: rgba(237, 235, 230, .72);
  --text-3: rgba(237, 235, 230, .5);
  --safe: #ea6a42;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 450 16px/1.6 'Archivo', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(239, 106, 61, .35); }
.wrap { width: min(1320px, calc(100% - 56px)); margin: 0 auto; }
.wrap.narrow { width: min(900px, calc(100% - 56px)); }

.lib { padding: 92px 0 90px; min-height: 80vh; }

/* where you are */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 13.5px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(60ch, 70vw); }

/* hub head */
.lib-h { margin: 18px 0 0 -.04em; font-size: clamp(40px, 6.2vw, 92px); font-weight: 800; font-stretch: 125%; letter-spacing: -.05em; line-height: .92; text-transform: lowercase; text-wrap: balance; }
.lib-n { margin: 16px 0 0; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lib-intro { margin: 14px 0 0; max-width: 74ch; font-size: 17px; color: var(--text-2); text-wrap: pretty; }

/* links to other hubs */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.lib-intro + .chips { margin-top: 28px; }
.chips-l { width: 52px; flex: none; font-size: 13px; color: var(--text-3); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line); font-size: 13.5px; font-weight: 550; font-stretch: 100%; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { background: var(--bg-2); color: var(--text); border-color: var(--line-2); }
.chip[aria-current] { background: var(--bg-3); color: var(--text); border-color: transparent; }
.chip small { font-size: 12px; font-weight: 450; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* the three rows under a hub's intro: a little smaller, so the prompts start sooner */
.chips.row { align-items: flex-start; gap: 6px; }
.chips.row .chips-l { height: 30px; display: inline-flex; align-items: center; }
.chips.row .chip { height: 30px; padding: 0 11px; border-radius: 9px; font-size: 13px; }

/* cards: columns, so each picture keeps its own shape */
.grid { columns: 4 250px; column-gap: 16px; margin-top: 22px; }
.grid.main { margin-top: 34px; }
.pc { display: block; break-inside: avoid; margin: 0 0 24px; text-decoration: none; }
.pc-m { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--bg-1); }
.pc-m img { width: 100%; height: auto; transition: transform .5s var(--ease), opacity .3s; }
.pc:hover .pc-m img { transform: scale(1.025); }
.pc-d { position: absolute; right: 9px; bottom: 9px; padding: 3px 7px; border-radius: 7px; background: rgba(12, 12, 11, .72); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.pc-t { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; font-stretch: 100%; line-height: 1.3; color: var(--text); text-wrap: pretty; }
.pc-b { display: block; margin-top: 3px; font-size: 13px; color: var(--text-3); }

/* pages of a hub */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0 0; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 13px; border-radius: 11px; background: var(--bg-1); border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; }
a.pg:hover { background: var(--bg-2); color: var(--text); }
.pg.on { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 650; }
.pg.gap { background: none; border-color: transparent; min-width: 20px; padding: 0; }

.lib-about { margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); max-width: 74ch; }
.lib-about h2, .pp-more h2, .stats h2 { margin: 0 0 12px; font-size: 22px; font-weight: 750; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.2; text-transform: lowercase; }
.lib-about p { margin: 0 0 10px; color: var(--text-2); font-size: 15.5px; }
.lib-about a, .stats p a { color: var(--text); }

/* one prompt */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 22px; }
.pp-media { position: sticky; top: 84px; border-radius: 20px; overflow: hidden; background: var(--bg-1); }
.pp-media.tall { width: min(100%, 440px); justify-self: center; }
.pp-media img, .pp-media video { width: 100%; height: auto; max-height: calc(100vh - 116px); object-fit: contain; background: #0d0d0c; }
.pp-info h1 { margin: 0; font-size: clamp(28px, 3.3vw, 46px); font-weight: 800; font-stretch: 114%; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.pp-by { margin: 14px 0 0; font-size: 14.5px; color: var(--text-3); }
.pp-by a { color: var(--text-2); text-underline-offset: 3px; }
.pp-by a:hover { color: var(--text); }
.pp-desc { margin: 16px 0 0; color: var(--text-2); font-size: 16.5px; text-wrap: pretty; }
.pp-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 650 15px 'Archivo', sans-serif; font-stretch: 100%; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .12s var(--ease); }
.btn:hover { background: var(--bg-3); }
.btn:active { transform: scale(.97); }
.btn.light { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.light:hover { background: #fff; }
.btn.go { background: var(--safe); color: #17110e; border-color: transparent; }
.btn.go:hover { background: #f07a53; }
.pp-h { margin: 34px 0 10px; font-size: 13px; font-weight: 650; font-stretch: 100%; color: var(--text-3); }
.pp-text { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text-2); font: 14.5px/1.62 ui-monospace, 'Geist Mono', SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-text.clamp { max-height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pp-all { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--text-2); font: 600 14px 'Archivo', sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pp-all:hover { color: var(--text); }
.pp-facts { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.pp-facts dt { color: var(--text-3); }
.pp-facts dd { margin: 0; color: var(--text-2); }
.pp-facts a { color: var(--text); text-underline-offset: 3px; }
.pp-fix { margin: 22px 0 0; font-size: 13.5px; color: var(--text-3); }
.pp-fix a { color: var(--text-2); }
.pp-more { margin-top: 72px; }
.pp-more .grid { columns: 4 220px; }
.pp-more .chips { margin-top: 16px; }

/* the stats page */
.stats h2 { margin-top: 54px; }
.stats p { color: var(--text-2); max-width: 74ch; }
.stats .note { margin: 0 0 6px; font-size: 14px; color: var(--text-3); }
.stats table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.stats th { text-align: left; padding: 0 14px 9px 0; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.stats td { padding: 10px 14px 10px 0; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.stats td a { color: var(--text); text-decoration: none; }
.stats td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stats .grid { columns: 4 190px; }

/* footer */
.lf { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
.lf .wrap { display: grid; gap: 18px; }
.lf-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.lf a { color: var(--text-2); text-decoration: none; }
.lf a:hover { color: var(--text); }
.lf .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.lf .brand .mark { width: 22px; height: 22px; }
.lf .brand .wm { font-size: 17px; font-weight: 800; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; padding-bottom: 2px; }

@media (max-width: 900px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .lib { padding-top: 80px; }
  .pp-grid { grid-template-columns: 1fr; gap: 26px; }
  .pp-media { position: static; }
  .pp-media img, .pp-media video { max-height: 76vh; }
  .grid, .pp-more .grid, .stats .grid { columns: 2 150px; column-gap: 12px; }
  .pc { margin-bottom: 18px; }
  /* on a phone each row is one line you swipe sideways */
  .chips.row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .chips.row::-webkit-scrollbar { display: none; }
  .chips.row .chip { flex: none; }
  .chips.row .chips-l { width: 44px; }
  .btn { flex: 1 1 auto; }
  .stats table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
