* {
  box-sizing: border-box;
}
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f7fd;
  background: #0b1720;
  font-synthesis: none;
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flow-root;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #28dcff;
  outline-offset: 6px;
}
button {
  background: none;
}
.scene {
  position: fixed;
  inset: 0;
  background: url("/pgn/scene.jpg") center/cover no-repeat;
  z-index: -2;
}
.scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 10, 17, 0.3),
    rgba(2, 10, 17, 0.04) 65%
  );
}
.frame {
  position: relative;
  min-height: calc(100svh - 8vh);
  margin: 4vh 3vw;
  border: 1px solid #8797a5b3;
  border-radius: 34px;
  padding: 3.7vh 2.9vw;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 22px;
  white-space: nowrap;
  letter-spacing: -0.7px;
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 15px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  color: #dde7f7;
}
nav a,
nav button {
  transition: color 0.2s;
}
nav a:hover,
nav button:hover {
  color: #40dfff;
}
.github {
  display: flex;
  align-items: center;
  gap: 12px;
}
#copy-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-left: 1px solid #a9bbcd66;
  padding: 5px 0 5px 32px;
  min-height: 32px;
  max-width: 260px;
}
#copy-prompt.copied {
  font-size: 13px;
  line-height: 1.35;
  color: #a9ecf9;
}
.author {
  margin-left: 5.7vw;
  color: #a0afc3;
  font-size: 15px;
}
.ph {
  display: inline-block;
  flex-shrink: 0;
}
main {
  margin-top: 7vh;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.intro {
  padding-left: 1.3vw;
  width: max-content;
  max-width: 100%;
  pointer-events: auto;
}
h1 {
  font-size: clamp(64px, 6.4vw, 108px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
  margin: 0;
}
.subhead {
  font-size: clamp(40px, 4.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #95a7c3;
  margin: 28px 0 0;
}
.description {
  font-size: clamp(16px, 1.34vw, 21px);
  line-height: 1.4;
  color: #adb7c7;
  margin: 4vh 0 0;
  letter-spacing: -0.025em;
}
.actions {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 3vh;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid #aab8c080;
  border-radius: 99px;
  background: linear-gradient(110deg, #1717178c, #0622347d);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  width: 344px;
  height: 72px;
  font-size: 18px;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.primary:hover {
  border-color: #a5eaff;
  background-color: #1c405aa6;
  transform: translateY(-2px);
}
.primary .ph-apple-logo {
  font-size: 29px;
}
.primary .ph-download-simple {
  color: #05d9ff;
  margin-left: 15px;
  font-size: 24px;
}
#share {
  display: none;
}
.requirements {
  font-size: 14px;
  color: #a6b4c8;
  margin: 10px 0 0;
}
#share-status {
  font-size: 13px;
  color: #b6eaf4;
  margin: 8px 0 0;
}
#share-status:empty {
  display: none;
}
footer {
  margin-top: auto;
  padding-top: 24px;
  color: #9dacbf;
  font-size: 15px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}
.flow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.glass {
  background: linear-gradient(130deg, #29475b70, #07111b9c);
  border: 1px solid #81afc8a6;
  box-shadow:
    inset 0 1px 2px #d1eaff26,
    0 16px 40px #0002;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.file-card {
  position: absolute;
  left: 51.1%;
  top: 30%;
  width: 8vw;
  height: 13.8vw;
  max-height: 162px;
  max-width: 123px;
  min-width: 96px;
  min-height: 134px;
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(-11deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 22px;
  gap: 13px;
  isolation: isolate;
}
.file-glass {
  position: absolute;
  inset: 0;
  background: #6b95b42b;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  clip-path: polygon(0 0, 73% 0, 100% 20%, 100% 100%, 0 100%);
  border-radius: 9px;
  border: 1px solid #8bbbdb;
  z-index: -1;
}
.fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 27%;
  height: 20%;
  background: #97b4d955;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-bottom: 1px solid #aec5dd;
  border-left: 1px solid #aec5dd;
  border-radius: 0 0 0 5px;
}
.file-card > .pawn {
  width: 42px;
  height: 55px;
  color: #e4efff;
  filter: drop-shadow(2px 5px 2px #05152480);
}
.file-card > span:last-child {
  font-size: 14px;
  letter-spacing: -0.4px;
}
.notation {
  position: absolute;
  left: 62.6%;
  top: 37.5%;
  width: 15vw;
  min-width: 205px;
  max-width: 248px;
  padding: 19px 18px 16px;
  border-radius: 21px;
  transform: translate(var(--x, 0px), var(--y, 0px));
  color: #abc9e1;
}
.notation > .ph {
  font-size: 25px;
  margin-bottom: 14px;
}
.notation pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(10px, 0.86vw, 14px);
  line-height: 1.35;
  margin: 0;
  white-space: pre;
}
.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.connectors > path {
  fill: none;
  stroke: #21cfff;
  stroke-width: 2.5;
}
.connectors > path.glow {
  stroke-width: 5;
  opacity: 0.6;
  filter: url(#glow);
}
.install-tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: 355px;
  max-width: 80vw;
  border-radius: 20px;
  padding: 20px;
  color: #d4e4f2;
  line-height: 1.45;
  font-size: 13px;
  z-index: 10;
  background-color: #092031b8;
}
.install-tip[hidden] {
  display: none;
}
.tip-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  gap: 12px;
}
.tip-heading button {
  padding: 3px;
  font-size: 18px;
}
.install-tip ol {
  padding-left: 19px;
  margin: 13px 0;
}
.install-tip li {
  padding: 3px 0;
}
.install-tip code {
  font-size: 12px;
  color: #67dcf9;
}
.install-tip p {
  color: #b7c9d7;
}
.install-tip > a {
  color: #87dcf2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1100px) and (max-height: 800px) {
  .frame {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  main {
    margin-top: 6vh;
  }
  h1 {
    font-size: min(6.4vw, 11vh);
  }
  .subhead {
    font-size: min(4.5vw, 7.6vh);
    margin-top: 22px;
  }
  .description {
    margin-top: 3vh;
    font-size: 17px;
  }
  .primary {
    height: 60px;
    width: 310px;
  }
  .notation {
    top: 36%;
    padding: 15px;
  }
  .notation pre {
    font-size: 11px;
  }
  .file-card {
    top: 27%;
    height: 142px;
  }
}
@media (hover: none) and (pointer: coarse) {
  #download {
    display: none;
  }
  #share {
    display: flex;
  }
}
@media (max-width: 1099px) {
  #download {
    display: none;
  }
  #share {
    display: flex;
  }
  .author {
    margin-left: 0;
  }
  nav {
    gap: 22px;
  }
  .frame {
    padding: 26px;
    margin: 24px;
    min-height: calc(100svh - 48px);
  }
  .brand {
    font-size: 19px;
    gap: 10px;
  }
  .brand img {
    width: 50px;
    height: 50px;
  }
  #copy-prompt {
    padding-left: 22px;
    max-width: 220px;
  }
  main {
    margin-top: 7vh;
  }
  .intro {
    padding-left: 12px;
  }
  h1 {
    font-size: clamp(62px, 8.5vw, 90px);
  }
  .subhead {
    font-size: clamp(40px, 5.5vw, 62px);
  }
  .description {
    max-width: 430px;
    font-size: 17px;
  }
  .desktop-break {
    display: none;
  }
  .file-card {
    left: 64%;
    top: 33%;
    width: 100px;
    height: 138px;
  }
  .notation {
    left: 69%;
    top: 49%;
    min-width: 190px;
    padding: 16px;
  }
  .notation pre {
    font-size: 10px;
  }
  .author {
    display: none;
  }
  .primary {
    width: 310px;
    height: 64px;
  }
  .flow {
    z-index: 1;
  }
}
@media (max-width: 700px) {
  .scene {
    background-position: 64% center;
  }
  .scene:after {
    background: linear-gradient(180deg, #04101c66, #06121b0d 65%, #040b144d);
  }
  .frame {
    margin: 14px;
    padding: 18px;
    border-radius: 25px;
    min-height: calc(100svh - 28px);
  }
  header {
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 4px 2px 0;
  }
  .github {
    gap: 6px;
  }
  #copy-prompt {
    border: 0;
    padding: 0;
    max-width: 235px;
    justify-content: flex-end;
    text-align: right;
    font-size: 13px;
    min-height: 28px;
  }
  .author {
    display: none;
  }
  main {
    margin-top: 25px;
  }
  .intro {
    padding: 0;
    width: 100%;
  }
  h1 {
    font-size: clamp(48px, 13.5vw, 80px);
    line-height: 0.9;
  }
  .subhead {
    font-size: clamp(31px, 8.8vw, 48px);
    margin-top: 16px;
    line-height: 1;
  }
  .description {
    font-size: 14px;
    line-height: 1.45;
    max-width: 330px;
    margin-top: 20px;
  }
  .actions {
    margin-top: 19px;
  }
  .primary {
    height: 52px;
    width: 245px;
    font-size: 16px;
    gap: 14px;
  }
  .requirements {
    font-size: 11px;
    margin-top: 9px;
  }
  footer {
    font-size: 12px;
    padding-top: 165px;
  }
  .file-card {
    left: calc(50% - 114px);
    top: auto;
    bottom: 110px;
    min-width: 64px;
    min-height: 90px;
    width: 64px;
    height: 90px;
    padding-bottom: 12px;
    gap: 7px;
  }
  .file-card > .pawn {
    width: 27px;
    height: 37px;
  }
  .file-card > span:last-child {
    font-size: 10px;
  }
  .notation {
    left: calc(50% - 4px);
    top: auto;
    bottom: 70px;
    min-width: 145px;
    width: 145px;
    padding: 11px;
    border-radius: 15px;
  }
  .notation > .ph {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .notation pre {
    font-size: 7.7px;
  }
  .connectors > path {
    stroke-width: 1.7;
  }
  .flow {
    position: absolute;
    height: 100%;
    min-height: 100svh;
  }
  body {
    position: relative;
  }
  .install-tip {
    display: none;
  }
}
@media (max-width: 700px) and (min-height: 800px) {
  main {
    margin-top: 36px;
  }
  .description {
    margin-top: 25px;
  }
  .file-card {
    bottom: 155px;
  }
  .notation {
    bottom: 103px;
  }
  footer {
    padding-top: 200px;
  }
}
@media (max-height: 600px) and (min-width: 701px) {
  .frame {
    margin: 14px;
    min-height: calc(100svh - 28px);
    padding: 16px 24px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  main {
    margin-top: 22px;
  }
  h1 {
    font-size: 54px;
  }
  .subhead {
    font-size: 36px;
    margin-top: 16px;
  }
  .description {
    font-size: 13px;
    max-width: 360px;
    margin-top: 18px;
  }
  .actions {
    margin-top: 16px;
  }
  .primary {
    height: 45px;
    width: 260px;
    font-size: 15px;
  }
  .requirements {
    font-size: 11px;
  }
  footer {
    font-size: 11px;
    padding-top: 18px;
  }
  .file-card {
    left: 61%;
    top: 28%;
    width: 85px;
    min-width: 85px;
    min-height: 118px;
    height: 118px;
  }
  .notation {
    left: 74%;
    top: 42%;
    min-width: 160px;
    padding: 12px;
  }
  .notation pre {
    font-size: 8px;
  }
  .notation > .ph {
    font-size: 18px;
    margin-bottom: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep the photographic destination visible in a portrait crop. */
@media (min-width: 1100px) and (min-height: 801px) {
  h1 {
    font-size: clamp(64px, 6.85vw, 112px);
  }
  .subhead {
    font-size: clamp(40px, 4.7vw, 78px);
    margin-top: 23px;
  }
  .description {
    margin-top: 3vh;
  }
}
@media (min-width: 701px) {
  .file-card {
    max-height: 146px;
  }
  .glass {
    background-color: #06132155;
  }
}
@media (max-width: 700px) {
  .scene {
    background-color: #0c1b2b;
    background-size: auto 100%;
    background-position: calc(100% + 65px) calc(50% + 240px);
  }
  .scene:after {
    background: linear-gradient(
      180deg,
      #0c1b2b 0%,
      #0c1b2b 34%,
      #06121b22 62%,
      #040b141a
    );
  }
  .file-card {
    left: calc(50% - 126px);
    bottom: 170px;
  }
  .notation {
    left: calc(50% - 26px);
    bottom: 118px;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  header {
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  nav {
    padding-top: 0;
  }
  main {
    margin-top: 16px;
  }
  h1 {
    font-size: 46px;
  }
  .subhead {
    font-size: 30px;
    margin-top: 13px;
  }
  .description {
    font-size: 12px;
    margin-top: 16px;
  }
  .actions {
    margin-top: 14px;
  }
  .primary {
    height: 46px;
  }
  .requirements {
    font-size: 10px;
  }
  footer {
    padding-top: 150px;
  }
  .file-card {
    bottom: 95px;
  }
  .notation {
    bottom: 60px;
  }
  .scene {
    background-position: calc(100% + 45px) calc(50% + 210px);
  }
}
@media (min-width: 701px) and (max-width: 1099px) and (max-aspect-ratio: 11/10) {
  .scene {
    background-position: right calc(50% + 170px);
  }
  .scene:after {
    background: linear-gradient(180deg, #0c1b2b 0%, #0c1b2b 17%, #06121b22 45%);
  }
  .file-card {
    left: 70%;
    top: 30%;
  }
  .notation {
    left: 63%;
    top: 51%;
  }
}
@media (min-width: 701px) and (max-width: 1099px) and (min-aspect-ratio: 11/10) {
  .file-card {
    left: 56%;
    top: 18%;
  }
  .notation {
    left: 70%;
    top: 28%;
  }
}
@media (min-width: 701px) and (max-width: 1099px) and (min-aspect-ratio: 11/10) and (min-height: 601px) {
  main {
    margin-top: 5vh;
  }
  h1 {
    font-size: 80px;
  }
  .subhead {
    font-size: 52px;
  }
}
@media (max-width: 700px) and (min-aspect-ratio: 3/2) {
  .frame {
    padding: 14px 20px;
    margin: 12px;
    min-height: calc(100svh - 24px);
  }
  header {
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand {
    font-size: 14px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  nav {
    width: auto;
    font-size: 11px;
    gap: 16px;
  }
  #copy-prompt {
    font-size: 11px;
    max-width: 160px;
  }
  main {
    margin-top: 18px;
  }
  .intro {
    width: 55%;
  }
  h1 {
    font-size: 36px;
    line-height: 1;
  }
  h1 br {
    display: none;
  }
  h1 br:after {
    content: " ";
  }
  .subhead {
    font-size: 25px;
    margin-top: 10px;
  }
  .description {
    font-size: 11px;
    margin-top: 12px;
  }
  .actions {
    margin-top: 12px;
  }
  .primary {
    height: 36px;
    width: 205px;
    font-size: 13px;
  }
  .requirements {
    font-size: 9px;
  }
  footer {
    display: none;
  }
  .scene {
    background-position: right center;
    background-size: cover;
  }
  .scene:after {
    background: linear-gradient(90deg, #081725c9, #08172533);
  }
  .file-card {
    left: 63%;
    top: 25%;
    bottom: auto;
    min-width: 55px;
    width: 55px;
    min-height: 78px;
    height: 78px;
  }
  .notation {
    left: 74%;
    top: 48%;
    bottom: auto;
    min-width: 120px;
    width: 120px;
    padding: 8px;
  }
  .notation pre {
    font-size: 6.2px;
  }
  .notation > .ph {
    font-size: 14px;
    margin-bottom: 5px;
  }
}
@media (max-width: 700px) and (max-height: 620px) and (max-aspect-ratio: 3/2) {
  .frame {
    padding: 14px;
  }
  header {
    gap: 5px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  main {
    margin-top: 10px;
  }
  h1 {
    font-size: 38px;
  }
  .subhead {
    font-size: 26px;
    margin-top: 8px;
  }
  .description {
    font-size: 11px;
    margin-top: 10px;
  }
  .actions {
    margin-top: 10px;
  }
  .primary {
    height: 40px;
    width: 230px;
  }
  .requirements {
    margin-top: 7px;
  }
  footer {
    padding-top: 126px;
    font-size: 10px;
  }
  .notation {
    min-width: 125px;
    width: 125px;
    padding: 9px;
    bottom: 51px;
  }
  .notation pre {
    font-size: 6.5px;
  }
  .notation > .ph {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .file-card {
    bottom: 82px;
    left: calc(50% - 113px);
  }
  .scene:after {
    background: linear-gradient(180deg, #0c1b2b 0%, #0c1b2b 41%, #06121b22 70%);
  }
}
@media (max-width: 700px) and (min-aspect-ratio: 3/2) {
  .notation {
    left: 77%;
    top: 22%;
  }
  .file-card {
    top: 17%;
  }
}

/* Phones use a single-screen composition without the decorative PGN flow. */
@media (max-width: 700px),
  (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .flow {
    display: none;
  }
  .frame {
    height: calc(100svh - 28px);
    min-height: 0;
  }
  footer {
    padding-top: 16px;
  }
}
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .frame {
    margin: 12px;
    padding: 16px 22px;
    height: calc(100svh - 24px);
    min-height: 0;
  }
  header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  nav {
    width: auto;
    gap: 18px;
    font-size: 12px;
    padding: 0;
  }
  #copy-prompt {
    font-size: 12px;
    max-width: 210px;
    padding: 0;
    border: 0;
  }
  main {
    margin: auto 0;
  }
  .intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
    width: 100%;
    padding: 0;
    align-items: start;
  }
  h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(34px, 5.3vw, 48px);
    line-height: 0.95;
  }
  h1 br {
    display: block;
  }
  .subhead {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(24px, 3.6vw, 34px);
    margin: 0;
  }
  .description {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    max-width: 340px;
  }
  .actions {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
  .primary {
    height: 44px;
    width: min(245px, 100%);
    font-size: 15px;
  }
  .requirements {
    font-size: 10px;
    margin-top: 8px;
  }
  #share-status {
    font-size: 11px;
  }
  footer {
    display: none;
  }
  .scene {
    background-position: right center;
    background-size: cover;
  }
  .scene:after {
    background: linear-gradient(90deg, #081725da, #08172588);
  }
}
