@import url("/ui-tokens.css?v=2");
@media (prefers-reduced-motion: no-preference) {
  body > :is(header, main, footer), .works figure {
    animation: insen-fade-in var(--reveal-duration) ease-out both;
  }
}
:root { background: var(--paper); --text-small: var(--footer-size); --text-leading: 1.4; --heading-leading: 1.2; }
body {
  max-width: var(--site-width);
  margin: var(--page-top) auto 1rem;
  min-height: calc(100vh - 3rem);
  min-height: calc(100dvh - 3rem);
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  background: var(--paper);
  color: var(--ink);
  font: var(--body-size)/var(--body-leading) var(--body-font);
}
h1, h2 { font-family: var(--heading-font); font-weight: normal; line-height: var(--heading-leading); }
h1 { margin: 0; font-size: var(--title-size); line-height: var(--title-leading); }
h2 { margin: 0 0 .2em; font-size: var(--section-size); line-height: var(--section-leading); color: var(--accent); }
.tagline {
  margin: .1em 0 .3em;
  color: var(--muted);
  font: italic var(--tagline-size)/var(--tagline-leading) var(--heading-font);
}
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem var(--nav-gap); min-height: var(--nav-height); padding: 0; border-block: var(--rule-width) solid var(--rule); font-size: inherit; line-height: var(--nav-height); }
nav > :is(a, .language) { line-height: var(--body-leading); }
a { color: var(--accent); text-underline-offset: .15em; }
article, section { margin-top: .85rem; }
main > article > h2, main > section > h2 { border-bottom: 1px solid var(--rule); padding-bottom: .12rem; }

p { margin: 0 0 1em; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--project-gap); }
@media (max-width: 40rem) {
  .works { grid-template-columns: minmax(0, 1fr); }
}
.works figure { margin: 0; }
.works .placeholder {
  aspect-ratio: var(--ratio, 1);
  border: 1px solid var(--rule);
  background:
    linear-gradient(to top right, transparent calc(50% - .45px), var(--rule) 50%, transparent calc(50% + .45px)),
    linear-gradient(to bottom right, transparent calc(50% - .45px), var(--rule) 50%, transparent calc(50% + .45px));
}
.works img { display: block; width: 100%; height: auto; }
.works .project-image:has(img) { box-sizing: border-box; border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 96%, var(--rule)); }
.works .project-image > img.cms-cover { aspect-ratio: 3 / 2; object-fit: contain; }
.works .project-image img { opacity: 0; }
.works .project-image img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .works .project-image img { transition: opacity 420ms ease; }
}
.works figure[style*="--cover-ratio"] .project-image > img.cms-cover { aspect-ratio: var(--cover-ratio); object-fit: cover; }
.works figcaption { margin-top: .2rem; font-size: 1em; overflow-wrap: anywhere; }
.works figcaption strong { display: block; color: var(--project-accent); font-weight: 400; }
.works figcaption span { color: var(--muted); font-size: var(--meta-size); line-height: var(--meta-leading); }
.works figcaption p { margin: 0; }
.archive-filters { display: flex; flex-wrap: wrap; gap: .15rem .8rem; margin: .2rem 0 .55rem; color: var(--muted); }
.archive-filters button { border: 0; padding: 0; background-color: transparent; color: inherit; font: inherit; line-height: var(--text-leading); cursor: pointer; }
.archive-filters button[aria-pressed="true"] { color: var(--ink); }
footer { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--rule); font-size: var(--text-small); }
.language { position: relative; }
.language summary {
  display: flex;
  align-items: center;
  gap: .4em;
  list-style: none;
  cursor: pointer;
  color: var(--muted);
}
.language summary::-webkit-details-marker { display: none; }
.language summary::after {
  content: "";
  width: .38em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.12em) rotate(45deg);
}
.language[open] summary::after {
  transform: translateY(.12em) rotate(225deg);
}
.language > div {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  min-width: max-content;
  padding: .3rem .5rem;
}
.language a { display: block; text-decoration: none; }
.language a:link, .language a:visited { color: var(--muted); }
.language a { width: max-content; }

nav > a { color: var(--nav-ink); text-decoration: none; }
nav > a[aria-current="page"] { text-decoration: none; }

.contact { margin-top: .85rem; font: var(--field-size)/var(--field-leading) var(--body-font); }
.contact section { margin: 0; }
.contact section + section { margin-top: .65rem; }
.contact .contact-row { max-width: 19rem; }
.contact > section > h2 { font: 600 1em/var(--text-leading) var(--body-font); color: inherit; border: 0; padding: 0; margin: 0 0 .15rem; }
.contact p { margin: 0; overflow-wrap: anywhere; }
.contact a { color: inherit; text-decoration: none; }
.contact-copy { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.contact-row { position: relative; box-sizing: border-box; display: flex; align-items: baseline; column-gap: .3em; width: 100%; min-height: var(--field-leading); padding-inline-end: 3.3em; white-space: nowrap; }
.contact-row .contact-copy { flex: none; text-align: start; }
.copy-status { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); color: var(--muted); font: var(--meta-size)/var(--meta-leading) var(--body-font); pointer-events: none; }

