/* A large portrait opens the page beside the introduction.
   The story continues in one reading column, with no header or directory. */
.home-page {
  --page-max: 960px;
  --page-gutter: 48px;
  --home-ease: cubic-bezier(.22, 1, .36, 1);
  letter-spacing: 0;
}

.home-sheet {
  padding-top: 80px;
  padding-bottom: 32px;
}

.home-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 48px;
  margin-bottom: 40px;
}

.home-identity h1 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}

.home-portrait {
  width: 100%;
  margin: 0;
}

.home-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.home-letter p,
.home-writing p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

.home-identity .home-lead {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 450;
  line-height: 28px;
  text-wrap: pretty;
}

.home-letter,
.home-writing {
  max-width: 704px;
}

.home-letter a,
.home-link {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.home-link span {
  display: inline-block;
}

.home-link:hover,
.home-letter a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

.home-writing {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.home-writing h2 {
  margin: 0 0 8px;
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.home-writing .home-link {
  font-size: inherit;
}

.home-writing p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.home-page .home-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 80px;
  border-top: 0;
  gap: 24px;
  font-size: 12px;
}

.home-footer .footer-links {
  gap: 0 24px;
}

.home-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  .home-opening,
  .home-letter,
  .home-writing {
    animation: home-enter 700ms var(--home-ease) both;
  }

  .home-letter { animation-delay: 80ms; }
  .home-writing { animation-delay: 160ms; }

  .home-portrait img,
  .home-link span {
    transition: transform 400ms var(--home-ease);
  }

  .home-portrait:hover img {
    transform: rotate(-3deg);
  }

  .home-link:is(:hover, :focus-visible) span {
    transform: translate(3px, -3px);
  }

  .home-link:active {
    transform: translateY(1px);
  }
}

@keyframes home-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .home-page { --page-gutter: 24px; }
  .home-sheet { padding-top: 40px; padding-bottom: 24px; }
  .home-opening { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 32px; }
  .home-identity h1 { font-size: 36px; line-height: 40px; letter-spacing: -.035em; }
  .home-portrait { grid-row: 1; width: 192px; }
  .home-identity .home-lead { font-size: 20px; line-height: 28px; }
  .home-letter p { font-size: 16px; line-height: 24px; }
  .home-writing { margin-top: 24px; }
  .home-page .home-footer { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 16px; }
}
