html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
	scroll-behavior: smooth;
}
* { box-sizing: border-box; }

body {
    font-family: "Besley", serif;
    font-optical-sizing: auto;
    font-size: 100%;                /* 16px */
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background: #5D2142;
    color: #000000;
    width: 100%;
	-webkit-text-size-adjust: none;
}

p, h1, h2, h3, h4, figure, input {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    transition: color 0.4s ease-out;
    color: black;
    text-decoration: underline;
}
a:hover { color: #5D2142; }

a.light { color: white; }
a.light:hover { color: #fffec8; }

.red { color: red; }

/* Buttons */

button, input.submit {
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: "Besley", serif;
    width: auto;
    height: auto;
    font-family: "Besley", serif;
    position: relative;
    transition: background 0.5s ease;
}

button a { 
    text-decoration: none;
    display: block;
}

.red-btn {
    background: #5D2142;
    font-weight: 500;
}

.red-btn a, .red-btn:hover > a { color: white; }
.red-btn:hover { background: #41172e; }

.blue-btn {
    background: #D5CFE1;
    font-weight: 600;
}

.blue-btn a, .blue-btn:hover > a { color: #5D2142; }
.blue-btn:hover { background: #fff; }

.lg-btn { font-size: 1.5rem; }
.lg-btn a { padding: 5px 20px 10px 20px; }

.sm-btn { font-size: 1.125rem; }
.sm-btn a { padding: 5px 15px 8px 15px; }

button svg {
    transition: transform 0.5s ease;
    margin-left: 5px;
    position: relative;
    top: 7px;
    height: 30px;
    width: 30px;
}
button:hover svg { transform: translateX(5px); }

.blue-btn svg path { fill: #5D2142; }

.btn-group button { margin-right: 15px; }
.btn-group button:last-of-type { margin-right: 0; }

.pubs .misc .blue-btn { margin-bottom: 40px; }

.pubs .misc .blue-btn:last-of-type { margin-bottom: 0; }

/* Header */

header {
    background: #5D2142;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    position: relative;
    padding: 35px 0;
    position: fixed; 
    z-index: 999;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
}

header.small {
    padding: 10px 0;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 100%;
    color: #EDDFEF;
}

header.small h1 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

header a { 
    color: #EDDFEF; 
    text-shadow: none;
    transition: color 0.5s ease;
    text-decoration: none;
}

header a:hover, header a.current { color: #fffec8; }

header .hr-container {
    width: 233px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header.small .hr-container {
    width: 157px;
}

header hr {
    border: 0;
    border-top: 3px solid #EDDFEF;
    flex: 1;
    z-index: 1;
    margin-top: 0;
}

header.small hr {
    border-top: 1px solid #EDDFEF;
}

header hr.left { margin-right: 20px; }
header hr.right { margin-left: 20px; }

header.small hr.left { margin-right: 10px; }
header.small hr.right { margin-left: 10px; }

header .nib {
    background-image: url(../img/nib-white-rev.png);
    background-size: contain;
    background-repeat: no-repeat;
    height: 15px;
    width: 25px;
    position: relative;
    top: -3px;
    display: inline-block;
}

header.small .nib {
    height: 12px;
    width: 20px;
    top: -3px;
}

header nav ul {
    padding: 0;
    margin: 10px 0 0 0;
}

header.small nav ul {
    margin: 0;
}

header nav li {
    list-style-type: none;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.125rem;
    margin-right: 30px;
    color: #EDDFEF;
}

header.small nav li {
    font-size: 0.9rem;
    margin-right: 15px;
}

header nav li:last-of-type { margin-right: 0; }

header nav .close-icon {
    display: none;
}

header, header h1, header .hr-container, header hr, header .nib, header nav ul, 
header nav li {
    transition: all 0.3s ease-out;
}

.container {
    margin: 0 auto;
    max-width: 1100px;
}

/* Hero Section */

main {
    margin-top: 177px;
}

.hero {
    width: 100%;
    padding: 50px 5% 100px 5%;
    background: #D5CFE1;
    z-index: 2;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
}

.hero .name {
    color: #5D2142;
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 125%;
    margin: 0 0 50px 0;
}

.hero .roles {
    color: #000;
    font-size: 2rem;
    font-weight: 500;
    line-height: 150%;
    margin: 0 0 60px 0;
}

.hero .roles p { 
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 1s forwards;
}

.hero .roles p:nth-of-type(2) {
    animation-delay: 0.75s;
}

.hero .roles p:nth-of-type(3) {
    animation-delay: 1.5s;
}

.hero img {
    width: 95%;
    margin-left: 5%;
    height: 550px;
    object-fit: cover;
    border: 15px solid #eddfef;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Quote Section */

.quote {
    background: #EDDFEF;
    color: black;
    padding: 50px 10% 50px 15%;
    position: relative;
}

.quote::before, .quote::after {     /* top and bottom slants */
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background: #EDDFEF; 
    transform: skew(0, -1deg);  
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); 
    z-index: 1;
}

.quote::before { top: -25px; }
.quote::after  { bottom: -25px; }

.quote .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.quote .container::before {
    display: block;
    padding-left: 10px;
    content: "\201C";
    font-size: 9.375rem;
    position: absolute;
    left: -100px;
    top: -65px;
    color: #5D2142;
    z-index: 2;
}

.quote .lede {
    font-size: 2rem;
    font-weight: 600;
    line-height: 175%;
    z-index: 2;
    margin-bottom: 30px;
}

.quote .lede em {
    color: #5D2142;
    font-style: normal;
}

.quote .subquote {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 175%;
    z-index: 2;
    margin-bottom: 30px;
}

.quote cite {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 175%;
    margin-left: auto;          /* aligns element right when using flex */
    z-index: 2;
    margin-top: 0;
}

/* Publications Section */

.home-pubs {
    background: #5D2142;
    padding: 100px 5% 75px 5%;
    color: white;
}

.home-pubs .books {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 5%;
}

.home-pubs h2, .pubs h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.home-pubs figure {
    text-align: center;
    width: 400px;
}

.home-pubs img {
    width: 95%;
    height: 375px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
    overflow: hidden;
}
.home-pubs img:hover { transform: scale(1.02); }

.home-pubs .pubtitle, .pubs .pubtitle {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    line-height: 175%; 
}

.home-pubs .pubdesc {
    font-size: 1.25rem;
    font-weight: 400;
    height: 170px;
    line-height: 175%;    
}

/* Footer */

footer {
    background: #D5CFE1;
    padding: 50px 5%;
    color: #5D2142;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10%;
}

footer .info, footer nav {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

footer .info { flex: 2 }
footer .name {
    font-size: 2rem;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 25px;
}

footer .name a {
    color: #5D2142;
    transition: color 0.5s ease;
    text-decoration: none;
}

footer .name a:hover, footer nav a:hover { color: #9d798d; }
footer .icons a { text-decoration: none; }

footer svg {
    height: 35px;
    width: 35px;
    margin-right: 20px;
}

footer svg path {
    fill: #5D2142;
    transition: fill 0.5s ease;
}
footer svg:hover path { fill: #9d798d; }

footer .copyright { 
    margin-top: 15px; 
    font-style: italic;
}

footer .copyright p {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 200%;
}

footer nav {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 200%;
    flex: 1;
}

footer nav a {
    color: #5D2142;
    text-decoration: underline;
    transition: color 0.5s ease;
}

footer nav ul {
    padding: 0;
    margin: 0;
}
footer nav li { list-style-type: none; }

/* Secondary */

.secondary main {
    background: #D5CFE1;
    padding: 30px 0 0 0;
}

.secondary .title-container {
    background: #EDDFEF;
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
}

.secondary h2 {
    color: #5D2142;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 225%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.secondary .copy { padding: 30px 5% 75px 5%; }
.secondary .copy h3 {
    color: #5D2142;
    font-size: 2rem;
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 30px;
}

.secondary .copy p, .secondary .copy li {
    color: #000;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 175%;
}

.secondary .copy p {
    margin-bottom: 20px;
}

.container .hr-container, .pubs .essays .hr-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0 40px 0;
}

.container hr, .pubs .essays hr {
    border: 0;
    flex: 1;
    z-index: 1;
    margin-top: 0;
}

.container hr {
    border-top: 2px solid #5D2142;
}

.container hr.left, .pubs .essays hr.left { margin-right: 25px; }
.container hr.right, .pubs .essays hr.right { margin-left: 25px; }

.container .nib, .pubs .essays .nib {
    background-size: contain;
    background-repeat: no-repeat;
    height: 16px;
    width: 30px;
    position: relative;
    top: -5px;
    display: inline-block;
}

.container .nib {
    background-image: url(../img/nib-red-rev.png);
}

/* About */

.about figure, .pubs figure { margin-top: 10px; }
.about img, .pubs img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
}

.about figure.photo1 {
    float: right;
    margin-left: 5%;
    width: 30%;
}

.about figure.photo2 {
    float: left;
    margin-right: 5%;
    width: 35%;
}

.about figure.photo1 img { max-height: 425px; }
.about figure.photo2 img { max-height: 255px; }

.photos {
    background: #5D2142;
    padding: 100px 5% 75px 5%;
    color: white;
}

.photos .container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: relative;
    gap: 5%;
    flex: 1;
}

.photos figure { width: 47.5%; }
.photos img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top center;
}

.photos figcaption {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 10px;
    font-style: italic;
}

/* Publications */

.pubs figure.photo1 {
    float: right;
    margin-left: 5%;
    width: 25%;
    margin-bottom: 10px;
}

.pubs figure.photo1 img { max-height: 400px; }
.pubs p.release { font-style: italic; }

.pubs .copy blockquote, .pubs .essays blockquote {
    margin: 0;
    font-size: 1.25rem;
    line-height: 175%;
}

.pubs .copy cite, .pubs .essays cite {
    text-align: right;
    font-size: 1.25rem;
    line-height: 175%;
    display: block;
    margin: 20px auto 30px auto;
}

.pubs .essays {
    background: #5D2142;
    padding: 75px 5% 50px 5%;
    color: white;
}

.pubs .essays h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    line-height: 150%;
    margin-bottom: 30px;
}

.pubs .essays h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 150%;
}

.pubs .essays p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 175%;
    margin-bottom: 20px;
}

.pubs .essays cite { margin-top: 30px; }

.pubs .essays hr {
    border-top: 2px solid #fff;
}

.pubs .essays .nib {
    background-image: url(../img/nib-white-rev.png);
}

.pubs .essays .misc h3, 
.pubs .essays .misc p {
    margin-bottom: 30px;
}

.pubs .essays .misc p.essaytitle {
    margin-bottom: 0;
    font-weight: bold;
}

/* Services */

.services .copy ul {
    margin: 0 0 25px 0;
    padding-left: 55px;
}

.services .copy li {
    list-style: none;
    list-style-position: inside;
    margin-bottom: 15px;
    text-indent: -41px;
}

.services .copy li::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 13px;
    background-image: url('../img/nib-red-rev.png');
    background-position: top left;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
}

.services button {
    margin-top: 15px;
}

.services figure.photo1 {
    float: right;
    margin: 10px 0 10px 10%;
    width: 40%;
}

.services figure.photo1 img {
    max-width: 100%;
}

.services .photos figure:nth-of-type(2) img {
    object-position: top left;
}

/* Contact */

form p {
    font-size: 1.25rem;
    font-weight: 400;
}

.secondary .copy form p:nth-of-type(3) {
    margin-bottom: 10px;
}

input.textfield, input.submit, textarea {
    font-family: "Besley", serif;
}

input.textfield, textarea {
    padding: 5px;
    width: 100%;
    font-size: 1rem;
    max-width: 400px;
}

label {
    font-size: 1.125rem;
    display: block;
    margin-bottom: 5px;
}

.note {
    font-size: 1rem !important;
    font-style: italic;
}

input.checkbox {
    margin-right: 10px;
    height: 20px;
    width: 20px;
    position: relative;
    bottom: 2px;
	vertical-align: middle;
}

button.submit {
    color: white;
    padding: 5px 20px 8px 20px;
    border: none;
    transition: background 0.5s ease;
}

.contact .copy .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 5%;
}

.contact form {
    flex: 50%;
}

.contact figure {
    margin-top: 38px;
    flex: 50%;
}

.contact figure img {
    width: 100%;
    max-height: 635px;
    object-fit: cover;
    object-position: top center;
}

.thanks figure {
    margin-top: 10px;
}

/* Pop-Up */

.open-popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
  
.popup {
    opacity: 0;
    background-color: rgb(255, 255, 255, 0.7);
    padding: 10px;
    position: absolute;
    text-align: center;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -100px;
    white-space: nowrap;
    border-radius: 25px;
}
  
.popup::after {            /* Popup Arrow */
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 15px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    opacity: 0.7;
    margin-top: -1px;
}
  
.popup.show {
    animation: fadeIn 1s forwards;
}

.popup.fade-out {
    animation: fadeOut 1s forwards;
}
  
@keyframes fadeIn {
    from {opacity: 0;} to {opacity: 1;}
}

@keyframes fadeOut {
    from {opacity: 1;} to {opacity: 0;}
}

.open-popup .btn-group button {
    margin-right: 10px;
}

.open-popup .btn-group button:last-of-type {
    margin-right: 0;
}

.xsm-btn { font-size: 1rem; }
.xsm-btn a { padding: 5px 10px 8px 10px; }