/* Step Into Dev Theme - Custom CSS */

/* ===================================
   CSS Custom Properties
   =================================== */

:root {
  /* Surfaces: blue-black ink */
  --bg-primary: #0d1117;
  --bg-raised: #141a23;
  --bg-card: rgba(196, 212, 240, 0.04);
  --bg-card-hover: rgba(196, 212, 240, 0.08);
  --border-default: rgba(196, 212, 240, 0.12);
  --border-strong: rgba(196, 212, 240, 0.28);
  --border-hover: var(--border-strong);

  /* One accent. Sky blue on ink. */
  --accent: #7fb0f5;
  --accent-strong: #a6c8ff;
  --accent-dim: rgba(127, 176, 245, 0.16);

  /* Legacy hue tokens, kept for the playgrounds, charts and leaderboard. */
  --blue-500: #5e93de;
  --blue-400: #7fb0f5;
  --blue-600: #4677c2;
  --blue-950: #16213a;
  --violet-500: #9b8bd4;
  --violet-400: #b5a7e8;
  --violet-600: #7e6cb8;
  --cyan-500: #4fa9b8;
  --cyan-400: #7cc8d4;
  --cyan-600: #3a8a98;

  /* Neutral */
  --gray-900: #141a23;
  --gray-800: #1c2430;

  /* Text */
  --text-primary: #e4e9f2;
  --text-secondary: #a7b0c0;
  --text-muted: #6f7a8c;

  /* Tags */
  --tag-bg: var(--bg-card);
  --tag-text: var(--text-secondary);

  /* Shadows: flat design, kept only for the pages that still ask for them */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-glow-blue: none;
  --shadow-glow-violet: none;
  --shadow-glow-cyan: none;

  /* Spacing */
  --container-max: 44rem;
  --container-narrow: 65ch;
  --container-padding: 1.25rem;

  /* Typography. No web fonts: the serif is shared with the Words pages. */
  --font-serif: Baskerville, 'Libre Baskerville', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

/* ===================================
   Layout
   =================================== */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
  border-bottom: 1px solid var(--border-default);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem var(--container-padding);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-strong);
}

/* Art and Words are side doors: present, not promoted */
.nav-item-quiet {
  font-size: 0.8125rem;
}

.nav-item-quiet:first-of-type {
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-default);
}

.nav-link-quiet {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===================================
   House marks: italic serif dates, the short rule under titles
   (both borrowed from the poem pages in Words)
   =================================== */

.date-serif,
.post-row-date,
.latest-meta time,
.post-meta time,
.series-post-meta time {
  font-family: var(--font-serif);
  font-style: italic;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.01em;
}

.title-rule::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--border-strong);
  margin-top: 0.9rem;
}

.post-dateline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
}

/* ===================================
   Latest Post (homepage lead)
   =================================== */

.latest-post {
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border-default);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.latest-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.latest-title a {
  transition: color var(--transition-fast);
}

.latest-title a:hover {
  color: var(--accent-strong);
}

.latest-excerpt {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: 1.25rem;
}

.latest-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.latest-series {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
}

.latest-series:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.latest-cta {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: 0.25rem;
  transition: background var(--transition-fast);
}

.latest-cta:hover {
  background: var(--accent-strong);
}

/* ===================================
   Series strip (homepage, under the latest post)
   =================================== */

.series-strip {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-default);
}

.series-strip-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.series-strip-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-strip-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.series-strip-link:hover {
  color: var(--accent-strong);
}

.series-strip-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-fast);
}

.series-strip-link:hover .series-strip-count {
  color: var(--accent);
}

/* ===================================
   Posts Section
   =================================== */

.posts-section {
  padding: 2.5rem 0 2rem;
}

.series-section {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border-default);
}

.section-header {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
}

.view-all {
  margin-top: 1.5rem;
}

.view-all-link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.view-all-link:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

/* ===================================
   Post Row (lists, homepage recent)
   =================================== */

.post-row {
  border-top: 1px solid var(--border-default);
}

.post-row:last-child {
  border-bottom: 1px solid var(--border-default);
}

.post-row-link {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
}

.post-row-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
  white-space: nowrap;
}

.post-row-title {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
}

.post-row-link:hover .post-row-title {
  color: var(--accent-strong);
}

.post-row-excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-separator {
  color: var(--text-muted);
}

/* Tags (single post, tag pages) */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: 0.25rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--border-default);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tag-link:hover {
  color: var(--accent-strong);
  border-color: var(--border-strong);
}

/* ===================================
   Page Header
   =================================== */

