/* Shared stylesheet for Doug Ravenel's web pages.
   Each page links to it with
     <link rel="stylesheet" href="site.css">      (pages in the top folder)
     <link rel="stylesheet" href="../site.css">   (pages one folder down)
*/

:root {
  --ink: #1f2328;
  --muted: #5c6370;
  --rule: #d9d4c7;
  --paper: #fdfcf8;
  --panel: #f4f1e8;
  --link: #1a4fa0;
  --link-visited: #6a3d9a;
  --green: #01540a;
  --orange: #d26a00;
  --purple: #7a2fd0;
  --accent: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--link); text-underline-offset: 2px; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

.page { max-width: 980px; margin: 0 auto; padding: 20px 20px 32px; }

/* top bar: link back home */
.topbar {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: 15px; color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 18px;
}
.topbar a { color: inherit; }
.topbar .home { font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.topbar .home:hover { text-decoration: underline; }

h1 { font-weight: normal; font-size: 38px; line-height: 1.15; margin: 6px 0 6px; }
h1 + .subtitle { margin-top: 0; }
.subtitle { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
h2 {
  font-size: 14px; font-weight: bold; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 32px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--rule);
  font-family: "Gill Sans", "Gill Sans MT", "Segoe UI", Calibri, sans-serif;
}
h3 { font-size: 20px; font-weight: bold; margin: 22px 0 6px; }
p { margin: 0 0 12px; }

ul { padding-left: 1.3em; margin: 0 0 12px; }
li { margin: 0 0 8px; }
li > ul { margin-top: 6px; }
ul.plain { list-style: none; padding: 0; }
ul.spaced > li { margin-bottom: 14px; }

.links a + a { margin-left: 0.7em; }          /* "Slides  Print version  Video" rows */
.meta { color: var(--muted); font-size: 15.5px; }
.note { color: var(--muted); font-size: 15.5px; }
.new {
  display: inline-block; font-size: 12px; font-weight: bold; letter-spacing: 0.08em;
  color: #fff; background: var(--accent); border-radius: 3px; padding: 1px 6px; margin-right: 6px;
  vertical-align: 2px; font-family: "Gill Sans", "Gill Sans MT", "Segoe UI", Calibri, sans-serif;
}
.highlight { color: var(--accent); }
.green  { color: var(--green); }
.orange { color: var(--orange); }
.purple { color: var(--purple); }

blockquote {
  margin: 12px 0 16px; padding: 10px 18px; border-left: 3px solid var(--rule);
  background: var(--panel); font-style: italic;
}
blockquote.plain { font-style: normal; }

figure { margin: 16px auto; text-align: center; }
figure img { border: 1px solid var(--rule); }
figcaption { font-size: 15.5px; color: var(--muted); margin-top: 6px; }
.figrow { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: flex-start; }
.figrow figure { margin: 8px 0; flex: 0 1 auto; }

/* item with a small picture beside it */
.withpic { display: flex; gap: 14px; align-items: center; }
.withpic img { flex: 0 0 auto; border: 1px solid var(--rule); }

.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 18px; margin: 14px 0; }

table.info { border-collapse: collapse; margin: 6px 0 14px; }
table.info th, table.info td { text-align: left; padding: 4px 16px 4px 0; vertical-align: top; }
table.info th { color: var(--muted); font-weight: normal; }

.semesters { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.justify { text-align: justify; hyphens: auto; }

footer {
  margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
}
footer a { color: inherit; }
footer img { border: 0; vertical-align: middle; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .page { padding: 14px 16px 24px; }
  h1 { font-size: 30px; }
  .withpic { flex-direction: column; align-items: flex-start; }
}
@media print {
  body { background: #fff; font-size: 11pt; }
  .page { max-width: none; padding: 0; }
  .topbar, footer { display: none; }
  a { color: inherit; }
}
