@import url("../../fonts.css");

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink-primary);
  font-family: sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; }

:where(a, button, [tabindex]):focus-visible {
  outline: 1px solid var(--focus-ring);
  outline-offset: 3px;
}

.return-icon {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-primary);
  text-decoration: none;
  line-height: 0;
  opacity: 0.82;
  transition: opacity 0.18s ease;
  z-index: 10;
}

.return-icon:hover,
.return-icon:focus-visible { opacity: 1; }

.project-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 88px;
}

.hero {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.hero-title img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto;
}

.project-meta {
  margin: 2px 0 0;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-lede {
  max-width: 42ch;
  margin: 20px auto 0;
  color: var(--ink-secondary);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.55;
}

.overview,
.build-notes {
  max-width: 64ch;
  margin: 64px auto 0;
}

.overview p,
.build-notes p { margin: 0; color: var(--ink-secondary); }

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}

figure { margin: 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
}

figcaption { margin-top: 12px; }
figcaption strong,
figcaption span { display: block; }

figcaption strong,
.build-notes h2 {
  color: var(--ink-primary);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

figcaption span {
  margin-top: 4px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.build-notes h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.project-note {
  max-width: 64ch;
  margin: 30px auto 0;
  color: var(--ink-secondary);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .project-page {
    width: min(100% - 36px, 620px);
    padding-top: 54px;
  }

  .screens { grid-template-columns: 1fr; gap: 34px; }
  .overview,
  .screens,
  .build-notes { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .return-icon { transition: none; }
}
