/* notes.runtherep.com — matches runtherep.com: oxblood stage, cream type, gilt labels */
:root {
  --stage: #170406;
  --curtain: #5c1010;
  --cream: #f3ecd8;
  --cream-dim: #d8cdb2;
  --muted: #b3a78f;
  --gilt: #c9a45c;
  --rule: rgba(243, 236, 216, .16);
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --mark: 'Oranienbaum', 'Bodoni Moda', Georgia, serif;
  --body: 'Spectral', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--cream);
  font: 300 19px/1.7 var(--body);
}
a { color: var(--cream); }
a:hover { color: #fff; }
::selection { background: var(--curtain); }

.masthead, main, .foot { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  padding-top: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.mark { font: 400 34px/1 var(--mark); text-decoration: none; letter-spacing: .02em; }
.mark span { font: italic 400 22px var(--display); color: var(--gilt); margin-left: 6px; }
.masthead nav { display: flex; gap: 22px; font-size: 16px; }
.masthead nav a { color: var(--cream-dim); text-decoration: none; }
.masthead nav a:hover { color: var(--cream); }

main { padding-top: 64px; padding-bottom: 96px; }

.kicker {
  margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gilt);
}
.draft { color: #f0b7ad; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 56px); }
.standfirst { margin: 18px 0 0; font-size: 22px; line-height: 1.55; color: var(--cream-dim); }

.intro { margin-bottom: 56px; }
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.notes li { border-bottom: 1px solid var(--rule); }
.notes a { display: block; padding: 28px 0; text-decoration: none; }
.notes h2 { font-size: 30px; }
.notes a p:last-child:not(.kicker) { margin: 10px 0 0; color: var(--cream-dim); }
.notes a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.empty { color: var(--muted); font-style: italic; }

.note .body { margin-top: 40px; }
.body > * + * { margin-top: 1.1em; }
.body p { margin: 0; }
.body h2 { font-size: 30px; margin-top: 1.8em; }
.body h3 { font-size: 23px; margin-top: 1.6em; }
.body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.body img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border: 1px solid var(--rule); }
.body blockquote {
  margin: 1.6em 0; padding: 0 0 0 20px; border-left: 2px solid var(--gilt);
  font: italic 400 22px/1.5 var(--display); color: var(--cream);
}
.body ul, .body ol { padding-left: 1.3em; }
.body li + li { margin-top: .4em; }
.body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.body code { font-size: .88em; background: rgba(243, 236, 216, .08); padding: .1em .35em; border-radius: 2px; }
.body pre { overflow-x: auto; background: rgba(0, 0, 0, .35); padding: 16px 18px; border: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.body pre code { background: none; padding: 0; }
.body table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.body th, .body td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.back { margin-top: 64px; font-size: 16px; }
.back a { color: var(--cream-dim); }

.foot { padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.foot a { color: var(--cream-dim); }

@media (max-width: 520px) {
  body { font-size: 18px; }
  main { padding-top: 44px; }
  .standfirst { font-size: 20px; }
}
