:root { color-scheme: light; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  background: #ffffff;
  color: #111111;
}

a { color: #0645ad; }
a:visited { color: #0b0080; }
a:hover { text-decoration: underline; }

.muted { color: #555555; }

h1, h2, h3 { font-weight: 700; }
h1 { font-size: 26px; margin: 10px 0 6px; }
h2 { font-size: 18px; margin: 16px 0 8px; }

.page-h1 { margin: 0; }
.lead {
  margin: 6px 0 14px;
  color: #333333;
  max-width: 75ch;
}

.section {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
}

.section-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-list {
  margin: 0;
  padding-left: 18px;
}
.link-list li { margin: 6px 0; }

.link-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-left: 0;
  list-style: none;
}
.link-list-inline li { margin: 0; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: #f4f4f4;
  border-bottom: 1px solid #d8d8d8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav-link {
  text-decoration: none;
  padding: 2px 0;
}

.nav-link + .nav-link::before {
  content: " | ";
  color: #777777;
  margin: 0 8px 0 4px;
}

.page {
  padding: 20px 0 48px;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
}

.page-title h1 {
  color: #000000;
}

.page-title h1 { margin: 0; }
.page-title p { margin: 8px 0 0; }

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid #d8d8d8;
  background: #f4f4f4;
  font-size: 12px;
}
.quote-text { margin: 0; }

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.table th, .table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid #e2e2e2;
  vertical-align: top;
}
.table th { color: #222222; font-weight: 700; }

.table-tight th,
.table-tight td {
  padding: 6px 8px;
}

.l1-graph-wrap {
  border: 1px solid #e3e3e3;
  background: #fbfdff;
  overflow: auto;
}

.l1-graph {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.codeblock {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 2px;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  overflow-x: auto;
}

.reading-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.reading-progress {
  display: inline-block;
  font-size: 12px;
  color: #2b4e2b;
  background: #eef7ee;
  border: 1px solid #cfe3cf;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.reading-last-read {
  display: inline-block;
  font-size: 12px;
  color: #333333;
  background: #f3f3f3;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.reading-table {
  table-layout: fixed;
  width: 100%;
}

.reading-table .reading-col-title {
  width: 46%;
}

.reading-table td:nth-child(1),
.reading-table th:nth-child(1) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #e9b4b4;
  background: #fff5f5;
  color: #861717;
}

.reading-table .reading-col-author {
  width: 18%;
}

.reading-table .reading-col-id {
  width: 8%;
}

.reading-table .reading-col-progress {
  width: 10%;
}

.reading-table .reading-col-last-read {
  width: 18%;
}

.reading-table td:nth-child(5),
.reading-table th:nth-child(5) {
  white-space: nowrap;
}

.reading-table td:nth-child(2),
.reading-table th:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reading-table td:nth-child(2) {
  font-style: italic;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
}
.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.quote-block {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #333333;
}

/* Service navigation homepage. */
.home {
  background: #faf9f6;
  color: #29252e;
  font-size: 16px;
  line-height: 1.6;
}
.home-shell {
  max-width: 1080px;
  min-height: 100svh;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}
.home a { color: inherit; text-decoration: none; }
.home a:focus-visible { outline: 3px solid #7351a6; outline-offset: 6px; }
.home-header, .home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.home-header { padding: 32px 0; border-bottom: 1px solid #e5e1e8; }
.home-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; }
.home-brand img { border-radius: 8px; }
.home-domain, .home-footer { color: #6b6472; font-size: 13px; }
.home-main { padding: 88px 0 96px; }
.home-eyebrow { margin: 0 0 18px; color: #7351a6; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.home h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; }
.home-intro { margin: 22px 0 48px; color: #6b6472; }
.home-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.home-services li { display: flex; }
.home-service { flex: 1; display: flex; flex-direction: column; padding: 28px; border: 1px solid #e5e1e8; border-radius: 16px; background: #fff; }
.home-service:hover { border-color: #9c80be; background: #f8f5fc; }
.home-service-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #7351a6; }
.home-number { font-size: 10px; font-weight: 650; letter-spacing: .1em; }
.home-service h2 { margin: 36px 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.home-service p { margin: 0 0 32px; color: #6b6472; font-size: 14px; }
.home-path { margin-top: auto; font-family: ui-monospace, monospace; font-size: 12px; color: #7351a6; }
.home-footer { margin-top: auto; padding: 24px 0; border-top: 1px solid #e5e1e8; }
@media (max-width: 720px) {
  .home-shell { padding: 0 24px; }
  .home-header { padding: 24px 0; }
  .home-main { padding: 56px 0; }
  .home-services { grid-template-columns: 1fr; }
  .home-service { padding: 24px; }
  .home-service h2 { margin-top: 20px; }
  .home-service p { margin-bottom: 24px; }
}
@media (max-width: 380px) {
  .home-domain { display: none; }
}
