@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #111111;
  --foreground: #dedbd4;
  --muted: #bab7b0;
  --selection: #d8d5cc;
  font-family: "Courier Prime", "Courier New", monospace;
  color: var(--foreground);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--background); background: var(--selection); }

.teaser {
  position: relative;
  min-height: max(100svh, 46rem);
  display: grid;
  grid-template-rows: minmax(31rem, 67svh) auto;
}

.artwork {
  grid-row: 1;
  margin: 0;
  padding-top: 3svh;
  width: 82%;
  height: 100%;
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.copy {
  grid-row: 2;
  margin-left: 54%;
  padding: 0 3.5vw 2.5rem 0;
  align-self: start;
  min-width: 0;
}

h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.15;
  font-weight: 400;
}

p {
  margin: 0 0 .85rem;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.45;
}

.location { color: var(--muted); margin-bottom: 0; }

.languages {
  position: absolute;
  top: clamp(0.65rem, 2.8vw, 2rem);
  right: clamp(0.75rem, 2.8vw, 2.5rem);
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--muted);
  z-index: 1;
}

.languages[hidden] { display: none; }

.languages button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.languages button[aria-pressed="true"] {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.languages button:hover { color: var(--foreground); }
.languages button:focus-visible { outline: 1px solid var(--foreground); outline-offset: -2px; }

@media (prefers-reduced-motion: no-preference) {
  .artwork img { animation: ink-arrives 850ms ease-out both; }
}

@keyframes ink-arrives {
  from { opacity: .84; }
  to { opacity: 1; }
}

@media (max-width: 840px) {
  .teaser {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: 4.5rem 1.25rem 3rem;
    gap: 2rem;
   }

  .artwork {
    position: static;
    width: 100%;
    height: auto;
    padding-top: 0;
  }

  .artwork img { height: auto; }

  .copy { margin: 0; padding: 0; }

  h1 { font-size: clamp(2rem, 7vw, 2.7rem); margin-bottom: 1.2rem; }
}
