:root {
  --text: #212121;
  --muted: rgba(0, 0, 0, 0.5);
  --accent: #0969da;
  --accent-highlight: rgba(9, 105, 218, 0.35);
  --sidebar-bg: #f4f4f4;
  --hover-bg: #fff;
  --border: rgba(0, 0, 0, 0.1);
  --sidebar-w: 223px;
  --font: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 200;
  font-weight: 700;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border);
}

.mobile-brand {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger-box {
  position: relative;
  width: 30px;
  height: 18px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--text);
  transition: transform 0.15s ease, opacity 0.15s ease, top 0.15s ease;
}

.hamburger-inner {
  top: 8px;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  left: 0;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  top: 8px;
}

.hamburger.is-active .hamburger-inner {
  background: transparent;
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  padding: 0.5rem 0 2rem;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
}

.sidebar-brand {
  display: none;
  margin: 0.5rem 0.75rem 1.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-radius: 0.375rem;
}

@media (min-width: 1025px) {
  .sidebar-brand {
    display: block;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-radius: 0.375rem;
  transition: background 0.12s ease;
}

.nav-item:hover {
  background: var(--hover-bg);
}

.nav-item--current {
  background: var(--hover-bg);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-icon {
  display: flex;
  width: 1.25rem;
  justify-content: center;
}

.nav-group {
  margin-top: 1.5rem;
}

.nav-group-label {
  margin: 0 1rem 0.35rem;
  padding: 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.main {
  max-width: 64rem;
  margin: 0 auto;
  min-height: 100vh;
}

.main-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

@media (min-width: 30em) {
  .main-inner {
    padding: 2.5rem 1.5rem 4rem;
  }
}

@media (min-width: 60em) {
  .main-inner {
    padding: 3.5rem 0 5rem;
  }
}

.intro-block {
  margin-bottom: 2.5rem;
  overflow: auto;
}

.intro-photo {
  float: right;
  width: 12.5rem;
  height: 12.5rem;
  max-width: 42%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 0 1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  shape-outside: circle(50%);
}

.intro {
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.intro p {
  margin: 0 0 1.25rem;
}

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

@media (max-width: 30em) {
  .intro-photo {
    float: none;
    display: block;
    max-width: 11rem;
    width: 11rem;
    height: 11rem;
    margin: 0 auto 1.25rem;
  }
}

.prose a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.08s ease;
}

.prose a:hover {
  box-shadow: inset 0 -0.55em 0 var(--accent-highlight);
}

.block {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.section-label {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.post-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

.post-title {
  flex: 1 1 12rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

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

.post-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.see-all {
  margin: 1rem 0 0;
  text-align: right;
}

.see-all-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
}

.see-all-link:hover {
  color: var(--accent);
}

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

.project-index-list li {
  margin: 0.65rem 0;
}

.project-index-list li:first-child {
  margin-top: 0;
}

.project-index-list a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.project-index-list a:hover {
  color: var(--accent);
}

.project-page .project-piece-links {
  margin-top: 0.25rem;
}

.project-piece-links {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-piece-links a {
  color: var(--accent);
  text-decoration: none;
}

.project-piece-links a:hover {
  text-decoration: underline;
}

.project-piece-sep {
  margin: 0 0.35rem;
  color: var(--muted);
  font-weight: 400;
}

.project-piece-body.prose p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.project-piece-body.prose p:last-child {
  margin-bottom: 0;
}

.project-piece-body.prose code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.05em 0.3em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

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

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

.project-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0;
  text-decoration: none;
  color: inherit;
  border-radius: 0.25rem;
}

.project-row:hover .project-body strong {
  color: var(--accent);
}

.project-favicon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230969da' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E")
    center / 55% no-repeat;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.project-body strong {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.9);
  transition: color 0.12s ease;
}

.project-meta {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.4;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.about-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text);
}

/* About page (personal): main title uses site accent; tagline stays body style */
.about-page-heading {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-intro-sub {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
}

.about-article--personal .about-intro-sub + p {
  margin-top: 0;
}

.about-article.prose {
  color: var(--text);
}

.about-article.prose > p:not(.about-lead) {
  color: var(--muted);
}

.about-article.prose > p:last-of-type {
  color: var(--text);
}

.about-heading {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-article.prose .about-heading + p {
  margin-top: 0;
}


.about-article--personal p.about-tail {
  color: var(--text);
}

.about-article--personal > p:not(.about-tail) + p.about-tail,
.about-article--personal ul.about-favorites + p.about-tail {
  margin-top: 1.75rem;
}

.about-favorites-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.about-favorites li {
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.about-favorites li:last-child {
  margin-bottom: 0;
}

.about-favorites-label {
  font-weight: 700;
  color: var(--text);
}

.about-article--personal p.about-tail + p.about-tail {
  margin-top: 0.85rem;
}

.about-back {
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
}

.about-back a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.about-back a:hover {
  color: var(--accent);
}

/* About page photo album */
.about-album-section {
  margin-top: 2.5rem;
}

.photo-album {
  max-width: 100%;
  outline: none;
}

.photo-album:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.photo-album-view {
  position: relative;
  margin: 0 auto;
  /* Fluid width; tighter caps on small screens */
  max-width: min(100%, clamp(12.5rem, 70vw, 22rem));
  overflow: hidden;
  border-radius: 0.25rem;
}

.photo-album-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(48vh, clamp(9rem, 38vmin, 19rem));
  margin: 0 auto;
  object-fit: contain;
  border: none;
}

/* Tablets / laptops: allow a larger album without filling the whole column */
@media (min-width: 52em) {
  .photo-album-view {
    max-width: min(100%, clamp(18rem, 36vw, 30rem));
  }

  .photo-album-img {
    max-height: min(58vh, clamp(14rem, 32vmin, 26rem));
  }
}

.photo-album-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.25rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  border: none;
}

.photo-album-caption[hidden] {
  display: none;
}

.photo-album-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 70%, transparent);
  pointer-events: none;
}

.photo-album-overlay .photo-album-nav,
.photo-album-overlay .photo-album-count {
  pointer-events: auto;
}

.photo-album-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.photo-album-nav:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.photo-album-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.photo-album-count {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.photo-album-count-sep {
  margin: 0 0.1rem;
  opacity: 0.85;
}

.photo-album-external {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  text-align: center;
}

.photo-album-external[hidden] {
  display: none;
}

.photo-album-external a {
  color: var(--accent);
  font-weight: 600;
}

.photo-album-external a:hover {
  text-decoration: underline;
}

.thought-article.prose > p {
  color: var(--text);
}

article.thought-article {
  min-width: 0;
  max-width: 100%;
}

.thought-date {
  margin: -0.35rem 0 1.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.thought-date time {
  font-variant-numeric: tabular-nums;
}

.thought-subhead {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.thought-article .thought-subhead:first-of-type {
  margin-top: 1.35rem;
}

.thought-figure {
  margin: 1.25rem auto 1.5rem;
  max-width: min(100%, 30rem);
  min-width: 0;
}

.thought-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0.25rem;
}

.thought-figcap {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.thought-figcap a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.thought-figcap a:hover {
  text-decoration: underline;
}

.thought-article.prose > p.thought-signoff {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
}

.thought-article.prose code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.05em 0.3em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.thought-attachment {
  margin-top: 1.25rem;
}

.thought-attachment--image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0.25rem;
}

.thought-attachment a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.thought-attachment a:hover {
  text-decoration: underline;
}

/* Blog archive (blog.html) */
.blog-header {
  margin-bottom: 0.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-hero-title {
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.blog-lead {
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.blog-index {
  margin-top: 0.5rem;
}

.blog-index .post-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-index .post-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-index .post-date {
  order: -1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-index .post-title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}

/* tools/blog-post-generator.html */
.generator-page .generator-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.generator-form {
  max-width: 36rem;
}

.generator-field {
  margin-bottom: 1.35rem;
}

.generator-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.generator-req {
  color: var(--accent);
}

.generator-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.generator-hint {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.generator-form input[type="text"],
.generator-form input[type="date"],
.generator-form textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.55rem 0.65rem;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.generator-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.generator-form input[type="file"] {
  font-size: 0.9375rem;
  max-width: 100%;
}

.generator-attachment-opts {
  margin-top: 0.65rem;
}

.generator-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.generator-actions {
  margin-top: 1.75rem;
}

.generator-submit {
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

.generator-submit:hover {
  filter: brightness(1.08);
}

.generator-output {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.generator-steps {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.generator-steps ol {
  margin: 0;
  padding-left: 1.25rem;
}

.generator-steps li {
  margin-bottom: 0.5rem;
}

.generator-steps code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.05em 0.25em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
}

.generator-snippet-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.generator-snippet {
  width: 100%;
  max-width: 36rem;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  resize: vertical;
}

.generator-copy-row {
  margin: 0.65rem 0 0;
}

.generator-copy {
  padding: 0.45rem 0.9rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  cursor: pointer;
}

.generator-copy:hover {
  background: var(--hover-bg);
}

.employer-strip {
  margin: 0;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--border);
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.employer-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1rem 1.25rem;
  width: 100%;
}

.employer-logos li {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.employer-logos img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.78;
  filter: grayscale(1);
  transition: opacity 0.15s ease, filter 0.15s ease;
}

/* Tablet / narrow: 2×2 grid so logos stay readable */
@media (max-width: 52em) {
  .employer-strip .section-label {
    text-align: center;
  }

  .employer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
    max-width: 22rem;
    margin-inline: auto;
  }

  .employer-logos img {
    height: 2.125rem;
  }
}

/* Small phones: single column, comfortable tap targets */
@media (max-width: 24em) {
  .employer-logos {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 12rem;
  }

  .employer-logos img {
    height: 2.25rem;
  }
}

.employer-logos li:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.learning-page .learning-lead {
  color: var(--muted);
}

.learning-block {
  margin-top: 2rem;
}

.learning-block:first-of-type {
  margin-top: 0.5rem;
}

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

.learning-books li {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.learning-books li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.learning-books .book-title {
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}

.learning-books .book-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.learning-books .book-note {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.learning-block .post-list {
  margin-top: 0.25rem;
}

.learning-subheading {
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.learning-block > .learning-subheading:first-of-type {
  margin-top: 0.75rem;
}

a.learning-course-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.12s ease;
}

a.learning-course-block:hover .book-title,
a.learning-course-block:focus-visible .book-title {
  color: var(--accent);
}

a.learning-course-block:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.course-meta {
  margin: -0.35rem 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.course-work-body + .learning-block {
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .mobile-bar {
    display: flex;
  }

  .sidebar {
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding-top: 3.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar.is-open {
    display: block;
  }

  .sidebar-brand {
    display: block;
  }

  .main-wrap {
    margin-left: 0;
  }
}
