/* The whole look of the site. */

/* Crimson Pro, served from public/fonts/. One file holds every weight from 200 to 900. */
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/crimson-pro.woff2) format('woff2'); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/fonts/crimson-pro-italic.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --text: #111;
  --quiet: #666;
  --rule: #d6ccba;
  --page: #f7efe3;
  --link: #0000cc;
  --visited: #551a8b;
}

html {
  font: 400 20px/1.5 'Crimson Pro', Georgia, 'Times New Roman', serif;
  background: var(--page);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 32rem;
  margin: 2.5rem 1.25rem 6rem clamp(1.25rem, 10vw, 11rem);
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 2.2em 0 0.6em; }
b, strong, th { font-weight: 700; }
h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }

p, ul, ol, blockquote, pre, table { margin: 0 0 1.1em; }
li { margin-bottom: 0.3em; }
small { color: var(--quiet); font-weight: 400; line-height: 1.5; display: inline-block; }

nav { font-size: 0.85rem; font-weight: 400; margin-bottom: 2.5rem; }
.date { color: var(--quiet); font-size: 0.85rem; font-weight: 400; margin-top: -0.4em; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
blockquote { margin-left: 0; padding-left: 1em; border-left: 3px solid var(--rule); color: var(--quiet); }
img { max-width: 100%; height: auto; }

code, pre { font: 0.85em/1.45 Consolas, Menlo, monospace; }
pre { overflow-x: auto; padding: 0.8em; border: 1px solid var(--rule); }

table { border-collapse: collapse; }
th, td { border: 1px solid var(--rule); padding: 0.25em 0.6em; text-align: left; }

/* Dated lists made by {{list folder}} */
.index { list-style: none; padding: 0; }
.index li { display: flex; gap: 1em; margin-bottom: 0.7em; }
.index time { flex: none; color: var(--quiet); font-size: 0.8rem; font-weight: 400; line-height: 2.1; font-variant-numeric: tabular-nums; }

/* Entries in a post's References list */
.ref { margin-bottom: 0.3em; overflow-wrap: anywhere; }

/* The photo on the home page */
.portrait { float: right; width: 7rem; height: auto; margin: 0.3rem 0 1rem 1.5rem; }

@media (max-width: 30rem) {
  .portrait { width: 5rem; }
}
