/* ========================================
   DESIGN SYSTEM
   ======================================== */

:root {
  /* Calm, minimal — light neutrals, single soft accent */
  --bg: #fafafa;
  --bg-alt: #f5f5f5;
  --fg: #1a1a1a;
  --fg-secondary: #525252;
  --fg-muted: #737373;
  --border: #e5e5e5;
  --accent: #0b243e;
  --accent-ocean: #163a5c;
  --accent-soft: rgba(11, 36, 62, 0.08);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Source Serif 4', Georgia, serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;

  /* Sizing */
  --max-width: 720px;
  --header-height: 64px;

  /* Font sizes (non-article: 4 sizes only) */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 15px;
  --text-lg: 18px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Prevent flash of home when reloading with hash (e.g. #thoughts/random) */
html.route-pending .site {
  opacity: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

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

/* ========================================
   LAYOUT
   ======================================== */

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

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.view.fade-out {
  opacity: 0;
}

.view.hidden {
  display: none !important;
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--fg);
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.6;
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: var(--text-base);
}

.breadcrumb a {
  color: var(--fg);
  transition: opacity 0.25s ease;
}

.breadcrumb a:hover {
  opacity: 0.6;
}

.breadcrumb-home {
  color: var(--fg-secondary);
}

.breadcrumb-home:hover {
  color: var(--fg);
  opacity: 1;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: var(--fg-muted);
}

.breadcrumb-current {
  color: var(--fg-muted);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}


/* ========================================
   HERO
   ======================================== */

.hero {
  padding: 32px 0 16px;
}

.hero-text {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 520px;
}

.hero-text:first-child {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--fg);
  font-weight: 500;
}

/* Inline Links */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 36, 62, 0.55);
  transition: all 0.25s ease;
}

.inline-link:hover {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
}


/* ========================================
   CONTACT
   ======================================== */

.contact {
  padding: 40px 0 80px;
}

.contact-email {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-email.reveal {
  opacity: 1;
}

/* ========================================
   PAGE VIEWS
   ======================================== */

.page-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 120px;
}

.page-container-wide {
  max-width: 900px;
}

.header-wide {
  max-width: 900px;
}

.page-blurb {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 480px;
  font-style: italic;
}

/* ========================================
   EASTER EGG: YOU'RE ALREADY HERE
   ======================================== */

.easter-egg-container {
  padding-top: 24px;
}

.easter-egg-content {
  max-width: 520px;
}

.easter-egg-content .easter-egg-title,
.easter-egg-content .easter-egg-subtitle,
.easter-egg-content .easter-egg-note {
  text-align: center;
}

.easter-egg-content .easter-egg-note {
  margin-bottom: 40px;
}

.easter-egg-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 16px;
  animation: easter-egg-fade 1.5s ease-out;
}

.easter-egg-subtitle {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  margin-bottom: 24px;
  animation: easter-egg-fade 1.5s ease-out 0.2s both;
}

.easter-egg-note {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: easter-egg-fade 1.5s ease-out 0.4s both;
}

.easter-egg-back {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 36, 62, 0.55);
  transition: color 0.2s, border-color 0.2s;
}

.easter-egg-back:hover {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
}

.easter-egg-section {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  margin: 32px 0 16px;
}

.easter-egg-section:first-of-type {
  margin-top: 0;
}

.easter-egg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: 8px;
}

.easter-egg-table td {
  padding: 8px 12px 8px 0;
  vertical-align: top;
}

.easter-egg-table td:first-child {
  color: var(--fg-muted);
  width: 55%;
}

.easter-egg-table td:last-child {
  color: var(--fg-secondary);
}

.easter-egg-list {
  margin: 0 0 32px;
  padding-left: 20px;
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  line-height: 1.8;
}

.easter-egg-list li {
  margin-bottom: 8px;
}

@keyframes easter-egg-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   FILTERS
   ======================================== */

.filters {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  font-size: var(--text-sm);
}

.filters-inline {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  font-size: var(--text-sm);
}

.filter-link {
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 4px 0;
}

.filter-link:hover {
  color: var(--fg-secondary);
}

.filter-link.active {
  color: var(--fg);
  font-weight: 500;
}

