/* Original Windows Phone faces, from PDFsharp's Windows Phone SDK assets.
   Source: https://assets.pdfsharp.net/pdfsharp-6.x/fonts/SegoeWP/
   Font copyright: Microsoft Corporation. */
@font-face {
  font-family: "Segoe WP";
  src: url("assets/fonts/SegoeWP-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Segoe WP";
  src: url("assets/fonts/SegoeWP-Semilight.ttf") format("truetype");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Segoe WP";
  src: url("assets/fonts/SegoeWP.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #454545;
  --paper: #f7f7f5;
  --body-ink: #555;
  --muted: #686868;
  --line: #dededb;
  --inactive: #b9b9b6;
  --hover: #9e263c;
  --accent: #ae2943;
  --gutter: clamp(24px, 6vw, 96px);
  --section-width: clamp(320px, 34vw, 490px);
  --stuff-width: clamp(660px, 64vw, 920px);
  --section-gap: clamp(36px, 4vw, 58px);
  font-family: "Segoe WP", "Segoe UI", sans-serif;
  font-weight: 350;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #c7c7c7;
  --paper: #171717;
  --body-ink: #b9b9b9;
  --muted: #a0a0a0;
  --line: #343434;
  --inactive: #535353;
  --hover: #eee;
  --accent: #d74360;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #c7c7c7;
    --paper: #171717;
    --body-ink: #b9b9b9;
    --muted: #a0a0a0;
    --line: #343434;
    --inactive: #535353;
    --hover: #eee;
    --accent: #d74360;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-transform: lowercase;
  isolation: isolate;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
/* iOS Safari can leave the panorama's focus ring visible after a touch. */
@media (hover: hover) and (pointer: fine) {
  main:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 5px;
  }
}
@media (hover: none), (pointer: coarse) {
  main:focus-visible {
    outline: none;
  }
}
::selection {
  color: #fff;
  background: #9e263c;
}
.skip-link {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}

/* The title is its own layer, moving more slowly than the content. */
.title-window {
  padding: clamp(24px, 4svh, 48px) 0 20px var(--gutter);
  overflow: hidden;
  flex: none;
}
h1 {
  margin: 0 0 0 -0.055em;
  width: max-content;
  font-size: clamp(108px, min(14.6vw, 21svh), 190px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.05;
  transform: translate3d(var(--title-offset, 0px), 0, 0);
  will-change: transform;
}
h1 a {
  display: block;
}

/* One continuous canvas; adjacent headings are an intentional navigation cue. */
.panorama {
  display: flex;
  gap: var(--section-gap);
  padding: 12px
    max(var(--gutter), calc(100% - var(--gutter) - var(--stuff-width))) 28px
    var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  cursor: grab;
}
.panorama::-webkit-scrollbar {
  display: none;
}
.panorama.is-dragging,
.panorama.is-dragging .live-tile {
  cursor: grabbing;
}
.panorama-section {
  position: relative;
  flex: 0 0 var(--section-width);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.panorama-section::-webkit-scrollbar {
  display: none;
}
.panorama-section.has-more-below::after {
  content: "";
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: block;
  height: 28px;
  margin-top: -28px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
#stuff {
  flex-basis: var(--stuff-width);
}
h2 {
  margin: 0 0 clamp(32px, 5svh, 58px);
  font-size: clamp(42px, min(4.6vw, 7.4svh), 68px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h2 a {
  display: inline-block;
  transition: color 0.2s;
  cursor: pointer;
}
h2 a:hover {
  color: var(--hover);
}
.about-copy {
  max-width: 430px;
}
.about-content {
  display: block;
}
.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--accent);
  font-size: 23px;
  font-weight: 300;
}
.social-links a:hover {
  color: var(--hover);
}
.inspiration {
  margin: 5px 0 0;
  width: 100%;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.live-tile {
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #161616;
}
.live-tile:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.live-tile:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.tile-label {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 16px 6px 5px;
  color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.82));
  font:
    350 13px / 1.2 "Segoe WP",
    sans-serif;
  text-align: left;
  opacity: 0;
  transition: opacity 150ms;
  pointer-events: none;
}
.live-tile:hover .tile-label,
.live-tile:focus-visible .tile-label {
  opacity: 1;
}
.image-viewer {
  width: min(1000px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
}
.image-viewer::backdrop {
  background: rgb(0 0 0 / 0.8);
}
body:has(.image-viewer[open]) {
  overflow: hidden;
}
.viewer-toolbar,
.viewer-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.viewer-toolbar h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px);
}
.image-viewer button {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.image-viewer button:hover {
  color: var(--accent);
}
.image-viewer button:disabled {
  opacity: 0.3;
  cursor: default;
}
.viewer-image {
  display: block;
  width: 100%;
  height: min(65svh, 680px);
  object-fit: contain;
  margin: 12px 0;
}
.viewer-count {
  font-size: 14px;
  color: var(--muted);
}
.viewer-credit {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.viewer-credit a {
  display: inline-block;
  text-decoration: underline;
  margin-right: 10px;
}
.viewer-credit [hidden] {
  display: none;
}
.photo-grid .tile-frame {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 850ms cubic-bezier(0.333333, 1, 0.666667, 1);
}
.photo-grid .tile-contain {
  object-fit: contain;
  background: #f0f0ee;
}
.tile-frame.is-current {
  opacity: 1;
  transform: translateY(0);
}
.tile-frame.is-leaving {
  opacity: 1;
  transform: translateY(-100%);
}
.photo-grid .photo-wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.1;
}
.inspiration figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tiles-toggle {
  border: 0;
  padding: 0 0 0 12px;
  min-height: 44px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tiles-toggle:hover {
  color: var(--hover);
}
.about-copy p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-ink);
}
.about-copy .lead {
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 18px;
}
.project-list {
  max-width: 520px;
}
.project-list details {
  border-bottom: 1px solid var(--line);
}
.project-list details.is-animating {
  overflow: hidden;
}
.project-list details:first-child {
  margin-top: -12px;
}
.project-list summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0 14px;
  cursor: pointer;
  list-style: none;
}
.project-list summary::-webkit-details-marker {
  display: none;
}
.project-list summary > span:first-child {
  min-width: 0;
  flex: 1;
}
.project-list summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.project-title {
  display: block;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.project-description {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 5px;
}
.disclosure {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.25s;
}
.project-list summary:hover .project-title {
  color: var(--hover);
}
.project-list details[open] .disclosure {
  transform: rotate(45deg);
}
.project-list details > p {
  margin: 0;
  padding: 0 32px 21px 0;
  color: var(--body-ink);
  font-size: 16px;
  line-height: 1.6;
}
.panorama.is-dragging {
  user-select: none;
}

/* Minimal pointer and keyboard alternatives to directly panning the canvas. */
.panorama-controls {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--gutter) 24px;
}
.section-indicators {
  display: flex;
  gap: 6px;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.theme-switch svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.theme-switch path {
  fill: currentColor;
  stroke: none;
}
.theme-switch:hover {
  color: var(--hover);
}
.indicator {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
}
.indicator span {
  width: 21px;
  height: 2px;
  background: var(--inactive);
  transition: background 0.2s;
}
.indicator.active span,
.indicator:hover span {
  background: var(--accent);
}
.next-section {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.next-section svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.next-section.is-back svg {
  transform: rotate(180deg);
}
.next-section:hover {
  color: var(--hover);
}
.next-section:active svg {
  scale: 0.92;
}

@media (max-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .about-content {
    display: block;
  }
  .inspiration {
    margin-top: 5px;
  }
  .photo-grid .photo-wide {
    grid-column: auto;
    aspect-ratio: 1;
  }
}
@media (max-width: 700px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  :root {
    --gutter: 24px;
    --section-width: calc(100vw - 84px);
    --stuff-width: var(--section-width);
    --section-gap: 30px;
  }
  .title-window {
    padding-top: 45px;
    padding-bottom: 37px;
  }
  h1 {
    font-size: clamp(108px, 25vw, 170px);
  }
  h2 {
    font-size: clamp(43px, 10vw, 60px);
    margin-bottom: 32px;
  }
  .about-copy p {
    font-size: 17px;
  }
  .about-copy .lead {
    font-size: 28px;
  }
  .project-title {
    font-size: 27px;
  }
  .panorama {
    padding-top: 8px;
  }
  .panorama-controls {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}
@media (min-width: 701px) and (max-height: 760px) {
  .title-window {
    padding-top: 24px;
    padding-bottom: 16px;
  }
  h2 {
    margin-bottom: 24px;
  }
  .about-copy p {
    margin-bottom: 14px;
  }
  .panorama-controls {
    padding-bottom: 16px;
  }
}
@media (max-height: 600px) {
  .title-window {
    padding-top: 20px;
    padding-bottom: 15px;
  }
  h1 {
    font-size: clamp(86px, 18svh, 130px);
  }
  h2 {
    margin-bottom: 25px;
    font-size: 40px;
  }
  .panorama-controls {
    padding-top: 0;
    padding-bottom: 12px;
  }
}
/* Keep the app bar in the viewport. Wide screens spend width, not height. */
@media (min-width: 900px) {
  :root {
    --stuff-width: min(1120px, calc(100vw - 2 * var(--gutter)));
  }
  #about {
    flex-basis: clamp(480px, 42vw, 600px);
  }
  .about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 28px;
  }
  .social-links {
    margin-top: 0;
  }
  .about-copy p:last-child {
    margin-bottom: 0;
  }
  .photo-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  h1 {
    transform: none;
  }
}
