/* AI Daylee: a daily AI newspaper. Newsreader headlines, Archivo labels,
   Plex Mono for prompts. Tested-prompt pieces (yellow BEST tag, score bars)
   come from the "lab results" idea in the 2026-10-06 redesign. */
:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #333333;
  --muted: #555555;
  --rule: #d8d4ca;
  --tint: #f1eee6;
  --link: #1d4ed8;
  --link-hover: #1e3a8a;
  --best: #ffd60a;
  --best-wash: #fffbe0;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Masthead */
.masthead { padding-top: 18px; }
.dateline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: #444444;
  border-bottom: 1px solid var(--ink); padding-bottom: 8px;
}
.wordmark {
  display: block; text-align: center; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 800; font-size: 76px; line-height: 1.1;
  letter-spacing: -2px; padding: 14px 0 8px;
}
.wordmark:hover { color: var(--ink); }
.sections {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px;
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0;
}
.sections a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.sections a:hover, .sections a.current { box-shadow: inset 0 -2px 0 var(--ink); }
.sections a.prompts { background: var(--best); padding: 4px 8px; }
.masthead.compact .wordmark-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 12px; border-bottom: 3px double var(--ink); padding-bottom: 10px;
}
.masthead.compact .wordmark { font-size: 40px; letter-spacing: -1px; padding: 0; text-align: left; line-height: 1; }
.masthead.compact .sections { border: 0; padding: 0; justify-content: flex-end; font-size: 12px; gap: 4px 18px; }

main { padding: 28px 0 72px; }

/* Type helpers */
.kicker {
  margin: 0 0 6px; font-family: var(--sans); font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--link);
}
.kicker a { color: inherit; text-decoration: none; }
.label {
  margin: 0 0 10px; font-family: var(--sans); font-weight: 800; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
}
h1.page-title { margin: 0 0 8px; font-weight: 800; font-size: 46px; line-height: 1.08; letter-spacing: -1px; }
.standfirst { margin: 0 0 24px; font-style: italic; font-size: 21px; color: #3a3a3a; }
.byline {
  margin: 0 0 28px; font-family: var(--sans); font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 8px 0;
}
.meta { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.best-tag {
  background: var(--best); color: var(--ink); font-family: var(--sans); font-weight: 800;
  font-size: 11px; letter-spacing: 1px; padding: 2px 8px; text-transform: uppercase;
  white-space: nowrap;
}

/* Front page */
.lead {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 28px;
}
.lead:hover { color: var(--ink); }
.lead-copy { flex: 999 1 460px; min-width: 0; }
.lead-copy .lead-title { display: block;  margin: 8px 0 10px; font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -1px; color: var(--ink); }
.lead-copy p { margin: 0; font-size: 20px; color: var(--ink-2); }
.columns { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 28px; align-items: flex-start; }
.columns > .main-col { flex: 999 1 560px; min-width: 0; }
.columns > .side-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 32px; }
.story-card { border-top: 1px solid var(--ink); padding: 16px 0 22px; }
.story-card .card-title { margin: 0 0 6px; font-weight: 800; font-size: 25px; line-height: 1.15; }
.story-card .card-title a { color: var(--ink); text-decoration: none; }
.story-card .card-title a:hover { text-decoration: underline; }
.story-card p.summary { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); }
.top-comment { margin: 0; font-family: var(--sans); font-size: 14px; background: var(--tint); padding: 8px 12px; }
.top-comment q { font-family: var(--serif); font-style: italic; font-size: 16px; }
.empty { color: var(--muted); font-style: italic; }

