/* Welcome to FlintMcColgan.com, or a related domain. This stylesheet was developed by Flint McColgan between January 24, 2021 and May 4, 2026. If you have any suggestions or notice an error, please contact me on the website contact form. Thank you! */

@import url("normalize.css"); /* Normalize is not my work, but it allowed my work to flourish. The licensing information is included in there. */

/* Fonts designed by, and license purchased from, Matthew Butterick at mbtype.com. Thanks! */
@font-face {
  font-family: "concourse";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  src: url("concourse_t4_regular.woff2");
}

@font-face {
  font-family: "concourse";
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  src: url("concourse_t7_regular.woff2");
}

@font-face {
  font-family: "concourse";
  font-weight: normal;
  font-style: italic;
  font-stretch: normal;
  src: url("concourse_t4_italic.woff2");
}

@font-face {
  font-family: "concourse";
  font-weight: bold;
  font-style: italic;
  font-stretch: normal;
  src: url("concourse_t7_italic.woff2");
}

@font-face {
  font-family: "concourse-head";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  src: url("concourse_c7_regular.woff2");
}

@font-face {
  font-family: "equity";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  src: url("equity_text_b_regular.woff2");
}

@font-face {
  font-family: "equity";
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  src: url("equity_text_b_bold.woff2");
}

@font-face {
  font-family: "equity";
  font-weight: normal;
  font-style: italic;
  font-stretch: normal;
  src: url("equity_text_b_italic.woff2");
}

@font-face {
  font-family: "equity";
  font-weight: bold;
  font-style: italic;
  font-stretch: normal;
  src: url("equity_text_b_bold_italic.woff2");
}

@font-face {
  font-family: "equity-head";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  src: url("equity_text_a_bold.woff2");
}

@font-face {
  font-family: "equity-head";
  font-weight: normal;
  font-style: italic;
  font-stretch: normal;
  src: url("equity_text_a_bold_italic.woff2");
}

@font-face {
  font-family: "equity-caps";
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  src: url("equity_caps_b_regular.woff2");
}

/* Firefox was rendering headlines (other than h1, for some reason) much bolder than other browsers. I found the following fix at https://stormconsultancy.co.uk/blog/storm-news/dealing-with-firefox-rendering-fonts-too-bold-with-browser-specific-css/. Thank you to author Paul Leader for the fix! */

@-moz-document url-prefix() {
  h1,
  h1 > a {
    font-weight: bolder;
  }
}

@-moz-document url-prefix() {
  h2,
  h3,
  h4 {
    font-weight: normal;
  }
}

/******** This is for the welcome page layout only ******/

body.welcome {
  display: grid;
}

main {
  margin: 0;
  padding: 0;
}

main#welcome {
  display: grid;
  margin: auto;
  max-width: 800px;
  margin-bottom: 0;
}

main#welcome header {
  display: grid;
  justify-content: center;
  height: auto;
  margin: 0 0 4% 0;
}

main#welcome h1 {
  font-family: "equity-caps", "Palatino Pro Black", "Palatino Bold", "Palatino",
    Georgia, "Century Schoolbook L", "Times New Roman", serif;
  margin: 10px;
  padding: 0;
  color: #d5988e;
  font-size: calc(20px + 1.6vw);
  line-height: calc(22px + 1.6vw);
}

main#welcome sup {
  vertical-align: baseline;
  position: relative;
  top: -0.35em;
}

main#welcome header p.subtitle {
  font-family: "equity", "Palatino Pro Black", "Palatino Bold", "Palatino",
    Georgia, "Century Schoolbook L", "Times New Roman", serif;
  color: #d5988e;
  font-weight: bold;
  display: grid;
  justify-self: center;
  margin: 0;
  padding: 0;
  font-size: calc(16px + 0.1vw);
  line-height: calc(16px + 0.3vw);
}

main#welcome nav {
  margin: 0;
  padding: 0;
}

body.welcome ul {
  border: 0;
  margin: 0;
  padding: 0;
  justify-content: center;
}

body.welcome li {
  margin: 0 0.5em;
}

body.welcome a,
body.welcome a:visited {
  margin: 0;
  padding: 0;
  color: #d5988e;
}

body.welcome a:hover {
  color: #160a08;
  text-decoration: none;
}
body.welcome a:focus {
  outline-color: #8ecbd5;
  outline-style: dashed;
  outline-width: 1px;
}

