:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8eeee;
  background: #192b33;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  --muted: #acbec3;
  --line: #3b4e55;
  --accent: #b7d6cd;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.page { width: min(1120px, 100%); margin-inline: auto; padding: 0 36px; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 12px 16px; background: #e8eeee; color: #192b33; z-index: 2; }
.skip-link:focus { top: 12px; }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 25px; line-height: 1; font-weight: 700; letter-spacing: -1px; }
.training-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: var(--muted); }
.training-link:hover { color: #fff; }
.page-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 32px 0 30px; }
h1 { font-size: 18px; font-weight: 500; line-height: 1.4; margin: 0; letter-spacing: -.2px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-count { color: var(--muted); font-size: 12px; white-space: nowrap; }

.project { border-top: 1px solid var(--line); padding: 27px 0 40px; scroll-margin-top: 24px; }
.project-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.project-number { font: 12px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--accent); }
.project-heading h2 { margin: 0; font-size: clamp(24px, 2.5vw, 29px); line-height: 1.2; font-weight: 500; letter-spacing: -.6px; }
.project-location { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
.project-kind { margin-left: auto; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 34px; }
.project-figure { margin: 0; min-width: 0; }
.model-preview { display: block; position: relative; overflow: hidden; aspect-ratio: 1.85; background: #c6d9db; border-radius: 2px; }
.model-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The original plan illustrations include presentation titles. Frame only the
   model here; the project name and source notes are live, readable page text. */
.model-preview--holabird img, .model-preview--madrid img { position: absolute; height: auto; }
.model-preview--holabird img { top: -17%; }
.model-preview--madrid img { top: -18%; }
.model-preview--house img { object-position: 50% 77%; }
.model-preview--campus img { object-position: 50% 74%; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; margin-top: 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-info { min-width: 0; }
.project-description { color: #c8d4d7; font-size: 14px; line-height: 1.75; margin: -4px 0 20px; }
.project-facts { margin: 0 0 22px; font-size: 12px; line-height: 1.6; }
.project-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; text-align: right; }
.open-build { display: inline-flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #8da9a6; border-radius: 2px; padding: 10px 14px; font-size: 13px; color: #e1eee9; transition: background .15s, border-color .15s; }
.open-build:hover { background: #2c4149; border-color: var(--accent); }
.model-status { color: var(--muted); margin: 11px 0 0; font-size: 11px; line-height: 1.6; }
.model-notes { color: var(--muted); margin-top: 13px; font-size: 12px; line-height: 1.75; }
.model-notes summary { cursor: pointer; width: fit-content; padding: 11px 0; min-height: 44px; }
.model-notes summary::marker { color: #8da9a6; font-size: 10px; }
.model-notes p { margin: 8px 0; }
.model-notes a { display: inline-block; padding: 6px 0; color: #d2e3de; text-decoration: underline; text-decoration-color: #758f8d; text-underline-offset: 4px; }
.model-notes a:hover { color: #fff; }

.source-note { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; border-top: 1px solid var(--line); padding: 31px 0 36px; }
.source-note h2 { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.6; }
.source-note p { margin: 0; max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.85; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding: 17px 0 27px; color: var(--muted); font-size: 12px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer a:hover { color: #fff; }

@media (max-width: 760px) {
  .page { padding-inline: 22px; }
  .site-header { min-height: 68px; }
  .wordmark { font-size: 23px; }
  .page-heading { padding: 24px 0 23px; }
  .page-heading p { max-width: 32ch; font-size: 13px; }
  .project-count { display: none; }
  .project { padding: 22px 0 30px; }
  .project-heading { gap: 12px; margin-bottom: 17px; }
  .project-heading h2 { font-size: 25px; }
  .project-kind { font-size: 11px; max-width: 8em; }
  .project-layout { grid-template-columns: 1fr; gap: 23px; }
  .project-description { margin-top: 0; margin-bottom: 15px; }
  .project-facts { margin-bottom: 18px; }
  .model-notes { margin-top: 9px; }
  .source-note { grid-template-columns: 1fr; gap: 12px; padding-block: 26px; }
}

@media (max-width: 420px) {
  .page { padding-inline: 18px; }
  .training-link { gap: 7px; font-size: 12px; }
  .project-heading { flex-wrap: wrap; column-gap: 11px; row-gap: 7px; }
  .project-heading > div { flex: 1 1 calc(100% - 30px); }
  .project-kind { margin-left: 28px; max-width: none; }
  .project-heading h2 { font-size: 24px; }
  figcaption { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .open-build { transition: none; }
}
