/* beeloop.ai/news (news.ts): release posts in the site's look, laid out as Unreal's news posts are. A narrow column
   for the words, wide pictures that break out of it, a big picture at the top. */
@font-face {
  font-family: "Geist";
  src: url("/static/site/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --raise: #121213;
  --well: #0e0e0f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ink: #ffffff;
  --body: #d2d2cd;
  --mute: #9a9a95;
  --honey: #f6d77a;
  --honey-light: #fbe6a3;
  --on-honey: #17120a;
  --bar: 64px;
  --gutter: clamp(16px, 3vw, 40px);
  --column: 720px;
  --wide: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--bar) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.7 "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--honey);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--honey-light);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--honey);
  color: var(--on-honey);
}

.skip:focus {
  top: 12px;
}

/* --- the bar --- */

.news-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--bar);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--honey-light);
  text-decoration: none;
}

.news-bar .links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.news-bar .links a {
  padding: 7px 12px;
  color: var(--mute);
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-bar .links a:hover,
.news-bar .links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--honey);
  color: var(--on-honey);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.button.small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.button:hover {
  background: var(--honey-light);
  color: var(--on-honey);
  text-decoration: none;
}

.button.ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--honey);
  background: transparent;
  color: var(--honey);
}

/* --- a post --- */

.news-post,
.news-index {
  padding: clamp(36px, 7vw, 88px) var(--gutter) 40px;
}

.news-head {
  max-width: var(--column);
  margin: 0 auto;
}

.news-crumbs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-crumbs a {
  color: var(--honey);
}

.news-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.news-dek {
  margin: 18px 0 0;
  color: var(--body);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.news-meta {
  display: inline-flex;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.news-figure {
  max-width: var(--wide);
  margin: clamp(32px, 5vw, 56px) auto;
}

.news-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--well);
}

.news-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.news-figure a:hover {
  border-color: var(--line-strong);
}

.news-figure figcaption {
  max-width: var(--column);
  margin: 12px auto 0;
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.5;
}

.news-hero {
  margin-top: clamp(36px, 6vw, 64px);
}

.news-hero a {
  border-radius: 18px;
  box-shadow: 0 40px 120px -40px rgba(246, 215, 122, 0.18);
}

.news-body {
  max-width: var(--wide);
  margin: 0 auto;
}

.news-body > p,
.news-body > .news-in,
.news-part,
.news-get {
  max-width: var(--column);
  margin-left: auto;
  margin-right: auto;
}

.news-lede {
  margin-top: 0;
  margin-bottom: 1.1em;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.news-in {
  margin-top: 36px;
  margin-bottom: 8px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raise);
}

.news-in p {
  margin: 0 0 8px;
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-in ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-in a {
  font-size: 0.95rem;
}

.news-part {
  margin-top: clamp(40px, 6vw, 72px);
}

.news-part h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.news-part p {
  margin: 0 0 1em;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-list li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
}

.news-list li::before {
  content: "";
  position: absolute;
  top: 1.35em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--honey);
}

.news-get {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 215, 122, 0.08), rgba(246, 215, 122, 0) 70%), var(--raise);
}

.news-get h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 640;
  letter-spacing: -0.025em;
}

.news-get p {
  margin: 0;
}

.news-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 22px !important;
}

.news-more {
  font-size: 0.95rem;
}

/* --- the list of posts --- */

.news-index .news-head {
  max-width: var(--wide);
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  max-width: var(--wide);
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  color: var(--body);
}

.news-card:hover {
  text-decoration: none;
}

.news-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--well);
}

.news-card:hover img {
  border-color: var(--honey);
}

.news-card .news-meta {
  margin-top: 16px;
}

.news-card b {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.news-card:hover b {
  color: var(--honey);
}

.news-card-dek {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* --- the foot --- */

.news-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: var(--wide);
  margin: 72px auto 0;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}

.news-foot span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 600;
}

.news-foot a {
  color: var(--mute);
}

.news-foot a:hover {
  color: var(--honey);
}

@media (max-width: 760px) {
  .news-bar .links {
    display: none;
  }

  .news-bar .button {
    margin-left: auto;
  }

  .news-figure {
    margin-left: calc(var(--gutter) * -0.5);
    margin-right: calc(var(--gutter) * -0.5);
  }

  .news-figure figcaption {
    padding: 0 calc(var(--gutter) * 0.5);
  }
}