/* ========================================
   THOUGHTS LIST
   ======================================== */

.thoughts-list {
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease;
}

.thoughts-list.fading {
  opacity: 0;
}

.thought-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.thought-row:hover {
  opacity: 0.8;
}

.thought-row:hover .thought-title {
  color: var(--accent-ocean);
}

.thought-title {
  font-size: var(--text-base);
  color: var(--fg);
  transition: color 0.2s ease;
}

.thought-date {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  flex-shrink: 0;
  margin-left: 24px;
}

/* ========================================
   READING LIST
   ======================================== */

.reading-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reading-item {
  transition: opacity 0.2s;
}

.reading-item:hover {
  opacity: 0.7;
}

.reading-item-title {
  font-size: var(--text-base);
  color: var(--fg);
  margin-bottom: 4px;
}

.reading-item-title a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 36, 62, 0.55);
  transition: color 0.2s, border-color 0.2s;
}

.reading-item-title a:hover {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
}

.reading-item-author {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

/* ========================================
   PROJECTS GRID
   ======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  cursor: pointer;
  padding: 16px 16px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-alt) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cubes {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 4px;
  transform: rotate(-10deg);
}

.project-cube {
  width: 24px;
  height: 24px;
  background: var(--border);
  opacity: 0.6;
}

.project-cube:nth-child(odd) {
  opacity: 0.3;
}

.project-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--fg);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-meta {
  display: flex;
  gap: 16px;
  font-size: var(--text-xs);
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

/* ========================================
   WORK DETAIL (projects)
   ======================================== */

.work-detail .work-header {
  margin-bottom: 32px;
}

.work-detail .work-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.work-detail .work-meta .article-date {
  margin-bottom: 0;
}

.work-status {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--fg-muted);
  letter-spacing: 0.3px;
}

.work-status-done,
.work-status-shipped {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.work-status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.work-status-active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -0.5px;
}

.work-status-paused {
  background: rgba(234, 179, 8, 0.1);
  color: #a16207;
}

.work-detail .work-description {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.work-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.work-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fg);
}

.work-section-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-secondary);
}

.work-section-body p {
  margin-bottom: 16px;
}

.work-stills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.work-stills figure {
  margin: 0;
}

.work-stills img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ========================================
   PROJECT DOC LAYOUT
   ======================================== */

.project-doc {
  max-width: 100%;
}

.project-doc-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 32px;
  background: var(--bg-alt);
}

.project-doc-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-doc-hero-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.project-doc-header {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.project-doc-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
}

.project-detail-header {
  padding-bottom: 8px;
  margin-bottom: 0;
}

.project-detail-tech {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.project-detail-content {
  max-width: 560px;
  margin: 0 auto;
}

.project-detail-link-row {
  margin-bottom: 12px;
}

.project-detail-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 36, 62, 0.55);
  transition: color 0.2s, border-color 0.2s;
}

.project-detail-link:hover {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
}


.project-doc-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.project-doc-sidebar {
  position: sticky;
  top: 80px;
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.project-doc-sidebar-link {
  display: block;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  padding: 6px 12px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.project-doc-sidebar-link.indent {
  padding-left: 24px;
  font-size: var(--text-xs);
}

.project-doc-sidebar-link:hover {
  color: var(--fg);
}

.project-doc-sidebar-link.active {
  color: var(--fg);
  border-left-color: var(--accent);
  font-weight: 500;
}

.project-doc-sidebar-link.external {
  color: var(--accent);
  font-size: var(--text-xs);
}

.project-doc-sidebar-link.external:hover {
  color: var(--accent-ocean);
}

.project-doc-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 12px;
}

.project-doc-content {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.project-doc-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 48px 0 16px;
  padding-top: 8px;
  color: var(--fg);
}

.project-doc-content h2:first-child {
  margin-top: 0;
}

.project-doc-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--fg);
}

.project-doc-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.project-doc-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.project-doc-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.project-doc-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ========================================
   ARTICLE
   ======================================== */

.article {
  max-width: 640px;
}

.project-article.work-detail {
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 48px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--fg);
}

.article-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin-bottom: 12px;
}