.page-header {
  padding: 3rem 0 1.5rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ===================================
   Single Post
   =================================== */

.single-post {
  padding: 3rem 0 4rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Copy as Markdown Button */
.copy-md-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.copy-md-btn:hover {
  color: var(--accent-strong);
  border-color: var(--border-strong);
}

.copy-md-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

.post-cover {
  margin: 2rem 0;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.post-cover-img {
  width: 100%;
  height: auto;
}

/* ===================================
   Prose Content
   =================================== */

.prose {
  color: var(--text-secondary);
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.75rem;
}

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

.prose h4 {
  font-size: 1.125rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.prose a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

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

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--text-secondary);
  font-style: italic;
}

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

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.35em;
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 0.25rem;
  color: var(--text-primary);
}

.prose pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--bg-raised);
  border: 1px solid var(--border-default);
  border-radius: 0.375rem;
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.prose img {
  margin: 1.5rem 0;
  border-radius: 0.375rem;
  border: 1px solid var(--border-default);
}

.prose hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--border-default);
}

.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th, .prose td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--border-strong);
}

/* ===================================
   Post Navigation
   =================================== */

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-default);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-nav-link {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background-color: var(--bg-card);
  transition: 
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.post-nav-link:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.post-nav-prev {
  text-align: left;
}

.post-nav-next {
  text-align: right;
  grid-column: 2;
}

.post-nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.post-nav-title {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ===================================
   Terms/Tags List
   =================================== */

.terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.term-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background-color: var(--bg-card);
  transition: 
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.term-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.term-name {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.term-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.125rem 0.5rem;
  background-color: var(--bg-card);
  border-radius: 0.25rem;
}

/* ===================================
   Newsletter Section
   =================================== */

.newsletter-section {
  margin-top: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border-default);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.newsletter-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.newsletter-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  width: 15rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 0.25rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-button {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.newsletter-button:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

/* ===================================
   Series Pages
   =================================== */

.series-header {
  text-align: center;
}

.series-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.series-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.series-stat-separator {
  color: var(--text-muted);
}

.series-intro {
  max-width: 42rem;
  margin: 2rem auto;
  text-align: center;
}

.series-posts {
  padding: 2rem 0;
}

.series-posts-list {
  counter-reset: series-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.series-post-item {
  counter-increment: series-counter;
}

.series-post-link {
  display: flex;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-default);
}

.series-post-item:last-child .series-post-link {
  border-bottom: 1px solid var(--border-default);
}

.series-post-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
  align-items: flex-start;
}

.series-post-number::before {
  content: counter(series-counter);
}

.series-post-content {
  flex: 1;
  min-width: 0;
}

.series-post-title {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  transition: color var(--transition-fast);
}

.series-post-link:hover .series-post-title {
  color: var(--accent-strong);
}

.series-post-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Series list (homepage and /series/) */
.series-grid {
  display: flex;
  flex-direction: column;
}

.series-card {
  display: block;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-default);
}

.series-card:last-child {
  border-bottom: 1px solid var(--border-default);
}

.series-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.series-card-title {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.series-card:hover .series-card-title {
  color: var(--accent-strong);
}

.series-card-description {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-post-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
  border-top: 1px solid var(--border-default);
  padding: 2rem 0;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-text a:hover {
  color: var(--text-primary);
}

/* ===================================
   Pagination
   =================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  transition: 
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.pagination .page-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.pagination .page-item.active .page-link {
  color: var(--text-primary);
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  html {
    font-size: 16px;
  }

  .latest-post {
    padding: 2.5rem 0 2.25rem;
  }

  .latest-title {
    font-size: 2rem;
  }

  .latest-excerpt {
    font-size: 1.0625rem;
  }

  .post-row-link {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .series-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .series-strip-links {
    gap: 0.5rem;
  }

  .post-row-date {
    padding-top: 0;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .newsletter-input {
    width: auto;
    flex: 1;
  }
  
  
  
  
  .post-title {
    font-size: 1.75rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 1.25rem;
  }
  
  
  .post-nav {
    grid-template-columns: 1fr;
  }
  
  .post-nav-next {
    grid-column: 1;
    text-align: left;
  }
  
  
  
  
  
  
  
  
  .series-post-link {
    flex-direction: column;
    gap: 1rem;
  }
  
  .series-post-number {
    width: auto;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 0.9rem;
  }

  .nav-links {
    flex-basis: 100%;
  }
  
  .nav-links {
    gap: 0.9rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .nav-item-quiet:first-of-type {
    margin-left: 0;
    padding-left: 0.9rem;
  }
  
  
  
  
}

/* ===================================
   Syntax Highlighting (Basic)
   =================================== */

.highlight {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.highlight pre {
  margin: 0;
  border-radius: 0;
}

/* Basic syntax colors */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp,
.highlight .cs { color: #6b7280; } /* Comments */

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: #c084fc; } /* Keywords */

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .ss { color: #a5f3fc; } /* Strings */

.highlight .n,
.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .nd,
.highlight .ne,
.highlight .nf,
.highlight .ni,
.highlight .nl,
.highlight .nn,
.highlight .no,
.highlight .nt,
.highlight .nv { color: #93c5fd; } /* Names */

.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo { color: #f472b6; } /* Numbers */

.highlight .o,
.highlight .ow { color: #f8fafc; } /* Operators */

.highlight .p { color: #94a3b8; } /* Punctuation */

.highlight .err { color: #f87171; } /* Errors */

/* ===================================
   Heading Anchors
   =================================== */

.heading-anchor {
  margin-left: 0.5rem;
  font-size: 0.875em;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
h5:hover .heading-anchor,
h6:hover .heading-anchor {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--blue-400);
}

/* ===================================
   404 Error Page
   =================================== */

.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-title {
  font-size: 6rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.error-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.error-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--blue-400);
  transition: color var(--transition-fast);
}

.error-link:hover {
  color: var(--blue-500);
}

/* ===================================
   Selection Styles
   =================================== */

::selection {
  background-color: var(--accent-dim);
  color: var(--text-primary);
}

/* ===================================
   Scrollbar Styles
   =================================== */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) var(--bg-primary);
}


/* ===================================
   Series Landing Page (go-landing layout)
   =================================== */

.landing {
  counter-reset: series-counter;
}

.landing-start {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--blue-400);
  background-color: rgba(59, 130, 246, 0.08);
  transition: background-color var(--transition-base);
}

.landing-start:hover {
  background-color: rgba(59, 130, 246, 0.16);
}

.landing-start-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-400);
}

.landing-start-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.landing-start-blurb {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.landing-toc {
  max-width: 42rem;
  margin: 0 auto 1rem;
}

.landing-toc-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.landing-toc-list a {
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-default);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.landing-toc-list a:hover {
  color: var(--blue-400);
  border-color: var(--border-hover);
}

.landing-chapter {
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.landing-chapter-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.landing-chapter-number {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-400);
}

.landing-chapter-blurb {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 42rem;
}

.landing-chapter-note {
  color: var(--text-secondary);
  margin: 1.25rem 0 0;
  max-width: 42rem;
  padding-left: 1rem;
  border-left: 2px solid var(--blue-400);
  font-size: 0.95rem;
}

.landing-chapter-note a {
  color: var(--blue-400);
}

.landing-launch {
  text-align: center;
  color: var(--text-secondary);
  margin: 1rem auto 2rem;
  max-width: 42rem;
}

.landing-launch a {
  color: var(--blue-400);
}

/* ===================================
   Inline charts (chart shortcode)
   =================================== */

.prose figure.chart {
  margin: 2rem 0;
  padding: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  background-color: var(--bg-raised);
}

.prose figure.chart svg {
  width: 100%;
  height: auto;
}

.prose figure.chart figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.prose figure.chart figcaption p {
  display: inline;
  margin: 0;
}

.prose figure.chart .chart-data {
  white-space: nowrap;
  color: var(--blue-400);
}

/* ===================================
   Partial JSON playground
   =================================== */

.playground .page-header {
  margin-bottom: 1.5rem;
}

.playground-intro {
  max-width: var(--container-narrow);
}

.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pg-pane {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.pg-label,
.pg-scrub-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pg-source,
.pg-received,
.pg-parsed {
  width: 100%;
  margin: 0;
  padding: 0.875rem;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  background-color: var(--bg-raised);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.pg-source {
  resize: vertical;
  min-height: 12rem;
}

.pg-source:focus {
  outline: none;
  border-color: var(--border-hover);
}

.pg-received,
.pg-parsed {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.pg-received {
  max-height: 12rem;
  color: var(--text-secondary);
}

.pg-parsed {
  min-height: 12rem;
  max-height: 32rem;
}

.pg-cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background-color: var(--blue-400);
  animation: pg-blink 1s steps(1) infinite;
}

@keyframes pg-blink {
  50% { opacity: 0; }
}

.pg-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.pg-btn {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.pg-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.pg-btn-primary {
  min-width: 5rem;
  background-color: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.pg-speed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.pg-speed input {
  width: 6rem;
}

.pg-scrub {
  width: 100%;
  accent-color: var(--blue-400);
}

.pg-options {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.pg-options summary {
  cursor: pointer;
}

.pg-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pg-options select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-default);
  border-radius: 0.375rem;
  background-color: var(--bg-raised);
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.pg-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.pg-state {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pg-state-empty { background-color: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.pg-state-partial { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pg-state-complete { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }
.pg-state-invalid { background-color: rgba(239, 68, 68, 0.2); color: #f87171; }

.pg-parsed .j-key { color: #93c5fd; }
.pg-parsed .j-str { color: #86efac; }
.pg-parsed .j-num { color: #fcd34d; }
.pg-parsed .j-lit { color: #c4b5fd; }
.pg-parsed .j-none { color: var(--text-muted); font-style: italic; }

.pg-parsed .j-live {
  background-color: rgba(245, 158, 11, 0.14);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.14);
  border-radius: 0.25rem;
}

.pg-rest {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pg-footnote {
  margin-top: 2rem;
  max-width: var(--container-narrow);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pg-footnote a {
  color: var(--blue-400);
}

@media (max-width: 48rem) {
  .pg-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Heater playground
   =================================== */

.heater .ht-h2 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.heater .ht-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ht-slider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ht-slider output {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.ht-slider input[type="range"] {
  flex-basis: 100%;
  width: 100%;
  accent-color: var(--blue-400);
}

.ht-select {
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border-default);
  border-radius: 0.375rem;
  background-color: var(--bg-raised);
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.ht-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ht-log {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  background-color: var(--bg-raised);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

.ht-chart-wrap {
  position: relative;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  overflow: hidden;
}

.ht-chart {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.ht-tip {
  position: absolute;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border-default);
  border-radius: 0.375rem;
  background-color: rgba(13, 17, 23, 0.95);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.ht-weights {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.ht-weights th,
.ht-weights td {
  padding: 0.25rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid var(--border-default);
}

.ht-weights th:first-child,
.ht-weights td:first-child {
  text-align: left;
}

.ht-weights th {
  font-weight: 500;
  color: var(--text-secondary);
}

.ht-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ht-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.375rem;
  border-radius: 2px;
  vertical-align: -1px;
}

/* ---- Claude Hot Path leaderboard ---- */
.leaderboard, .spec { margin: 2.5rem 0; }
.leaderboard h2, .spec h2 { margin-bottom: 0.75rem; }
.leaderboard-note { color: var(--text-muted, #9ca3af); font-size: 0.95rem; margin: 0.5rem 0 1rem; }
.leaderboard-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 720px; }
.leaderboard-table th, .leaderboard-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; white-space: nowrap; }
.leaderboard-table th { font-weight: 600; color: var(--text-muted, #9ca3af); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.leaderboard-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.leaderboard-client { font-weight: 600; }
.leaderboard-toolchain { color: var(--text-muted, #9ca3af); font-size: 0.85rem; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; }
.spec-list li { margin: 0.5rem 0; }
.leaderboard code, .spec code, .leaderboard-note code { font-family: var(--font-mono); font-size: 0.85em; padding: 0.1em 0.35em; background: var(--accent-dim); border-radius: 0.25rem; color: var(--accent-strong); white-space: nowrap; }
.leaderboard-divider td { color: var(--text-muted, #9ca3af); font-size: 0.85rem; padding-top: 1rem; border-bottom: 1px solid rgba(255,255,255,0.18); white-space: normal; }
.leaderboard-tag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.4rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 0.7rem; font-weight: 500; color: var(--text-muted, #9ca3af); vertical-align: middle; }

/* ---------------------------------------------------------------------------
   Heater playground, door scenario (world models 104)
   --------------------------------------------------------------------------- */
.ht-scenario { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; font-size: 0.95rem; }
.ht-scenario label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.ht-scenario input { accent-color: #8f6fe6; }
.ht-chart.ht-strip { margin-top: 0.5rem; }
.ht-weights.ht-latent td:nth-child(3), .ht-weights.ht-latent th:nth-child(3) { padding-left: 1.25rem; }
.ht-weights.ht-latent { margin-top: 0.75rem; }

/* ---------------------------------------------------------------------------
   Heater playground, planning an evening (world models 107)
   --------------------------------------------------------------------------- */
.ht-plan { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.ht-plan-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem 1.5rem; }
.ht-check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; cursor: pointer; }
.ht-check input { accent-color: #199e70; }

/* ---------------------------------------------------------------------------
   Article by Article: annotated law pages (layouts/_default/act-article.html)
   --------------------------------------------------------------------------- */
.act-page {
  --act-software: #7fb0f5;
  --act-contested: #e3b341;
  --act-guidance: #b5a7e8;
  --act-cross: #7cc8d4;
  --act-dates: #8fd19e;
  --act-panel-w: 27rem;
}
.act-wrap { max-width: 76rem; margin: 2.5rem auto 0; padding: 0 var(--container-padding); position: relative; }
.act-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem; }
.act-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 500 0.85rem/1 var(--font-sans); color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 999px;
  padding: 0.45rem 0.8rem; cursor: pointer; transition: border-color var(--transition-fast), color var(--transition-fast);
}
.act-chip span { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.act-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.act-chip.is-on { border-color: var(--accent); color: var(--text-primary); background: var(--accent-dim); }
.act-progress { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }
.act-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.act-k-software { color: var(--act-software); }
.act-k-contested { color: var(--act-contested); }
.act-k-guidance { color: var(--act-guidance); }
.act-k-cross { color: var(--act-cross); }
.act-k-dates { color: var(--act-dates); }

.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--act-panel-w); gap: 3rem; align-items: start; }
.act-text { max-width: 44rem; }
.act-head { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-default); }
.act-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.act-art { font-family: var(--font-serif); font-weight: 400; font-size: 2.6rem; line-height: 1.1; color: var(--text-primary); }
.act-art-title { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--text-secondary); margin: 0.4rem 0 1.25rem; }
.act-start {
  font: 500 0.85rem/1 var(--font-sans); color: var(--accent); background: none; cursor: pointer;
  border: 1px solid var(--accent-dim); border-radius: 6px; padding: 0.55rem 0.8rem;
}
.act-start:hover, .act-start.is-active { background: var(--accent-dim); border-color: var(--accent); }

.act-para { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 0.5rem; margin-bottom: 1.6rem; }
.act-n { font-family: var(--font-serif); color: var(--text-muted); font-size: 1.15rem; line-height: 1.95; text-align: right; }
.act-body p { font-family: var(--font-serif); font-size: 1.19rem; line-height: 1.95; color: var(--text-primary); }
.act-body p + p { margin-top: 1rem; }
.act-orig { color: var(--text-muted) !important; font-style: italic; border-left: 2px solid var(--border-strong); padding-left: 1rem; }
.act-amend {
  margin-top: 0.6rem; font: 0.78rem/1.3 var(--font-sans); color: var(--act-dates);
  background: none; border: 0; border-bottom: 1px dotted currentColor; padding: 0; cursor: pointer;
}
.act-source { margin-top: 2.5rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.act-source a { color: var(--text-secondary); }

/* Clauses in the text. Without the script they are plain text. */
.act-js .act-text .act-c:not(.act-start) {
  cursor: pointer; border-radius: 3px; padding: 0.05em 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  background-image: linear-gradient(var(--border-default), var(--border-default));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-base);
}
.act-js .act-text .act-c[data-kinds~="software"] { background-image: linear-gradient(rgba(127,176,245,.38), rgba(127,176,245,.38)); }
.act-js .act-text .act-c[data-kinds~="contested"] { background-image: linear-gradient(rgba(227,179,65,.5), rgba(227,179,65,.5)); }
.act-js .act-text .act-c:not(.act-start):hover,
.act-js .act-text .act-c:not(.act-start):focus-visible { background-color: rgba(196, 212, 240, 0.08); outline: none; }
.act-js .act-text .act-c.is-active:not(.act-start) { background-color: var(--accent-dim); background-size: 100% 2px; background-image: linear-gradient(var(--accent), var(--accent)); }
.act-js .act-text .act-c.is-dim { color: var(--text-muted); background-image: none; }
.act-wrap[data-filter="software"] .act-c[data-kinds~="software"]:not(.is-active) { background-color: rgba(127,176,245,.10); }
.act-wrap[data-filter="contested"] .act-c[data-kinds~="contested"]:not(.is-active) { background-color: rgba(227,179,65,.10); }
.act-wrap[data-filter="guidance"] .act-c[data-kinds~="guidance"]:not(.is-active) { background-color: rgba(181,167,232,.10); }
.act-wrap[data-filter="cross"] .act-c[data-kinds~="cross"]:not(.is-active) { background-color: rgba(124,200,212,.10); }
.act-wrap[data-filter="dates"] .act-c[data-kinds~="dates"]:not(.is-active) { background-color: rgba(143,209,158,.10); }
.act-dots { display: inline-flex; gap: 2px; margin-left: 3px; vertical-align: super; line-height: 0; }
.act-dots .act-dot { width: 0.32rem; height: 0.32rem; opacity: 0.85; }
.act-c.is-seen .act-dots { opacity: 0.55; }

/* The hover card. */
.act-tip {
  position: fixed; z-index: 30; max-width: 20rem; pointer-events: none;
  background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 0.6rem 0.75rem; font: 0.85rem/1.4 var(--font-sans); color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.act-tip strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.act-tip-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; color: var(--text-secondary); font-size: 0.78rem; }
.act-tip-sub .act-dot { width: 0.4rem; height: 0.4rem; }

/* The panel. Without the script every entry shows, one after another. */
.act-panel { position: sticky; top: 1.25rem; }
.act-panel-bar { display: none; }
.act-js .act-panel-scroll {
  max-height: calc(100vh - 2.5rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 10px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.act-panel-scroll:focus { outline: none; }
.act-entry { padding: 1.4rem 1.5rem 1.25rem; border-bottom: 1px solid var(--border-default); }
.act-js .act-entry { display: none; border-bottom: 0; }
.act-js .act-entry.is-active { display: block; animation: act-in 220ms ease; }
@keyframes act-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.act-ref { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.act-entry-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.4rem; line-height: 1.25; color: var(--text-primary); margin: 0.35rem 0 0.9rem; }
.act-quote {
  font-family: var(--font-serif); font-size: 0.98rem; line-height: 1.6; color: var(--text-secondary);
  border-left: 2px solid var(--accent); padding: 0.1rem 0 0.1rem 0.9rem; margin: 0 0 1.1rem;
}
.act-means h4, .act-note-kind { font: 600 0.7rem/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.act-means, .act-note-body { font-size: 0.93rem; line-height: 1.65; color: var(--text-secondary); }
.act-means p, .act-note-body p { font-size: inherit; line-height: inherit; color: inherit; }
.act-means p + p, .act-note-body p + p { margin-top: 0.7rem; }
.act-means { padding-bottom: 1.1rem; }
.act-note-body code, .act-means code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-card); padding: 0.05em 0.3em; border-radius: 3px; }
.act-note-body strong { color: var(--text-primary); font-weight: 600; }
.act-note {
  position: relative; margin: 0 -0.25rem 0.9rem; padding: 0.9rem 1rem 0.8rem 1.1rem;
  background: var(--bg-card); border-radius: 8px; transition: opacity var(--transition-base), box-shadow var(--transition-slow);
}
.act-note::before { content: ""; position: absolute; left: 0; top: 0.8rem; bottom: 0.8rem; width: 2px; border-radius: 2px; background: currentColor; }
.act-note-kind { display: flex; align-items: center; gap: 0.4rem; color: inherit; }
.act-note-title { font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--text-primary); margin: 0.1rem 0 0.5rem; }
.act-note-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.35rem; margin-top: 0.7rem; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.act-note-meta a { color: var(--text-secondary); text-decoration: none; border-bottom: 1px dotted var(--border-strong); }
.act-note-meta a:hover { color: var(--accent); }
.act-added { flex-basis: 100%; }
.act-note.is-dim { opacity: 0.35; }
.act-note.is-flash { box-shadow: 0 0 0 1px currentColor; }
.act-step { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--border-default); font-size: 0.8rem; }
.act-step a { color: var(--text-muted); text-decoration: none; max-width: 48%; }
.act-step a:hover { color: var(--accent); }
.act-next { margin-left: auto; text-align: right; }

.act-log { margin: 4rem auto 0; padding: 2rem 0 0; border-top: 1px solid var(--border-default); }
.act-log h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.act-log h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; color: var(--text-primary); margin: 2rem 0 0.5rem; }
.act-log p, .act-log li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.act-log-day { margin-top: 1rem; }
.act-log-day summary { cursor: pointer; color: var(--text-primary); font-size: 0.95rem; }
.act-log ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.act-log li { padding: 0.3rem 0; border-bottom: 1px solid var(--border-default); }
.act-log li a { color: var(--text-secondary); }
.act-log-ref { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.3rem; white-space: nowrap; }
.act-scrim { display: none; }

/* Narrow screens: the panel becomes a sheet from the bottom. */
@media (max-width: 999px) {
  .act-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .act-text { max-width: none; }
  .act-body p { font-size: 1.1rem; line-height: 1.9; }
  .act-para { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .act-art { font-size: 2.1rem; }
  .act-js .act-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50;
    max-height: 78vh; display: flex; flex-direction: column;
    background: var(--bg-raised); border-top: 1px solid var(--border-strong); border-radius: 14px 14px 0 0;
    transform: translateY(105%); transition: transform var(--transition-slow);
    box-shadow: 0 -12px 32px rgba(0,0,0,.5);
  }
  .act-js .act-panel.is-open { transform: none; }
  .act-js .act-panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem 0.4rem 1.5rem; }
  .act-js .act-panel-bar::before { content: ""; position: absolute; top: 0.45rem; left: 50%; width: 2.5rem; height: 4px; margin-left: -1.25rem; border-radius: 2px; background: var(--border-strong); }
  .act-panel-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
  .act-close { background: none; border: 0; color: var(--text-secondary); font-size: 1.6rem; line-height: 1; padding: 0.25rem 0.5rem; cursor: pointer; }
  .act-js .act-panel-scroll { max-height: none; flex: 1; border: 0; border-radius: 0; background: none; padding-bottom: env(safe-area-inset-bottom); }
  .act-js .act-entry { padding-top: 0.25rem; }
  .act-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(5, 8, 12, 0.55); }
  body.act-sheet-open { overflow: hidden; }
  .act-progress { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .act-js .act-entry.is-active { animation: none; }
  .act-js .act-panel { transition: none; }
}
.act-wrap:not([data-filter="all"]) .act-body p { color: var(--text-muted); }
.act-wrap:not([data-filter="all"]) .act-body .act-c:not(.is-dim) { color: var(--text-primary); }

/* An excerpt of an annotated page inside an ordinary post
   (layouts/shortcodes/act-excerpt.html). The text sits between two rules and
   the selected clause's entry opens under it. */
.act-excerpt { margin: 2.25rem 0; padding: 1.25rem 0 1rem; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.prose .act-excerpt p { margin: 0; }
.prose .act-excerpt .act-kicker { font-size: 0.75rem; line-height: 1.4; color: var(--text-muted); margin-bottom: 1rem; }
.act-excerpt .act-text { max-width: none; }
.act-excerpt .act-para { margin-bottom: 1rem; }
.prose .act-excerpt .act-body p { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.9; color: var(--text-primary); }
.prose .act-excerpt .act-body p + p { margin-top: 0.9rem; }
.prose .act-excerpt .act-ex-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.9rem 2.5rem; }
.act-excerpt:not(.act-js) .act-ex-hint { display: none; }
.act-ex-panel { background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 10px; }
.prose .act-excerpt .act-ref { font-size: 0.72rem; line-height: 1.4; color: var(--text-muted); }
.prose .act-excerpt .act-entry-title { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.25; color: var(--text-primary); margin: 0.35rem 0 0.9rem; }
.prose .act-excerpt .act-quote { font-style: normal; font-size: 0.98rem; line-height: 1.6; color: var(--text-secondary); background: none; border-left: 2px solid var(--accent); border-radius: 0; padding: 0.1rem 0 0.1rem 0.9rem; margin: 0 0 1.1rem; }
.prose .act-excerpt .act-note-kind { font: 600 0.7rem/1 var(--font-sans); color: var(--text-muted); margin-bottom: 0.5rem; }
.prose .act-excerpt .act-note .act-note-kind { color: inherit; }
.prose .act-excerpt .act-means .act-note-kind { font-size: 0.7rem; line-height: 1; color: var(--text-muted); }
.prose .act-excerpt .act-means p, .prose .act-excerpt .act-note-body p { font-size: 0.93rem; line-height: 1.65; color: var(--text-secondary); }
.prose .act-excerpt .act-means p + p, .prose .act-excerpt .act-note-body p + p { margin-top: 0.7rem; }
.prose .act-excerpt .act-note-title { font-weight: 600; font-size: 0.98rem; line-height: 1.35; color: var(--text-primary); margin: 0.1rem 0 0.5rem; }
.prose .act-excerpt .act-note-meta { font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); margin-top: 0.7rem; }
.prose .act-excerpt .act-note-meta a { color: var(--text-secondary); text-decoration: none; }
.prose .act-excerpt .act-note:last-child { margin-bottom: 0; }
.prose .act-excerpt .act-source { margin-top: 1rem; font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 999px) {
  .prose .act-excerpt .act-body p { font-size: 1.05rem; line-height: 1.85; }
  .prose .act-excerpt .act-ex-hint { margin-left: 2rem; }
  .act-excerpt .act-entry { padding: 1.1rem 1.1rem 1rem; }
}

/* Series badge above a post title, opening to list every part */
.post-series {
  display: block;
  margin-bottom: 1.25rem;
}

.post-series-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--series-a) 14%, transparent), color-mix(in srgb, var(--series-b) 6%, transparent));
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.post-series-pill::-webkit-details-marker {
  display: none;
}

.post-series-pill:hover,
.post-series[open] .post-series-pill {
  border-color: color-mix(in srgb, var(--series-b) 55%, transparent);
  color: var(--text-primary);
}

.post-series-pill:focus-visible {
  outline: 2px solid var(--series-b);
  outline-offset: 2px;
}

.post-series-chevron {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.post-series[open] .post-series-chevron {
  transform: rotate(180deg);
}

.post-series-panel {
  max-width: 36rem;
  margin-top: 0.6rem;
  padding: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--series-b) 30%, var(--border-default));
  border-radius: 0.9rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--series-a) 9%, var(--bg-raised)), var(--bg-raised) 70%);
  font-size: 0.875rem;
}

.post-series[open] .post-series-panel {
  animation: post-series-open 160ms ease-out;
}

@keyframes post-series-open {
  from { opacity: 0; transform: translateY(-4px); }
}

.post-series-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-series-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.post-series-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.post-series-item.is-current {
  background: color-mix(in srgb, var(--series-b) 16%, transparent);
  color: var(--text-primary);
}

.post-series-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  transform: translateY(0.1rem);
}

.post-series-item.is-current .post-series-num {
  border-color: transparent;
  background: linear-gradient(135deg, var(--series-a), var(--series-b));
  color: #fff;
}

.post-series-all {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0.55rem 0.7rem 0.4rem;
  border-top: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.post-series-all:hover {
  color: var(--text-primary);
}

.post-series-all::after {
  content: " →";
}

@media (prefers-reduced-motion: reduce) {
  .post-series[open] .post-series-panel { animation: none; }
  .post-series-chevron { transition: none; }
}

.series-icon {
  --series-icon-size: 1.75rem;
  display: inline-grid;
  place-items: center;
  width: var(--series-icon-size);
  height: var(--series-icon-size);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--series-a), var(--series-b));
  color: #fff;
  flex-shrink: 0;
}

.series-icon svg {
  width: 57%;
  height: 57%;
}

.series-card-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.series-card-title .series-icon {
  --series-icon-size: 2rem;
}

.series-header .series-icon {
  --series-icon-size: 3.5rem;
  display: grid;
  margin: 0 auto 1rem;
}

.post-series-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.post-series-part {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.post-series-part::before {
  content: "·";
  margin-right: 0.6rem;
}

/* ===================================
   Front page
   Set by data/frontpage.yaml and the /frontpage skill. Images only in the
   lead and the second stories; series colour only in the kicker square and
   the progress bar; rules between sections, never boxes.
   =================================== */

.site-wrapper:has(.fp) .nav-container,
.site-wrapper:has(.fp) .footer-container {
  max-width: 68rem;
}

.fp {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.fp a {
  color: inherit;
}

.fp-edition {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0.6rem;
  border-bottom: 3px double var(--border-strong);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fp-date {
  color: var(--text-secondary);
  font-weight: 500;
}

.fp-week {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.fp-week b {
  font-weight: 500;
  color: var(--text-secondary);
}

.fp-week .today b {
  color: var(--accent);
}

.fp-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.fp-kicker i {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
}

.fp-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 0.25rem;
}

.fp-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fp-dek {
  color: #cfd6e2;
}

.fp img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.fp-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--border-default);
}

.fp-lead img {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
}

.fp-lead h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  transition: color var(--transition-fast);
}

.fp-lead .fp-dek {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 38em;
  margin-bottom: 0.9rem;
}

.fp-rail {
  border-left: 1px solid var(--border-default);
  padding-left: 2rem;
}

.fp-run {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-default);
}

.fp-run h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.fp-bar {
  height: 2px;
  background: var(--border-default);
  margin: 0.35rem 0 0.45rem;
}

.fp-bar i {
  display: block;
  height: 2px;
}

.fp-second {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--border-default);
}

.fp-story img {
  aspect-ratio: 3 / 2;
  margin-bottom: 0.9rem;
}

.fp-story h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.fp-story .fp-dek {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.fp-band {
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--border-default);
}

.fp-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.fp-cols h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  transition: color var(--transition-fast);
}

.fp-cols p:not(.fp-kicker) {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cfd6e2;
}

.fp-lead a:hover h1,
.fp-story a:hover h2,
.fp-cols a:hover h3,
.fp-run h3 a:hover,
.fp-wire a:hover .fp-wire-title {
  color: var(--accent-strong);
}

.fp-wire ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-wire li a {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-default);
}

.fp-wire time,
.fp-wire-desk {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fp-wire-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.fp-all {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--accent) !important;
}

@media (max-width: 768px) {
  .fp-top,
  .fp-second,
  .fp-cols {
    grid-template-columns: 1fr;
  }

  .fp-week {
    display: none;
  }

  .fp-edition {
    padding-top: 1rem;
  }

  .fp-top {
    padding-top: 0;
    gap: 2rem;
  }

  .fp-lead img {
    width: calc(100% + 2 * var(--container-padding));
    max-width: none;
    margin-left: calc(-1 * var(--container-padding));
  }

  .fp-edition + .fp-top .fp-lead:not(:has(img)) {
    padding-top: 1.5rem;
  }

  .fp-lead h1 {
    font-size: 2rem;
  }

  .fp-lead .fp-dek {
    font-size: 1.1rem;
  }

  .fp-rail {
    border-left: 0;
    padding-left: 0;
  }

  .fp-run {
    padding: 0.7rem 0;
  }

  .fp-story img {
    aspect-ratio: 16 / 9;
  }

  .fp-story:not(:first-child) img {
    display: none;
  }

  .fp-wire li a {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .fp-wire-desk {
    order: 3;
  }
}

/* New art and words in the header, one at a time */

.fresh {
  position: relative;
  align-self: center;
  flex: 1;
  min-width: 10rem;
  height: 1.6em;
  line-height: 1.6;
  font-size: 0.78rem;
  overflow: hidden;
}

.fresh a {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.fresh a b {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.fresh a:hover b {
  color: var(--accent);
}

.fresh-2 a,
.fresh-3 a {
  opacity: 0;
  visibility: hidden;
  animation: fresh-3 15s infinite both;
}

.fresh-2 a {
  animation-name: fresh-2;
  animation-duration: 10s;
}

/* the links sit on top of each other, so a faded-out one must also stop
   taking clicks: visibility flips at the midpoint of each crossfade */
@keyframes fresh-2 {
  0% { opacity: 0; visibility: hidden; }
  4.5% { visibility: hidden; }
  4.51% { visibility: visible; }
  9% { opacity: 1; }
  45% { opacity: 1; }
  49.5% { visibility: visible; }
  49.51% { visibility: hidden; }
  54% { opacity: 0; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes fresh-3 {
  0% { opacity: 0; visibility: hidden; }
  3% { visibility: hidden; }
  3.01% { visibility: visible; }
  6% { opacity: 1; }
  30% { opacity: 1; }
  33% { visibility: visible; }
  33.01% { visibility: hidden; }
  36% { opacity: 0; }
  100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .fresh-2 a,
  .fresh-3 a {
    animation: none;
  }

  .fresh a:first-child {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  .fresh {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
  }
}
