/* historymargins.com. One stylesheet, system fonts, no images. */
:root {
  --ground: #414b55;
  --ink: #f4f3ef;
  --soft: #cfd4d8;
  --rule: #7d8791;
  --lift: #56616c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover, a:focus-visible { background: var(--lift); text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--lift); padding: 0.5rem 1rem; z-index: 2; }

.box { max-width: 58rem; margin: 0 auto; padding: 3rem 1.25rem 2rem; display: grid;
  grid-template-columns: 13rem minmax(0, 36rem); column-gap: 4rem; }
.side { font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.8rem; line-height: 1.6; }
.side .name { margin: 0; font-family: "Gill Sans", "Gill Sans MT", Verdana, sans-serif; font-size: 1.35rem;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; }
.side .name a { text-decoration: none; }
.side .byline { margin: 0.6rem 0 2rem; color: var(--soft); font-style: italic; }
.side ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.side li { margin: 0 0 0.35rem; }
.search label { display: block; margin-bottom: 0.3rem; color: var(--soft); }
.search input { width: 100%; padding: 0.4rem 0.5rem; font: inherit; color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 0; }
.search button { margin-top: 0.5rem; padding: 0.35rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--lift); border: 1px solid var(--rule); cursor: pointer; }
main { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
footer { grid-column: 2; margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.75rem; color: var(--soft); }

h1 { margin: 0 0 0.6rem; font-family: "Gill Sans", "Gill Sans MT", Georgia, serif; font-weight: normal;
  font-size: 1.9rem; line-height: 1.25; }
h1.quiet { font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-bottom: 2rem; }
h2 { font-family: "Gill Sans", "Gill Sans MT", Georgia, serif; font-weight: normal; }
p { margin: 0 0 1.4em; }
.when { font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.75rem;
  letter-spacing: 0.06em; color: var(--soft); margin-bottom: 1rem; }
.video { display: inline-block; margin-left: 0.5rem; padding: 0 0.45rem; border: 1px solid var(--rule);
  font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); }
.watch { font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.85rem;
  margin: 0 0 2rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.watch .video { margin: 0 0.6rem 0 0; }
.tags { font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.72rem; margin: 0; }
.tag { display: inline-block; margin: 0 0.6rem 0.2rem 0; color: var(--soft); }

.entry { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 1.25rem;
  padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px dashed var(--rule); }
.entry:last-of-type { border-bottom: 0; }
.entry h2 { margin: 0 0 0.3rem; font-size: 1.35rem; line-height: 1.3; }
.entry h2 a { text-decoration: none; }
.entry .when { margin-bottom: 0.5rem; }
.entry .summary { font-size: 1rem; line-height: 1.6; margin-bottom: 0.6rem; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.thumb:hover { background: none; }

.story img { display: block; max-width: 100%; height: auto; }
figure { margin: 2.2rem 0; }
figcaption { margin-top: 0.5rem; font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.72rem; line-height: 1.5; color: var(--soft); }
blockquote { margin: 1.6em 0 1.6em 0.25em; padding-left: 1.25em; border-left: 1px solid var(--rule); }
.notes { margin: 3rem 0 2rem; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.78rem; line-height: 1.6; }
.notes h2 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin: 0 0 1rem; }
.notes ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.notes li { margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.topics { list-style: none; padding: 0; }
.topics li { margin-bottom: 0.4rem; }
.count { color: var(--soft); font-size: 0.8rem; }
.result { margin: 0 0 1.8rem; }
.result h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.result p { margin: 0; font-size: 1rem; }
.result p.when { font-size: 0.75rem; margin-bottom: 0.3rem; }

@media (max-width: 52rem) {
  .box { display: block; padding-top: 1.5rem; }
  .side { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
  .side .byline { margin-bottom: 1rem; }
  .side ul { margin-bottom: 1rem; }
  .side li { display: inline-block; margin-right: 1rem; }
  .search input { max-width: 20rem; }
}
@media (max-width: 30rem) {
  .entry { grid-template-columns: 1fr; row-gap: 0.8rem; }
  h1 { font-size: 1.6rem; }
}
@media print {
  body { background: #fff; color: #000; }
  .side nav, .search, .skip { display: none; }
  a { color: #000; }
}
