/* =========================================================
  OpsNoteCloud — base stylesheet
  Palette: Simoob-inspired midnight + orange + observability blue
   Type: IBM Plex Sans (body/headings) + JetBrains Mono (code/meta)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --paper: #0a0a0b;
  --paper-raised: #11131a;
  --ink: #f7f8fa;
  --ink-soft: #b7bdca;
  --ink-faint: #b7bac0;
  --line: #30343f;
  --line-soft: #20232c;

  --accent: #ff6b35;
  --accent-dark: #ff9068;
  --accent-tint: rgba(255, 107, 53, 0.14);
  --secondary: #004e89;

  --code-bg: #07080c;
  --code-bg-header: #11131c;
  --code-text: #d7dbe5;
  --code-accent: #ff9068;
  --code-line: #292e3b;

  --radius: 6px;
  --measure: 680px;

  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

html[data-theme="light"] {
  --paper: #f5f7f9;
  --paper-raised: #ffffff;
  --ink: #15181d;
  --ink-soft: #4d5966;
  --ink-faint: #73808c;
  --line: #d8dee5;
  --line-soft: #e7ebef;
  --accent-tint: rgba(255, 107, 53, 0.1);
  --code-bg: #10151b;
  --code-bg-header: #1a222b;
  --code-text: #e5ebf0;
  --code-line: #303b46;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 8% 4%,
      rgba(255, 107, 53, 0.14),
      transparent 26rem
    ),
    radial-gradient(
      circle at 92% 24%,
      rgba(0, 78, 137, 0.2),
      transparent 34rem
    ),
    linear-gradient(180deg, #0a0a0b 0%, #0d1017 55%, #0a0a0b 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] body {
  background:
    radial-gradient(
      circle at 8% 4%,
      rgba(255, 107, 53, 0.12),
      transparent 26rem
    ),
    radial-gradient(
      circle at 92% 24%,
      rgba(0, 78, 137, 0.1),
      transparent 34rem
    ),
    linear-gradient(180deg, #ffffff 0%, #f1f5f8 55%, #ffffff 100%);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent);
}

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

/* ---------- top nav ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: none;
  margin: 0 auto;
  padding: 18px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
}

.topnav .brand img {
  height: 15px;
  display: block;
  filter: invert(1) brightness(1.8);
}

.topnav .links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.topnav .links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.topnav .links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-left: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink-soft);
  background: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
}

html[data-theme="light"] .topnav {
  border-bottom-color: rgba(21, 24, 29, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .topnav .links a {
  color: var(--ink-soft);
}

html[data-theme="light"] .topnav .brand img {
  filter: none;
}

@media (max-width: 640px) {
  .topnav {
    gap: 4px;
    padding: 12px;
    flex-wrap: nowrap;
  }

  .topnav .brand {
    flex: 0 0 76px;
    min-width: 0;
  }

  .topnav .brand img {
    width: 76px;
    max-width: 76px;
    height: auto;
  }

  .topnav .links {
    min-width: 0;
    flex: 0 0 auto;
    gap: 4px;
    font-size: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .theme-toggle {
    margin-left: 4px;
    width: 24px;
    height: 24px;
  }
}

/* ---------- reading progress ---------- */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 80ms linear;
}

/* ---------- article shell ---------- */


/* ---- Latest notes carousel ---- */
.notes-carousel{
  position: relative;
}

.carousel-track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 8px;
  margin: 0 -4px;
  list-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-track.dragging{ cursor: grabbing; scroll-snap-type: none; user-select: none; }

.note-card{
  scroll-snap-align: start;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
}
.note-card.is-hidden{ display: none; }

