/* updates.pingdex.app
   Tokens match the marketing site (marketing/src/style.css, .home). */

/* Inter 5.2.8, variable (weight 400-700, optical size), latin subset.
   SIL Open Font License 1.1, https://github.com/rsms/inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  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 {
  --c-heading: #0c1035;
  --c-text: #474d6f;
  --c-muted: #686e91;
  --c-line: #e4e6ef;
  --c-line-soft: #eef0f5;
  --c-soft: #f6f7fb;
  --c-brand: #5546ec;
  --c-brand-strong: #4433d6;
  --c-brand-soft: #efedfe;
  --wrap: 1040px;
  --gutter: clamp(16px, 4vw, 32px);
  --date-col: 11rem;
  --col-gap: 2.5rem;
  --measure: 44rem;
  --shadow-image: 0 0 0 1px rgba(12, 16, 53, 0.08), 0 14px 32px -16px rgba(12, 16, 53, 0.24);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

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

.masthead :focus-visible {
  outline-color: #fff;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--c-heading);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  height: 44px;
  padding: 0 1.25rem;
  color: #fff;
  background: var(--c-brand);
  box-shadow: 0 1px 2px rgba(12, 16, 53, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--c-brand-strong);
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, #1f33d1 0%, #3d3be6 30%, #6a3fe6 56%, #b048d6 78%, #ec5aa4 100%);
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 22rem at 8% 0%, rgba(56, 132, 255, 0.5), transparent 70%),
    radial-gradient(30rem 20rem at 96% 110%, rgba(255, 112, 196, 0.55), transparent 70%);
  pointer-events: none;
}

.masthead > * {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

/* One white PNG, tinted with currentColor so the logo follows its surroundings */
.brand-mark {
  display: block;
  width: 110px;
  height: 29px;
  background-color: currentColor;
  -webkit-mask: url('/logo-white.png') center / contain no-repeat;
  mask: url('/logo-white.png') center / contain no-repeat;
}

.brand-section {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navlink {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.navlink:hover {
  color: #fff;
}

.hero {
  padding-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.55;
}

.search {
  position: relative;
  max-width: 26rem;
  margin-top: 1.6rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 46px;
  padding: 0 1.1rem 0 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: background-color 180ms ease, color 180ms ease;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.search:focus-within {
  color: var(--c-muted);
}

.search input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: #fff;
  color: var(--c-heading);
}

.search input:focus::placeholder {
  color: var(--c-muted);
}

/* ---------- Filters ---------- */
.filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--c-line-soft);
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.8rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters-row::-webkit-scrollbar {
  display: none;
}

.filters-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  margin-inline: 0.35rem;
  background: var(--c-line);
}

.chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.chip:hover {
  box-shadow: inset 0 0 0 1px #c9cde0;
  color: var(--c-heading);
}

.chip.is-active {
  background: var(--c-brand-soft);
  box-shadow: none;
  color: var(--c-brand-strong);
  font-weight: 600;
}

/* ---------- Entries ---------- */
.entry {
  display: grid;
  grid-template-columns: var(--date-col) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--c-line-soft);
}

.entry-date {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  padding-top: 0.2rem;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 500;
}

.entry-main {
  max-width: var(--measure);
  min-width: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.badge-feature {
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
}

.badge-improvement {
  background: #e1f4ec;
  color: #0b6449;
}

.badge-fix {
  background: #fdf0db;
  color: #84490a;
}

.badge-announcement {
  background: #fde8f2;
  color: #9c1f5b;
}

.badge-draft {
  background: #fff1c2;
  color: #6f5200;
}

.tag,
.badge-search {
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-muted);
  font-weight: 500;
}

a.tag:hover {
  box-shadow: inset 0 0 0 1px #c9cde0;
  color: var(--c-heading);
}

.entry-title {
  margin: 0 0 1.1rem;
  color: var(--c-heading);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.entry-title a:hover {
  color: var(--c-brand-strong);
}

.entry-image {
  display: block;
  margin: 0 0 1.6rem;
}

.entry-image img,
.prose img {
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-image);
}

