/* Shared Spatial tokens and shell. Layout differences stay in page styles. */
@font-face {
  font-family: "Portfolio Spatial";
  src: url('/src/hero-preview/bricolage-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --background: #e9ebe4;
  --ink: #14161a;
  --text: #3f4943;
  --muted: #526056;
  --learn: #b93a0b;
  --play: #b93a0b;
  --line: #14161a3d;
  --surface: #d9e3d5;
  --orange: #b93a0b;
  font-family: "Portfolio Spatial", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
}
body { color: var(--ink); background: var(--background); line-height: 1.7; }
.page { width: min(calc(100% - 96px), 1200px); }
a { color: var(--learn); }
a:hover { color: #93320e; }
:is(a, button, input):focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.site-header { min-height: 94px; padding-block: 16px; gap: 28px; border-bottom: 1px solid var(--line); }
.site-header .wordmark { color: var(--ink); font-family: inherit; font-size: 23px; font-weight: 700; white-space: nowrap; }
.site-header .wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: 0 0 auto; line-height: 1.2; }
.site-header .brand-symbol { display: block; width: 40px; height: auto; flex: none; overflow: visible; }
.site-header .brand-name { display: block; }
.site-header .wordmark:hover { text-decoration: none; }
.site-header .wordmark:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.site-header nav a { padding-block: 10px; color: var(--ink); }
.site-header nav a:is(:hover, [aria-current]) { color: var(--orange); text-decoration: underline; }
.resume-unavailable { color: var(--muted); }
.site-footer { gap: 20px; padding-block: 26px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer > span { color: var(--muted); }
.section-heading h2, .info-section h2 {
  color: var(--ink); font-size: clamp(30px, 3.5vw, 44px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.03em; text-transform: none;
}
.section-heading { padding: 0 0 32px; }
.project-summary, .project-role, .detail-section p, .info-section p, .social-links { color: var(--text); font-size: 18px; line-height: 1.7; }
.role-label { color: var(--ink); font-weight: 600; }
.project-category { color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-status { color: #934021; }
.project-media { background: #dce4d7; border-radius: 0; }
.placeholder-label, .text-cover-title { color: var(--muted); }
.detail-section h3 { color: var(--ink); font-weight: 600; }
.detail-media { margin-top: 30px; }
.detail-media figcaption { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
.comparison-label { color: var(--text); font-size: 16px; }
.document-link { color: var(--orange); font-size: 15px; text-decoration: underline; }
.document-link:hover { color: #93320e; }
.image-enlarge { background: transparent; }
.detail-media video { background: #14161a; }
:is(#project-detail, #image-detail) { color: var(--ink); background: var(--background); border-radius: 0; }
:is(#project-detail, #image-detail)::backdrop { background: #14161ab3; }
.detail-toolbar, .image-detail-toolbar { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.detail-title { font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.detail-open, #detail-close, #image-detail-close { min-height: 44px; color: var(--orange); }
#detail-content > .project-media { border: 1px solid var(--line); }
.skip-link { color: var(--ink); background: var(--background); z-index: 20; }

/* Remaining homepage content: preserve every existing item, without placeholders. */
.home-content > #work { margin-top: 0; }
#in-progress { padding-block: 64px 72px; margin-top: 0; border-top: 1px solid var(--line); }
#in-progress .compact-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
#in-progress .compact-project:only-child { grid-column: 1 / -1; max-width: 900px; }
#in-progress h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.15; }
#in-progress .project-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; padding: 10px 20px; border: 1px solid var(--ink); color: var(--background); background: var(--ink); font-size: 15px; font-weight: 500; }
#in-progress .project-link:hover { color: var(--ink); background: #ff8556; text-decoration: none; }
.home-content #additional-projects { margin-top: 0; border-top: 1px solid var(--line); }
.info-grid { margin-top: 0; padding: 72px 0 80px; border-top: 1px solid var(--line); gap: 72px; }
.info-section h2 { margin-bottom: 24px; }
.info-section p { max-width: 650px; }
.info-section a { display: inline-block; padding-block: 8px; }
.not-found { padding-block: 80px 100px; min-height: 65vh; }
.not-found h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.not-found p { margin-top: 24px; max-width: 650px; color: var(--text); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }
.not-found-actions a { padding-block: 10px; min-height: 44px; }

@media (max-width: 1000px) {
  .page { width: calc(100% - 64px); }
  .site-header { align-items: flex-start; }
  .site-header nav { max-width: 66%; gap: 4px 18px; }
}
@media (max-width: 760px) {
  .page { width: calc(100% - 44px); }
  .site-header { min-height: 88px; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; }
  .site-header .wordmark { font-size: 22px; }
  .site-header .brand-symbol { width: 36px; }
  .site-header nav { width: 100%; max-width: none; justify-content: flex-start; font-size: 13px; gap: 0 20px; }
  .site-header nav a { padding-block: 8px; }
  .site-footer { flex-wrap: wrap; }
  .project-summary, .project-role, .detail-section p, .info-section p, .social-links { font-size: 17px; }
  #in-progress { padding-block: 44px 52px; }
  #in-progress .compact-projects { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 48px; }
  #project-detail { width: calc(100% - 32px); padding: 24px 22px 32px; }
  #image-detail { padding: 16px; }
  .image-detail-toolbar { font-size: 13px; flex-wrap: wrap; gap: 8px 16px; }
  .not-found { padding-block: 56px 72px; }
}