.article-description a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 36, 62, 0.55);
}

.article-description a:hover {
  border-bottom-color: var(--accent);
}

.article-date {
  font-size: 14px;
  color: var(--fg-muted);
}

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-alt);
  text-align: right;
}

.article-footer .article-date {
  font-size: 13px;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 36, 62, 0.55);
  transition: color 0.2s, border-color 0.2s;
}

.article-body a:hover {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.article-body img {
  margin: 32px 0;
  border-radius: 8px;
}

.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  margin: 0;
}

.article-body figcaption {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}

.article-body .photo-pair {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.article-body .photo-pair img {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.article-body .photo-pair figure {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.article-body .photo-pair figure img {
  margin: 0;
}

.article-body .photo-pair figcaption {
  text-align: center;
}

@media (max-width: 520px) {
  .article-body .photo-pair {
    flex-direction: column;
  }
}

.article-body .photo-shuffle {
  margin: 32px 0;
  cursor: pointer;
}

.article-body .photo-shuffle .photo-shuffle-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt);
}

.article-body .photo-shuffle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-body .photo-shuffle img.visible {
  opacity: 1;
}

.article-body .photo-shuffle figcaption {
  margin-top: 8px;
}

.article-body blockquote {
  margin: 36px 0;
  padding: 28px 32px 24px 36px;
  border-left: 4px solid var(--accent);
  color: var(--fg);
  font-style: normal;
  font-size: 1.2em;
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0 6px 6px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body blockquote p + p {
  margin-top: 12px;
}

.article-body blockquote cite {
  display: block;
  margin-top: 16px;
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--fg-muted);
}

.article-body blockquote cite::before {
  content: '— ';
}

.article-body blockquote cite a {
  color: var(--fg-muted);
  border-bottom-color: var(--fg-muted);
}

.article-body blockquote cite a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body pre {
  background: var(--bg-alt);
  padding: 24px 28px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-body pre code {
  padding: 0;
  background: none;
}

.article-body hr {
  margin: 48px 0 24px;
  border: none;
  border-top: 1px solid var(--bg-alt);
}

.article-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--fg-muted);
}

.article-body th,
.article-body td {
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--fg-muted);
}

.article-body th {
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-alt);
  font-size: 12px;
  white-space: nowrap;
}

/* ========================================
   SOLACES - Masonry List
   ======================================== */

.solaces-masonry {
  column-count: 3;
  column-gap: 40px;
}

.solaces-category {
  break-inside: avoid;
  margin-bottom: 32px;
}

.solaces-category-title {
  font-size: var(--text-xs);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.solaces-category-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.solaces-item {
  font-size: var(--text-base);
  color: var(--fg);
  line-height: 1.5;
}

.solaces-item a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}

.solaces-item a:hover {
  color: var(--accent-ocean);
  border-bottom-color: var(--accent-ocean);
}

.solaces-item-wrapper {
  display: inline;
  cursor: default;
}

.solaces-section-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.solaces-about {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.solace-preview {
  position: fixed;
  width: 240px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 6px solid white;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: scale(0.88) translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.solace-preview.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
  .header {
    padding: 16px;
  }

  .main {
    padding: 0 16px;
  }

  .hero {
    padding: 16px 0 24px;
  }

  .page-container {
    padding: 16px 16px 80px;
  }

  .filters {
    gap: 12px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-title {
    font-size: 24px;
  }

  .solaces-masonry {
    column-count: 1;
  }

  .project-doc-layout {
    flex-direction: column;
    gap: 0;
  }

  .project-doc-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .project-doc-sidebar-link {
    border-left: none;
    padding: 4px 10px;
  }

  .project-doc-sidebar-link.indent {
    padding-left: 10px;
  }

  .project-doc-sidebar-link.active {
    border-left: none;
    color: var(--fg);
    background: var(--accent-soft);
    border-radius: 4px;
  }

  .project-doc-sidebar-divider {
    display: none;
  }

  .project-doc-title {
    font-size: 26px;
  }

  .project-doc-hero {
    max-height: 240px;
    border-radius: 8px;
    margin-bottom: 24px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .solaces-masonry {
    column-count: 2;
  }
}
