/* /updates — Worker-rendered page styles (matches site tokens + liveliness). */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  --color-ink: #14213d;
  --color-bg: #faf7f2;
  --color-coral: #e4572e;
  --color-coral-hover: #c94a26;
  --color-green: #2a9d8f;
  --color-muted: #5c6478;
  --color-border: #e2ddd4;
  --color-border-ink: rgb(20 33 61 / 0.16);
  --color-surface: #ffffff;
  --font-sans: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 0.75rem;
  --radius-control: 0.875rem;
  --shadow-sm: 0 1px 2px rgb(20 33 61 / 0.06);
  --shadow-panel: 0 1px 2px rgb(20 33 61 / 0.07), 0 2px 8px rgb(20 33 61 / 0.06);
  --shadow-lift: 0 4px 14px rgb(20 33 61 / 0.1), 0 1px 3px rgb(20 33 61 / 0.06);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-fast: 180ms;
  --duration-med: 360ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

a {
  color: var(--color-coral);
}

a:hover {
  color: var(--color-coral-hover);
}

:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

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

.site-header-inner,
.site-footer-inner,
.updates-wrap {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .site-header-inner,
  .site-footer-inner,
  .updates-wrap {
    padding-inline: 1.5rem;
  }
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
  max-width: 100%;
  color: var(--color-ink);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--color-coral);
}

.brand-lockup__mark {
  display: block;
  flex-shrink: 0;
  height: 1.2em;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.brand-lockup__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}

.brand-lockup:hover .brand-lockup__name {
  color: var(--color-coral);
}

.brand-lockup--header {
  font-size: 1rem;
}

@media (min-width: 640px) {
  .brand-lockup--header {
    font-size: 1.125rem;
  }
}

.brand-lockup--footer {
  font-size: 1.125rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.nav-link,
.footer-link {
  color: rgb(20 33 61 / 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover,
.footer-link:hover {
  color: var(--color-coral);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-control);
  background: var(--color-coral);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), var(--shadow-sm);
  transition:
    transform var(--duration-fast) var(--ease-pop),
    background-color var(--duration-fast) ease;
}

.btn-primary:hover {
  background: var(--color-coral-hover);
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

.updates-main {
  position: relative;
  flex: 1;
  padding-block: 2.5rem 4rem;
  overflow: clip;
}

.updates-atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgb(228 87 46 / 0.12), transparent 60%),
    radial-gradient(ellipse 55% 40% at 90% 10%, rgb(42 157 143 / 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgb(20 33 61 / 0.06), transparent 60%);
}

.updates-wrap {
  position: relative;
}

.updates-hero {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-coral);
}

.updates-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.85rem 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.feed-line {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.updates-stream {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.release {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .release {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.release:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.release-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.release-version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.release-version {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.release-date {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.latest-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-coral) 14%, var(--color-surface));
  color: var(--color-coral);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.release-entries {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.entry {
  background: var(--color-surface);
  border: 1px solid var(--color-border-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 1.15rem 1.25rem;
  transition:
    transform var(--duration-med) var(--ease-soft),
    box-shadow var(--duration-med) var(--ease-soft),
    border-color var(--duration-fast) ease;
}

.entry:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-coral) 35%, var(--color-border));
  box-shadow: var(--shadow-lift);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.chip,
.product-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chip-new {
  background: color-mix(in srgb, var(--color-green) 16%, var(--color-surface));
  color: color-mix(in srgb, var(--color-green) 85%, var(--color-ink));
}

.chip-improved {
  background: color-mix(in srgb, var(--color-coral) 14%, var(--color-surface));
  color: var(--color-coral);
}

.chip-fixed {
  background: color-mix(in srgb, var(--color-ink) 8%, var(--color-surface));
  color: var(--color-ink);
}

.product-pill {
  background: color-mix(in srgb, var(--color-bg) 70%, var(--color-surface));
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.entry-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.entry-summary {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

.entry-bullets {
  margin: 0.85rem 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.entry-bullets li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.entry-link {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.state-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 1.5rem;
  max-width: 36rem;
}

.state-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.state-panel p {
  margin: 0;
  color: var(--color-muted);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-footer-inner {
  padding-block: 3rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 24rem;
}

.footer-full-name {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-blurb,
.footer-email {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.motion-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}

.reveal {
  transition:
    opacity 0.55s var(--ease-soft),
    transform 0.55s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .entry,
  .entry:hover,
  .btn-primary,
  .btn-primary:hover,
  .btn-primary:active {
    transform: none !important;
    transition:
      background-color var(--duration-fast) ease,
      border-color var(--duration-fast) ease,
      color var(--duration-fast) ease,
      box-shadow var(--duration-fast) ease !important;
  }
}
