:root {
  font-family: 'PT Sans', Arial, sans-serif;
  color: #111;
  background: #fafafa;
  font-synthesis: none;
  --page: 1080px;
  --muted: #888;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a:hover,
button:hover {
  color: #888;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #777;
  outline-offset: 6px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
p,
figure {
  margin: 0;
}
h1,
h2,
.intro {
  font-family: 'Garamond Premier Pro', 'Baskerville', 'Times New Roman', serif;
  font-weight: 400;
}
h1 {
  font-size: 44px;
  line-height: 1.05;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 5%;
  min-height: 132px;
  font-size: 16px;
}
.identity {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}
.brand {
  font-size: 18px;
}
.language {
  font-size: 12px;
  color: #aaa;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav a[aria-current='page'] {
  color: #aaa;
}
.search-button {
  margin-left: 24px;
  width: 18px;
  height: 20px;
  color: #999;
}
.search-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-icon:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  right: -4px;
  bottom: -2px;
}
.mobile-toggle {
  display: none;
}
.header-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 68%;
  min-width: 0;
}
.subnav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-right: 62px;
  font-size: 12px;
  max-width: 100%;
}
.subnav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  max-width: 100%;
}
.subnav a {
  white-space: nowrap;
  color: #111;
}
.subnav a:hover,
.subnav a[aria-current='page'] {
  color: #aaa;
}
.content {
  max-width: var(--page);
  width: 75%;
  margin: 65px auto 90px;
}
.intro {
  font-size: 36px;
  line-height: 1.06;
  max-width: 960px;
  margin-bottom: 80px;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
}
.project-card img {
  width: 100%;
  height: auto;
}
.project-card figcaption {
  margin-top: 16px;
  text-align: right;
}
.draft {
  font-size: 12px;
  color: #999;
}
.project-heading {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 64px;
}
.project-heading h1 {
  font-size: 44px;
}
.date {
  font-size: 13px;
  color: #888;
  margin-top: 18px;
}
.description {
  font-size: 16px;
  line-height: 1.35;
}
.description p + p {
  margin-top: 24px;
}
.sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 7.5%;
}
.sequence .full {
  grid-column: 1/-1;
}
.sequence .photo-link {
  display: block;
}
.photo-link:hover img,
.project-card a:hover img {
  opacity: 0.86;
}
.sequence img {
  width: 100%;
}
.sequence figure:nth-child(3) {
  align-self: center;
}
.sequence figcaption {
  font-size: 12px;
  text-align: right;
  margin-top: 12px;
  max-width: 60%;
  margin-left: auto;
}
.sequence .interlude {
  grid-column: 1/-1;
  max-width: 580px;
  line-height: 1.4;
  margin: 0 auto;
}
.footer {
  font-size: 12px;
  margin: 70px auto 32px;
  width: 75%;
  max-width: var(--page);
}
.view-tools {
  position: fixed;
  left: 5%;
  bottom: 42px;
  z-index: 5;
}
.grid-icon {
  display: inline-grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
  width: 15px;
  height: 15px;
}
.grid-icon i {
  background: currentColor;
  border-radius: 1px;
}
.grid-link {
  color: #aaa;
  padding: 10px;
}
.to-top {
  position: fixed;
  bottom: 42px;
  right: 5%;
  color: #aaa;
  font-size: 25px;
}
.grid-page {
  width: 90%;
  max-width: none;
  margin: 64px auto;
}
.grid-back {
  display: block;
  text-align: right;
  font-family: 'Baskerville', 'Times New Roman', serif;
  margin-bottom: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.grid-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.grid figure {
  margin: 0;
}
.grid img {
  width: 100%;
}
.grid .number {
  font-size: 11px;
  color: #999;
  margin-top: 7px;
}
.home {
  height: 100svh;
  background: var(--bg, #fafafa);
}
.home .header {
  position: relative;
  z-index: 2;
}
.home-enter {
  position: absolute;
  inset: 132px 0 0;
}
.home-caption {
  position: absolute;
  bottom: 28px;
  right: 5%;
  font-size: 13px;
  background: #fafafabd;
  padding: 6px 10px;
}
.home .language {
  color: #666;
}
.viewer-page {
  background: #171717;
  color: #b6b6b6;
  min-height: 100svh;
}
.viewer {
  height: 100svh;
  display: flex;
  flex-direction: column;
}
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 3%;
  font-size: 16px;
  gap: 12px;
}
.viewer-actions {
  display: flex;
  align-items: center;
  gap: 46px;
}
.viewer-actions a {
  display: flex;
  gap: 16px;
  align-items: center;
}
.viewer-actions a:hover {
  color: #fff;
}
.viewer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 18px 12% 0;
}
.viewer-figure {
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.viewer-figure img {
  max-height: calc(100svh - 190px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}
.viewer-figure figcaption {
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 14px;
  min-height: 45px;
}
.viewer-figure small {
  display: block;
  color: #777;
  margin-top: 4px;
}
.viewer-bottom {
  height: 25px;
  flex-shrink: 0;
}
.arrow {
  position: absolute;
  top: 45%;
  font-size: 32px;
  color: #777;
  padding: 20px;
}
.arrow:hover {
  color: #fff;
}
.arrow.previous {
  left: 3%;
}
.arrow.next {
  right: 3%;
}
.counter {
  white-space: nowrap;
}
.close-symbol {
  font-size: 26px;
  font-weight: 200;
}
.list-icon {
  display: inline-block;
  width: 15px;
  height: 12px;
  border-top: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
}
.empty {
  max-width: 600px;
  line-height: 1.5;
  margin-top: 35px;
  color: #777;
}
.empty a {
  text-decoration: underline;
}
.section-title {
  font-size: 44px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about-layout p {
  line-height: 1.6;
}
.about-photo {
  position: sticky;
  top: 40px;
}
.about-photo img {
  width: 100%;
}
dialog {
  border: 0;
  background: #fafafa;
  color: #111;
  padding: 55px;
  width: min(760px, 90vw);
  max-height: 80svh;
}
dialog::backdrop {
  background: #171717cc;
}
dialog label {
  display: block;
  font-family: 'Baskerville', serif;
  font-size: 28px;
  margin-bottom: 24px;
}
dialog input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa;
  background: none;
  padding: 10px 0;
  font-size: 22px;
  border-radius: 0;
}
.close-search {
  position: absolute;
  right: 22px;
  top: 12px;
  font-size: 30px;
}
#results a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}
#results p {
  margin-top: 24px;
  color: #888;
}
.mobile-menu {
  display: none;
}
.mobile-controls {
  display: none;
}
.about-page {
  width: 88%;
  max-width: 1320px;
  margin-top: 65px;
}
.about-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(48px, 12vw, 180px);
  align-items: start;
}
.about-copy {
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
}
.about-lead {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 30px;
}
.about-copy h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 36px 0 20px;
}
.about-copy h1 + h2 {
  margin-top: 0;
}
.about-copy p {
  line-height: 1.45;
}
.about-biography p + p {
  margin-top: 16px;
}
.about-records p + p {
  margin-top: 4px;
}
.about-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
}
.about-badges img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.sequence-imported {
  align-items: start;
  gap: 32px;
}
.sequence-imported .full {
  grid-column: auto;
}
.sequence-imported figure:nth-child(3) {
  align-self: start;
}
.sequence-imported figure {
  min-width: 0;
}
.projects {
  row-gap: 64px;
}
.projects .project-card {
  min-width: 0;
}
main:focus {
  outline: none;
}
.viewer-figure {
  width: min(900px, 100%);
}
.viewer-figure img {
  width: 100%;
  height: auto;
}
@media (min-width: 1750px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .header {
    padding: 30px 5%;
    min-height: 110px;
  }
  .identity {
    display: block;
  }
  .language {
    display: block;
    margin-top: 8px;
  }
  .nav {
    gap: 14px;
    font-size: 14px;
  }
  .search-button {
    margin-left: 0;
  }
  .content {
    width: 84%;
    margin-top: 50px;
  }
  .project-heading {
    gap: 30px;
  }
  .project-heading h1 {
    font-size: 36px;
  }
  .intro {
    font-size: 30px;
  }
  .grid-page {
    width: 90%;
  }
  .viewer-actions {
    gap: 20px;
  }
  .viewer-body {
    padding-left: 9%;
    padding-right: 9%;
  }
}
@media (max-width: 650px) {
  :root {
    --mobile-header-width: calc(100vw - var(--home-layout-gutter, 0px));
    --mobile-header-inset: calc(var(--mobile-header-width) * 0.07);
  }
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: var(--mobile-header-width);
    min-height: 95px;
    padding: 26px var(--mobile-header-inset);
    align-items: start;
  }
  .header .identity {
    position: relative;
    min-width: 0;
  }
  .header .identity .language {
    position: absolute;
    top: 32px;
    left: 0;
    margin-top: 0;
  }
  .brand {
    font-size: 16px;
  }
  .language {
    font-size: 10px;
  }
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
    font-size: 24px;
  }
  .mobile-controls {
    display: flex;
    gap: 22px;
    align-items: center;
  }
  .mobile-controls .search-button {
    display: block;
  }
  .header > .search-button {
    display: none;
  }
  .subnav {
    display: none;
  }
  .content {
    width: 84%;
    margin: 36px auto 64px;
  }
  .intro {
    font-size: 29px;
    margin-bottom: 48px;
    line-height: 1.1;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .project-card figcaption {
    font-size: 14px;
  }
  .project-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  .project-heading h1 {
    font-size: 36px;
  }
  .description {
    font-size: 15px;
  }
  .date {
    margin-top: 10px;
  }
  .sequence {
    gap: 24px 6%;
  }
  .sequence figcaption {
    font-size: 10px;
    max-width: 85%;
  }
  .footer {
    width: 84%;
    margin: 48px auto 25px;
  }
  .view-tools {
    left: 1%;
    bottom: 18px;
  }
  .to-top {
    right: 2%;
    bottom: 16px;
    font-size: 22px;
  }
  .grid-page {
    width: 90%;
    margin-top: 25px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .grid-column {
    gap: 15px;
  }
  .grid-back {
    font-size: 14px;
  }
  .grid .number {
    font-size: 10px;
  }
  .viewer-toolbar {
    padding: 24px 6%;
    font-size: 12px;
    align-items: flex-start;
  }
  .viewer-actions {
    gap: 22px;
  }
  .viewer-actions a {
    gap: 7px;
  }
  .viewer-actions .action-text {
    display: none;
  }
  .viewer-body {
    padding: 10px 6%;
  }
  .viewer-figure img {
    max-height: calc(100svh - 180px);
  }
  .viewer-figure figcaption {
    font-size: 12px;
    min-height: 50px;
  }
  .arrow {
    top: auto;
    bottom: 5px;
    padding: 10px;
    font-size: 25px;
    z-index: 3;
  }
  .arrow.previous {
    left: 5%;
  }
  .arrow.next {
    right: 5%;
  }
  .viewer-bottom {
    height: 45px;
  }
  .home {
    background-position: 51% center;
  }
  .home-caption {
    font-size: 11px;
    bottom: 24px;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: #fafafa;
    z-index: 20;
    padding: 30px 8%;
  }
  .mobile-menu > button {
    position: absolute;
    right: 8%;
    top: 24px;
    font-size: 30px;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 70px;
    font-family: 'Baskerville', serif;
    font-size: 30px;
  }
  .mobile-menu .language {
    margin-top: 40px;
    font-size: 13px;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo {
    position: static;
  }
  dialog {
    padding: 45px 25px;
  }
  .home-enter {
    top: 100px;
  }
}

@media (max-width: 900px) and (min-width: 651px) {
  .subnav {
    padding-right: 32px;
  }
  .subnav-row {
    column-gap: 16px;
  }
  .header-navigation {
    max-width: 65%;
  }
}
@media (max-width: 650px) {
  .header-navigation {
    display: none;
  }
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
#app > .header,
#app > main,
#app > .home {
  flex-shrink: 0;
}
#app > .footer {
  margin-top: auto;
}
.language {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.language-flag {
  display: block;
  width: 20px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px #0002);
}
@media (max-width: 900px) {
  .identity .language {
    display: flex;
  }
}
@media (max-width: 650px) {
  .language {
    gap: 7px;
  }
  .language-flag {
    width: 18px;
    height: 14px;
  }
}

/* Contact: a single quiet text column, using the site's body typography. */
.contact-page {
  width: min(calc(37.5% - 16px), 524px);
  margin: 65px auto 90px;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #111;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact-links a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-links a:hover,
.contact-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-note {
  margin-top: 42px;
  max-width: 390px;
}
.contact-note p {
  margin: 0 0 1.35em;
}
@media (max-width: 900px) {
  .contact-page {
    width: calc(42% - 16px);
    margin-top: 50px;
  }
}
@media (max-width: 650px) {
  .contact-page {
    width: 84%;
    margin: 36px auto 64px;
  }
}

/* Reserve precisely the same header depth as Projects, including wrapped rows. */
.subnav-reserved {
  visibility: hidden;
  pointer-events: none;
}

/* Image navigation has two exact halves, with larger versions of the gallery chevrons. */
.viewer-image {
  position: relative;
  display: flex;
  max-width: 100%;
  min-height: 0;
  flex: none;
}
.photo-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: block;
}
.photo-half-previous {
  left: 0;
}
.photo-half-next {
  right: 0;
}
.photo-half:focus-visible {
  outline: 1px solid #b6b6b6;
  outline-offset: -4px;
}
.photo-half-disabled {
  cursor: default;
}
a.photo-half-previous {
  cursor:
    url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%3Ctext%20x%3D%2232%22%20y%3D%2248%22%20text-anchor%3D%22middle%22%20font-family%3D%22PT%20Sans%2CArial%2Csans-serif%22%20font-size%3D%2252%22%20fill%3D%22%23b6b6b6%22%20stroke%3D%22%23171717%22%20stroke-width%3D%22.7%22%20paint-order%3D%22stroke%22%3E%E2%80%B9%3C%2Ftext%3E%3C%2Fsvg%3E')
      32 32,
    pointer;
}
a.photo-half-next {
  cursor:
    url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%3Ctext%20x%3D%2232%22%20y%3D%2248%22%20text-anchor%3D%22middle%22%20font-family%3D%22PT%20Sans%2CArial%2Csans-serif%22%20font-size%3D%2252%22%20fill%3D%22%23b6b6b6%22%20stroke%3D%22%23171717%22%20stroke-width%3D%22.7%22%20paint-order%3D%22stroke%22%3E%E2%80%BA%3C%2Ftext%3E%3C%2Fsvg%3E')
      32 32,
    pointer;
}

/* Fixed controls remain readable over photographs. */
.view-tools .grid-link,
.to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 5px;
  background: rgba(250, 250, 250, 0.8);
}
.to-top {
  z-index: 5;
}

/* Two independent Figma image sets, selected once per visit to the home page. */
.home {
  position: relative;
  overflow: hidden;
  background: none;
}
.home-visual {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.home-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-enter {
  inset: 0;
}
.home .header {
  pointer-events: none;
}
.home .header a,
.home .header button {
  pointer-events: auto;
}

/* Mobile menu follows the 375 × 812 Figma frames, with independently scrolling series. */
@media (max-width: 650px) {
  body.mobile-menu-open {
    overflow: hidden;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 80px 10% 48px;
    background: #fafafa;
    color: #444;
    font-family: 'PT Sans', Arial, sans-serif;
  }
  /* The page and overlay use identical title and icon slots. */
  .mobile-menu-header {
    position: absolute;
    top: 26px;
    left: 0;
    width: var(--mobile-header-width);
    padding: 0 var(--mobile-header-inset);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    color: #111;
  }
  .header .brand,
  .mobile-menu-header .brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    height: 28px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    white-space: nowrap;
  }
  .mobile-controls,
  .mobile-menu-controls {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 28px;
  }
  .mobile-controls button,
  .mobile-menu-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  .mobile-menu-controls .search-button {
    color: #d5d5d5;
  }
  .mobile-menu-close {
    font-size: 30px;
    font-family: Arial, sans-serif;
  }
  .mobile-menu-body {
    margin-top: 105px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 0 7px 8px;
  }
  .mobile-menu .mobile-navigation {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 0;
    font-family: 'PT Sans', Arial, sans-serif;
    font-size: 24px;
    line-height: 32px;
  }
  .mobile-menu-title {
    display: block;
  }
  .mobile-menu-title[aria-current='page'] {
    color: #bbb;
  }
  .mobile-series {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 0;
    padding-left: 22px;
  }
  .mobile-series a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-size: 16px;
    line-height: 22px;
    color: #555;
  }
  .mobile-series a > span:first-child {
    flex: none;
  }
  .mobile-series a[aria-current='page'] {
    color: #bbb;
  }
  .mobile-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: none;
    padding: 30px 7px 0;
    color: #000;
  }
  .mobile-socials a,
  .mobile-socials > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }
  .mobile-socials svg {
    display: block;
    width: 22.4px;
    height: 22.4px;
  }
  .mobile-menu a:focus-visible,
  .mobile-menu button:focus-visible {
    outline-offset: 2px;
  }
}
@media (max-width: 360px) {
  .mobile-menu {
    padding-left: 8%;
    padding-right: 8%;
  }
  .mobile-controls,
  .mobile-menu-controls {
    gap: 14px;
  }
  .header .brand,
  .mobile-menu-header .brand {
    font-size: 15px;
  }
}
@media (max-width: 650px) and (max-height: 700px) {
  .mobile-menu {
    padding-top: 58px;
    padding-bottom: 28px;
  }
  .mobile-menu-body {
    margin-top: 65px;
  }
}

