/* Shared desktop page frame. Keep prose and individual artwork measures local. */
:root {
  --page-gutter: clamp(1.25rem, 5vw, 3rem);
}

.cv-credential--school {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.cv-school-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
}
.cv-school-logo img { width: 44px; height: 44px; object-fit: contain; }
.cv-school-copy { min-width: 0; }
@media (max-width: 479px) {
  .cv-credential--school { grid-template-columns: 48px minmax(0, 1fr); gap: 0.75rem; }
  .cv-school-logo { width: 48px; height: 48px; }
  .cv-school-logo img { width: 34px; height: 34px; }
}

.post-header .post-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.85rem;
  list-style: none;
  margin: 0.65rem 0 1.75rem;
  padding: 0;
}
.post-topics li { display: flex; align-items: center; gap: 0.85rem; }
.post-topics li + li::before { content: "·"; color: var(--fg-muted); }
.post-topics a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
}
.post-topics a:hover { color: var(--teal-dim); text-decoration-color: currentColor; opacity: 1; }
.post-topics a:focus-visible { outline: 2px solid var(--teal-dim); outline-offset: 2px; }

.eng-featured-overview {
  display: grid;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.eng-featured-copy { min-width: 0; }
.projects-page .eng-featured-overview .eng-featured-desc { margin-bottom: 0; }
.eng-featured-illustration {
  display: block;
  width: min(100%, 360px);
  height: auto;
  justify-self: center;
  /* Follow the sculpture and scan plane instead of fading its dark backdrop. */
  clip-path: polygon(
    5% 46.5%, 10% 44%, 22% 40.5%, 30% 39%, 43% 33%,
    44.4% 32%, 44.4% 17%, 57.7% 7%, 57.7% 24.5%,
    65% 23.2%, 73% 24%, 80% 26%, 87% 29%, 94% 33%,
    95.5% 36%, 95% 41%, 92% 48%, 88% 55%, 82% 62%,
    74% 70%, 66% 75%, 58% 78%, 57.7% 93.3%,
    44.4% 82.8%, 44.4% 75%, 40% 73%, 35% 68%,
    30% 63%, 25% 57%, 22% 56%, 24% 63%, 29% 70%,
    24% 67%, 19% 61%, 14% 56%, 9% 51%, 5% 48%
  );
}
@media (min-width: 768px) {
  .eng-featured-overview { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; }
  .eng-featured-illustration { width: 100%; }
}

.eng-listing-link {
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 0.25em;
}
.eng-listing-link:hover { text-decoration-color: var(--teal-dim); }
.eng-listing-link span { color: var(--teal-dim); }

.notes-categories {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: thin;
}

.notes-categories a {
  flex: 0 0 auto;
  padding: 0.85rem 0;
  border-bottom: 2px solid transparent;
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.notes-categories a[aria-current="true"] {
  border-bottom-color: var(--teal-dim);
  color: var(--fg);
}

.notes-categories a:hover { color: var(--fg); opacity: 1; }
.notes-categories a:focus-visible { outline-offset: -2px; }
.notes-entry-category {
  color: var(--teal-dim);
  font-size: var(--fs-xs);
}

#notes .lab-notes-archive-heading-row { display: block; margin-bottom: 1.5rem; }
#notes .eng-section-head {
  margin-bottom: 0.75rem;
  padding-top: 0;
  border: 0;
  color: var(--fg);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.notes-intro { color: var(--fg-muted); font-size: var(--fs-sm); line-height: 1.6; }
#notes .archive-year-group[hidden] { display: none; }
#notes .archive-year { margin: 0 0 1rem; color: var(--fg-muted); }
#notes .post-list-item { display: block; padding: 0; }
#notes .post-list-item[hidden] { display: none; }
.notes-entry-link { display: block; padding: 1.5rem 0; color: var(--fg); }
.notes-entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.notes-entry-meta .post-list-date { font-size: var(--fs-xs); }
.notes-entry-heading { display: flex; align-items: baseline; gap: 1rem; justify-content: space-between; }
#notes .post-list-title { margin: 0; max-width: 36ch; font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.2; text-wrap: pretty; }
.notes-entry-arrow { flex: 0 0 auto; color: var(--fg-muted); font-size: 1.25rem; }
.notes-entry-description { margin: 0.65rem 2rem 0 0; max-width: 62ch; color: var(--fg-muted); font-size: var(--fs-sm); line-height: 1.65; }
.notes-entry-link:hover { opacity: 1; }
.notes-entry-link:hover .post-list-title,
.notes-entry-link:hover .notes-entry-arrow,
.notes-entry-link:focus-visible .notes-entry-arrow { color: var(--teal-dim); }

@media (min-width: 768px) {
  #notes .archive-year-group { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 2rem; }
  #notes .archive-year { padding-top: 1.5rem; }
  .notes-entry-link { padding-block: 1.75rem; }
}

@media (min-width: 1024px) {
  .site-nav > .container,
  .site-footer > .container,
  main > .container,
  .home-edition > .container,
  main > .list-page,
  main > .about-intro,
  main > .cv-page,
  main#workspace,
  .workspace-nav {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }

  /* These are section grids, so they follow their outer page frame. */
  .creative-page .live-index-rail,
  .creative-page .live-grid,
  .creative-page .witness-flow {
    max-width: none;
  }

  .about-intro-inner > *,
  .creative-hero > *,
  .hero-grid > * {
    min-width: 0;
  }
}

/* Quiet role disclosures, with a native tap/keyboard control. */
.cv-role-details > summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.cv-role-details > summary::-webkit-details-marker { display: none; }
.cv-role-details > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
  border-radius: 2px;
}
.cv-role-toggle {
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  flex-shrink: 0;
}
.cv-role-details[open] .cv-role-toggle { transform: rotate(45deg); }
.cv-role-description {
  max-width: 58ch;
  margin: .25rem 0 1rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--fg-muted);
}
.cv-acquisition { margin: -1rem 0 1.5rem; font-size: var(--fs-sm); }
.cv-acquisition a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: var(--border-subtle);
}
.cv-acquisition a:hover { color: var(--teal); }
.cv-log:hover .cv-episode:not(:hover) { opacity: 1; }

