/* searchgpt.net: AI news and search guides */
:root {
  --paper: #f5f3ee;
  --card: #fffdf9;
  --ink: #121417;
  --ink-2: #353a41;
  --muted: #646a72;
  --rule: #dcd7cc;
  --rule-strong: #121417;
  --accent: #d9481a;
  --accent-ink: #a8330c;
  --accent-soft: #fbe6dc;
  --link: #1d44c9;
  --openai: #121417;
  --anthropic: #c4613f;
  --google: #2f6fe0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.topline { border-bottom: 1px solid var(--rule); font: 500 12.5px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.site-header { border-bottom: 3px double var(--rule-strong); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 25px/1 var(--serif); letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 600; }
.brand span { color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }

/* shared bits */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.kicker.openai::before { background: var(--openai); }
.kicker.anthropic::before { background: var(--anthropic); }
.kicker.google::before { background: var(--google); }
.meta { font: 500 13px/1.5 var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.section-title { display: flex; align-items: baseline; gap: 14px; border-top: 2px solid var(--ink); padding-top: 12px; margin: 0 0 22px; font-size: 26px; }
.section-title small { font: 500 12.5px var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* home */
.front { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 44px; padding: 36px 0 52px; }
.lead-story a.lead-img { display: block; border: 1px solid var(--rule); background: var(--card); }
.lead-story h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 12px; }
.lead-story h2 a, .story h3 a, .more-list a { color: var(--ink); text-decoration: none; }
.lead-story h2 a:hover, .story h3 a:hover, .more-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.lead-story .dek { font-size: 19px; color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.timeline { border-left: 1px solid var(--rule); padding-left: 28px; }
.timeline h2 { font-size: 22px; margin-bottom: 4px; }
.timeline > p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.timeline time { font: 500 12.5px/1.6 var(--mono); color: var(--accent-ink); text-transform: uppercase; }
.timeline li a { color: var(--ink); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; margin-bottom: 56px; }
.story img { border: 1px solid var(--rule); margin-bottom: 14px; aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; background: var(--card); }
.story h3 { font-size: 22px; margin: 10px 0 8px; }
.story p { margin: 0 0 10px; color: var(--ink-2); font-size: 15.5px; }
.about-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 2px solid var(--ink); padding: 26px 0 64px; }
.about-strip h3 { font-size: 19px; margin-bottom: 6px; }
.about-strip p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* article */
.article { padding-top: 26px; padding-bottom: 70px; }
.crumbs { font: 500 13px var(--mono); color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.article-head { max-width: 860px; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.article-head h1 { font-size: clamp(34px, 5vw, 54px); margin: 14px 0 16px; }
.article-head .dek { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; max-width: 64ch; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: 64px; justify-content: space-between; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.toc summary { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; list-style: none; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 9px 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 500 12px/1.75 var(--mono); color: var(--accent-ink); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.prose > * { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose h2 { font-size: 31px; margin: 46px 0 16px; padding-top: 4px; }
.prose h3 { font-size: 22px; margin: 30px 0 10px; }
.prose code { font: 500 .88em var(--mono); background: #ebe7de; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.prose strong { font-weight: 600; }
.lede { font-size: 19px; }
.nowrap { white-space: nowrap; }
kbd { font: 500 .85em var(--mono); border: 1px solid var(--rule); border-bottom-width: 2px; background: var(--card); border-radius: 5px; padding: 1px 6px; }

.facts { margin: 0 0 30px; border: 1px solid var(--ink); background: var(--card); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts div { padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.4; }

.table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--rule); background: var(--card); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #efece5; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 7em; }
td.num { font-family: var(--mono); font-size: 14px; white-space: nowrap; }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; margin: 0 0 26px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note > strong:first-child { display: block; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 6px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0 46px; margin-bottom: 16px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px/30px var(--mono); text-align: center; }

figure { margin: 6px 0 30px; }
figure img { border: 1px solid var(--rule); background: #fff; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.tested { font: 500 12.5px var(--mono); color: var(--accent-ink); }

.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); margin: 0 0 28px; background: var(--card); }
.verdict > div { padding: 18px 20px; }
.verdict > div + div { border-left: 1px solid var(--rule); }
.verdict h3 { font-size: 19px; margin: 0 0 8px; }
.verdict ul { margin: 0; padding-left: 18px; font-size: 15.5px; }

.faq h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; margin: 24px 0 6px; }
.sources { border-top: 2px solid var(--ink); margin-top: 46px; padding-top: 14px; font-size: 14.5px; }
.sources h2 { font: 500 12.5px var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px !important; }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 6px; color: var(--muted); }
.disclaimer { font-size: 14px; color: var(--muted); border: 1px solid var(--rule); padding: 12px 16px; margin: 26px 0 0; }

.related { border-top: 3px double var(--ink); margin-top: 64px; padding-top: 22px; }
.related h2 { font-size: 24px; margin-bottom: 18px; }
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.more-list article { border-top: 1px solid var(--rule); padding-top: 12px; }
.more-list h3 { font-size: 19px; margin: 8px 0 6px; }
.more-list p { margin: 0; font-size: 15px; color: var(--ink-2); }

.notfound { padding-top: 80px; padding-bottom: 100px; max-width: 640px; }
.notfound h1 { font-size: 44px; margin: 12px 0 14px; }

@media (max-width: 1000px) {
  .front { grid-template-columns: 1fr; gap: 36px; }
  .timeline { border-left: 0; padding-left: 0; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; order: -1; margin-bottom: 26px; }
  .toc summary { list-style: revert; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; gap: 0; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0 0 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .about-strip, .more-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .topline .wrap span + span { display: none; }
  .brand { font-size: 22px; }
  .stories { grid-template-columns: 1fr; }
  .facts, .verdict { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .facts div:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .verdict > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .prose h2 { font-size: 26px; }
  .article-head .dek, .lead-story .dek { font-size: 18px; }
  .timeline li { grid-template-columns: 54px 1fr; }
}
