@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  --ground: #0d0d0d;
  --text: #ece9e4;
  --rule: #2a2a2a;
  --quiet: #8f8b85;
  --label: 14px;
  --body: 18px;
  --intro: 26px;
  --heading: 40px;
  color: var(--text);
  background: var(--ground);
  color-scheme: dark;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: var(--body);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
[hidden] { display: none !important; }
.frame { width: calc(100% - 96px); max-width: 1440px; margin-inline: auto; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 120ms;
}
a:hover { text-decoration-color: var(--text); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; text-decoration-color: var(--text); }
p a, .directory a { text-decoration-color: var(--quiet); }
p a:hover, .directory a:hover { text-decoration-color: var(--text); }
h1, h2, p, dl, dd, figure { margin: 0; }
h1, h2, strong { font-weight: 500; }
h1 { font-size: var(--heading); line-height: 1.15; letter-spacing: -0.035em; }
h2 { font-size: var(--intro); line-height: 1.25; letter-spacing: -0.02em; }
p + p { margin-top: 26px; }
img { display: block; width: 100%; height: auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--label);
  line-height: 1.5;
}
.wordmark { font-weight: 500; }
nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
nav [aria-current="page"] { text-decoration-color: var(--text); }
main { padding-bottom: 96px; min-height: calc(100vh - 190px); }
.intro { font-size: var(--intro); line-height: 1.4; letter-spacing: -0.015em; }

/* Opening: the image is the first screen. The words sit over its quiet left side. */
.opening { position: relative; }
.opener img {
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  object-fit: cover;
  object-position: 80% 20%;
  background: var(--rule);
}
.caption-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--label);
  line-height: 1.5;
}
.opening-text { padding-top: 48px; }
.opening-text .intro { margin-top: 20px; }
@media (min-width: 1280px) {
  .opening-text {
    position: absolute;
    top: calc(min(56.25vw, 86vh) * 0.22);
    left: 0;
    right: 0;
    padding-top: 0;
  }
  .opening-text h1 { max-width: 580px; text-wrap: balance; }
}

/* Work */
.work-section { margin-top: 96px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; align-items: start; }
.work-grid img { object-fit: cover; background: var(--rule); }
.work-grid figcaption { margin-top: 14px; }
.work-note { margin-top: 48px; font-family: "IBM Plex Mono", monospace; font-size: var(--label); line-height: 1.5; color: var(--quiet); }
.home .work-grid img { aspect-ratio: 4 / 5; }
.home .work-grid { gap: 24px; }
.creative-head { margin-bottom: 8px; }
.page-intro { margin-top: 24px; max-width: 720px; color: var(--quiet); }
.work-all { margin-top: 0; }
.work-all .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; }

/* Rows: a name on the left, what it is on the right, a rule above. */
.lines { margin-top: 96px; }
.row, .packages > div, .service-head, .closing {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 48px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.row > :last-child, .packages dd, .service-head .prose, .closing p { max-width: 720px; }
.contact-row { margin-top: 80px; padding-bottom: 0; }
.page-heading { padding-block: 80px 48px; }
.prose { max-width: 760px; }
.service { scroll-margin-top: 32px; }
.service + .service { margin-top: 96px; }
.service-head { border-top: 0; padding-top: 0; }
.packages dt { font-family: "IBM Plex Mono", monospace; font-size: var(--body); font-weight: 500; }
.closing p { grid-column: 2; }
.directory { padding: 0; margin: 36px 0 0; list-style: none; }
.directory li + li { margin-top: 16px; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--label);
  color: var(--quiet);
}
.site-footer a { margin-right: auto; color: var(--text); }
@media (max-width: 1079px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 48px); }
  .site-header { padding-block: 24px; }
  nav { gap: 12px 20px; }
  main { padding-bottom: 64px; }
  .opener img { aspect-ratio: 4 / 5; max-height: none; object-position: 80% 50%; }
  .opening-text { padding-top: 36px; }
  .work-section, .lines { margin-top: 64px; }
  .work-all { margin-top: 0; }
  .work-grid, .work-all .work-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .home .work-grid { row-gap: 16px; }
  .page-heading { padding-block: 56px 36px; }
  .row, .packages > div, .service-head, .closing { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding-block: 28px; }
  .service-head { padding-top: 0; }
  .contact-row { margin-top: 56px; padding-bottom: 0; }
  .closing p { grid-column: 1; }
  .service + .service { margin-top: 64px; }
  .site-footer { gap: 12px 20px; }
  .site-footer a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
