/* ============================================================
   Self-hosted webfont
   Files live in /fonts/ — see README.
   ============================================================ */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/raleway-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/raleway-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/raleway-700.woff2') format('woff2');
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 { font-weight: 300; margin: 0 0 0.6em 0; line-height: 1.2; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; font-weight: 400; }
h4 { font-size: 1.15rem; }

p, ul, ol { margin: 0 0 1.1em 0; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
em { font-style: italic; }
strong { font-weight: 700; }
small { font-size: 0.85em; }

a { color: inherit; text-decoration: underline; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; vertical-align: middle; }

hr { border: 0; border-top: 1px solid currentColor; opacity: 0.4;
     margin: 3em auto; width: 50%; }

/* ============================================================
   Section colors (auto-generated from _config.yml)
   ============================================================ */

.bg-black   { background-color: #111111 !important; }
.text-black { color: #111111; }
.border-black { border-color: #111111 !important; }

.bg-white   { background-color: #f8f8f8 !important; }
.text-white { color: #f8f8f8; }
.border-white { border-color: #f8f8f8 !important; }

.bg-blue   { background-color: #49a7e9 !important; }
.text-blue { color: #49a7e9; }
.border-blue { border-color: #49a7e9 !important; }

.bg-green   { background-color: #9bcf2f !important; }
.text-green { color: #9bcf2f; }
.border-green { border-color: #9bcf2f !important; }

.bg-purple   { background-color: #c869bf !important; }
.text-purple { color: #c869bf; }
.border-purple { border-color: #c869bf !important; }

.bg-orange   { background-color: #fab125 !important; }
.text-orange { color: #fab125; }
.border-orange { border-color: #fab125 !important; }

.bg-turquoise   { background-color: #0fbfcf !important; }
.text-turquoise { color: #0fbfcf; }
.border-turquoise { border-color: #0fbfcf !important; }

.bg-colorA   { background-color: #98c1d9 !important; }
.text-colorA { color: #98c1d9; }
.border-colorA { border-color: #98c1d9 !important; }

.bg-colorB   { background-color: #2c2c54 !important; }
.text-colorB { color: #2c2c54; }
.border-colorB { border-color: #2c2c54 !important; }

.bg-colorC   { background-color: #823329 !important; }
.text-colorC { color: #823329; }
.border-colorC { border-color: #823329 !important; }

.bg-colorD   { background-color: #ae8e1c !important; }
.text-colorD { color: #ae8e1c; }
.border-colorD { border-color: #ae8e1c !important; }

.bg-colorE   { background-color: #0b7a75 !important; }
.text-colorE { color: #0b7a75; }
.border-colorE { border-color: #0b7a75 !important; }


/* Per-post colors */

  
  
  
nav .p-teaching    { border-top-color: #2c2c54; }
#teaching          { background-color: #2c2c54; color: #f8f8f8; }
#teaching a        { color: #f8f8f8; }

  
  
  
nav .p-otherwriting    { border-top-color: #ae8e1c; }
#otherwriting          { background-color: #ae8e1c; color: #111111; }
#otherwriting a        { color: #111111; }

  
  
  
nav .p-workingpapers    { border-top-color: #823329; }
#workingpapers          { background-color: #823329; color: #f8f8f8; }
#workingpapers a        { color: #f8f8f8; }

  
  
  
nav .p-publications    { border-top-color: #2c2c54; }
#publications          { background-color: #2c2c54; color: #f8f8f8; }
#publications a        { color: #f8f8f8; }

  
  
  
nav .p-contact    { border-top-color: #98c1d9; }
#contact          { background-color: #98c1d9; color: #111111; }
#contact a        { color: #111111; }


/* ============================================================
   Layout
   ============================================================ */
.container {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  word-wrap: break-word;
}
.container.left { text-align: left; }
.container.center { text-align: center; }

.section {
  position: relative;
  display: block;
  width: 100%;
  padding: 140px 0;
}
.section:first-of-type {
  padding-top: 160px;
}

/* ============================================================
   Top navigation
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #2e2e2e;
  font-size: 15px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  letter-spacing: -4px;          /* collapse whitespace between inline-blocks */
}
nav li {
  display: inline-block;
  border-top: 3px solid transparent;
  padding: 3px;
  min-width: 110px;
  line-height: 60px;
  letter-spacing: normal;
  text-transform: uppercase;
  transition: border-top-width 0.15s ease, padding-top 0.15s ease;
}
nav li a, nav li a:visited {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.75;
}
nav li a:hover { opacity: 1; }
nav li:hover, nav li.active {
  border-top-width: 6px;
  padding-top: 0;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  padding: 12px 0;
  text-align: center;
  background: #2e2e2e;
  color: #ddd;
}
#footer a { color: #ddd; }
#footer p { margin: 0; font-size: 13px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767px) {
  body { font-size: 15px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.2rem; }
  .section { padding: 90px 0; }
  .section:first-of-type { padding-top: 110px; }
  nav { font-size: 12px; }
  nav li {
    min-width: 60px;
    line-height: 40px;
  }
}

@media (max-width: 380px) {
  nav li { min-width: 90px; line-height: 22px; }
}