main#welcome figure {
  min-width: 300px;
  max-width: 600px;
  margin: 1%;
  border-top: 2px solid #d5988e;
  border-bottom: 2px solid #d5988e;
  position: relative;
  contain: content;
  display: grid;
  padding: 4%;
  resize: horizontal;
}

main#welcome figcaption {
  text-align: center;
  color: #160a08;
  font-family: "concourse", Futura, "URW Gothic L", Helvetica, Verdana, Arial,
    sans-serif;
  font-variant: small-caps;
  font-size: calc(12px + 0.1vw);
  line-height: calc(12px + 0.3vw);
  margin: 0;
  padding: 0;
}

main#welcome img {
  max-width: 50%;
  border-radius: 0.5%;
  margin: 0;
  justify-self: center;
  resize: both;
  overflow: hidden;
}


/********** UNIVERSAL BASICS **********/

body {
  background-color: #eaddc6;
  color: #160a08;
  font-size: 20px;
  line-height: 1.3em;
  height: 100%;
  width: 100%;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  overflow-x: hidden;
}
body > p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline;
}
/********** HEADER AND NAV **********/

body > header,
body > nav {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(22, 10, 8, 0.9);
  width: 100%;
  height: auto;
  position: sticky;
  top: 0 !important;
  margin: 0;
  padding: 0;
  z-index: 3;
  box-shadow: 0px 3px 5px 0px rgba(65, 48, 45, 0.6);
}
header > h1 {
  margin: 0 0.3em;
  padding: 0;
}
header > h1 > a {
  font-family: "equity-caps", "Palatino Pro Black", "Palatino Bold", "Palatino",
    Georgia, "Century Schoolbook L", "Times New Roman", serif;
  margin: 0 !important;
  padding: 0 !important;
  color: #d5988e;
  font-size: calc(16px + 1vw);
  line-height: calc(16px + 1vw);
}
nav > ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
nav li {
  display: inline-block;
  list-style-type: none;
  margin: 0 0.3em;
  padding: 0;
  align-items: end;
}
nav a {
  font-family: "concourse-head", Futura, "URW Gothic L", Helvetica, Verdana,
    Arial, sans-serif;
  font-size: calc(14px + 0.4vw);
  line-height: calc(14px + 0.4vw);
  margin: 0;
  padding: 0;
  color: #d5988e;
  align-items: end;
}
header a:visited {
  color: #d5988e;
}
header a:hover {
  color: #eaddc6;
  text-decoration: none;
}
header a:focus {
  outline-color: #8ecbd5;
  outline-style: dashed;
  outline-width: 1px;
}
nav {
  display: inline-block;
  margin: 0;
  padding: 0;
  align-items: end;
}

p#article-ref {
  text-align: center;
  color: #d5988e;
  font-family: "concourse", Futura, "URW Gothic L", Helvetica, Verdana, Arial,
    sans-serif;
  font-variant: small-caps;
  font-weight: normal;
  font-size: calc(16px + 0.1vw);
  line-height: calc(16px + 0.3vw);
  margin: 0;
  padding: 0;
}

p#article-ref > a {
  color: #d5988e;
}

p#article-ref > a:hover {
  color: #eaddc6;
  text-decoration: none;
}

p#article-ref > a:hover {
  color: #eaddc6;
  text-decoration: none;
}

/********** MAIN **********/

/* Main layout restrictions */

main {
  margin: 0;
  padding: 2%;
  display: grid;
  justify-items: center;
}

article > header {
  margin: 0;
  padding: 0 max(5px, 8%);
}

main #article-text {
  max-width: 40em;
  justify-self: center;
}

article,
aside {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  justify-content: center;
}

aside {
  max-width: 32em;
}

/********** Images and figures **********/

article figure {
  width: 100%;
  margin: calc(8px + 0.4vw) 0;
}

figure img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

figcaption {
  text-align: right;
  color: #160a08;
  font-family: "concourse", Futura, "URW Gothic L", Helvetica, Verdana, Arial,
    sans-serif;
  font-variant: small-caps;
  font-size: calc(12px + 0.1vw);
  line-height: calc(12px + 0.3vw);
  margin: 0;
  padding: 0;
}

/********** Main Typography **********/

sup {
  vertical-align: baseline;
  position: relative;
  top: -0.35em;
}

.jump {
  font-family: "concourse", Futura, sans-serif;
  font-variant: small-caps;
  text-align: center;
}

