:root {
  --bg: #f3f2ee;
  --paper: #fff;
  --ink: #1b1b1b;
  --muted: #5a5a5a;
  --line: #dcdad3;
  --header: #000;
  --link: #1b1b1b;
  --draft: #f4e6c3;
  --draft-ink: #3d2f0f;
  --draft-line: #c4a35a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}

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

.topbar {
  background: var(--header);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}

.topbar a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.topbar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.topbar .title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar .subtitle {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #bdbdbd;
  text-transform: uppercase;
}

.docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1080px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
}

.sidenav {
  border-right: 1px solid var(--line);
  padding: 28px 20px 48px;
}

.sidenav h2 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.sidenav ul {
  list-style: none;
}

.sidenav a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
}

.sidenav a:hover {
  background: #eae8e1;
}

.sidenav a[aria-current="page"] {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line);
}

article {
  background: var(--paper);
  margin: 20px;
  padding: 32px 36px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: calc(100vh - 96px);
}

.crumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover { text-decoration: underline; }

article h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.intro {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 40rem;
}

.prose {
  max-width: 40rem;
  margin: 12px 0 24px;
  color: var(--ink);
}

.prose p + p {
  margin-top: 0.9em;
}

.prose-block {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.draft-banner {
  background: var(--draft);
  border: 1px solid var(--draft-line);
  color: var(--draft-ink);
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0 20px;
  max-width: 40rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 650;
  margin: 2rem 0 0.75rem;
  max-width: 40rem;
}

.pattern-list {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0.5rem 0 1.5rem;
}

.pattern-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.pattern-entry:first-child {
  padding-top: 0.25rem;
}

.pattern-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pattern-entry h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.pattern-entry h3 .note {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.pattern-entry .pattern-subtitle {
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.pattern-entry .prose {
  margin: 0;
}

.pattern-entry .prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.65em 0;
}

.pattern-entry .prose li {
  margin: 0.25rem 0;
}

.pattern-entry .tbd-note {
  margin: 0.15rem 0 0;
}

.progression {
  max-width: 40rem;
  list-style: decimal;
  padding-left: 1.4rem;
}

.progression > li {
  margin-bottom: 1.75rem;
}

.progression h2 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.progression h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.85rem 0 0.4rem;
}

.progression h2 .note,
.progression .note {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.progression ul {
  list-style: disc;
  padding-left: 1.25rem;
}

/* Indent Basic Techniques bullets past the section title edge (* reset zeroes list padding). */
article ul.technique-list {
  list-style-type: disc;
  list-style-position: outside;
  margin: 0.5rem 0 1.5rem 1.5rem;
  padding-left: 1.5rem;
}

article ul.technique-list li {
  margin: 0.3rem 0;
}


.progression ul ul {
  list-style: circle;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.progression li {
  margin: 0.2rem 0;
}

.progression p {
  margin: 0.35rem 0 0;
}

.tbd-note {
  color: var(--muted);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid #cfcbc3;
}

td.tbd {
  color: var(--muted);
  font-style: italic;
}

td .note {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

td p {
  margin: 0;
}

td p + p {
  margin-top: 0.75em;
}

@media (max-width: 720px) {
  .docs {
    grid-template-columns: 1fr;
  }
  .sidenav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  article {
    margin: 12px;
    padding: 24px 20px 36px;
    min-height: 0;
  }
}