/* Keep layout width stable regardless of document height. */
html {
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
html:has(body.viewer-page) {
  background: #171717;
}

a,
button {
  transition:
    color 160ms ease-out,
    background-color 160ms ease-out;
}
.photo-link img,
.project-card img,
.diary-cover img,
.diary-strip img {
  transition: opacity 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  a,
  button,
  .photo-link img,
  .project-card img,
  .diary-cover img,
  .diary-strip img {
    transition: none;
  }
}

#app {
  transition: opacity 140ms ease-out;
}
#app.page-changing {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  #app {
    transition: none;
  }
}

/* Optional photo fields and the three print states. Real photographs default to no sale. */
.viewer-figure .photo-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  text-align: left;
}
.photo-details-copy {
  min-width: 0;
}
.photo-caption {
  color: #b6b6b6;
  line-height: 1.35;
}
.photo-date,
.photo-number {
  color: #777;
}
.photo-number {
  margin-top: 4px;
  font-size: 12px;
}
.print-available {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid #287647;
  border-radius: 3px;
  padding: 3px 9px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font:
    10px/1.2 'PT Sans',
    Arial,
    sans-serif;
  white-space: nowrap;
}
.print-available:hover {
  color: #fff;
  background: #214b30;
}
.print-available:disabled {
  border-color: #555;
  background: #393939;
  color: #777;
  cursor: default;
}
.viewer-figure:has(.photo-details) img {
  max-height: calc(100svh - 210px);
}
@media (max-width: 650px) {
  .viewer-figure .photo-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .photo-caption {
    font-size: 14px;
  }
  .photo-number {
    margin-top: 22px;
    font-size: 13px;
  }
  .print-available {
    width: min(280px, 100%);
    padding: 7px 16px;
    font-size: 12px;
  }
  .viewer-figure:has(.photo-details) img {
    max-height: calc(100svh - 300px);
  }
}

