/* Pretty Good Labs, LLC — one ink, no gradients, no effects. */

:root {
  --ink: #ffffff;
  --bg: #000000;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.04);
  --max: 940px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 200px; height: auto; display: block; }

/* ---------- splash screen ---------- */

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: splash-out 0.7s ease-in 2.3s forwards;
}

#splash img {
  width: 260px;
  height: auto;
  opacity: 0;
  animation: splash-logo-in 1.1s ease-out 0.2s forwards;
}

@keyframes splash-logo-in {
  to { opacity: 1; }
}

@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}

.no-splash #splash { display: none; }

@media (prefers-reduced-motion: reduce) {
  #splash { display: none; }
}

nav.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- type ---------- */

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  font-weight: 600;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 48px 0 14px;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  margin: 30px 0 8px;
  font-weight: 600;
}

p { margin: 0 0 16px; }

a { color: var(--ink); }

.lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44em;
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

main { padding: 56px 0 24px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

/* ---------- hardware requirement callout ---------- */

.requirement {
  border: 1px solid var(--ink);
  padding: 18px 20px;
  margin: 24px 0 32px;
  font-size: 16px;
  line-height: 1.55;
}

.requirement strong { display: block; margin-bottom: 4px; font-size: 17px; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* ---------- app grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}

.card {
  display: block;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
}

.card:hover { border-color: rgba(255, 255, 255, 0.42); }

.card .tag { margin-bottom: 16px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.card h3 { margin: 0; font-size: 30px; }

/* app icons */

.icon {
  display: block;
  border-radius: 22.5%;
  border: 1px solid var(--line);
}

.card .icon {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.app-head .icon {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
}

.app-head h1 { margin: 0; }

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
}

/* ---------- spec table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-cols nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.legal { margin-top: 26px; line-height: 1.7; }

/* ---------- screenshot strip ---------- */

.screenshots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 24px 0 32px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.screenshots figure {
  margin: 0;
  flex: 0 0 auto;
  width: 221px;
  scroll-snap-align: start;
}

.screenshots img {
  height: 480px;
  width: 221px;
  display: block;
  border: 1px solid var(--line);
}

.screenshots figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.shot-note {
  font-size: 13px;
  color: var(--muted);
  margin: -18px 0 32px;
}

@media (max-width: 620px) {
  .screenshots figure { width: 157px; }
  .screenshots img { height: 340px; width: 157px; }
  h1 { font-size: 31px; }
  .lede { font-size: 18px; }
  body { font-size: 16px; }
  th { width: auto; }
  table, thead, tbody, th, td, tr { display: block; }
  th { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 10000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ---------- experiments ---------- */

.card.exp .card-head { margin-bottom: 12px; }

.card-meta {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card.exp:hover .card-meta { color: var(--ink); }