/* ---------- Note body ---------- */
.prose {
  overflow-wrap: break-word;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p {
  margin: 0 0 1.05em;
}

.prose h3,
.prose h4 {
  margin: 1.9em 0 0.6em;
  color: var(--c-heading);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose h4 {
  font-size: 1.04rem;
}

.prose strong {
  color: var(--c-heading);
  font-weight: 600;
}

.prose a {
  color: var(--c-brand-strong);
  text-decoration: underline;
  text-decoration-color: rgba(68, 51, 214, 0.35);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4em;
  padding-left: 0.2rem;
}

.prose li::marker {
  color: var(--c-muted);
}

.prose figure {
  margin: 1.6em 0;
}

.prose p > img {
  margin-block: 0.6em;
}

.prose figcaption {
  margin-top: 0.6rem;
  color: var(--c-muted);
  font-size: 14px;
}

.prose hr {
  height: 1px;
  margin: 2em 0;
  border: 0;
  background: var(--c-line);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--c-brand-soft);
  color: var(--c-heading);
}

.prose code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--c-soft);
  color: var(--c-heading);
  font-size: 0.9em;
}

.prose table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
}

.prose th {
  color: var(--c-heading);
  font-weight: 600;
}

.video {
  position: relative;
  margin: 1.6em 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-heading);
  box-shadow: var(--shadow-image);
  aspect-ratio: 16 / 9;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Earlier updates ---------- */
.archive {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1rem;
}

.archive > h2,
.results > h2 {
  margin: 0 0 1.5rem;
  color: var(--c-heading);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.archive-year {
  display: grid;
  grid-template-columns: var(--date-col) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-block: 1.1rem;
  border-top: 1px solid var(--c-line-soft);
}

.archive-year h3 {
  margin: 0;
  padding-top: 0.5rem;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 600;
}

.archive-year ul,
.results ul {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-year li,
.results li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.5rem;
}

.results li {
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
}

.archive-year time,
.results time {
  color: var(--c-muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.archive-year li a,
.results li a {
  color: var(--c-heading);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.archive-year li a:hover,
.results li a:hover {
  color: var(--c-brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  min-height: 40vh;
}

.empty {
  padding-block: 4rem;
  color: var(--c-muted);
}

/* ---------- A note's own page ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back:hover {
  color: var(--c-heading);
}

.entry-single {
  padding-top: 1.75rem;
  border-bottom: 0;
}

.entry-single .entry-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 2rem 1rem;
  border-top: 1px solid var(--c-line-soft);
}

.pager-link {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.pager-link:hover {
  background: var(--c-soft);
  box-shadow: inset 0 0 0 1px #c9cde0;
}

.pager-link span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--c-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.pager-next {
  text-align: right;
}

/* ---------- 404 ---------- */
.missing {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.missing .eyebrow {
  color: var(--c-brand-strong);
}

.missing h1 {
  margin: 0 0 0.75rem;
  color: var(--c-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.missing p {
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--c-line-soft);
}

.foot .brand {
  color: var(--c-heading);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.foot-links a {
  color: var(--c-muted);
  font-size: 14px;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--c-heading);
}

.foot-bottom p {
  margin: 1.75rem 0 0;
  color: var(--c-muted);
  font-size: 13px;
}

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .entry,
  .archive-year {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-date {
    position: static;
    margin-bottom: 0.75rem;
    padding-top: 0;
  }

  .archive-year h3 {
    padding: 0 0 0.35rem;
  }

  .archive-year .badge,
  .results .badge {
    display: none;
  }

  .archive-year li,
  .results li {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .results li {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-next {
    text-align: left;
  }

  .pager > span {
    display: none;
  }
}

@media (max-width: 520px) {
  .topnav {
    gap: 1rem;
  }

  .topnav .navlink:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .filters,
  .search,
  .topnav,
  .pager,
  .foot-links {
    display: none;
  }

  .masthead {
    background: none;
    color: var(--c-heading);
  }

  .masthead::before {
    display: none;
  }
}
