/* Philadelphia Sciences — black colorway, Instrument Serif, a tight 800px column. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --white: #FFFFFF;
  --muted: #8F8F8F;
  --faint: #7A7A7A;
  --rule: #262626;
  /* The logo is Matthew's pick of the pitches, the Lockup: the PS mark beside the name, 517.6px wide at desktop size
     (58px type). The name's "P" starts 18.59% into the logo (1659 of its 8924 units). Every line of text starts there;
     the PS mark hangs in the margin before it. */
  --logo: min(517.6px, 100%);
  --gutter: min(96.2px, 18.59%);
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--white);
  color: var(--black);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  max-width: 848px;
  margin: 0 auto;
  padding: 25svh 24px 0;
}

.masthead {
  margin: 0;
  line-height: 0;
}

.wordmark {
  display: block;
  width: var(--logo);
  height: auto;
}

.statement {
  margin: 40px 0 72px var(--gutter);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

/* Two groups, in Matthew's words: Projects (what we build) and Investments. */
.group + .group { margin-top: 72px; }

.group-title {
  margin: 0 0 14px var(--gutter);
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
}

.products {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.products li { border-bottom: 1px solid var(--rule); }

.product {
  display: grid;
  grid-template-columns: var(--gutter) 1fr 16px;
  grid-template-areas:
    ". head arrow"
    ". line arrow";
  align-items: center;
  row-gap: 12px;
  padding: 26px 0;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

/* Each project's own logo in one white, sized by eye so they all carry the same weight. */
.logo {
  display: block;
  width: auto;
}

.logo-studyolo { height: 30px; }
.logo-figure { height: 17px; }

.status {
  padding: 1px 10px 2px;
  border: 1px solid #333333;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.25;
  white-space: nowrap;
}

.line {
  grid-area: line;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
  text-wrap: pretty;
}

.keep { white-space: nowrap; }

.arrow {
  grid-area: arrow;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease, stroke 160ms ease;
}

.product:hover .line { color: var(--white); }
.product:hover .arrow { stroke: var(--white); transform: translate(2px, -2px); }

.line { transition: color 160ms ease; }

.product:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 6px;
}

/* The not-found page: the PS mark, one sentence, the way home. */
.notfound { margin-bottom: 20px; }
.home-mark { display: block; width: 48px; height: 48px; }
.home-mark img { display: block; width: 100%; height: 100%; }

.back {
  margin: 0 0 96px var(--gutter);
  font-size: 19px;
}

.back a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.back a:hover { color: var(--white); }

.footer {
  margin-top: 96px;
  padding: 0 0 48px var(--gutter);
  color: var(--faint);
  font-size: 15px;
  line-height: 1.5;
}

.footer p { margin: 0; }

@media (max-width: 640px) {
  .statement { margin-bottom: 56px; font-size: 26px; }
  .product { grid-template-columns: var(--gutter) 1fr; grid-template-areas: ". head" ". line"; padding: 24px 0; row-gap: 10px; }
  .arrow { display: none; }
  /* The column is too narrow for a logo and its status side by side, so the status always takes its own line. */
  .head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .logo-studyolo { height: 26px; }
  .logo-figure { height: 15px; }
  .group + .group { margin-top: 56px; }
  .line { font-size: 18px; }
}

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