:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --panel: #fffcf7;
  --panel-alt: #f1ede4;
  --text: #1e1a16;
  --muted: #6a6258;
  --line: #d8d0c3;
  --accent: #8d4f2c;
  --shadow: 0 12px 36px rgba(25, 20, 14, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(circle at top, #fffdf9, var(--bg) 65%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.resume-page {
  background: #ffffff;
}

/* Resume — nav row (Back + print/PDF) */
.resume-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.resume-nav-row p {
  margin: 0;
}

.resume-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: none;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 4px;
}

.resume-download-btn:hover,
.resume-download-btn:focus-visible {
  color: var(--text);
  outline: none;
}

.resume-download-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent);
}

@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }

  /* Full bleed white: global `section` uses --panel (cream); nested sections are not #main > section */
  html.resume-doc,
  html.resume-doc body.resume-page {
    background: #fff !important;
    background-image: none !important;
  }

  body.resume-page .resume-nav-panel,
  body.resume-page .skip-link,
  body.resume-page .site-footer {
    display: none !important;
  }

  body.resume-page {
    font-size: 11pt;
    line-height: 1.45;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.resume-page main,
  body.resume-page .main-column,
  body.resume-page .side-column,
  body.resume-page .content-grid,
  body.resume-page article {
    background: #fff !important;
    background-image: none !important;
  }

  /* Strip “card” panels everywhere (including nested sections in main-column / side-column) */
  body.resume-page section,
  body.resume-page .panel,
  body.resume-page aside {
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0.85rem !important;
    outline: none !important;
  }

  body.resume-page article + article {
    border-top: none !important;
    padding-top: 0.65rem !important;
  }

  /* Allow articles to split across pages (avoid huge blank gaps). */
  body.resume-page article h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  body.resume-page .resume-title-block {
    margin-bottom: 1rem !important;
  }

  body.resume-page .resume-title-block h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
  }

  body.resume-page h2 {
    font-size: 1.05rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
  }

  body.resume-page h3 {
    font-size: 0.98rem;
  }

  /* Single column (mobile-style): main body first, Toolset + Education at bottom */
  body.resume-page .content-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem !important;
  }

  body.resume-page .side-column {
    position: static !important;
    top: auto !important;
  }

  body.resume-page ul {
    margin-top: 0.35rem;
    padding-left: 1.1rem;
  }

  body.resume-page li + li {
    margin-top: 0.2rem;
  }

  body.resume-page article + article {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }

  body.resume-page a {
    color: var(--text) !important;
    text-decoration: none !important;
  }
}

body.style-zen {
  --bg: #f5f3ee;
  --panel: #fffdf8;
  --panel-alt: #f3f0e8;
  --text: #191714;
  --muted: #70685c;
  --line: #d9d2c7;
  --accent: #785d3f;
  --shadow: 0 8px 24px rgba(25, 20, 14, 0.06);
}

body.style-wabi {
  --bg: #ede6db;
  --panel: #f8f4ed;
  --panel-alt: #f1e8da;
  --text: #201a15;
  --muted: #6b5d50;
  --line: #d2c2ae;
  --accent: #926945;
  --shadow: 0 14px 36px rgba(73, 49, 28, 0.09);
}

body.style-editorial {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-alt: #f1f1ef;
  --text: #111111;
  --muted: #5e5e5b;
  --line: #dbdbd8;
  --accent: #1f4f59;
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
}

body.style-ma {
  --bg: #f4f5f6;
  --panel: #ffffff;
  --panel-alt: #f3f5f7;
  --text: #1a2028;
  --muted: #5f6977;
  --line: #d8dde3;
  --accent: #2d5f8f;
  --shadow: 0 10px 32px rgba(32, 41, 52, 0.08);
}

body.single-page {
  background: #ffffff;
}

