@font-face {
  font-family: "Geist";
  src: url("assets/fonts/GeistVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("assets/fonts/Switzer-Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #FFFFFF;
  --text: #191919;
  --secondary: #666666;
  --line: #E7E7E7;
  --icon-border: #D8D8D8;
  --award-color: #555555;
  --column: 13.5rem;
  --column-gap: 2rem;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #101010;
    --text: #EEEEEE;
    --secondary: #A0A0A0;
    --line: #303030;
    --icon-border: #484848;
    --award-color: #A0A0A0;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #101010;
  --text: #EEEEEE;
  --secondary: #A0A0A0;
  --line: #303030;
  --icon-border: #484848;
  --award-color: #A0A0A0;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 1.1875rem; line-height: 1.65; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .25em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
p, h1, h2, h3 { margin: 0; }
section[id] { scroll-margin-top: 2rem; }
.page { width: min(57.5rem, calc(100% - 6rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; top: 1rem; left: 1rem; padding: .5rem .75rem; background: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: 2.5rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.wordmark { display: inline-flex; align-items: baseline; min-height: 44px; font-family: "Switzer", "Geist", sans-serif; font-size: 1.875rem; font-weight: 600; line-height: 1.4; letter-spacing: -.035em; text-decoration: none; }
.brand-period { display: inline-block; flex: none; width: .105em; height: .105em; border-radius: 50%; background: currentColor; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; color: var(--secondary); background: transparent; cursor: pointer; transition: color 150ms ease; }
.theme-toggle:hover { color: var(--text); }
.theme-icon { display: none; flex: none; }
.theme-toggle[data-theme-mode="system"] .theme-icon-system,
.theme-toggle[data-theme-mode="light"] .theme-icon-light,
.theme-toggle[data-theme-mode="dark"] .theme-icon-dark { display: block; }

/* Introduction */
.hero { padding-block: clamp(2rem, 3vw, 2.5rem) 4rem; }
.eyebrow { margin-bottom: 1.125rem; color: var(--secondary); font-size: .875rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow span { margin-inline: .15em; }
h1 { font-size: clamp(2.5rem, 6.25vw + .5rem, 5.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
.statement { max-width: 41rem; margin-top: 1.5rem; font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 400; line-height: 1.4; letter-spacing: -.025em; text-wrap: pretty; }
.introduction { max-width: 43rem; margin-top: .875rem; color: var(--secondary); font-size: 1.1875rem; line-height: 1.65; text-wrap: pretty; }

/* Work: an icon beside the project heading, description, and metadata. */
.section-title { font-size: 1.125rem; font-weight: 500; line-height: 1.6; letter-spacing: -.015em; }
.work > .section-title { margin-bottom: 1.25rem; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list > li { border-top: 1px solid var(--line); }
.project-list > li:last-child { border-bottom: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 1rem; align-items: start; column-gap: 1.5rem; padding-block: 1.75rem; text-decoration: none; }
.project-name { font-size: 1.5rem; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.project-featured .project-name { font-size: 1.625rem; font-weight: 550; }
.project-icon { width: 3.5rem; height: 3.5rem; border: 1px solid var(--icon-border); border-radius: .8125rem; background: #FFFFFF; }
.project-icon-quicklayout, .project-icon-scanbot { border: 0; background: transparent; }
.project-copy > h3 + p { max-width: 42rem; margin-top: .5rem; }
.project-copy .metadata { margin-top: .625rem; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.development-status { white-space: nowrap; }
.direction { color: var(--secondary); font-size: 1.125rem; line-height: 1.5; }
a.project .project-name, a.project .direction { transition: color 150ms ease; }
a.project:hover .project-name { color: var(--secondary); }
a.project:hover .direction { color: var(--text); }
a.project:focus-visible { outline-offset: 7px; }
.project.project-with-recognition { padding-bottom: .5rem; }
.project-recognition { max-width: 42rem; margin: 0 0 1.75rem 5rem; font-size: 1rem; }
.recognition-awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; max-width: 17.5rem; margin: 0; padding: 0; list-style: none; }
.award-badge { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 8 / 5; font-size: .8125rem; line-height: 1.2; }
.award-laurels { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.awards-link { display: block; max-width: 17.5rem; color: var(--award-color); text-decoration: none; transition: color 150ms ease; }
.awards-link:hover { color: var(--secondary); }
.award-badge span { font-weight: 600; }
.award-badge strong { font-size: 1.5em; font-weight: 700; letter-spacing: -.025em; }
.press-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .375rem; margin-top: .75rem; font-size: .9375rem; }
.press-links a { display: inline-block; padding-block: .375rem; text-decoration-color: var(--line); transition: text-decoration-color 150ms ease; }
.press-links a:hover { text-decoration-color: currentColor; }

/* Biography */
.text-section { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
.about { margin-top: 4rem; }
.prose { max-width: 43rem; }
.prose p + p { margin-top: 1.25rem; }

/* Footer */
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: var(--column-gap); align-items: baseline; margin-top: 4rem; padding-block: 1.75rem 2.5rem; border-top: 1px solid var(--line); color: var(--secondary); font-size: .9375rem; }
.contact-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .25rem; font-size: .9375rem; color: var(--secondary); }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 150ms ease; }
.contact-links a:hover { color: var(--text); }
.footer-year { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  :root { --column: 10rem; --column-gap: 1.5rem; }
  .page { width: calc(100% - 3rem); }
  .hero { padding-bottom: 3.5rem; }
}

@media (max-width: 560px) {
  :root { --column-gap: 1rem; }
  .page { width: calc(100% - 2.75rem); }
  .site-header { padding-top: 1.25rem; }
  .header-actions { gap: .25rem; }
  .contact-links { column-gap: .75rem; font-size: .875rem; }
  .wordmark { font-size: 1.75rem; }
  .hero { padding-top: 2rem; padding-bottom: 3.25rem; }
  h1 { line-height: 1.12; letter-spacing: -.02em; }
  .eyebrow { letter-spacing: .055em; margin-bottom: 1rem; }
  .statement { margin-top: 1.125rem; }
  .introduction { margin-top: .875rem; font-size: 1.125rem; }
  .work > .section-title { margin-bottom: 1rem; }
  .project { grid-template-columns: 3rem minmax(0, 1fr) 1rem; column-gap: .75rem; padding-block: 1.5rem; }
  .project-icon { width: 3rem; height: 3rem; border-radius: .6875rem; }
  .project-name, .project-featured .project-name { font-size: 1.375rem; }
  .project-featured .project-name { font-weight: 600; }
  .project-copy { font-size: 1.125rem; }
  .project-recognition { margin-left: 0; }
  .about { margin-top: 3.5rem; }
  .prose { font-size: 1.125rem; }
  .site-footer { grid-template-columns: 1fr auto; gap: .5rem 1rem; margin-top: 3.5rem; padding-block: 1.5rem 2rem; }
  .footer-locations { grid-column: 1; }
  .footer-year { grid-column: 2; grid-row: 1; }
}

/* Shared article typography; authoring templates stay outside the public folder. */
.article { padding-top: 4rem; }
.article-header { max-width: 42rem; margin-bottom: 2.5rem; }
.article-title { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; letter-spacing: -.045em; }
.article-body { max-width: 42rem; overflow-wrap: break-word; }
.article-body h2 { margin-block: 2.5rem 1rem; font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; }
.article-body h3 { margin-block: 2rem .75rem; font-size: 1.125rem; font-weight: 500; }
.article-body pre { overflow-x: auto; padding-block: 1rem; font-size: .875rem; }
.article-body img { max-width: 100%; height: auto; }
.article-body blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 1px solid var(--line); color: var(--secondary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
