/* The home page is a single product story, from sharing a file to making one. */
.lanlet-home {
  --home-violet: var(--accent, #6554c0);
  --home-ink: var(--ink, #202124);
  --home-muted: var(--muted, #686871);
  --home-rule: var(--line, #e8e8ec);
  overflow: clip;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 64px);
  padding-block: clamp(60px, 6vw, 104px);
}

.hero-message h1,
.works-collection h2,
.make-inner h2 {
  margin: 0;
  color: var(--home-ink);
  font-weight: 660;
  letter-spacing: -.055em;
}

.hero-message h1 {
  font-size: clamp(44px, 4.65vw, 68px);
  line-height: 1.13;
}

.hero-message h1 span { display: block; }
:lang(en) .hero-message h1 { letter-spacing: -.065em; }

.hero-message > p {
  max-width: 25em;
  margin: 25px 0 29px;
  color: var(--home-muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-platforms {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--home-muted);
  letter-spacing: .025em;
}

.hero-platforms span { margin-inline: 4px; }

/* One still life. The game and the library are unmodified product captures. */
.product-object {
  width: 100%;
  margin: 0;
  aspect-ratio: 1.48;
  position: relative;
  isolation: isolate;
}

.object-set {
  position: absolute;
  inset: 0;
  container-type: inline-size;
}

.display-shadow {
  position: absolute;
  bottom: 6%;
  left: 3%;
  right: 8%;
  height: 8%;
  border-radius: 50%;
  background: #a6a09a;
  opacity: .24;
  filter: blur(14px);
  transform: rotate(-2deg);
}

.desktop-unit {
  position: absolute;
  width: 82%;
  height: 77%;
  left: 1%;
  bottom: 11%;
  transform: perspective(1100px) rotateY(-10deg) rotateZ(-4deg);
  transform-origin: 55% 80%;
}

.desktop-screen {
  position: absolute;
  inset: 0 3% 2.1%;
  padding: 1.35% 1.3% 2.3%;
  border-radius: 3.2% / 4.7%;
  background: #252525;
  border: 1px solid #7d7b7c;
  box-shadow: inset 0 0 0 1px #a8a5a4, 1px 2px 2px #706c6d;
  overflow: hidden;
}

.desktop-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 1.5%;
}

.desktop-base {
  position: absolute;
  left: -2.5%;
  right: -2.5%;
  bottom: -.8%;
  height: 4%;
  background: linear-gradient(#d8d6d4 0 26%, #b8b7b9 30%, #979599 94%);
  border-radius: 0 0 8% 8% / 0 0 87% 87%;
  box-shadow: 0 2px 2px #79787a39;
}
.desktop-base::after {
  content: "";
  position: absolute;
  left: 42%; right: 42%; top: 0;
  height: 35%;
  background: #89888c;
  border-radius: 0 0 4px 4px;
}

.phone-unit {
  position: absolute;
  width: 27%;
  aspect-ratio: 720 / 1310;
  bottom: 3%;
  right: 4%;
  padding: .9% .8%;
  border: 1px solid #75717b;
  border-radius: 13% / 7.4%;
  background: #252428;
  box-shadow: inset 0 0 0 1px #ccc8ca, 2px 3px 1px #726e72,
    3px 13px 20px #3128352e;
  transform: rotate(6deg);
}

.phone-unit img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10% / 5.6%;
}

.file-unit {
  position: absolute;
  width: 20%;
  aspect-ratio: .86;
  top: -2%;
  right: 17%;
  transform: rotate(10deg);
  filter: drop-shadow(2px 8px 7px #39314524);
}

.file-paper {
  position: absolute;
  inset: 0;
  background: #e6e1f5;
  border-radius: 8%;
  clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 14%;
  gap: 10%;
  color: #40345f;
  font: 600 clamp(9px, 2.35cqw, 15px)/1.1 ui-monospace, monospace;
  letter-spacing: -.07em;
}
.file-paper::after {
  content: "";
  position: absolute;
  top: 0; right: 0; width: 28%; height: 24%;
  background: #c3b9db;
  border-bottom-left-radius: 14%;
}
.file-paper img { width: 48%; height: auto; }

.visitor-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--home-rule);
}

.visitor-shortcuts a {
  color: var(--home-ink);
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 10%;
}

.visitor-shortcuts a:first-child { padding-left: 0; }
.visitor-shortcuts a + a::before {
  content: "";
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  border-left: 1px solid var(--home-rule);
}
.visitor-shortcuts strong { font-size: clamp(17px, 1.45vw, 21px); font-weight: 620; line-height: 1.45; }
.visitor-shortcuts a > span { color: var(--home-violet); font-size: 14px; line-height: 1.5; }
.visitor-shortcuts i { font-style: normal; display: inline-block; transition: transform .16s; }
.visitor-shortcuts a:hover i { transform: translateX(3px); }

.works-collection { padding-block: clamp(62px, 7vw, 108px); }
.works-collection h2,
.make-inner h2 { font-size: clamp(31px, 3.25vw, 47px); line-height: 1.18; }
.official-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 38px 24px; margin-top: 32px; }
.official-work {
  display: block;
  grid-column: span 2;
  color: var(--home-ink);
  text-decoration: none;
  min-width: 0;
}
.official-work:nth-child(-n+2) { grid-column: span 3; }

.work-art {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.86;
  border-radius: 12px;
}
.work-art img { display: block; transition: transform .3s ease-out; }
.official-work:hover .work-art img { transform: scale(1.025); }
.work-name { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-top: 13px; }
.work-name strong { font-size: 21px; line-height: 1.4; font-weight: 620; letter-spacing: -.035em; }
.work-name > span { color: var(--home-muted); line-height: 1; font-size: 18px; }
.work-description, .work-release { display: block; color: var(--home-muted); line-height: 1.5; font-size: 15px; margin-top: 3px; }
.work-release { font-size: 12px; margin-top: 6px; }
.work-pig-wash .work-art img { height:100%;width:100%;object-fit:cover;object-position:50% 49%; }
.work-gomoku .work-art { background: #ebd3a9; }
.work-gomoku .work-art img { width: 147%; max-width: none; margin: -42% 0 0 -22%; }
.work-file-album .work-art { background: #dae2e4; }
.work-live-im .work-art { background: #dbe5d7; }
.work-snake-solo .work-art { background: #253c31; }
.work-file-album .work-art img,
.work-live-im .work-art img,
.work-snake-solo .work-art img {
  width: 88%;
  margin: 8% auto 0;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 15px #25392e21;
}
.work-live-im .work-art img { width: 94%; margin-left: 12%; }
.work-snake-solo .work-art img { width: 118%; max-width: none; margin: -16% 0 0 -9%; }

.make-invitation { background: #f0edf6; color: var(--home-ink); }
.make-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding-block: clamp(46px, 5.3vw, 80px); }
.make-inner p { max-width: 34em; margin: 14px 0 0; color: #625e6a; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.make-inner .button { flex-shrink: 0; }

@media (max-width: 850px) {
  .product-hero { gap: 15px; }
  .hero-message h1 { font-size: clamp(36px, 5vw, 46px); }
  .work-name strong { font-size: 19px; }
}

@media (max-width: 700px) {
  .product-hero { display: flex; flex-direction: column; align-items: stretch; padding-block: 36px 20px; gap: 12px; }
  .hero-message h1 { font-size: clamp(34px, 9.4vw, 40px); line-height: 1.14; }
  .hero-message > p { margin: 15px 0 20px; font-size: 16px; line-height: 1.65; }
  .hero-platforms { margin-top: 10px; font-size: 11px; }
  .product-object { width: min(98%, 390px); align-self: center; aspect-ratio: 1.87; }
  .object-set { width: 82%; margin-inline: auto; }
  .desktop-unit { height: 74%; }
  .visitor-shortcuts { display: block; }
  .visitor-shortcuts a, .visitor-shortcuts a:first-child { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; padding: 15px 0; }
  .visitor-shortcuts a + a { border-top: 1px solid var(--home-rule); }
  .visitor-shortcuts a + a::before { content: none; }
  .visitor-shortcuts strong { font-size: 15px; }
  .visitor-shortcuts a > span { font-size: 12px; text-align: end; }
  :lang(en) .visitor-shortcuts a { align-items: flex-start; }
  :lang(en) .visitor-shortcuts a > span { max-width: 45%; }
  .works-collection { padding-block: 49px; }
  .works-collection h2, .make-inner h2 { font-size: clamp(29px,7.5vw,36px); }
  .official-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; margin-top: 23px; }
  .official-work, .official-work:nth-child(-n+2) { grid-column: span 1; }
  .official-work:first-child { grid-column: 1 / -1; }
  .official-work:first-child .work-art { aspect-ratio: 1.95; }
  .work-art { aspect-ratio: 1.5; border-radius: 8px; }
  .work-name { margin-top: 8px; }
  .work-name strong { font-size: 17px; }
  .work-name > span { font-size: 15px; }
  .work-description { font-size: 13px; }
  .work-release { font-size: 11px; }
  .make-inner { display: block; padding-block: 42px; }
  .make-inner p { font-size: 15px; }
  .make-inner .button { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lanlet-home * { transition: none !important; }
}


@media (prefers-color-scheme: dark) {
  .make-invitation { background: #28242f; }
  .make-inner p { color: #c3bdcb; }
  .display-shadow { background: #08070a; opacity: .8; }
}

@media (max-width: 700px) {
  .hero-actions { gap: 8px; }
  .hero-actions .button { font-size: 14px; padding-inline: 15px; }
}