body.layout-top {
  /* default */
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: #111827;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.site-brand {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

body.single-page .site-header {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  position: static;
}

body.single-page .site-header-inner {
  max-width: 1200px;
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.style-menu {
  position: absolute;
  right: 0.875rem;
  top: 0.625rem;
}

.style-menu-toggle {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, white 12%);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.style-menu-panel {
  position: absolute;
  right: 0;
  margin-top: 0.45rem;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: none;
}

.menu-group-title {
  margin: 0.35rem 0.4rem 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.menu-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.35rem 0.2rem;
}

.style-menu.open .style-menu-panel {
  display: block;
}

.style-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}

.style-option:hover,
.style-option:focus-visible {
  background: var(--panel-alt);
}

.style-option.is-active {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel) 88%);
  font-weight: 600;
}

.site-brand:hover,
.site-brand:focus-visible {
  text-decoration: underline;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.site-nav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.25;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0.875rem 2rem;
}

.site-footer {
  margin-top: auto;
  padding: 1rem 0.875rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-alt) 80%, white 20%);
}

.site-footer a {
  color: var(--text);
}

.panel,
section {
  background: var(--panel);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

body.single-page section {
  box-shadow: none;
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Tighter stack: intro → Projects */
body.single-page #description {
  padding-bottom: 1.1rem;
  margin-bottom: 0.55rem;
}

body.single-page #projects {
  padding-top: 0.9rem;
}

/* Intro bullets — panel instead of horizontal rules */
body.single-page .description-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0.95rem 1.05rem 1rem;
  margin-top: 1.05rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

body.single-page .description-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

body.single-page .description-panel li + li {
  margin-top: 0.5rem;
}

/* Projects heading: skip redundant rule line (carousel card already frames content) */
body.single-page #projects > h2 {
  border-bottom: none;
  padding-bottom: 0.15rem;
  margin-bottom: 0.2rem;
}

body.single-page #projects .projects-section-tagline {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 42rem;
}

body.single-page .side-column section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0;
}

/* Compact typography + rhythm for right-hand panels */
body.single-page .side-column {
  display: grid;
  font-size: 0.875rem;
  line-height: 1.5;
  gap: 0.85rem;
}

body.single-page .side-column h2 {
  font-size: 1.0625rem;
  padding-bottom: 0.3rem;
  margin-bottom: 0.45rem;
}

body.single-page .side-column p {
  margin: 0.15rem 0;
}

body.single-page .side-column .resume-timeline {
  margin-top: 0.4rem;
}

body.single-page .side-column .resume-timeline-item {
  padding-bottom: 0.85rem;
}

body.single-page .side-column .resume-timeline-item:last-child {
  padding-bottom: 0.3rem;
}

body.single-page .side-column .resume-timeline-period {
  font-size: 0.75rem;
}

body.single-page .side-column .resume-timeline-role {
  font-size: 0.8125rem;
}

body.single-page .side-column .contact-icon {
  width: 1rem;
  font-size: 0.9em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0.25rem 0;
}

ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

