:root {
  color-scheme: light;
  --paper: #f1f4f6;
  --surface: #ffffff;
  --ink: #111820;
  --muted: #4c5a66;
  --blue: #07558f;
  --blue-dark: #053f6b;
  --blue-pale: #d8e8f4;
  --rule: #b8c4cd;
  --focus: #ffbf47;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --page: min(100% - 2rem, 96rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, Futura, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  hyphens: auto;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead,
main,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  min-height: 6rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: block;
  width: 3.5rem;
  min-height: 3.5rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.masthead__meta {
  margin: 0;
}

.masthead__meta {
  justify-self: end;
  color: var(--muted);
  font-size: 0.875rem;
}

.introduction {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
  gap: var(--space-6);
  align-items: end;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.favorite-feature {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  min-height: 5.5rem;
  padding: var(--space-3) var(--space-4);
  background: var(--blue-dark);
  color: var(--surface);
  text-decoration: none;
}

.favorite-feature:hover {
  text-decoration: none;
}

.favorite-feature__name {
  display: grid;
  gap: 0.2rem;
}

.favorite-feature__name > span {
  color: var(--blue-pale);
  font-size: 0.875rem;
}

.favorite-feature__name strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.favorite-feature__action {
  flex: 0 0 auto;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.introduction__copy {
  max-width: 52rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  hyphens: none;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 19ch;
  margin-bottom: var(--space-4);
  color: var(--blue-dark);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.introduction__copy > p {
  max-width: 70ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.group-nav {
  display: grid;
  align-self: end;
  border-top: 1px solid var(--ink);
}

.group-nav a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  text-decoration: none;
}

.group-nav a::after {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-0.15rem);
}

.collection {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--ink);
  scroll-margin-top: var(--space-4);
}

.collection__header {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(18rem, 2fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}

.collection__header h2,
.collection__header p {
  margin-bottom: 0;
}

.collection__header h2 {
  color: var(--blue-dark);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.collection__header p {
  max-width: 65ch;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.concept {
  min-width: 0;
}

.concept__preview {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  min-height: 2.75rem;
  overflow: clip;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.concept__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.concept__preview:hover,
.concept__preview:focus-visible {
  border-color: var(--blue);
}

.concept__caption {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 var(--space-3);
  padding-top: var(--space-4);
}

.concept__number {
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.concept__caption h3 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 600;
}

.concept__caption > p:last-child {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  font-weight: 600;
}

dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}

dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

dialog::backdrop {
  background: rgb(4 19 30 / 78%);
}

.lightbox__bar {
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.lightbox__bar h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.lightbox__actions {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-2);
  align-items: center;
}

.lightbox__bar button,
.lightbox__original {
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--blue-dark);
  background: var(--surface);
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
}

.lightbox__bar button {
  cursor: pointer;
}

.lightbox__viewport {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: var(--space-3);
  overscroll-behavior: contain;
  background: var(--paper);
}

.lightbox__viewport img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__original {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 56rem) {
  .introduction,
  .collection__header {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  :root {
    --page: min(100% - 2rem, 96rem);
    --space-7: 3.5rem;
  }

  .masthead {
    grid-template-columns: 3.5rem 1fr;
    min-height: 5rem;
  }

  .brand {
    width: 3rem;
    min-height: 3rem;
  }

  .introduction {
    padding-block: var(--space-7);
  }

  .favorite-feature {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox__bar {
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
  }

  .lightbox__bar h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lightbox__bar button,
  .lightbox__original {
    min-height: 2.5rem;
    padding: var(--space-1) var(--space-2);
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .concept__preview,
  dialog,
  .lightbox__bar button,
  .lightbox__original {
    border: 1px solid CanvasText;
  }

}