.print-available {
  margin-left: auto;
  align-self: flex-start;
}
@media (max-width: 650px) {
  .photo-details .print-available {
    width: auto;
    max-width: 100%;
    align-self: flex-end;
    margin-left: auto;
  }
}
#print-request {
  font:
    16px/1.35 'PT Sans',
    Arial,
    sans-serif;
}
.print-request-copy {
  overflow-wrap: anywhere;
}
.print-request-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.print-request-options a,
.print-request-options button {
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 8px 12px;
}
.print-request-note {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}
#print-email-status {
  font-size: 13px;
  margin-top: 12px;
}

@media (max-width: 650px) {
  .photo-details .print-available {
    align-self: center;
    margin-left: 0;
    margin-right: 0;
    width: min(280px, 100%);
  }
}

/* Full-bleed home image; other pages retain their stable scrollbar gutter. */
html.home-page {
  scrollbar-gutter: auto;
  overflow-y: hidden;
}
.home .header {
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.home.home-contrast-ready .header {
  opacity: 1;
}
.home .header .brand,
.home .header .nav a,
.home .header button {
  color: var(--home-header-ink, #111);
  text-shadow: var(--home-header-shadow, none);
}
.home .header .search-icon {
  filter: drop-shadow(0 1px 2px #7774);
}
.home .header a:hover,
.home .header button:hover {
  opacity: 0.75;
}
@media (min-width: 651px) {
  .home .header {
    padding-left: calc((100vw - var(--home-layout-gutter, 0px)) * 0.05);
    padding-right: calc(
      (100vw - var(--home-layout-gutter, 0px)) * 0.05 +
        var(--home-layout-gutter, 0px)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .header {
    transition: none;
  }
}

.project-share-button {
  margin-top: 44px !important;
  width: 100%;
  max-width: none;
}