article + article {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.content-grid {
  display: grid;
  gap: 1rem;
}

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

.project-item {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.project-item:first-child {
  padding-top: 0;
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-item h3 {
  margin-bottom: 0.25rem;
}

.project-item h3 a {
  color: var(--text);
  text-decoration: none;
}

.project-item h3 a:hover,
.project-item h3 a:focus-visible {
  text-decoration: underline;
}

.project-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.project-summary {
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.8;
}

.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;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* Resume highlights — vertical dotted rail + period markers */
.resume-timeline {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.resume-timeline .resume-timeline-item + .resume-timeline-item {
  margin-top: 0;
}

.resume-timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0 0.85rem;
  position: relative;
  padding-bottom: 1.15rem;
}

.resume-timeline-item:last-child {
  padding-bottom: 0.35rem;
}

.resume-timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.05rem;
  bottom: 0.15rem;
  width: 0;
  border-left: 2px dotted var(--line);
  z-index: 0;
  pointer-events: none;
}

/* Dotted rail continues below the final period */
.resume-timeline-item:last-child::before {
  bottom: auto;
  height: 1.5rem;
}

.resume-timeline-marker {
  position: relative;
  z-index: 1;
  box-sizing: content-box;
  width: 8px;
  height: 8px;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 85%, var(--accent) 15%);
  justify-self: center;
}

.resume-timeline-body {
  min-width: 0;
}

.resume-timeline-period {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.resume-timeline-role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.45;
}

.single-page-layout {
  display: grid;
  gap: 1.2rem;
}

.project-thumb {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 0 0.65rem;
}

/* Projects carousel — flex track + scroll-snap */
.pc {
  margin: 0.45rem 0 0;
  /* Fixed hero media height per breakpoint so every slide matches (not width-derived). */
  --hero-media-h: 12.5rem;
  /* Slight scale-down so cover crops less (1 = default tight cover). */
  --hero-img-cover-scale: 0.9;
  /* Set by JS to match .project-hero-media height (mobile arrow band). */
  --pc-nav-band: var(--hero-media-h);
}

@media (min-width: 480px) {
  .pc {
    --hero-media-h: 13.25rem;
  }
}

@media (min-width: 640px) {
  .pc {
    --hero-media-h: 14rem;
  }
}

@media (min-width: 768px) {
  .pc {
    --hero-media-h: 16rem;
  }
}

@media (min-width: 1024px) {
  .pc {
    --hero-media-h: 17.5rem;
  }
}

.pc-viewport {
  position: relative;
  width: 100%;
}

.pc-track {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.pc-track::-webkit-scrollbar {
  display: none;
}

.pc-slide {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(var(--hero-media-h, 12.5rem), 1fr) auto;
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.single-page .project-hero {
  box-shadow: none;
}

.project-hero-media {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel-alt);
  position: relative;
  width: 100%;
  min-height: var(--hero-media-h, 12.5rem);
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
}

.project-hero-media img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%)
    scale(var(--hero-img-cover-scale, 1));
  object-fit: cover;
  object-position: center;
}

.project-hero-body {
  padding: 1.1rem 1.15rem 1.2rem;
  min-width: 0;
}

.project-hero-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.project-hero-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.project-hero-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.project-hero-body h3 a:hover,
.project-hero-body h3 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.project-hero-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
}

.project-hero-external {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

.project-hero-external + .project-hero-external {
  margin-top: 0.35rem;
}

.project-hero-external a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.project-hero-external a:hover,
.project-hero-external a:focus-visible {
  text-decoration: underline;
}

.project-hero-tools {
  margin-top: 1rem;
}

.project-hero-tools-label {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.project-tool-list li {
  margin: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
  background: color-mix(in srgb, var(--panel-alt) 88%, var(--accent) 12%);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.project-tool-list li + li {
  margin-top: 0;
}

.pc-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pc-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0.45rem 0.5rem;
  pointer-events: none;
  z-index: 2;
}

.pc-arrow {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  pointer-events: auto;
}

.pc-arrow:hover,
.pc-arrow:focus-visible {
  background: color-mix(in srgb, var(--panel-alt) 82%, var(--accent) 18%);
  border-color: color-mix(in srgb, var(--line) 60%, var(--accent) 40%);
}

.pc-arrow[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--line) 65%, var(--accent) 35%);
  background: var(--panel-alt);
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
  padding: 0;
}

.pc-dot:hover,
.pc-dot:focus-visible {
  background: color-mix(in srgb, var(--accent) 30%, var(--panel-alt) 70%);
}

.pc-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

@media (max-width: 767px) {
  .pc-nav {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pc-nav-band, var(--hero-media-h, 12.5rem));
    align-items: flex-end;
    padding: 0 0.25rem 0.4rem;
  }
}

