:root {
  color-scheme: dark;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
  background: #111421;
  color: #f3eddf;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;

  --cream: #f3eddf;
  --coral: #ff9a83;
  --indigo: #15182a;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--indigo);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.title-screen {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 5vw, 4.75rem);
  background: #171a2d;
}

.title-screen__art,
.title-screen__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.title-screen__art {
  object-fit: cover;
  object-position: center;
}

.title-screen__shade {
  background:
    linear-gradient(90deg, rgba(14, 17, 35, 0.58) 0%, rgba(14, 17, 35, 0.24) 39%, transparent 74%),
    linear-gradient(0deg, rgba(13, 15, 30, 0.28), transparent 36%);
}

.title-screen__content {
  width: min(100%, 74rem);
  margin-inline: auto;
}

.title-screen__panel {
  position: relative;
  width: min(100%, 38rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 1px solid rgba(243, 237, 223, 0.17);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(17, 20, 39, 0.79), rgba(17, 20, 39, 0.55));
  box-shadow: 0 1.5rem 5rem rgba(7, 9, 22, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.title-screen__ornament {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: clamp(1.25rem, 3vw, 2.1rem);
  background: var(--coral);
  box-shadow: 0 0 1rem rgba(255, 154, 131, 0.56);
}

h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.04;
  text-wrap: balance;
}

.title-screen__welcome {
  margin: 1rem 0 0;
  color: #f4c9bd;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.about {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 237, 223, 0.19);
}

.about summary {
  display: flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  gap: 1rem;
  color: rgba(243, 237, 223, 0.85);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  list-style: none;
  transition: color 180ms ease;
}

.about summary::-webkit-details-marker {
  display: none;
}

.about summary::after {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-top: 1px solid var(--coral);
  border-right: 1px solid var(--coral);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.about[open] summary::after {
  transform: rotate(135deg);
}

.about summary:hover {
  color: var(--cream);
}

.about summary:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.about p {
  max-width: 34rem;
  margin: 0.75rem 0 0;
  color: rgba(243, 237, 223, 0.88);
  font-size: clamp(0.91rem, 1.35vw, 1rem);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .title-screen {
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-end;
    padding: 1rem;
  }

  .title-screen__art {
    object-position: 59% center;
  }

  .title-screen__shade {
    background:
      linear-gradient(0deg, rgba(12, 15, 31, 0.78) 0%, rgba(12, 15, 31, 0.5) 45%, rgba(12, 15, 31, 0.06) 100%),
      linear-gradient(90deg, rgba(12, 15, 31, 0.18), transparent 60%);
  }

  .title-screen__content {
    margin-block: auto 0;
  }

  .title-screen__panel {
    padding: 1.4rem 1.35rem 1.25rem;
    background: linear-gradient(145deg, rgba(17, 20, 39, 0.83), rgba(17, 20, 39, 0.67));
  }

  .title-screen__ornament {
    margin-bottom: 1.2rem;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.2rem);
    letter-spacing: 0.06em;
  }

  .title-screen__welcome {
    margin-top: 0.75rem;
  }

  .about {
    margin-top: 1.55rem;
    padding-top: 0.9rem;
  }

  .about p {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

@media (max-width: 380px) {
  .title-screen__panel {
    padding-inline: 1.1rem;
  }

  h1 {
    font-size: clamp(2rem, 10.4vw, 2.4rem);
    letter-spacing: 0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
