/* cameron.stream site theme */

@font-face {
  font-family: "Around";
  src: url("/public/fonts/around-regular.woff2?v=20260712-12") format("woff2"),
       url("/public/fonts/around-regular.ttf?v=20260712-12") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --site-bg: #fff;
  --site-surface: #fff;
  --site-text: #1a1a1a;
  --site-text-secondary: #2a2a2a;
  --site-text-muted: #555;
  --site-accent: #b497bf;
  --site-border: #e8e8e8;
  --site-code-bg: #f5f5f5;
  --site-max-width: 640px;
  --site-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --site-font-display: "Around", "Inter", system-ui, sans-serif;
}

/* Dark mode: explicit toggle or system preference fallback */
:root[data-theme="dark"] {
  --site-bg: #0a0a0a;
  --site-surface: #141414;
  --site-text: #e5e5e5;
  --site-text-secondary: #b0b0b0;
  --site-text-muted: #8a8a8a;
  --site-accent: #c4aacf;
  --site-border: #2a2a2a;
  --site-code-bg: #1a1a1a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --site-bg: #0a0a0a;
    --site-surface: #141414;
    --site-text: #e5e5e5;
    --site-text-secondary: #b0b0b0;
    --site-text-muted: #8a8a8a;
    --site-accent: #c4aacf;
    --site-border: #2a2a2a;
    --site-code-bg: #1a1a1a;
  }
}

/* Inlay dark overrides */
:root[data-theme="dark"] at-inlay-root {
  --text-primary: #ddd;
  --text-body: #bbb;
  --text-secondary: #888;
  background: var(--site-surface);
}
:root[data-theme="dark"] org-atsui-avatar[lift] {
  box-shadow: 0 0 0 3px var(--site-surface);
}
:root[data-theme="dark"] org-atsui-tabs .tabs-bar {
  background: var(--site-surface);
  border-bottom-color: var(--site-border);
}
:root[data-theme="dark"] hr {
  background: var(--site-border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) at-inlay-root {
    --text-primary: #ddd;
    --text-body: #bbb;
    --text-secondary: #888;
    background: var(--site-surface);
  }
  :root:not([data-theme="light"]) org-atsui-avatar[lift] {
    box-shadow: 0 0 0 3px var(--site-surface);
  }
  :root:not([data-theme="light"]) org-atsui-tabs .tabs-bar {
    background: var(--site-surface);
    border-bottom-color: var(--site-border);
  }
  :root:not([data-theme="light"]) hr {
    background: var(--site-border);
  }
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--site-text-muted);
  font-size: 1.125rem;
  padding: 0.25em;
  line-height: 1;
  transition: color 0.15s;
  z-index: 10;
}
.theme-toggle:hover {
  color: var(--site-text);
}

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

.page-container-wide {
  max-width: none !important;
  padding: 0 !important;
}

/* Page headings */

h1 {
  font-family: var(--site-font-display);
  font-synthesis: none;
  font-weight: 400 !important;
  line-height: 1.08;
}

/* Blog post rendered HTML */

.blog-content {
  line-height: 1.7;
  color: var(--site-text);
}

.blog-content h2,
.blog-content h3 {
  font-family: var(--site-font-body);
  color: var(--site-text);
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.blog-content h1 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--site-text);
  font-family: var(--site-font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.08;
}
.blog-content h2 { font-size: 1.25rem; font-weight: 700; }
.blog-content h3 { font-size: 1.125rem; font-weight: 600; }

.about-content > h1:first-child {
  font-size: 1.5rem;
  margin: 1em 0 0.5em;
}

.blog-content p {
  margin: 1em 0;
}

.blog-content a {
  color: var(--site-accent);
  text-decoration: none;
}
.blog-content a:hover {
  text-decoration: underline;
}

