:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #f0f3ef;
  --ink: #0c111d;
  --ink-soft: #2c3445;
  --muted: #626b7b;
  --quiet: #8b93a1;
  --line: rgba(12, 17, 29, 0.12);
  --line-strong: rgba(12, 17, 29, 0.2);
  --openai: #0f8f70;
  --claude: #b5784c;
  --google: #2f66d5;
  --github: #24292f;
  --microsoft: #d75b3d;
  --tools: #626b7b;
  --accent: #0c111d;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 12px 40px rgba(20, 26, 38, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--openai);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-weight: 760;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 36px);
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  padding: 23px 0 21px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.lang-switch a,
.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
}

.lang-switch a[aria-current="page"],
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

.hero-visual picture,
.brief-image picture,
.row-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero,
.latest-section,
.site-footer,
.brief-page,
.vendor-page {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

.hero {
  padding-top: clamp(50px, 6vw, 84px);
  padding-bottom: clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 780;
}

.hero-copy p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft);
}

.hero-visual {
  overflow: hidden;
  height: clamp(240px, 25vw, 360px);
  margin: clamp(28px, 4vw, 44px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 720;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.meta-line span + span {
  position: relative;
}

.meta-line span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--quiet);
}

.latest-section {
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
}

.section-head p {
  margin-bottom: 0;
}

.placeholder-thumb.openai {
  background: var(--openai);
}

.placeholder-thumb.claude {
  background: var(--claude);
}

.placeholder-thumb.google {
  background: var(--google);
}

.placeholder-thumb.github {
  background: var(--github);
}

.placeholder-thumb.microsoft {
  background: var(--microsoft);
}

.placeholder-thumb.tools {
  background: var(--tools);
}

.company-brief-groups {
  display: grid;
  gap: clamp(34px, 5vw, 56px);
}

.company-brief-group {
  display: grid;
  gap: 18px;
}

.company-group-head {
  display: block;
}

.company-group-head h3 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

.company-section-actions {
  display: flex;
  justify-content: flex-end;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.brief-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.brief-row {
  display: grid;
  grid-template-columns: 82px minmax(260px, 1fr) minmax(160px, auto);
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.brief-row + .brief-row {
  margin-top: 1px;
}

a.brief-row:hover {
  background: var(--surface);
}

.row-thumb {
  display: block;
  overflow: hidden;
  width: 72px;
  height: 46px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-thumb {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 820;
}

.row-main strong {
  display: block;
  line-height: 1.25;
}

.row-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.row-date {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.row-date span {
  display: block;
}

.row-date span + span {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 620;
}

.muted-row {
  color: color-mix(in srgb, var(--ink) 76%, var(--quiet));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
  font-size: 18px;
}

.site-footer p {
  margin-bottom: 0;
}

/* Brief pages */

.brief-page {
  padding-top: 48px;
  padding-bottom: 68px;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.62fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  margin-bottom: 42px;
}

.brief-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
}

.brief-deck {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
}

.source-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.source-card h2 {
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.source-card div {
  display: grid;
  gap: 2px;
}

.source-card dt {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

.source-card .button {
  width: 100%;
}

.source-timestamps {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.source-timestamps h3 {
  margin-bottom: 12px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.source-timestamps ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-timestamps li {
  display: flex;
  min-width: 0;
  padding-left: 2ch;
}

.source-timestamps a {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  align-content: start;
  align-items: start;
  justify-items: start;
  width: 100%;
  height: 100%;
  min-height: 58px;
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.source-timestamps a:hover {
  color: var(--ink);
}

.timestamp-time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.timestamp-label {
  color: var(--ink-soft);
}

.brief-image {
  margin-bottom: 44px;
}

.brief-image picture {
  height: auto;
}

.brief-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.brief-layout.content-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
}

.brief-content {
  display: grid;
  gap: 34px;
}

.brief-content section {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.brief-content h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.brief-content p,
.brief-content li {
  color: var(--ink-soft);
  font-size: 17px;
}

.brief-content ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.brief-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.side-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.side-box h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.side-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-box li,
.side-box p {
  color: var(--ink-soft);
  font-size: 14px;
}

.side-box p {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8eef6;
  color: #314159;
  font-size: 13px;
  font-weight: 720;
}

.vendor-page {
  padding-top: 48px;
  padding-bottom: 68px;
}

.vendor-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.vendor-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 76px);
}

.vendor-hero p {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft);
}

.vendor-status {
  justify-self: end;
  max-width: 280px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
}

.vendor-status strong,
.vendor-status span {
  display: block;
}

.vendor-status strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.vendor-briefs {
  padding-top: 34px;
}

.vendor-briefs .section-head {
  grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 0.65fr);
}

@media (max-width: 1120px) {
  .hero-copy h1 {
    max-width: 12ch;
  }

  .brief-row {
    grid-template-columns: 82px minmax(220px, 1fr);
  }

  .row-date {
    grid-column: 2;
  }

}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  [id] {
    scroll-margin-top: 116px;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 98px;
    padding: 12px 18px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0;
    margin: 0 -18px;
    padding: 0 18px;
    width: calc(100% + 36px);
    font-size: 11px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 11px 2px 13px;
    text-align: center;
    white-space: nowrap;
  }

  .hero,
  .latest-section,
  .site-footer,
  .brief-page,
  .vendor-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .hero-copy h1 {
    max-width: 11ch;
    margin-bottom: 18px;
    font-size: clamp(44px, 15vw, 62px);
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-visual {
    height: auto;
    aspect-ratio: 16 / 7;
    margin-top: 28px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .button {
    width: 100%;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .company-group-head {
    display: block;
  }

  .company-section-actions {
    justify-content: flex-start;
  }

  .brief-list {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .brief-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .brief-row + .brief-row {
    margin-top: 0;
  }

  .row-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .placeholder-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: auto;
  }

  .row-main,
  .row-date {
    grid-column: 1;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }

  .brief-page {
    padding-top: 34px;
  }

  .brief-hero,
  .brief-layout {
    grid-template-columns: 1fr;
  }

  .brief-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  html[lang="zh-CN"] .brief-hero h1 {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .brief-deck {
    font-size: 18px;
  }

  .source-card {
    padding: 18px;
  }

  .source-card h2 {
    margin-bottom: 14px;
  }

  .source-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  .source-card dl > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface) 84%, var(--surface-soft));
  }

  .source-card dl > div:first-child {
    grid-column: 1 / -1;
  }

  .source-card dd {
    line-height: 1.4;
  }

  .source-card .button {
    min-height: 44px;
  }

  .source-timestamps {
    margin-top: 16px;
    padding-top: 16px;
  }

  .source-timestamps ul {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 5px;
  }

  .source-timestamps a {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    align-items: baseline;
    min-height: 0;
    padding: 3px 0;
  }

  .brief-image {
    margin-right: -18px;
    margin-left: -18px;
  }

  .brief-image img {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .brief-side {
    position: static;
    order: -1;
  }

  .vendor-page {
    padding-top: 34px;
  }

  .vendor-hero {
    grid-template-columns: 1fr;
  }

  .vendor-status {
    justify-self: stretch;
    max-width: none;
  }

  .vendor-briefs .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 42px;
  }

  html[lang="zh-CN"] .brief-hero h1 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .nav-links {
    font-size: 11px;
  }

  .meta-line {
    display: grid;
    gap: 4px;
  }

  .meta-line span + span::before {
    display: none;
  }
}

@media (orientation: landscape) and (max-width: 980px) and (max-height: 520px) {
  .site-header {
    display: none;
  }

  [id] {
    scroll-margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
