/* Dark only, in Apple's palette and San Francisco type, like the home page. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #1d1d1f;
  --text: #f5f5f7;
  --dim: #a1a1a6;
  --faint: #86868b;
  --rule: #424245;
  --accent: #2997ff;
  --button: #0071e3;
  --on-accent: #ffffff;
  --fill: rgba(41, 151, 255, 0.18);
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  accent-color: var(--button);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--sf);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

a { color: var(--accent); text-underline-offset: 3px; }
footer a, .back a { text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--button); color: #fff; }

h1, h2, h3 {
  font-family: var(--sf);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

header.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

header.hero img { width: 72px; height: 72px; flex: none; border-radius: 16px; }
header.hero h1 { margin: 0; font-size: 40px; line-height: 1.1; }
header.hero p { margin: 4px 0 0; color: var(--dim); }

.overline {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

section.card {
  background: var(--card);
  border: 0;
  border-radius: 18px;
  padding: 20px 22px;
  margin: 0 0 16px;
}

section.card h2 { margin: 0 0 8px; font-size: 21px; }
section.card p:last-child, section.card ul:last-child { margin-bottom: 0; }
section.card p, section.card li { max-width: 34em; }

.contact {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-accent);
  font-weight: 400;
  text-decoration: none;
}

article h1 { font-size: 48px; line-height: 1.08; margin: 0 0 8px; }
article h2 { font-size: 28px; margin: 48px 0 10px; padding-top: 24px; border-top: 1px solid var(--rule); }
article h3 { font-size: 18px; margin: 24px 0 6px; }
article .meta { color: var(--dim); margin: 0 0 24px; }
article .summary { background: var(--card); border-radius: 18px; padding: 20px 24px; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
th { color: var(--dim); font-weight: 600; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.01em;
}

footer p { margin: 4px 0; }
.credit { font-size: 12px; }

p, li { text-wrap: pretty; }

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 12px; }

footer a { display: inline-block; padding: 12px 0; }
.overline a { display: inline-block; padding: 12px 0; }

article p, article li { max-width: 34em; }
footer p { max-width: 34em; }
.back { margin: 0 0 8px; font-weight: 600; }
.back a { display: inline-block; padding: 12px 0; text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* Links fill from the left on hover, like the liquid on the home page;
   the underline stays so a link still reads as one at rest. */
main a:not(.contact):not(.skip), footer a {
  background: linear-gradient(var(--fill), var(--fill)) 0 100% / 0 100% no-repeat;
  border-radius: 4px;
  transition: background-size 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
main a:not(.contact):not(.skip):hover, footer a:hover { background-size: 100% 100%; }
.contact { transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.contact:hover { transform: translateY(-2px); }