article > header > h2 {
  font-family: "equity-head", "Palatino Pro Black", "Palatino Bold", "Palatino",
    Georgia, "Century Schoolbook L", "Times New Roman", serif;
  font-size: calc(24px + 3.5vw);
  line-height: calc(26px + 3.5vw);
  margin: 0;
  padding: 0;
  text-align: center;
}
h3 {
  font-family: "equity-head", Georgia, "Century Schoolbook L", "Times New Roman",
    serif;
  font-size: (18px + 1vw);
  line-height: (18px + 1.8vw);
}
h4,
h5,
h6 {
  font-family: "equity-head", Georgia, "Century Schoolbook L", "Times New Roman",
    serif;
}
p {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  font-size: calc(17px + 0.3vw);
  line-height: calc(20px + 0.8vw);
  margin: calc(8px + 0.4vw) 0;
  padding: 0 2%;
}

/* Magazine-style article ender graphic 
* Decided against it, but it's here in case  I change my mind

section#article-text > p:last-of-type::after {
  font-family: "concourse", Futura, "URW Gothic L", Helvetica, Verdana, Arial,
    sans-serif;
  content: "F";
  background: #d5988e;
  color: #fff;
  margin: 0.2vw;
  padding: calc(1px + 0.01vw) calc(4px + 0.1vw);
  border-radius: 50%;
  font-size: calc(8px + 0.3vw);
  line-height: calc(8px + 0.6vw);
  display: inline-block;
}

*/

p#byline {
  font-family: "concourse-head", Futura, "URW Gothic L", Helvetica, Verdana,
    Arial, sans-serif;
  font-size: calc(10px + 0.4vw);
  line-height: calc(10px + 1.1vw);

  display: flex;
  justify-content: center;
  margin: 1vw;
  padding: 0;
}

p#byline p {
  margin: 0;
  padding: 0;
}

p#byline span,
p#byline time {
  margin: 0;
  padding: 0 2px;
}

section#article-text > p:first-of-type,
#lede {
  font-size: calc(18px + 0.4vw);
  line-height: calc(18px + 1.1vw);
  background: rgb(213, 152, 142, 0.3);
  border-radius: 5px;
  width: 96%;
  padding: 2% 2%;
  margin: 0;
  overflow: hidden;
}

blockquote {
  padding: 0 4%;
  margin: calc(9px + 0.4vw) 10%;
  border-left: 2px solid #d5988e;
}
blockquote p {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  font-size: calc(15px + 0.3vw);
  line-height: calc(16px + 1vw);
}
main ol,
main ul {
  display: inline-block;
  padding: 0 4%;
  margin: 0 10%;
  font-weight: bold;
  border-left: 2px solid #d5988e;
}
article li {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  font-size: calc(15px + 0.3vw);
  line-height: calc(15px + 1vw);
  list-style-position: inside;
  font-weight: normal;
  padding: 0;
  margin: 0.5vw 0 0 0;
}
mark {
  background: rgb(213, 152, 142, 0.5);
}
.caps {
  font-family: equity-caps;
  font-variant: small-caps;
  font-style: normal;
}

/* Sidebar typography */

.sidebar {
  max-width: 32em;
  border: 2px solid #d5988e;
  padding: 8px 18px;
  justify-self: center;
  width: 90%;
}
.sidebar h3 {
  font-family: "concourse-head", Futura, "URW Gothic L", Helvetica, Verdana,
    Arial, sans-serif;
  font-size: calc(17px + 0.3vw);
  line-height: calc(17px + 1vw);
  background-color: #d5988e;
  padding: 10px 18px;
  margin: -8px 0 1em -18px;
  width: 100%;
}
.sidebar p {
  font-family: "concourse", Futura, "URW Gothic L", Helvetica, Verdana, Arial,
    sans-serif;
  font-size: calc(14px + 0.3vw);
  line-height: calc(14px + 1vw);
  margin: calc(14px + 0.3vw) 0;
  margin: 0.4em 0;
  padding: 0;
}
.sidebar p:first-of-type {
  margin-top: 0;
}
.sidebar a {
  font-family: "concourse", Futura, "URW Gothic L", Helvetica, Verdana, Arial,
    sans-serif;
  font-size: calc(14px + 0.3vw);
  line-height: calc(14px + 1vw);
  color: #245860;
  text-decoration: none;
}
.sidebar a:active {
  color: #d5988e;
  outline-color: #988ed5;
  outline-style: dashed;
  outline-width: 1px;
}
.sidebar a:visited {
  color: #d5988e;
}
.sidebar a:hover,
.sidebar a:focus {
  color: #245860;
  text-decoration: underline;
}
.sidebar a:focus {
  outline-color: #8ecbd5;
  outline-style: dashed;
  outline-width: 1px;
}