/* ─── Rotation panels (Ambriel + Subterfuge on /creative/) ────────────────
   Borrowed from the anarchy page's catalog idiom: a chamber with a meta
   header row, numbered rows, and a circular arrow on each link. Anarchy's
   local tokens are mapped onto the site-wide theme tokens so this works in
   both themes. */
.rotation-section {
  --rot-line: var(--border-subtle);
  --rot-glow: rgba(var(--teal-rgb), 0.10);
  /* The brand teal only clears 3:1 on the dark ground; the arrow glyph is
     small, so light mode needs a darker step. */
  --rot-accent: #178585;
  margin: var(--space-section-sm) 0 4rem;
}
.rotation-section--inset { max-width: 640px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
:root[data-theme="dark"] .rotation-section { --rot-accent: var(--teal); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rotation-section { --rot-accent: var(--teal); }
}

.rotation-head { margin-bottom: 2rem; }
.rotation-kicker {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}
.rotation-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.rotation-head h2 em { font-style: italic; color: var(--teal); }
.rotation-intro { color: var(--fg-muted); max-width: 46ch; margin: 1rem 0 0; }

.rotation { display: grid; gap: 1.25rem; }

.rotation-chamber {
  padding: 1.1rem 1.4rem 1.3rem;
  border: 1px solid var(--rot-line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--rot-glow), transparent 62%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
  box-shadow: inset 0 1px 0 var(--rot-line);
}

.rotation-catalog {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0 .25rem .85rem;
  border-bottom: 1px solid var(--rot-line);
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.rotation-count { white-space: nowrap; }

.rotation-spins { list-style: none; margin: 0; padding: 0; }
.rotation-spins li + li { border-top: 1px solid var(--rot-line); }
.rotation-spins a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 2rem;
  grid-template-areas: "no body date arrow";
  align-items: center;
  gap: 1rem;
  padding: .85rem .25rem;
  text-decoration: none;
  color: inherit;
}
.rotation-no { grid-area: no; }
.rotation-body { grid-area: body; }
.rotation-spins time { grid-area: date; }
.rotation-spins .rotation-arrow { grid-area: arrow; }
.rotation-no {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--fg-muted);
}
.rotation-body { min-width: 0; display: grid; gap: .15rem; }
.rotation-track { font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.15; }
.rotation-ep {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.rotation-spins time {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.rotation-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rot-line);
  border-radius: 50%;
  color: var(--rot-accent);
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.rotation-spins a:hover .rotation-arrow,
.rotation-spins a:focus-visible .rotation-arrow {
  background: var(--rot-accent);
  border-color: var(--rot-accent);
  color: var(--bg);
}
.rotation-spins a:hover .rotation-track { color: var(--teal); }
.rotation-spins a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* "Keep going" row, after the chambers — anarchy's bookshop-link idiom. */
.rotation-readmore {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1.4rem .25rem;
  border-block: 1px solid var(--rot-line);
  color: inherit;
  text-decoration: none;
}

.rotation-readmore-copy { display: grid; gap: .2rem; min-width: 0; }
.rotation-readmore-copy strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1.15;
}
.rotation-readmore-copy > span { color: var(--fg-muted); font-size: var(--fs-sm); }

.rotation-readmore:hover .rotation-readmore-copy strong { color: var(--rot-accent); }
.rotation-readmore:hover .rotation-arrow {
  background: var(--rot-accent);
  border-color: var(--rot-accent);
  color: var(--bg);
}
.rotation-readmore:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 40rem) {
  .rotation-chamber { padding: 1rem .9rem 1.1rem; border-radius: 16px; }
  .rotation-readmore { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }

  .rotation-catalog { flex-wrap: wrap; gap: .25rem; }
  .rotation-spins a {
    grid-template-columns: 1.9rem minmax(0, 1fr) 2rem;
    grid-template-areas:
      "no body arrow"
      "no date arrow";
    gap: .3rem .75rem;
    align-items: start;
  }
  .rotation-spins time { justify-self: start; }
  .rotation-no { padding-top: .2rem; }
  .rotation-spins .rotation-arrow { align-self: center; }
}