/* Tablet / desktop: full card overlay; prev at left of image column, next at right edge */
@media (min-width: 768px) {
  .pc-nav {
    inset: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(220px, 40%) 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .pc-nav [data-carousel-prev] {
    justify-self: start;
    margin-left: 0.45rem;
  }

  .pc-nav [data-carousel-next] {
    justify-self: end;
    margin-right: 0.45rem;
  }
}

@media (max-width: 640px) {
  .pc-arrow {
    min-width: 1.75rem;
    height: 1.75rem;
  }
}

/* Single column (mobile / tablet): one vertical rhythm for main + stacked sidebar */
@media (max-width: 1023px) {
  body.single-page .single-page-layout {
    gap: 1rem;
  }

  body.single-page section {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
  }

  body.single-page #description {
    padding-top: 1.35rem;
    padding-bottom: 0.95rem;
    margin-bottom: 0.45rem;
  }

  body.single-page #projects {
    padding-top: 0.75rem;
    padding-bottom: 1.1rem;
  }

  body.single-page .description-panel {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem 0.9rem;
  }

  body.single-page .side-column section {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  body.single-page .side-column {
    gap: 0.85rem;
  }
}

@media (min-width: 768px) {
  .project-hero {
    grid-template-columns: minmax(220px, 40%) 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .project-hero-media {
    border-bottom: none;
    border-right: 1px solid var(--line);
    min-height: var(--hero-media-h, 12.5rem);
    height: 100%;
    align-self: stretch;
  }

  .project-hero-body {
    padding: 1.25rem 1.35rem 1.35rem;
  }
}


@media (min-width: 640px) {
  main {
    padding: 1.5rem 1rem 2.5rem;
  }
}

@media (min-width: 768px) {
  main {
    padding: 2rem 1.25rem 3rem;
  }

  .resume-title-block p {
    display: inline-block;
    margin-right: 1rem;
  }

  .style-menu {
    top: 0.75rem;
  }
}

@media (min-width: 1024px) {
  body.single-page main {
    max-width: 1200px;
  }

  body.single-page .single-page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2rem;
  }

  body.single-page .side-column {
    position: sticky;
    top: 7rem;
  }

  .content-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
    gap: 1.25rem;
  }

  .side-column {
    position: sticky;
    top: 4.25rem;
  }

  body.layout-left .site-header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    border-right: 1px solid var(--line);
    border-bottom: none;
    background: var(--panel);
  }

  body.layout-left .site-header-inner {
    max-width: none;
    height: 100%;
    padding: 1.25rem 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.85rem;
  }

  body.layout-left .site-brand {
    font-size: 1.2rem;
  }

  body.layout-left .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  body.layout-left main,
  body.layout-left .site-footer {
    margin-left: 260px;
    max-width: calc(1100px + 260px);
  }

  body.layout-left .site-footer {
    text-align: left;
  }

  body.layout-left .side-column {
    top: 1rem;
  }

  body.layout-left .style-menu {
    position: static;
    width: 100%;
  }

  body.layout-left .style-menu-toggle {
    width: 100%;
    text-align: left;
  }

  body.layout-left .style-menu-panel {
    width: 100%;
    position: static;
    margin-top: 0.35rem;
  }

  body.layout-journal .site-header {
    position: static;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
  }

  body.layout-journal .site-header-inner {
    max-width: 820px;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.25rem;
    padding-bottom: 0.2rem;
  }

  body.layout-journal .site-nav ul {
    justify-content: flex-start;
    gap: 0.4rem 1.15rem;
  }

  body.layout-journal .style-menu {
    right: 1.25rem;
  }

  body.layout-journal main {
    max-width: 820px;
    padding-top: 0.75rem;
  }

  body.layout-journal .panel,
  body.layout-journal section {
    border-left: 3px solid var(--line);
    border-radius: 4px;
    box-shadow: none;
    background: color-mix(in srgb, var(--panel) 95%, white 5%);
  }

  body.layout-journal .site-footer {
    border-top: none;
    background: transparent;
  }

  body.layout-showcase .site-header-inner {
    max-width: 1280px;
  }

  body.layout-showcase main {
    max-width: 1280px;
  }

  body.layout-showcase .site-nav ul {
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel-alt) 75%, white 25%);
  }

  body.layout-showcase .panel,
  body.layout-showcase section {
    border-radius: 20px;
    padding: 1.5rem;
  }

  body.layout-showcase .content-grid {
    gap: 1.5rem;
  }
}
