@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro-300.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro-600.woff") format("woff");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --white: #fff;
  --paper: #e7e8e9;
  --ink: #48494b;
  --text: #414245;
  --muted: #5a5b5d;
  --blue: #799dcb;
  --blue-dark: #406a9d;
  --nav-muted: #828486;
  --link: #315d8c;
  --line: #c7c9cb;
  --width: 72rem;
  --reading-width: 52rem;
  --gutter: max(1.125rem, 4%);
  font-family: proxima-nova, "Source Sans Pro", system-ui, sans-serif;
  color: var(--text);
  background: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; }
h1 { color: var(--muted); font-size: 1.98rem; font-weight: 400; line-height: 1.25; }
h2 { font-size: 1.375rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
time { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--width); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -10rem; background: white; padding: .75rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.masthead { background: var(--white); border-top: .625rem solid var(--ink); }
.masthead--project { container-type: inline-size; }
.masthead--project .brand {
  margin-inline-start: max(0px, (min(100cqi, var(--width)) - var(--reading-width)) / 2);
}
.masthead-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 2rem; padding-block: 1rem; }
@media (width > 43rem) {
  .masthead-row { align-items: last baseline; padding-block-end: 0; }
}
.brand { display: inline-flex; min-height: 44px; flex-direction: column; align-items: flex-start; text-decoration: none; }
/* The visible logo starts 10.1 units into its 223.9-unit SVG viewBox. */
.brand img { display: block; width: 14.5rem; transform: translateX(-4.51%); }
.brand .tagline {
  margin: .1rem 0 0;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: .25rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.navigation > a { min-height: 44px; display: inline-flex; align-items: center; padding: .35em 1em; border-top: 1px solid #ddd; color: var(--nav-muted); text-decoration: none; }
@media screen and (min-width: 40em) {
  .navigation > a { border-top: 3px solid var(--white); }
}
.navigation > a:hover, .navigation [aria-current] { border-color: var(--blue); color: var(--blue-dark); }
.paper { background: var(--paper); }
.contact-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.contact-page > main { flex: 1 0 auto; }
.intro { padding-block: 1.85rem 1.6rem; }
.intro h1 { max-width: 36ch; text-wrap: balance; }
.intro p { margin-top: .65rem; max-width: 60ch; }
.section-heading { border-top: 1px solid var(--line); padding-top: .6rem; margin-bottom: .85rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem 1.15rem; }
.project-link { display: grid; gap: .5rem; text-decoration: none; height: 100%; align-content: start; }
.project-link:hover h3 { color: var(--link); text-decoration: underline; }
.project-image { display: grid; place-items: center; aspect-ratio: 8 / 5; background: var(--white); border: 1px solid var(--line); }
.project-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.project-label { color: var(--muted); font-size: .9375rem; }
.archive-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .65rem; font-weight: 600; }
.home-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; margin-top: 1.2rem; padding-block: 1.2rem 2.4rem; border-top: 1px solid var(--line); }
.home-links section p { margin-top: .6rem; }
.link-list { list-style: none; padding: 0; margin: .35rem 0 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { background: #242221; color: #aaa5a0; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding-block: 1.3rem; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: #d5d1c8;
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-links a:focus-visible { outline-color: var(--blue); }
.footer-links img { display: block; flex: none; width: 1.05rem; height: auto; }
.footer-social-icon { filter: invert(.78); }

.page-content { padding-block: 1.75rem 3rem; }
.page-content > h1, .article-header h1 { margin-bottom: .5rem; }
.page-content > p { max-width: 67ch; margin-bottom: 1rem; }
.page-content > .portfolio-grid { margin-top: 1.4rem; }
.reading { max-width: var(--reading-width); }
.article-header { margin-block: .6rem 1.3rem; }
.article-body { min-width: 0; overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 1rem; }
.article-body :is(h2, h3, h4) { margin-top: 1.5rem; }
.article-body :is(ol, ul) { padding-inline-start: 1.4rem; }
.article-body li + li { margin-top: .35rem; }
.article-body figure { margin-inline: 0; }
.article-body img { display: block; }
.article-body figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.article-body .right-side { float: right; max-width: min(36%, 16rem); margin: .2rem 0 .65rem 1rem; }
.article-body::after { content: ""; display: block; clear: both; }
.article-body hr { border: 0; border-top: 1px solid var(--line); }
.article-body pre { white-space: pre-wrap; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body :is(th, td) { padding: .4rem; border: 1px solid var(--line); text-align: start; }
.article-meta, .back-link { color: var(--muted); font-size: .9375rem; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; }
.press-feature { margin-block: 1.5rem; }
.press-feature .article-meta { margin-top: .3rem; }
.press-feature-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 35%);
  gap: .85rem 1.5rem;
  align-items: start;
  margin-top: .85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.press-feature-content p + p { margin-top: .7rem; }
.press-feature-content img { display: block; width: 100%; }
.press-feature-links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .35rem; }
.press-feature-links a { display: inline-flex; align-items: center; min-height: 44px; }
.post-list { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.post-list li { padding-block: .85rem; border-top: 1px solid var(--line); }
.post-list li > * + * { margin-top: .28rem; }
.post-list h2 { font-size: 1.25rem; }
.post-list a { display: inline-block; padding-block: .25rem; }
.press-note { margin-top: 1.25rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.press-note p { margin-top: .45rem; }
.portrait { width: min(14rem, 100%); float: right; margin: .2rem 0 .6rem 1.1rem; }
:is(.newsletter-form, .contact-form) { max-width: 30rem; display: grid; gap: .9rem; margin-top: 1.4rem; }
:is(.newsletter-form, .contact-form) > label { display: grid; gap: .25rem; }
:is(.newsletter-form, .contact-form) :is(input:not([type="checkbox"]), textarea) { min-height: 44px; background: white; border: 1px solid var(--muted); border-radius: 0; font: inherit; padding: .5rem; }
.contact-form textarea { resize: vertical; }
.contact-status { display: none; }
.contact-status:target { display: block; font-weight: 600; }
.newsletter-form fieldset { margin: 0; border: 1px solid var(--line); }
.newsletter-form fieldset label { display: flex; gap: .5rem; align-items: center; min-height: 44px; }
:is(.newsletter-form, .contact-form) button { justify-self: start; color: #fff; background: var(--link); border: 0; font: inherit; min-height: 44px; padding: .5rem 1.2rem; cursor: pointer; }
.newsletter-bot { position: absolute; left: -5000px; }

@media (max-width: 43rem) {
  .masthead-row { display: grid; gap: .15rem; padding-block: .65rem .35rem; }
  .brand { justify-self: start; }
  .brand img { width: 12.75rem; }
  .intro { padding-block: 1.3rem 1.25rem; }
  .press-feature-content { grid-template-columns: 1fr; }
  .portfolio-grid, .home-links { grid-template-columns: 1fr; }
  .portfolio-grid { gap: 1.25rem; }
  .home-links { gap: 0; padding-top: 0; }
  .home-links section { padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .portrait, .article-body .right-side { float: none; margin-inline: 0; max-width: 100%; }
}

