:root {
  --bg: #0b0e12;
  --line: #222a35;
  --text: #e6e9ed;
  --body: #c9cfd6;
  --muted: #98a2ae;
  --accent: #6fe3c4;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 1000px; margin: 0 auto; padding: 14px 16px 32px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font: 0.85em var(--mono); background: #151b23; border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }

/* Name and links */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.top .name { font-weight: 600; }
.top .links { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; }

/* Phone first on small screens: the recording is the point of the page */
.intro { display: grid; gap: 18px; padding-top: 12px; }

/* On phones the frame is sized by the screen height so the whole recording is visible
   under the intro without scrolling. svh is the height with the browser bars showing. */
.phone {
  height: calc(100vh - 290px);
  height: calc(100svh - 270px);
  min-height: 340px;
  max-height: 640px;
  max-width: 86vw;
  margin: 0 auto;
  aspect-ratio: 9 / 20;
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2b333f, #141920);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

h1 { font-size: 20px; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 20px 0 6px; }
p, ul { color: var(--body); margin: 0 0 10px; }
h1 { margin-top: 10px; }
h2.first { margin-top: 0; }
.lead { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 8px; max-width: 720px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin: 0; font: 11px/1.3 var(--mono); }
.chain b { font-weight: 500; color: var(--text); background: #151b23; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; white-space: nowrap; }
.chain i { font-style: normal; color: var(--accent); }
ul { padding-left: 20px; }
li { margin: 3px 0; }
.small { font-size: 14px; color: var(--muted); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 6px 0; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; width: 38%; padding-right: 12px; }
td { color: var(--body); }

/* Side by side once there is room */
@media (min-width: 820px) {
  main { padding: 22px 40px 40px; }
  .top { display: flex; justify-content: space-between; align-items: baseline; }
  .intro { grid-template-columns: auto 1fr; gap: 44px; align-items: start; padding-top: 28px; }
  .phone { height: auto; min-height: 0; max-height: none; max-width: none; width: min(280px, calc((100vh - 240px) * 0.45)); margin: 0; position: sticky; top: 24px; }
  h1 { font-size: 30px; margin-top: 16px; }
  .lead { font-size: 14px; }
  .chain { font-size: 13px; gap: 6px 8px; }
  .chain b { padding: 4px 8px; }
  th { width: 150px; }
}