main { margin-bottom: 1.5rem; }
.home-main { position: relative; }
.home-profile {
  position: absolute;
  top: .85rem;
  right: calc(100% + 25vw - 10rem);
  transform: translateX(50%);
  width: 215px;
  color: var(--ink);
  font: inherit;
}
.home-profile canvas { display: block; width: 100%; height: auto; }
.home-profile .portrait-color { position: absolute; top: 0; left: 0; pointer-events: none; }
.home-profile .portrait-geometry { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }
.home-profile p { margin: 1.2rem 0 0; line-height: var(--text-leading); text-align: center; }
:root[data-theme="dark"] .home-profile .portrait-ink { filter: invert(1); }
@media (max-width: 76rem) { .home-profile { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .home-profile .portrait-ink { transition: filter 520ms ease-in-out; }
}
.project-image { display: block; }

.essay-heading { margin: 1rem 0 .65rem; font: inherit; text-align: center; }
article math { margin: .75rem auto; }
.wavy { text-decoration: underline wavy; text-underline-offset: .16em; }
.footer-note { color: var(--muted); font: italic 1em/var(--heading-leading) var(--heading-font); }

@media (max-width: 22rem) { .contact-row { font-size: .75rem; } }

.home-garden-spacer { height: var(--top-spacer); }
.home-garden {
  display: block;
  width: 100%;
  height: 128px;
  border: 0;
}
@media (min-width: 68rem) { .home-garden { width: calc(100% + 192px); } }
.footer-with-garden {
  display: grid;
  grid-template-columns: fit-content(62%) minmax(0, 1fr);
  align-items: end;
  gap: clamp(.5rem, 2vw, 1.5rem);
}
.footer-with-garden > .home-garden { width: 100%; min-width: 0; }

@media (prefers-reduced-motion: no-preference) {
  .language summary::after { transition: transform 160ms ease; }
}

main:not(.contact) a:not(.project-image) {
  text-decoration: none;
}
#work .all-work-link {
  display: inline-block;
}

.project-image { position: relative; overflow: hidden; transform-origin: top center; }
.project-image > .cms-cover { display: block; width: 100%; height: auto; }
.cms-article-body img, .cms-article-body video { display: block; max-width: 100%; height: auto; }
html.cms-preview-page .cms-article-body[contenteditable="true"] { min-height: 9rem; cursor: text; outline: none; }
.entry-cover { display: block; max-width: 100%; height: auto; }
.entry-meta { color: var(--muted); font-size: var(--text-small); }

.project-image > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
  display: block;
  pointer-events: none;
}
.project-image > video { opacity: 0; }
.project-image > video.is-visible { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .project-image > video { transition: opacity 480ms ease-out; }
  .project-image > video.is-visible { transition-duration: 250ms; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .works figure > :is(.project-image, figcaption) { transition: transform 480ms ease-out; }
  html:not([data-pen-held]) .works figure > .project-image:is(:hover, .is-pen-preview),
  html:not([data-pen-held]) .works figure > .project-image:is(:hover, .is-pen-preview) + figcaption { transition-duration: 280ms; }
  html:not([data-pen-held]) .works figure > .project-image:is(:hover, .is-pen-preview) { transform: scale(1.015); z-index: 1; }
  html:not([data-pen-held]) .works figure > .project-image:is(:hover, .is-pen-preview) + figcaption { transform: translateY(var(--project-cover-growth, 3px)); }
}
.works > .project-wide { grid-column: 1 / -1; }

.theme-dark-label, :root[data-theme="dark"] .theme-light-label { display: none; }
:root[data-theme="dark"] .theme-dark-label { display: inline; }
.theme-toggle {
  box-sizing: border-box;
  inline-size: 2.9em;
  flex: 0 0 2.9em;
  margin-inline-start: auto;
  border: 0;
  padding: 0 .15em;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.home-garden { color-scheme: light; }

.work-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: var(--project-gap);
}
.work-stack > div { display: grid; row-gap: var(--project-gap); }

.all-work-row { text-align: right; }

/* Add this small block to the website article stylesheet for the CMYK panels. */
.cmyk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.cmyk-grid figure { margin: 0; min-width: 0; }
.cmyk-grid .plate { overflow: hidden; }
.cmyk-grid .plate img { display: block; width: 100%; max-width: 100%; height: auto; mix-blend-mode: screen; }
.cmyk-grid figcaption { color: var(--muted); font-size: 12.2px; line-height: 17px; padding-top: 4px; }
.cmyk-grid .c { background: #00AEEF; }
.cmyk-grid .m { background: #EC008C; }
.cmyk-grid .y { background: #FFF200; }
.cmyk-grid .k { background: #181818; }
@media (max-width: 480px) { .cmyk-grid { gap: 8px; } }

.axidraw-article figure { margin: 0 0 1em; }
.axidraw-article .cmyk-grid figure { margin: 0; }
.axidraw-article img { display: block; max-width: 100%; height: auto; }
.axidraw-article pre { overflow-x: auto; border-block: 1px solid var(--rule); padding: .7em 0; }
.axidraw-article .caption { color: var(--muted); }