/********** Specifically a fix for the course listing page, where summary - details width jumping is a pain  **********/

article.doc #article-text > h3,
article.doc #article-text > details {
  width: 100%;
  max-width: 40em;
  box-sizing: border-box;
}

article.doc #article-text > details summary {
  width: 100%;
  box-sizing: border-box;
}

/********** References / details **********/

details {
  width: 95%;
}

details summary {
  justify-self: start;
}

#references {
  margin-top: calc(8px + 0.4vw);
  margin-bottom: calc(8px + 0.4vw);
  justify-content: start;
  width: 95%;
}
#references summary.references {
  font-family: "concourse-head", Futura, "URW Gothic L", Helvetica, Verdana,
    Arial, sans-serif;
  padding: 0;
  justify-self: start;
}

/* Removes the default border around the summary tag */

#references summary.references {
  outline: none;
  border-style: hidden;
}

#references p {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  font-size: calc(14px + 0.3vw);
  line-height: calc(14px + 1vw);
  padding: 0 0 0 30px;
  text-indent: -30px;
  white-space: pre;
  /* CSS 2.0 */
  white-space: pre-wrap;
  /* CSS 2.1 */
  white-space: pre-line;
  /* CSS 3.0 */
  white-space: -pre-wrap;
  /* Opera 4-6 */
  white-space: -o-pre-wrap;
  /* Opera 7 */
  white-space: -moz-pre-wrap;
  /* Mozilla */
  white-space: -hp-pre-wrap;
  /* HP Printers */
  word-wrap: break-word;
  /* IE 5+ */
}

/********** Links **********/

a {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  font-size: inherit;
  line-height: inherit;
  color: #245860;
  text-decoration: none;
}
a:active {
  color: #d5988e;
  outline-color: #988ed5;
  outline-style: dashed;
  outline-width: 1px;
}
a:visited {
  color: #d5988e;
}
a:hover,
a:focus {
  text-decoration: underline;
}
a:focus {
  outline-color: #8ecbd5;
  outline-style: dashed;
  outline-width: 1px;
}
/********** Accessibility **********/

mark::before,
mark::after {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
mark::before {
  content: " [highlight start] ";
}
mark::after {
  content: " [highlight end] ";
}

/********** for DOCUMENT pages only, like RESUME **********/

article.doc p {
  margin: 0.65em 0;
  line-height: 1.55;
}

article.doc li {
  margin: 0.35em 0;
  line-height: 1.45;
}

article.doc h3 {
  margin-top: 1.2em;
  margin-bottom: 0.45em;
  font-size: calc(20px + 0.6vw);
  letter-spacing: 0.02em;
  line-height: 1.25;
  scroll-margin-top: 70px; /* adjust to sticky header height for jumps */
}

article.doc h4 {
  margin: 1em 0 0.35em 0;
  font-size: calc(18px + 0.35vw);
  letter-spacing: 0.015em;
  line-height: 1.22;
}

article.doc h5 {
  font-size: calc(15px + 0.25vw);
  font-weight: bold;
  margin: 0.7em 0 0.25em 0;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0 2%;
}

/********** divider lines **********/

hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.3;
  width: 60%;
  margin: 2em auto;
  position: relative;
}

hr::after {
  content: "§";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e6d8c3; /* MUST change if site background color ever changed */
  padding: 0 0.5em;
  font-size: 0.9em;
  opacity: 0.9;
}

/********** footer **********/

footer {
  width: 100%;
  height: auto;
  background-color: rgb(22, 10, 8, 0.88);
  bottom: 0 !important;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px -3px 5px 0px rgba(65, 48, 45, 0.6);
}
footer img {
  margin: 0;
  padding: 2px;
  display: inline-block;
}
footer p {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  margin: 0;
  padding: 5px;
  font-size: calc(10px + 0.3vw);
  line-height: calc(12px + 0.3vw);
  font-style: normal;
  color: #eaddc6;
  display: inline-block;
}
footer a {
  font-family: "equity", Georgia, Bookman, "Century Schoolbook L",
    "Times New Roman", serif;
  margin: 0;
  padding: 0;
  color: #d5988e;
  font-size: calc(10px + 0.3vw);
  line-height: calc(12px + 0.3vw);
  text-decoration: none;
}
footer a:hover {
  color: #eaddc6;
  text-decoration: underline;
}
footer a:focus {
  outline-color: #8ecbd5;
  outline-style: dashed;
  outline-width: 1px;
  text-decoration: underline;
}
footer a:visited {
  color: #d5988e;
}