.blog-content code {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.875em;
  background: var(--site-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.blog-content pre {
  background: var(--site-code-bg);
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.5;
  margin: 1.5em 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.blog-content blockquote {
  border-left: 3px solid var(--site-border);
  margin: 1.5em 0;
  padding: 0.5em 1em;
  color: var(--site-text-secondary);
}

.blog-content img {
  max-width: 100%;
  border-radius: 8px;
}

.blog-content .bluesky-embed {
  margin: 1.5em auto;
  max-width: 100%;
}

.blog-content ul, .blog-content ol {
  padding-left: 1.5em;
}

.blog-content li {
  margin: 0.3em 0;
}

/* Blog index */

.blog-index-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 5rem;
}

.blog-index-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(1.75rem, 4vw, 3rem);
}

.blog-index-header p {
  margin: 0 0 0.45rem;
  color: var(--site-text-muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-index-header h1 {
  margin: 0;
  font-size: clamp(4.25rem, 12vw, 8.75rem);
  letter-spacing: 0.025em;
  line-height: 0.78;
}

.blog-index-header dl {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
}

.blog-index-header dl > div {
  display: grid;
  gap: 0.2rem;
}

.blog-index-header dt {
  color: var(--site-text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-index-header dd {
  margin: 0;
  color: var(--site-text-secondary);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.blog-lead {
  border-top: 1px solid var(--site-text);
  border-bottom: 1px solid var(--site-border);
}

.blog-lead > a {
  position: relative;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: minmax(5.5rem, 0.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: clamp(18rem, 34vw, 25rem);
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
  overflow: hidden;
  color: var(--site-text);
  text-decoration: none;
}

.blog-lead > a::after {
  content: "";
  position: absolute;
  right: clamp(-9rem, -9vw, -5rem);
  bottom: clamp(-13rem, -15vw, -8rem);
  width: clamp(19rem, 38vw, 31rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--site-accent) 48%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.blog-lead > a:hover::after {
  transform: translate(-0.5rem, -0.5rem);
}

.blog-lead > a:focus-visible,
.blog-recent-post > a:focus-visible,
.blog-archive-year a:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: -2px;
}

.blog-lead-marker {
  align-self: start;
  color: var(--site-accent);
  font-family: var(--site-font-body);
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.blog-lead-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  max-width: 47rem;
}

.blog-lead-meta,
.blog-recent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  color: var(--site-text-muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-lead-meta span {
  color: var(--site-accent);
  font-weight: 700;
}

.blog-lead time,
.blog-recent-post time,
.blog-archive-year time {
  font-variant-numeric: tabular-nums;
}

.blog-lead h2 {
  max-width: 12ch;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-size: clamp(2.25rem, 6.2vw, 5.4rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.blog-lead-copy > p {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--site-text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.55;
}

.blog-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-index-tags li {
  margin: 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  color: var(--site-text-muted);
  font-size: 0.58rem;
  line-height: 1.2;
}

.blog-read-link {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--site-text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
}

.blog-lead > a:hover .blog-read-link,
.blog-recent-post > a:hover h3,
.blog-archive-year a:hover strong {
  color: var(--site-accent);
}

.blog-recent,
.blog-archive {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.blog-index-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--site-text);
}

.blog-index-section-heading h2,
.blog-index-section-heading p {
  margin: 0;
}

.blog-index-section-heading h2 {
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.blog-index-section-heading p {
  color: var(--site-text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.blog-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-recent-post {
  min-width: 0;
  border-bottom: 1px solid var(--site-border);
}

.blog-recent-post:nth-child(odd) {
  padding-right: clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--site-border);
}

.blog-recent-post:nth-child(even) {
  padding-left: clamp(1rem, 3vw, 2.5rem);
}

.blog-recent-post > a {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  min-height: 12rem;
  padding: 1.25rem 0 1.5rem;
  color: var(--site-text);
  text-decoration: none;
}

.blog-recent-meta span {
  color: var(--site-accent);
  font-family: var(--site-font-body);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.blog-recent-meta time {
  letter-spacing: 0;
  text-transform: none;
}

.blog-recent-post h3 {
  margin: 1.2rem 0 0;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.blog-recent-post p {
  display: -webkit-box;
  margin: 0.7rem 0 0;
  overflow: hidden;
  color: var(--site-text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-recent-post .blog-index-tags {
  margin-top: auto;
  padding-top: 0.8rem;
}

.blog-archive-years {
  border-bottom: 1px solid var(--site-border);
}

.blog-archive-year {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  border-top: 1px solid var(--site-border);
}

.blog-archive-year:first-child {
  border-top: 0;
}

.blog-archive-year > h3 {
  margin: 0;
  padding: 1.35rem 1rem 1.35rem 0;
  color: var(--site-accent);
  font-family: var(--site-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.blog-archive-year ol {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--site-border);
  list-style: none;
}

.blog-archive-year li {
  margin: 0;
  border-bottom: 1px solid var(--site-border);
}

.blog-archive-year li:last-child {
  border-bottom: 0;
}

.blog-archive-year a {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0 0.9rem 1.25rem;
  color: var(--site-text);
  text-decoration: none;
}

.blog-archive-year time {
  padding-top: 0.15rem;
  color: var(--site-text-muted);
  font-size: 0.65rem;
}

.blog-archive-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.blog-archive-copy strong {
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.blog-archive-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--site-text-muted);
  font-size: 0.7rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-archive-arrow {
  padding: 0.05rem 0.15rem 0 0;
  color: var(--site-text-muted);
  transition: transform 0.15s;
}

.blog-archive-year a:hover .blog-archive-arrow {
  transform: translateX(0.2rem);
}

.blog-index-empty {
  padding: 4rem 0;
  border-top: 1px solid var(--site-text);
  color: var(--site-text-muted);
}

@media (max-width: 680px) {
  .blog-index-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding: 2rem 0 1.5rem;
  }

  .blog-index-header h1 {
    font-size: 3.75rem;
  }

  .blog-index-header dl {
    gap: 1rem;
  }

  .blog-index-header dl > div {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
  }

  .blog-lead > a {
    display: block;
    min-height: 0;
    padding: 1.25rem 0 1.5rem;
  }

  .blog-lead > a::after {
    right: -6rem;
    bottom: -8rem;
    width: 16rem;
  }

  .blog-lead-marker {
    position: absolute;
    top: 1.25rem;
    left: 0;
    width: 3rem;
    font-size: 2.25rem;
    letter-spacing: -0.08em;
  }

  .blog-lead-meta {
    box-sizing: border-box;
    min-height: 2.25rem;
    padding-left: 4rem;
  }

  .blog-lead h2 {
    margin-top: 1.25rem;
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .blog-lead-copy > p {
    margin-top: 0.75rem;
  }

  .blog-read-link {
    margin-top: 1.4rem;
    padding-top: 0;
  }

  .blog-recent-grid {
    grid-template-columns: 1fr;
  }

  .blog-recent-post:nth-child(odd),
  .blog-recent-post:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .blog-recent-post > a {
    min-height: 0;
    padding: 0.9rem 0 1.05rem;
  }

  .blog-recent-post h3 {
    margin-top: 0.65rem;
    font-size: 1.18rem;
  }

  .blog-recent-post p {
    margin-top: 0.4rem;
    -webkit-line-clamp: 2;
  }

  .blog-recent-post .blog-index-tags {
    margin-top: 0;
    padding-top: 0.7rem;
  }

  .blog-archive-year {
    grid-template-columns: 1fr;
  }

  .blog-archive-year > h3 {
    padding: 1.35rem 0 0.65rem;
  }

  .blog-archive-year ol {
    border-left: 0;
  }

  .blog-archive-year a {
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding-left: 0;
  }
}

@media (max-width: 390px) {
  .blog-index-header dl {
    width: 100%;
    justify-content: space-between;
  }

  .blog-index-header h1 {
    font-size: 3.4rem;
  }
}

/* Nav */

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  padding: 1em 0;
  font-size: 0.875rem;
}

.site-nav-centered {
  justify-content: center;
  margin-top: 2em;
}

.site-nav a {
  color: var(--site-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover {
  color: var(--site-text);
}

.site-nav a.active {
  color: var(--site-text);
  font-weight: 600;
}

.nav-avatar {
  line-height: 0;
}

.nav-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.library-nav {
  display: flex;
  gap: 0.3rem;
  width: max-content;
  margin: 0.8rem 0 1rem;
  padding: 0.25rem;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: var(--site-code-bg);
  font-size: 0.75rem;
}

.library-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--site-text-muted);
  text-decoration: none;
}

.library-nav a:hover {
  color: var(--site-text);
}

.library-nav a.active {
  color: var(--site-text);
  background: var(--site-surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.page-title {
  margin: 1em 0 0.5em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-subtitle {
  margin: 0 0 1.5em;
  color: var(--site-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-subtitle a,
.page-footer a {
  color: var(--site-accent);
  text-decoration: none;
}

.page-subtitle a:hover,
.page-footer a:hover {
  text-decoration: underline;
}

.article-page {
  margin-top: 1em;
}

.article-title {
  margin: 0 0 0.25em;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-footer {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid var(--site-border);
  color: var(--site-text-muted);
  font-size: 0.8125rem;
}

.webring {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.45em;
  margin-top: 0.85em;
  color: var(--site-text-muted);
  font-size: 0.8125rem;
}

.webring a {
  color: var(--site-text-secondary);
  text-decoration: none;
}

.webring a:hover {
  color: var(--site-text);
  text-decoration: underline;
}

/* Post list items */

.post-item {
  padding: 1em 0;
}
.post-item + .post-item {
  border-top: 1px solid var(--site-border);
}

.post-date {
  font-size: 0.8125rem;
  color: var(--site-text-muted);
}

.post-title {
  font-family: var(--site-font-body);
  font-weight: 600;
  color: var(--site-text);
  text-decoration: none;
  line-height: 1.3;
}
.post-title:hover {
  color: var(--site-accent);
}

.post-summary {
  font-size: 0.9rem;
  color: var(--site-text-secondary);
  margin-top: 0.3em;
  line-height: 1.5;
}

/* Annotations */

.annotations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.annotation-item {
  padding: 0.75em 0;
}
.annotation-item + .annotation-item {
  border-top: 1px solid var(--site-border);
}

.annotation-target a {
  overflow-wrap: anywhere;
}

.annotation-body {
  font-size: 0.9rem;
  margin: 0.3em 0 0;
  line-height: 1.5;
}

.annotation-quote {
  font-size: 0.8125rem;
  color: var(--site-text-secondary);
  border-left: 2px solid var(--site-accent);
  padding-left: 0.75em;
  margin: 0.4em 0;
  font-style: italic;
}

.annotation-meta {
  display: flex;
  gap: 0.75em;
  align-items: center;
  margin-top: 0.3em;
  font-size: 0.75rem;
  color: var(--site-text-muted);
}

/* Endorsements */

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75em;
}

.endorsement-card {
  padding: 0.75em 1em;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  transition: border-color 0.15s;
}
.endorsement-card:hover {
  border-color: var(--site-accent);
}

.endorsement-name {
  color: var(--site-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.endorsement-name:hover {
  color: var(--site-accent);
}

.endorsement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3em;
  font-size: 0.75rem;
  color: var(--site-text-muted);
}

/* Other index */

.other-index-header {
  margin: clamp(3rem, 10vw, 7rem) 0 clamp(2rem, 6vw, 4rem);
}

.other-index-kicker {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.other-index-header .page-title {
  margin: 0.18em 0 0;
  font-family: var(--site-font-display);
  font-size: clamp(3.5rem, 11vw, 6.75rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.9;
}

.other-index-header .page-subtitle {
  max-width: 30rem;
  margin: 1.25rem 0 0;
}

.other-index-list {
  display: grid;
  border-top: 1px solid var(--site-border);
}

.other-index-entry {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: clamp(0.8rem, 3vw, 1.5rem);
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text);
  text-decoration: none;
}

.other-index-entry:hover strong {
  color: var(--site-accent);
}

.other-index-number,
.other-index-meta {
  padding-top: 0.2rem;
  color: var(--site-text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.other-index-copy {
  display: grid;
  gap: 0.45rem;
}

.other-index-copy strong {
  font-size: 1.05rem;
  transition: color 0.15s;
}

.other-index-copy > span {
  color: var(--site-text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.other-index-meta {
  text-align: right;
}

/* Code activity */

.code-page-header {
  margin-top: 1rem;
}

.code-page-header .page-subtitle {
  margin-bottom: 1rem;
}

.code-activity-list {
  border-top: 1px solid var(--site-border);
}

.code-activity-section {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--site-border);
}

.code-activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.code-activity-heading h2,
.code-activity-heading p {
  margin: 0;
}

.code-activity-heading h2 {
  font-size: 1rem;
  line-height: 1.35;
}

.code-activity-heading h2 a {
  color: var(--site-text);
  text-decoration: none;
}

.code-activity-heading h2 a:hover {
  color: var(--site-accent);
}

.code-activity-heading > div > p,
.code-activity-total,
.code-activity-unavailable {
  color: var(--site-text-muted);
  font-size: 0.7rem;
}

.code-activity-total {
  max-width: 15rem;
  text-align: right;
}

.code-activity-total strong {
  color: var(--site-text-secondary);
  font-variant-numeric: tabular-nums;
}

.code-graph-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.code-calendar-graph {
  display: grid;
  grid-template-rows: repeat(7, 9px);
  grid-auto-flow: column;
  grid-auto-columns: 9px;
  gap: 2px;
  width: max-content;
}

.code-activity-day {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--site-code-bg);
}

.code-activity-day.activity-level-1 {
  background: color-mix(in srgb, var(--site-accent) 28%, var(--site-code-bg));
}

.code-activity-day.activity-level-2 {
  background: color-mix(in srgb, var(--site-accent) 48%, var(--site-code-bg));
}

.code-activity-day.activity-level-3 {
  background: color-mix(in srgb, var(--site-accent) 72%, var(--site-code-bg));
}

.code-activity-day.activity-level-4 {
  background: var(--site-accent);
}

.code-activity-day-empty {
  visibility: hidden;
}

.code-pinned-repositories {
  margin-top: 1.35rem;
}

.code-pinned-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.code-pinned-heading h3,
.code-pinned-heading p {
  margin: 0;
}

.code-pinned-heading h3 {
  font-size: 0.78rem;
}

.code-pinned-heading p {
  color: var(--site-text-muted);
  font-size: 0.65rem;
}

.code-pinned-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--site-border);
}

.code-pinned-repository {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text-secondary);
  text-decoration: none;
}

.code-pinned-repository:nth-child(odd) {
  padding-right: 1rem;
  border-right: 1px solid var(--site-border);
}

.code-pinned-repository:nth-child(even) {
  padding-left: 1rem;
}

.code-pinned-repository:hover .code-pinned-repository-name {
  color: var(--site-accent);
}

.code-pinned-repository-name {
  overflow: hidden;
  color: var(--site-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-pinned-repository > span:last-child:not(.code-pinned-repository-name) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--site-text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 520px) {
  .code-activity-heading {
    gap: 0.75rem;
  }

  .code-calendar-graph {
    grid-template-rows: repeat(7, 5px);
    grid-auto-columns: 5px;
    gap: 1px;
  }

  .code-activity-day {
    width: 5px;
    height: 5px;
    border-radius: 1px;
  }

  .code-pinned-list {
    grid-template-columns: 1fr;
  }

  .code-pinned-repository:nth-child(odd),
  .code-pinned-repository:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }
}

/* Margin annotations */

.margin-annotations {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--site-border);
}

.margin-annotation {
  padding: 0.75em 0;
}
.margin-annotation + .margin-annotation {
  border-top: 1px solid var(--site-border);
}

.margin-highlight {
  font-size: 0.8125rem;
  color: var(--site-text-secondary);
  border-left: 2px solid var(--site-accent);
  padding-left: 0.75em;
  margin: 0 0 0.4em 0;
  font-style: italic;
}

.margin-body {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.margin-meta {
  font-size: 0.75rem;
  color: var(--site-text-muted);
  margin-top: 0.3em;
  display: flex;
  gap: 0.75em;
}

.margin-meta a {
  color: var(--site-accent);
  text-decoration: none;
}

/* Feed */

.feed {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.feed-post {
  padding: 0.75em 0;
}
.feed-post + .feed-post {
  border-top: 1px solid var(--site-border);
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.4em;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.feed-avatar-sm {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-display-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.feed-handle {
  color: var(--site-text-muted);
  font-size: 0.8rem;
  margin-left: 0.25em;
}

.feed-time {
  color: var(--site-text-muted);
  font-size: 0.75rem;
  text-decoration: none;
  margin-left: 0.5em;
}
.feed-time:hover {
  text-decoration: underline;
}

.feed-text {
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-link {
  color: var(--site-accent);
  text-decoration: none;
  word-break: break-all;
}
.feed-link:hover {
  text-decoration: underline;
}

.feed-mention {
  color: var(--site-accent);
  text-decoration: none;
}

/* Feed images */

.feed-images {
  margin-top: 0.5em;
  border-radius: 8px;
  overflow: hidden;
  max-height: 240px;
}
.feed-images img {
  width: 100%;
  display: block;
  max-height: 240px;
  object-fit: cover;
}
.feed-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.feed-images-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Feed link card */

.feed-card {
  display: flex;
  margin-top: 0.5em;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.feed-card:hover {
  border-color: var(--site-text-muted);
}
.feed-card-thumb {
  width: 100px;
  object-fit: cover;
  flex-shrink: 0;
}
.feed-card-body {
  padding: 0.5em 0.75em;
  min-width: 0;
}
.feed-card-title {
  font-weight: 600;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-card-desc {
  font-size: 0.75rem;
  color: var(--site-text-secondary);
  margin-top: 0.15em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-card-url {
  font-size: 0.7rem;
  color: var(--site-text-muted);
  margin-top: 0.25em;
}

/* Feed quote post */

.feed-quote {
  margin-top: 0.5em;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 0.5em 0.75em;
}
.feed-quote-author {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 0.25em;
}
.feed-quote-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--site-text-secondary);
}

/* Feed stats */

.feed-stats {
  display: flex;
  gap: 1em;
  margin-top: 0.4em;
  font-size: 0.75rem;
  color: var(--site-text-muted);
}

/* Semble */

.semble-shell {
  width: 100%;
  padding-bottom: 3rem;
}

.semble-page {
  --semble-line: var(--site-border);
  --semble-paper: var(--site-surface);
}

.semble-tone-1 {
  --semble-tone: #dbc6e3;
  --semble-tone-deep: #765287;
  --semble-tone-ink: #2c2031;
}

.semble-tone-2 {
  --semble-tone: #d5dfc5;
  --semble-tone-deep: #5c7445;
  --semble-tone-ink: #222b1d;
}

.semble-tone-3 {
  --semble-tone: #ecc9bb;
  --semble-tone-deep: #9a5e49;
  --semble-tone-ink: #34231e;
}

.semble-tone-4 {
  --semble-tone: #c6dce4;
  --semble-tone-deep: #4e7483;
  --semble-tone-ink: #1c2b31;
}

.semble-tone-5 {
  --semble-tone: #eadcae;
  --semble-tone-deep: #8b742a;
  --semble-tone-ink: #302a18;
}

.semble-tone-6 {
  --semble-tone: #cfcbdc;
  --semble-tone-deep: #68617f;
  --semble-tone-ink: #25232d;
}

.semble-hero {
  margin: 0;
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--semble-line);
}

.semble-kicker {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.semble-hero .semble-kicker {
  display: none;
}

.semble-hero h1 {
  margin: 0.8em 0 0.5em;
  font-size: 1.5rem;
  line-height: 1.25;
}

.semble-intro {
  margin: 0;
  color: var(--site-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.semble-protocol-line {
  margin: 0.55rem 0 0;
  color: var(--site-text-muted);
  font-size: 0.7rem;
}

.semble-protocol-line a,
.semble-footer a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.semble-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0.9rem 0 0;
}

.semble-totals div {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}

.semble-totals dt {
  color: var(--site-text-muted);
  font-size: 0.7rem;
}

.semble-totals dd {
  order: -1;
  margin: 0;
  color: var(--site-text-secondary);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.semble-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--semble-line);
}

.semble-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.semble-section-heading h2 {
  margin: 0;
  font-family: var(--site-font-body);
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.semble-section-heading > p {
  max-width: 23rem;
  margin: 0;
  color: var(--site-text-muted);
  font-size: 0.7rem;
  text-align: right;
}

.semble-card-source,
.semble-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.semble-filter-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.semble-filter-bar button,
.semble-card-membership button {
  flex: 0 0 auto;
  border: 1px solid var(--site-border);
  color: var(--site-text-secondary);
  background: var(--site-surface);
  cursor: pointer;
  font: inherit;
}

.semble-filter-bar button {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.semble-filter-bar button span {
  margin-left: 0.3rem;
  color: var(--site-text-muted);
  font-variant-numeric: tabular-nums;
}

.semble-filter-bar button:hover,
.semble-filter-bar button[aria-pressed="true"] {
  border-color: var(--site-text);
  color: var(--site-bg);
  background: var(--site-text);
}

.semble-filter-bar button[aria-pressed="true"] span {
  color: inherit;
  opacity: 0.7;
}

.semble-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}

.semble-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 0.65rem;
  background: var(--semble-paper);
  transition: border-color 0.15s;
}

.semble-card[hidden] {
  display: none;
}

.semble-card:hover {
  border-color: color-mix(in srgb, var(--semble-tone-deep) 52%, var(--site-border));
}

.semble-card-visual {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0.75rem;
  overflow: hidden;
  color: var(--semble-tone-ink);
  background: var(--semble-tone);
  isolation: isolate;
}

.semble-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    to bottom,
    transparent calc(100% - 1px),
    color-mix(in srgb, var(--semble-tone-deep) 18%, transparent) 1px
  );
  background-size: 100% 2rem;
}

.semble-card-glyph {
  position: relative;
  z-index: 0;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--site-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.025em;
  line-height: 0.88;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.semble-card-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.92);
}

.semble-card-body {
  padding: 0.9rem 1rem;
}

.semble-card-source {
  color: var(--site-text-muted);
  font-size: 0.61rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.semble-card-source span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.semble-card-source span:last-child {
  flex: 0 0 auto;
}

.semble-card h3 {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.semble-card h3 a {
  color: var(--site-text);
  text-decoration: none;
}

.semble-card h3 a:hover {
  color: var(--semble-tone-deep);
}

.semble-external {
  display: inline-block;
  margin-left: 0.25em;
  color: var(--site-text-muted);
  font-size: 0.78em;
  font-weight: 400;
  transition: transform 0.15s;
}

.semble-card h3 a:hover .semble-external {
  transform: translate(1px, -1px);
}

.semble-card-description {
  margin: 0.45rem 0 0;
  color: var(--site-text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

.semble-card-note {
  margin: 0.7rem 0 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--semble-tone-deep);
  color: var(--site-text);
  background: color-mix(in srgb, var(--semble-tone) 33%, var(--site-surface));
}

.semble-card-note span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--semble-tone-deep);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.semble-card-note p {
  margin: 0;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.45;
}

.semble-card-footer {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--site-border);
}

.semble-card-membership {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.semble-card-membership button,
.semble-card-membership > span {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--site-text-muted);
  font-size: 0.6rem;
}

.semble-card-membership button:hover,
.semble-card-membership button[aria-pressed="true"] {
  border-color: var(--semble-tone-deep);
  color: var(--semble-tone-deep);
}

.semble-record-link {
  color: var(--site-text-muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  text-decoration: none;
}

.semble-record-link:hover {
  color: var(--site-text);
  text-decoration: underline;
}

.semble-unavailable {
  margin: clamp(3rem, 10vw, 8rem) auto;
  padding: 2rem;
  border: 1px solid var(--site-border);
  border-radius: 1rem;
  text-align: center;
}

.semble-unavailable h2 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
}

.semble-unavailable p:last-child,
.semble-empty {
  color: var(--site-text-muted);
  font-size: 0.82rem;
}

.semble-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0 0;
  color: var(--site-text-muted);
  font-size: 0.7rem;
}

.semble-footer p {
  margin: 0;
}

.semble-footer div {
  display: flex;
  gap: 1rem;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .semble-section-heading {
    align-items: baseline;
  }

  .semble-section-heading > p {
    text-align: right;
  }
}

@media (max-width: 520px) {
  .semble-card {
    grid-template-columns: 6.25rem minmax(0, 1fr);
  }

  .semble-card-body {
    padding: 0.75rem;
  }

  .semble-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

}

@media (max-width: 520px) {
  .other-index-entry {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  .other-index-meta {
    display: none;
  }
}

/* Responsive: stack columns on mobile */

@media (max-width: 680px) {
  .page-container {
    max-width: 100% !important;
  }
}

/* Travel page */
.travel-page {
  padding: 10vh 0 4em;
}

.travel-hero {
  margin-bottom: 2em;
}

.eyebrow {
  margin: 0 0 0.4em;
  color: var(--site-accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.travel-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.travel-hero-image {
  margin: 1.75em 0 0;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--site-surface);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--site-accent) 18%, transparent);
}

.travel-hero-image img {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: cover;
  object-position: center;
  background: color-mix(in srgb, var(--site-bg) 82%, var(--site-surface));
}

.travel-hero-image figcaption {
  padding: 0.9em 1em 1.05em;
  color: var(--site-text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.travel-summary {
  margin-top: 1.25em;
  color: var(--site-text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.travel-updated,
.travel-coords {
  color: var(--site-text-muted);
  font-size: 0.85rem;
}

.travel-card {
  border: 1px solid var(--site-border);
  border-radius: 18px;
  padding: 1.25em;
  margin: 1.5em 0;
  background: color-mix(in srgb, var(--site-surface) 92%, var(--site-accent));
}

.travel-card h2 {
  margin-top: 0;
}

.travel-card ul {
  margin-bottom: 0;
  padding-left: 1.2em;
}

.travel-card li + li {
  margin-top: 0.5em;
}

.travel-place-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75em;
  margin: 0.85em 0 1em;
}

.travel-place-note {
  border: 1px solid var(--site-border);
  border-radius: 14px;
  padding: 0.8em;
  background: color-mix(in srgb, var(--site-bg) 75%, transparent);
}

.travel-place-note span {
  display: block;
  color: var(--site-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.travel-place-note strong {
  display: block;
  margin-top: 0.25em;
  color: var(--site-text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.travel-timeline {
  display: grid;
  gap: 1em;
  margin: 2em 0;
}

.travel-stop {
  display: grid;
  grid-template-columns: minmax(6em, 0.35fr) 1fr;
  gap: 1em;
  border-top: 1px solid var(--site-border);
  padding-top: 1em;
}

.travel-stop-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.travel-date {
  color: var(--site-text-muted);
  font-size: 0.86rem;
}

.travel-status {
  width: fit-content;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0.2em 0.65em;
  color: var(--site-text-secondary);
  font-size: 0.75rem;
}

.travel-stop-current .travel-status {
  color: var(--site-bg);
  background: var(--site-accent);
  border-color: var(--site-accent);
}

.travel-stop-body h2 {
  margin: 0;
  font-size: 1.2rem;
}

.travel-place {
  margin: 0.2em 0 0.7em;
  color: var(--site-text-secondary);
  font-weight: 600;
}

.travel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.travel-links a {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0.45em 0.8em;
  color: var(--site-text-secondary);
  text-decoration: none;
}

.travel-links a:hover {
  color: var(--site-text);
  border-color: var(--site-accent);
}

@media (max-width: 640px) {
  .travel-stop {
    grid-template-columns: 1fr;
  }
  .travel-stop-meta {
    flex-direction: row;
    align-items: center;
  }
}

.travel-gallery {
  margin: 2.5em 0;
}

.travel-section-heading {
  margin: 0 0 1.4em;
  max-width: 46rem;
}

.travel-section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.travel-section-heading p:not(.eyebrow) {
  margin: 0.55em 0 0;
  color: var(--site-text-secondary);
  line-height: 1.6;
}

.travel-gallery-group + .travel-gallery-group {
  margin-top: 2em;
}

.travel-gallery-heading {
  margin: 0 0 0.9em;
}

.travel-gallery-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.travel-gallery-heading p {
  margin: 0.25em 0 0;
  color: var(--site-text-secondary);
}

.travel-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}

.travel-photo {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--site-surface);
}

.travel-photo img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: color-mix(in srgb, var(--site-bg) 82%, var(--site-surface));
}

.travel-photo figcaption {
  padding: 0.85em 1em 1em;
  color: var(--site-text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .travel-gallery-grid,
  .travel-place-notes {
    grid-template-columns: 1fr;
  }

  .travel-photo img {
    max-height: 76vh;
  }
}

.travel-maintainer {
  color: var(--site-text-muted);
  font-size: 0.9rem;
}

.travel-maintainer a {
  color: var(--site-text-secondary);
}

.travel-stop-details {
  margin-top: 0.75em;
  color: var(--site-text-secondary);
}