.note-card-link{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.note-thumb{
  background: #f4efe4;
  border-radius: 14px;
  height: 168px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-card-body{
  padding: 16px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.note-eyebrow{
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent, #e08a4f);
  font-weight: 600;
  margin-bottom: 8px;
}

.note-card-title{
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.note-card-desc{
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #8b8f98);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card-meta{
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted, #8b8f98);
  padding-top: 10px;
  border-top: 1px solid var(--line, #23282f);
}
.note-card-author{ color: var(--text, #7b7973); font-weight: 500; }
.note-card-meta .dot{ opacity: .5; }

.note-card:hover .note-card-title{ color: var(--accent, #e08a4f); }

.carousel-arrow{
  position: absolute;
  top: 66px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft, #12161d);
  border: 1px solid var(--line, #23282f);
  color: var(--text, #e9e7e1);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: border-color .15s, color .15s;
}
.carousel-arrow:hover{ border-color: var(--accent, #e08a4f); color: var(--accent, #e08a4f); }
.carousel-arrow.prev{ left: -19px; }
.carousel-arrow.next{ right: -19px; }

@media (max-width: 720px){
  .carousel-arrow{ display: none; }
}

.filter-empty{ color: var(--muted, #8b8f98); font-size: 14px; }




main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

article {
  min-width: 0;
}

/* ---------- hero ---------- */

.article-hero {
  padding: 56px 0 32px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
  margin: 0 -24px 8px;
  padding-left: 24px;
  padding-right: 24px;
}

h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 0 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.meta-row .dot {
  color: var(--line);
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.tags a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-dark);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.tags a:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

/* ---------- body typography ---------- */

article > p,
article > ul,
article > blockquote {
  max-width: var(--measure);
}

h2 {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 52px 0 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 18px;
}

strong {
  font-weight: 600;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}

blockquote {
  margin: 0 0 18px;
  padding: 10px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote strong {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------- callouts ---------- */

.callout {
  max-width: var(--measure);
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px;
}

/* ---------- code / terminal blocks ---------- */

.code-block {
  max-width: var(--measure);
  margin: 4px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--code-bg-header);
  border-bottom: 1px solid var(--code-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.code-block-header .label {
  letter-spacing: 0.02em;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--code-text);
  background: transparent;
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  padding: 3px 9px;
  cursor: pointer;
}

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

pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--code-text);
  white-space: pre;
}

pre code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--code-text);
  background: none;
  white-space: pre;
}

/* inline code outside pre (none currently used, but kept for safety) */
p code,
li code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--line-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- figures ---------- */

.article-image {
  max-width: var(--measure);
  margin: 8px 0 28px;
}

.article-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

article table {
  width: 100%;
  max-width: var(--measure);
  margin: 24px 0 28px;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper-raised);
}

article th,
article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

article th {
  background: var(--line-soft);
  color: var(--ink);
  font-weight: 600;
}

article tr:nth-child(even) td {
  background: #1a1d28;
}

.figure-placeholder {
  border: 1px dashed var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-faint);
}

.figure-placeholder strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 6px;
}

.figure-placeholder code {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- table of contents (desktop rail) ---------- */

.toc-rail {
  position: sticky;
  top: 32px;
  align-self: start;
  padding-top: 56px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.toc-rail .toc-label {
  color: var(--ink-faint);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.toc-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.toc-rail li {
  margin: 0;
}

.toc-rail a {
  display: block;
  padding: 6px 0 6px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.toc-rail a:hover {
  color: var(--ink);
}

.toc-rail a.active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

@media (max-width: 980px) {
  .toc-rail {
    display: none;
  }
}

/* ---------- footer ---------- */

footer {
  max-width: 1250px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* =========================================================
   LANDING PAGE ADDITIONS
   Paste everything below into style.css (e.g. at the end).
   Uses the same variables already defined in :root up top —
   no new variables needed.
   ========================================================= */

.home-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.about-main {
  max-width: 1240px;
  height: 520px;
  margin: 0 auto;
  padding: 30px 24px 100px;
}

/* ---------- hero ---------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 12px 0 88px;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 10% 35% 12% -12%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.08),
    transparent 68%
  );
  pointer-events: none;
}

.home-hero-copy,
.home-hero-diagram {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 44px 0 48px;
    gap: 36px;
  }
}

.prompt-line {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.prompt-user {
  color: var(--accent-dark);
}

.prompt-sep {
  color: var(--ink-faint);
  margin: 0 6px;
}

.cursor-blink {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.home-headline {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.home-subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.home-hero-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.quiet-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition:
    text-decoration-color 150ms ease,
    color 150ms ease;
}

.quiet-link:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

.quiet-link-secondary {
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration-color: var(--line);
}

.quiet-link-secondary:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-faint);
}

/* ---------- hero diagram ---------- */

.home-hero-diagram {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(17, 19, 26, 0.96),
    rgba(0, 78, 137, 0.12)
  );
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.home-hero-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.diagram-line-dashed {
  stroke-dasharray: 3 4;
  stroke: var(--ink-faint);
}

.diagram-node rect {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.2;
}

.diagram-node text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--ink-soft);
}

.diagram-node-accent rect {
  stroke: var(--accent);
  fill: var(--accent-tint);
}

.diagram-node-accent text {
  fill: var(--accent-dark);
}

.diagram-node-muted rect {
  stroke-dasharray: 2 3;
}
.diagram-node-muted text {
  fill: var(--ink-faint);
}

.diagram-dot {
  fill: var(--accent);
}
.diagram-dot-admin {
  fill: var(--ink-faint);
}

.diagram-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- section shell ---------- */

.home-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 78, 137, 0.035),
    transparent
  );
}

.home-section-head {
  margin-bottom: 24px;
}

.home-section-head h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.home-section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
}

.home-section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

@media (max-width: 800px) {
  .home-section-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- tag filter ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.filter-pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ---------- note list ---------- */

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

.note-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  transition:
    border-left-color 150ms ease,
    background 150ms ease;
}

.note-row:first-child {
  border-top: none;
}

.note-row:hover {
  border-left-color: var(--accent);
  background: var(--accent-tint);
}

.note-row.is-hidden {
  display: none;
}

.note-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  padding-top: 2px;
}

.note-main {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.note-title {
  display: block;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.note-row:hover .note-title {
  color: var(--accent-dark);
}

.note-desc {
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}

.note-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 2px;
}

@media (max-width: 640px) {
  .note-row {
    grid-template-columns: 32px 1fr;
  }
  .note-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.filter-empty {
  color: var(--ink-faint);
  font-size: 14.5px;
  padding: 24px 0;
}

/* ---------- visual note archive ---------- */

.notes-archive .note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.notes-archive .note-row {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left-width: 1px;
  border-radius: var(--radius);
  background: var(--paper-raised);
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.notes-archive .note-row:first-child {
  border-top: 1px solid var(--line);
}

.notes-archive .note-row:hover {
  border-color: var(--accent);
  background: var(--paper-raised);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.note-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--code-bg);
}

.note-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.notes-archive .note-row:hover .note-cover img {
  transform: scale(1.035);
}

.note-cover .note-index {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(8px);
}

.notes-archive .note-main {
  display: block;
  padding: 20px 20px 0;
}

.notes-archive .note-title {
  font-size: 18px;
  line-height: 1.35;
}

.notes-archive .note-desc {
  max-width: none;
}

.notes-archive .note-meta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 20px;
  white-space: normal;
}

@media (max-width: 720px) {
  .notes-archive .note-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- explore list / about ---------- */

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

.explore-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-soft);
}

.explore-list li:first-child {
  border-top: none;
}

.explore-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 16px;
}

.about-block p {
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- supporting pages ---------- */

.page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  padding-bottom: 156px;
}

.about-hero {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  min-height: 0;
  padding-top: 32px;
  padding-bottom: 24px;
}

.about-hero .home-hero-diagram {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.about-hero .diagram-caption {
  text-align: left;
}

.about-hero .home-hero-copy .home-subhead:first-of-type {
  max-width: none;
  white-space: nowrap;
}

.profile-portrait {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-hero .home-hero-copy .home-subhead:first-of-type {
    white-space: normal;
  }
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.project-link:hover .note-title {
  color: var(--accent-dark);
}

.projects-main {
  max-width: 1240px;
  height: 520px;
  margin: 0 auto;
  padding: 52px 44px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.projects-main::before {
  content: "";
  position: absolute;
  inset: 10% 35% 12% -12%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.08),
    transparent 68%
  );
  pointer-events: none;
}

.projects-main > * {
  position: relative;
  z-index: 1;
}

.projects-main h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.projects-main > p {
  max-width: 680px;
  color: var(--ink-soft);
}

.projects-main > p:last-child {
  margin-top: 24px;
}
