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

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  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: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.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: 2.15rem 0 0.55rem;
}

.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;
  }
}

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

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

.home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.5rem 3rem;
  margin-top: 2.75rem;
  max-width: 52rem;
}

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

.home-categories .catalogue {
  margin-top: 0.35rem;
}
