/* Baybreak website. Fog Line: quiet ground, white cards, hairlines, one blue. */

:root {
  --ground: #F6F7F9;
  --card: #FFFFFF;
  --line: #E8EAEE;
  --ink: #0D1117;
  --muted: #5B6472;
  --accent: #2B4BF2;
  --accent-ink: #1F3AD1;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
  --measure: 68ch;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-ink); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--card);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}

/* Frame */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover,
.nav a.is-current { color: var(--ink); }

main { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.copyright { margin: 0; }

/* Type */

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

p { margin: 0 0 16px; }
strong { font-weight: 600; }

/* Home */

.hero {
  padding: 72px 0 56px;
}
.hero .wordmark-lg {
  display: inline-block;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.4px;
  margin-bottom: 40px;
}
.hero .wordmark-lg .dot { color: var(--accent); }
.hero h1 {
  font-size: 44px;
  letter-spacing: -1.6px;
  line-height: 1.04;
  max-width: 14ch;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
  margin: 24px 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.status .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.section {
  padding-top: 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  padding: 20px 20px;
  border-top: 1px solid var(--line);
}
.points li:first-child { border-top: 0; }
.points .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding-top: 3px;
}
.points h3 { margin-bottom: 4px; }
.points p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Documents */

.doc-head {
  max-width: var(--measure);
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.doc-head h1 { max-width: 20ch; }
.doc-head .meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.doc-head .intro {
  font-size: 18px;
  color: var(--muted);
  margin: 16px 0 0;
}

.doc {
  max-width: var(--measure);
}
.doc h2 {
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.doc h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 40px;
}
.doc h3 { margin: 32px 0 8px; }
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--muted); }

.toc {
  margin: 32px 0 0;
  padding: 20px;
}
.toc .label { margin-bottom: 10px; }
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.toc li:first-child { border-top: 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding-top: 3px;
  min-width: 20px;
}
.toc a {
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover { color: var(--accent); }

.note {
  padding: 18px 20px;
  margin: 24px 0;
}
.note p:last-child { margin-bottom: 0; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.doc .steps { padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 0 16px 44px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--accent);
}

/* Tables */

.table-wrap {
  margin: 24px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
thead + tbody tr:first-child td { border-top: 0; }
tbody td:first-child { font-weight: 500; }
.table-plain tbody td:first-child { font-weight: 400; }
td.empty { color: transparent; }

@media (max-width: 639px) {
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .stack tr {
    display: block;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .stack tbody tr:first-child { border-top: 0; }
  .stack td {
    display: block;
    padding: 0;
    border: 0;
  }
  .stack td + td { margin-top: 6px; }
  .stack td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .stack td.empty { display: none; }
  .stack td:first-child { font-weight: 600; }
  .stack:not(.table-plain) td:first-child::before { display: none; }
  .stack:not(.table-plain) td:first-child + td { margin-top: 8px; }
  .table-plain.stack td:first-child { font-weight: 400; }
}

/* Not found */

.lost {
  padding: 96px 0 24px;
  max-width: var(--measure);
}
.lost p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* Larger screens */

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  h1 { font-size: 44px; letter-spacing: -1.4px; }
  .hero { padding: 112px 0 72px; }
  .hero h1 { font-size: 64px; letter-spacing: -2.4px; }
  .lede { font-size: 20px; }
  .doc-head { padding: 80px 0 40px; }
  .points li { padding: 22px 24px; grid-template-columns: 44px 1fr; }
  .toc { padding: 24px; }
}

@media (min-width: 960px) {
  .hero h1 { font-size: 76px; letter-spacing: -3px; }
  .points {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .points li {
    border-top: 1px solid var(--line);
  }
  .points li:nth-child(-n+2) { border-top: 0; }
  .points li:nth-child(even) { border-left: 1px solid var(--line); }
  .points li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
}
