:root {
  --ink: #1b1916;
  --muted: #5e584f;
  --line: #e3ddd3;
  --rule: #1b1916;
  --paper: #ffffff;
  --field: #f7f5f1;
}

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

html {
  background: var(--paper);
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  padding: 0.35rem 0.6rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
  z-index: 30;
}

.top {
  position: relative;
  z-index: 20;
  flex: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.scrollport {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.top-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  width: max-content;
  color: inherit;
}

.wordmark {
  color: inherit;
  font-weight: 600;
  font-size: 2.35rem;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.brand-book {
  position: relative;
  display: block;
  width: 100%;
  height: 0.72rem;
  margin-top: 0.12rem;
  color: inherit;
  text-decoration: none;
}

.brand-book::before,
.brand-book::after {
  content: "";
  position: absolute;
  bottom: 0.12rem;
  width: 52%;
  height: 0.5rem;
  border-bottom: 1.5px solid currentColor;
}

.brand-book::before {
  left: 0;
  border-radius: 0 0 0 100%;
  transform: rotate(7deg);
  transform-origin: right bottom;
}

.brand-book::after {
  right: 0;
  border-radius: 0 0 100% 0;
  transform: rotate(-7deg);
  transform-origin: left bottom;
}

.brand-book span {
  position: absolute;
  bottom: 0.12rem;
  left: 50%;
  width: 1.5px;
  height: 0.48rem;
  background: currentColor;
  transform: translateX(-50%);
}

.top-link {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.search {
  margin: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.search input {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  width: min(22rem, 100%);
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.58rem 1rem;
}

.search input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  background: var(--paper);
  border-color: var(--ink);
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.75rem 2rem 4.5rem;
}

h1 {
  font-weight: 500;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  letter-spacing: -0.033em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.wrap > h2 {
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2rem 0 0.6rem;
}

.intro,
.example-note {
  max-width: 40rem;
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.example-note {
  color: var(--muted);
  font-size: 1.05rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 40rem) 13.5rem;
  column-gap: 4.5rem;
  align-items: start;
}

.lead {
  font-size: 1.38rem;
  line-height: 1.45;
  margin: 0;
}

.summary {
  margin: 0.35rem 0 0.15rem;
  padding: 0.95rem 1.1rem 0.15rem;
  background: var(--field);
  border-left: 3px solid var(--rule);
}

.article .summary p {
  margin: 0 0 0.7rem;
}

.summary-label {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-search {
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.home-search-label {
  display: block;
  margin: 0 0 0.45rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
}

.home-search input {
  width: 100%;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
}

.home-search input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.more {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.see-also {
  list-style: none;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
}

.see-also li {
  margin: 0.35rem 0;
}

.see-also a,
.sources a {
  text-underline-offset: 0.15em;
}

.ask-line {
  margin: 0.9rem 0 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
}

.ask-line label {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

h1,
h2,
section[id] {
  scroll-margin-top: 5.5rem;
}

.unfinished {
  margin: 2rem 0 0.25rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--line);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.article h2 {
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}

.article section[id] {
  margin: 1.5rem 0 0;
}

.article #in-plain-words {
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid #1b1916;
}

.article #in-plain-words h2 {
  font-weight: 600;
  font-size: 1.55rem;
}

.article #a-simple-example {
  margin-top: 1.35rem;
  padding: 0.9rem 1.1rem 0.25rem;
  background: #f3f0ea;
}

.article #a-simple-example h2 {
  font-weight: 500;
  font-size: 1.22rem;
  color: #3f3a34;
}

.article #why-it-matters {
  padding: 0.2rem 0 0.15rem 1rem;
  border-left: 3px solid #b7b0a6;
}

.article #why-it-matters h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.article #easy-to-mix-up {
  padding: 0.85rem 1.05rem 0.25rem;
  background: #f7f6f3;
  border-top: 1px solid #e4dfd6;
}

.article #easy-to-mix-up h2 {
  font-weight: 500;
  font-style: italic;
  font-size: 1.32rem;
  color: #5e584f;
}

.article #sources {
  margin-top: 2rem;
  padding-top: 0.9rem;
  border-top: 1px solid #1b1916;
}

.article #sources h2 {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e584f;
}

.article p {
  margin: 0 0 0.85rem;
}

.sidebar {
  position: sticky;
  top: 5.75rem;
  padding-top: 0.45rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

.sidebar h2 {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin: 0.4rem 0;
}

.sidebar a {
  text-decoration: none;
}

.sidebar a:hover,
.catalogue a.title:hover,
.wordmark:hover,
.top-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.2rem 2rem 2rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.catalogue {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 40rem;
}

.catalogue li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.catalogue a.title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.catalogue .blurb {
  margin: 0.35rem 0 0;
  color: #3c3832;
  font-size: 1.05rem;
  line-height: 1.45;
}

.badge {
  display: inline-block;
  margin-left: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -0.15rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
}

.sources {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

.sources li {
  margin: 0.2rem 0;
}

.note {
  max-width: 40rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .top-inner,
  .wrap,
  .site-footer p {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .top-inner {
    flex-wrap: wrap;
  }

  .search {
    flex-basis: 100%;
    justify-content: stretch;
  }

  .search input {
    width: 100%;
  }

  .article-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .sidebar {
    position: static;
  }

  .search input {
    font-size: 16px;
  }
}

.catalogue.topics li {
  padding: 0.7rem 0;
}

.catalogue.topics a.title {
  font-size: 1.2rem;
}

.topic-map {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem 1.35rem;
  margin: 0.2rem 0 0;
  padding: 0.15rem 0 0.2rem;
  max-width: 48rem;
}

.topic-map li {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  max-width: 100%;
}

.topic-map a {
  display: inline;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.topic-map a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.topic-map .size-1 {
  font-size: 1rem;
  font-weight: 400;
  color: #8a8378;
}

.topic-map .size-2 {
  font-size: 1.28rem;
  font-weight: 500;
  color: #5c564e;
}

.topic-map .size-3 {
  font-size: 1.62rem;
  font-weight: 600;
  color: #2c2926;
}

.topic-map .size-4 {
  font-size: 2.05rem;
  font-weight: 700;
  color: #11100e;
}

@media (max-width: 640px) {
  .home-search {
    display: none;
  }

  .topic-map {
    gap: 0.55rem 0.85rem;
  }

  .topic-map .size-1 {
    font-size: 0.92rem;
  }

  .topic-map .size-2 {
    font-size: 1.02rem;
  }

  .topic-map .size-3 {
    font-size: 1.16rem;
  }

  .topic-map .size-4 {
    font-size: 1.38rem;
  }
}

.home-categories {
  display: block;
  margin-top: 3.25rem;
  max-width: 40rem;
  padding-top: 0.2rem;
  border-top: 1px solid #1b1916;
}

.home-section {
  margin: 1.6rem 0 0;
  padding: 0.15rem 0 0.35rem 1rem;
  border-left: 3px solid #1b1916;
}

.home-section-the-odyssey {
  margin-top: 1.35rem;
  padding: 0.95rem 1.05rem 0.45rem;
  border-left: 3px solid #b7b0a6;
  background: #f7f6f3;
}

.home-section h2 {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #5e584f;
}

.home-section-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.home-section-list li {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e3ddd3;
}

.home-section-list a {
  display: block;
  padding: 0.55rem 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-decoration: none;
  color: #1b1916;
}

.home-section-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
