/* The front page (27 Oct 2026), from Paul's canvas "Synthsight splash page",
   option A. A dark splash over the mannequin photograph. Colours are
   var(--ss-home-*) from HOME_COLOURS in lib/theme/themes.ts. Faces are
   self-hosted: Inter for text, Inter Tight for the wordmark and headline. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(./fonts/inter-normal-400.woff2) format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./fonts/inter-tight-normal.woff2) format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ss-home-ground);
  color: var(--ss-home-fg);
  font-family: var(--ss-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* The photograph fills the window behind everything. The scrims darken its
   left and bottom edges so the text reads. */
.photo,
.photo img,
.scrim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo img {
  object-fit: cover;
  object-position: 70% 30%;
}
.scrim {
  background:
    linear-gradient(
      90deg,
      var(--ss-home-scrim-strong) 0%,
      var(--ss-home-scrim-mid) 38%,
      var(--ss-home-scrim-clear) 62%
    ),
    linear-gradient(
      0deg,
      var(--ss-home-scrim-low) 0%,
      var(--ss-home-scrim-clear) 40%
    );
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 32px clamp(20px, 5vw, 64px);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ss-home-fg);
  text-decoration: none;
}
.home svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.wordmark {
  font-family: var(--ss-font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.01em;
}

.signin {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ss-home-line);
  color: var(--ss-home-fg);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 150ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 150ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.signin:hover {
  background: var(--ss-home-fill-hover);
  border-color: var(--ss-home-line-hover);
}
.signin:active {
  background: var(--ss-home-fill-pressed);
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
h1 {
  margin: 0;
  font-family: var(--ss-font-display);
  font-weight: 500;
  font-size: 88px;
  line-height: 90px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
main p {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  color: var(--ss-home-fg-2);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ss-home-fg-3);
}
footer a {
  color: var(--ss-home-fg-3);
}
footer a:hover {
  color: var(--ss-home-fg);
}

a:focus-visible {
  outline: 2px solid var(--ss-home-focus);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .photo img {
    object-position: 62% 20%;
  }
  h1 {
    font-size: 44px;
    line-height: 48px;
  }
}

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