/* Front page: more Try Its, three across */
.more-tryits { margin-top: 28px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.section-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-row .label { margin: 0 0 4px; }
.tryit-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Side boxes */
.box { border-top: 3px double var(--ink); padding-top: 12px; }
.box ul { margin: 0; padding-left: 18px; }
.box li { margin-bottom: 8px; line-height: 1.35; }
.box li a { color: var(--ink); font-weight: 600; }
.scoreboard { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.scoreboard th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 0; }
.scoreboard td { padding: 6px 0; border-top: 1px solid var(--rule); }
.scoreboard td:first-child { font-weight: 700; }
.scoreboard .num { text-align: right; }

/* Lab results (tested prompts) */
.lab { background: var(--card); border: 2px solid var(--ink); padding: 18px; font-family: var(--sans); font-size: 15px; flex: 1 1 260px; }
.bars { display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.bar-head { display: flex; justify-content: space-between; gap: 8px; }
.bar { height: 8px; background: #e7e4dc; margin-top: 4px; }
.bar span { display: block; height: 8px; background: #6b6b6b; }
.bar.win span { background: var(--ink); }

/* Signup */
.signup-box { background: var(--ink); color: #ffffff; padding: 20px; }
.signup-box .signup-title { margin: 0 0 6px; font-weight: 800; font-size: 24px; line-height: 1.2; }
.signup-box p { margin: 0 0 12px; font-family: var(--sans); font-size: 14px; color: #d4d4d4; }
.signup-form { display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); }
.signup-form label { font-size: 13px; color: #d4d4d4; }
.signup-form input[type="email"] { min-height: 44px; border: 0; padding: 0 12px; font: inherit; font-size: 15px; }
.signup-form button { min-height: 44px; border: 0; background: var(--best); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.signup-form .cf-turnstile { min-height: 0; }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.signup-msg { min-height: 1em; margin: 4px 0 0; font-size: 13px; color: #d4d4d4; }

/* Story page */
.story h2 {
  margin: 26px 0 6px; font-family: var(--sans); font-weight: 800; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase;
}
.story p { margin: 0 0 6px; }
.steps { margin: 0; padding-left: 24px; }
.can-use { border: 1px solid var(--ink); padding: 14px 18px; margin: 24px 0 8px; }
.can-use h2 { margin-top: 0; }
.can-use dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 8px; }
.can-use dt { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding-top: 3px; }
.can-use dd { margin: 0; }
@media (max-width: 480px) { .can-use dl { grid-template-columns: 1fr; gap: 2px; } .can-use dd { margin-bottom: 8px; } }
.steps li { margin-bottom: 6px; }
.source { margin-top: 22px; font-family: var(--sans); font-size: 15px; }
.story-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 36px; border-top: 1px solid var(--ink); padding-top: 12px;
  font-family: var(--sans); font-size: 14px;
}
.story-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.story-nav a:hover { text-decoration: underline; }
.story-nav span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* Comment thread */
.thread { margin-top: 36px; border-top: 3px double var(--ink); padding-top: 18px; }
.thread-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.thread-head h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 30px; letter-spacing: 0; text-transform: none; }
.thread-note { margin: 6px 0 22px; font-family: var(--sans); font-size: 13px; color: var(--muted); background: var(--tint); padding: 8px 12px; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; font-family: var(--sans); font-size: 16px; line-height: 1.55; }
.comment { display: flex; gap: 12px; }
.comment-body { min-width: 0; flex: 1; }
.comment-body p { margin: 0; }
.who { margin: 0 0 2px; }
.who a { color: var(--ink); font-weight: 700; }
.job { border: 1px solid #cfcbc2; border-radius: 999px; padding: 1px 8px; font-size: 12px; color: #444444; margin-left: 4px; white-space: nowrap; }
.replies { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.reply-to { font-size: 13px; color: var(--muted); }
.avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: 13px; background: var(--ink);
}
.replies .avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: 12px; }
.avatar.large { flex-basis: 72px; width: 72px; height: 72px; font-size: 22px; }
.avatar.professor { background: #141414; }
.avatar.karen { background: #9a3412; }
.avatar.anchor { background: #991b1b; }
.avatar.boss { background: #1e3a8a; }
.avatar.yinzer { background: #166534; }

/* Tested prompt page */
.prompt-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.prompt-hero > div:first-child { flex: 999 1 520px; min-width: 0; }
.answer-first { margin: 0; font-size: 20px; color: var(--ink-2); }
.prompt-card { border: 2px solid var(--ink); background: var(--card); }
.prompt-box {
  margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: 15px; line-height: 1.65; background: #fffdf5;
}
.prompt-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 2px solid var(--ink); font-family: var(--sans); font-size: 14px; color: var(--muted);
}
.btn {
  background: var(--ink); color: #ffffff; border: 0; font-family: var(--sans); font-weight: 700;
  font-size: 15px; padding: 10px 20px; min-height: 44px; cursor: pointer;
}
.btn:hover { background: #333333; }
.app-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 20px; border-top: 1px solid var(--rule); font-family: var(--sans);
}
.app-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); color: var(--ink); background: var(--card);
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.app-link:hover { background: var(--tint); color: var(--ink); }
.app-link.best { border-width: 2px; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.result { border: 1px solid #cfcbc2; padding: 18px; background: var(--card); min-width: 0; }
.result.win { border: 2px solid var(--ink); background: var(--best-wash); }
.result-head { margin: 0 0 4px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--sans); font-weight: 800; font-size: 20px; }
.result-note { margin: 0 0 12px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); }
.model-output {
  font-family: var(--sans); font-size: 15px; line-height: 1.6; white-space: pre-wrap;
  overflow-wrap: anywhere; max-height: 560px; overflow-y: auto;
}
.model-output hr { border: 0; border-top: 1px dashed var(--rule); margin: 6px 0; }
.model-id { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
details.example { margin: 8px 0 16px; font-family: var(--sans); font-size: 14px; }
details.example summary { cursor: pointer; color: var(--link); }
.methods { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--muted); }
.section-head h2 { margin: 44px 0 14px; font-weight: 800; font-size: 32px; line-height: 1.15; }

/* Listing pages */
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.filter a { border: 1px solid #cfcbc2; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.filter a.current { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; font-family: var(--sans); font-size: 14px; }
.pagination a { color: var(--ink); border: 1px solid var(--ink); padding: 6px 12px; text-decoration: none; }
.archive-list { list-style: none; padding: 0; margin: 0; columns: 3 220px; font-family: var(--sans); }
.archive-list li { padding: 4px 0; break-inside: avoid; }
.archive-list a { color: var(--ink); font-weight: 600; }

/* The panel */
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cast-card { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; gap: 14px; }
.cast-card h2 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.cast-card h2 a { color: var(--ink); text-decoration: none; }
.cast-card p { margin: 4px 0 0; font-size: 17px; }
.profile { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.my-comments { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.my-comments li { border-top: 1px solid var(--rule); padding-top: 12px; }
.my-comments q { font-style: italic; font-size: 19px; }
.my-comments .on { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* Prose pages (privacy, terms) */
.prose h2 { font-family: var(--sans); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin: 28px 0 6px; }
.prose p { margin: 0 0 12px; }

footer.site-footer {
  border-top: 3px double var(--ink); padding: 18px 0 40px;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer.site-footer a { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 52px; letter-spacing: -1px; }
  .masthead.compact .wordmark { font-size: 32px; }
  .masthead.compact .sections { justify-content: flex-start; }
  .sections { gap: 4px 16px; font-size: 12px; }
  .dateline span:nth-child(3) { display: none; }
  h1.page-title { font-size: 34px; }
  .lead-copy .lead-title { display: block;  font-size: 32px; }
  .story-card .card-title { font-size: 22px; }
}
