/*
Theme Name: Pixel On Sight Holding
Theme URI: https://pixelonsightproductions.com
Author: Pixel On Sight Productions
Description: A minimal editorial holding page for Pixel On Sight Productions.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: pixel-on-sight
*/

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400&family=Manrope:wght@400;500&display=swap');

:root {
  --pos-white: #ffffff;
  --pos-black: #0a0a0a;
  --pos-grey: #4a4a4a;
  --pos-rule: #d8d8d8;
  --pos-serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --pos-sans: "Manrope", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pos-white);
  color: var(--pos-black);
  font-family: var(--pos-sans);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .pos-opening {
  min-height: calc(100svh - 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pos-page {
  width: 100%;
  overflow: hidden;
  background: var(--pos-white);
}

.pos-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1), opacity 400ms ease;
}

.pos-page figure {
  margin: 0;
  overflow: hidden;
  background: #f3f3f1;
}

.pos-page figure:hover img {
  transform: scale(1.012);
}

.pos-opening {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 100svh;
}

.pos-opening-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(24px, 3vw, 48px);
}

.pos-small-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.pos-small-links a,
.pos-footer a {
  position: relative;
}

.pos-small-links a::after,
.pos-footer a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}

.pos-small-links a:hover::after,
.pos-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.pos-title {
  margin: 48px 0 0;
  font-family: var(--pos-serif);
  font-size: clamp(68px, 8.2vw, 158px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .78;
  text-wrap: balance;
}

.pos-title span {
  display: block;
}

.pos-production {
  margin-top: clamp(22px, 3vw, 38px);
  font-size: clamp(10px, .92vw, 14px);
  letter-spacing: .38em;
  color: var(--pos-grey);
}

.pos-location {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  font-size: 10px;
  letter-spacing: .11em;
  color: var(--pos-grey);
  text-transform: uppercase;
}

.pos-opening-image {
  min-width: 0;
  min-height: 100%;
}

.pos-opening-image img {
  object-position: center center;
}

.pos-introduction {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 13%;
  align-items: end;
  padding: clamp(96px, 11vw, 180px) 9% clamp(120px, 14vw, 210px);
}

.pos-introduction h2 {
  margin: 0;
  font-family: var(--pos-serif);
  font-size: clamp(42px, 5.3vw, 88px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
}

.pos-introduction p {
  max-width: 430px;
  margin: 0;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: .07em;
  line-height: 1.9;
  color: var(--pos-grey);
}

.pos-pair-a,
.pos-pair-b {
  display: grid;
  align-items: center;
}

.pos-pair-a {
  grid-template-columns: 1.08fr .72fr;
  gap: 15%;
  padding: 0 7% clamp(120px, 13vw, 200px);
}

.pos-pair-a figure:first-child {
  aspect-ratio: 4 / 5;
}

.pos-pair-a figure:last-child {
  aspect-ratio: 3 / 4;
}

.pos-pair-b {
  grid-template-columns: .7fr 1.08fr;
  gap: 16%;
  align-items: end;
  padding: 0 9% clamp(125px, 14vw, 210px);
}

.pos-pair-b figure:first-child {
  aspect-ratio: 3 / 4;
}

.pos-pair-b figure:last-child {
  aspect-ratio: 4 / 5;
}

.pos-quiet {
  width: 47%;
  aspect-ratio: 4 / 5;
  margin: 0 10% clamp(125px, 14vw, 210px) auto !important;
}

.pos-nightlife {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: clamp(125px, 14vw, 210px) !important;
}

.pos-nightlife img {
  object-position: center 45%;
}

.pos-ending {
  width: 57%;
  aspect-ratio: 4 / 5;
  margin: 0 auto clamp(115px, 12vw, 190px) !important;
}

.pos-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  padding: 48px clamp(24px, 3vw, 48px) 54px;
  border-top: 1px solid var(--pos-rule);
}

.pos-footer strong {
  font-family: var(--pos-serif);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

.pos-footer-meta {
  text-align: right;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 2;
  color: var(--pos-grey);
  text-transform: uppercase;
}

.pos-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(.22, 1, .36, 1);
}

.pos-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .pos-page img,
  .pos-reveal {
    transition: none;
  }

  .pos-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .pos-opening {
    min-height: calc(100svh - 46px);
  }
}

@media (max-width: 680px) {
  .pos-opening {
    display: block;
    min-height: 0;
  }

  .pos-opening-copy {
    min-height: 420px;
    padding: 24px 18px;
  }

  .pos-title {
    margin-top: 50px;
    font-size: clamp(68px, 22vw, 104px);
    line-height: .8;
  }

  .pos-opening-image {
    aspect-ratio: 4 / 5;
  }

  .pos-location {
    font-size: 9px;
  }

  .pos-introduction {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 84px 18px 100px;
  }

  .pos-introduction h2 {
    font-size: clamp(43px, 13vw, 64px);
  }

  .pos-pair-a,
  .pos-pair-b {
    display: block;
    padding: 0 18px 88px;
  }

  .pos-pair-a figure,
  .pos-pair-b figure {
    margin-bottom: 40px;
  }

  .pos-pair-a figure:last-child {
    width: 74%;
    margin-left: auto;
  }

  .pos-pair-b figure:first-child {
    width: 74%;
  }

  .pos-quiet {
    width: 74%;
    margin: 0 18px 90px auto !important;
  }

  .pos-nightlife {
    aspect-ratio: 16 / 9;
    margin-bottom: 90px !important;
  }

  .pos-ending {
    width: calc(100% - 36px);
    margin-bottom: 90px !important;
  }

  .pos-footer {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 18px 46px;
  }

  .pos-footer-meta {
    text-align: left;
  }
}

