/* --- static/css/normalize.css --- */
/* Document
 * ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
 * ========================================================================== */

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Edge, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
 * ========================================================================== */

/**
 * Remove the margin on nested lists in Chrome, Edge, IE, and Safari.
 */

dl dl,
dl ol,
dl ul,
ol dl,
ul dl {
  margin: 0;
}

/**
 * Remove the margin on nested lists in Edge 18- and IE.
 */

ol ol,
ol ul,
ul ol,
ul ul {
  margin: 0;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Correct the inheritance of border color in Firefox.
 * 3. Show the overflow in Edge 18- and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  color: inherit; /* 2 */
  height: 0; /* 1 */
  overflow: visible; /* 3 */
}

/**
 * Add the correct display in IE.
 */

main {
  display: block;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
 * ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Add the correct text decoration in Edge 18-, IE, and Safari.
 */

abbr[title] {
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/* Embedded content
 * ========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images within links in IE 10-.
 */

img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Tabular data
 * ========================================================================== */

/**
 * 1. Correct table border color inheritance in all Chrome, Edge, and Safari.
 * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
 */

table {
  border-color: inherit; /* 1 */
  text-indent: 0; /* 2 */
}

/* Forms
 * ========================================================================== */

/**
 * Remove the margin on controls in Safari.
 */

button,
input,
select {
  margin: 0;
}

/**
 * 1. Show the overflow in IE.
 * 2. Remove the inheritance of text transform in Edge 18-, Firefox, and IE.
 */

button {
  overflow: visible; /* 1 */
  text-transform: none; /* 2 */
}

/**
 * Correct the inability to style buttons in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Show the overflow in Edge 18- and IE.
 */

input {
  overflow: visible;
}

/**
 * 1. Correct the text wrapping in Edge 18- and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in Edge 18- and IE.
 * 2. Add the correct vertical alignment in Chrome, Edge, and Firefox.
 */

progress {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Remove the inheritance of text transform in Firefox.
 */

select {
  text-transform: none;
}

/**
 * 1. Remove the margin in Firefox and Safari.
 * 2. Remove the default vertical scrollbar in IE.
 */

textarea {
  margin: 0; /* 1 */
  overflow: auto; /* 2 */
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * 1. Correct the odd appearance in Chrome, Edge, and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Safari.
 */

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
 * Correct the text style of placeholders in Chrome, Edge, and Safari.
 */

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

/**
 * Remove the inner padding in Chrome, Edge, and Safari on macOS.
 */

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style upload buttons in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/**
 * Remove the inner border and padding of focus outlines in Firefox.
 */

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus outline styles unset by the previous rule in Firefox.
 */

:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Remove the additional :invalid styles in Firefox.
 */

:-moz-ui-invalid {
  box-shadow: none;
}

/* Interactive
 * ========================================================================== */

/*
 * Add the correct display in Edge 18- and IE.
 */

details {
  display: block;
}

/*
 * Add the correct styles in Edge 18-, IE, and Safari.
 */

dialog {
  background-color: white;
  border: solid;
  color: black;
  display: block;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content;
  left: 0;
  margin: auto;
  padding: 1em;
  position: absolute;
  right: 0;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
}

dialog:not([open]) {
  display: none;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Scripting
 * ========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */

template {
  display: none;
}

/* User interaction
 * ========================================================================== */

/**
 * Add the correct display in IE 10-.
 */

[hidden] {
  display: none;
}


/* --- static/css/opensans-condbold.css --- */
@font-face {
  font-family: "open_sans_condensedbold";
  src: url("/static/fonts/OpenSans-CondBold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* --- static/css/base.css --- */
/* VARIABLES */
:root {
  /* Fonts */
  --open-sans-condensed: open_sans_condensedbold, sans-serif;
  --open-sans: "Open Sans", sans-serif;

  /* Relative Sizes */
  --4px: 0.223rem;
  --5px: 0.278rem;
  --6px: 0.334rem;
  --8px: 0.445rem;
  --10px: 0.556rem;
  --12px: 0.667rem;
  --14px: 0.778rem;
  --15px: 0.834rem;
  --16px: 0.889rem;
  --18px: 1rem;
  --20px: 1.112rem;
  --22px: 1.223rem;
  --24px: 1.334rem;
  --26px: 1.445rem;
  --30px: 1.667rem;
  --32px: 1.778rem;
  --36px: 2rem;
  --38px: 2.112rem;
  --40px: 2.223rem;
  --42px: 2.334rem;
  --44px: 2.445rem;
  --46px: 2.556rem;
  --50px: 2.778rem;

  /* Colors */
  --black: #000000;
  --white: #ffffff;
  --red: #eb0000;
  --red-light: #ff0002;
  --grey-light: #fafafb;
  --grey-light-alt: #f6f6f6;
  --grey-blue: #828b9f;
  --grey-dark: #101827;

  /* Spacing */
  --top-bottom-padding: var(--50px);
  --side-padding: var(--50px);
}

/* DEFAULTS + RESETS */
* {
  position: relative;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--open-sans);
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.445;
  color: var(--black);
}

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

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: open_sans_condensedbold, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
}

h1 {
  margin-bottom: var(--16px);
  font-size: var(--38px);
  line-height: var(--46px);
}

h2 {
  margin-bottom: var(--22px);
  font-size: var(--36px);
  line-height: var(--44px);
}

h3 {
  margin-bottom: var(--24px);
  font-size: var(--18px);
  line-height: var(--26px);
}

h4 {
  margin-bottom: var(--15px);
  font-size: var(--16px);
  line-height: var(--22px);
}

h5 {
  margin-bottom: var(--12px);
  font-size: var(--14px);
  line-height: var(--22px);
}

h6 {
  margin-bottom: var(--12px);
  font-size: var(--12px);
  line-height: var(--20px);
}

p {
  margin: 0 0 var(--12px) 0;
}

small {
  font-size: var(--10px);
}

.centered {
  text-align: center;
}

/* TEXT LINKS */
a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 400;
  color: var(--red);
}

/* Media queries */
@media screen and (max-width: 1100px) {
  :root {
    --side-padding: var(--32px);
    --top-bottom-padding: var(--42px);
  }
}

@media screen and (max-width: 940px) {
  :root {
    --side-padding: var(--24px);
    --top-bottom-padding: var(--32px);
  }
}

@media screen and (max-width: 320px) {
  html {
    font-size: 16px;
  }
}


/* --- static/css/components/inner-column.css --- */
.inner-column {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}


/* --- static/css/components/button.css --- */
/* Base button styles */
.btn {
  padding: 17px 14px 18px;
  text-decoration: none;
  font-family: var(--open-sans-condensed);
  text-transform: uppercase;
  font-size: var(--18px);
  line-height: var(--18px);
  text-align: center;
  color: var(--black);
  border: 1px solid var(--red-light);
  border-radius: 4px;
  background-color: var(--white);
  transition: color 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  color: var(--red);
  box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.08);
}

/* Red button styles */
.btn--red {
  color: var(--white);
  background-color: var(--red-light);
}

.btn--red:hover {
  color: inherit;
}

/* Bowtie button styles */
.btn--bowtie {
  align-items: center;
  justify-content: center;
  display: flex;
}

.btn--bowtie:before {
  position: relative;
  content: "";
  margin-right: 10px;
  width: 24px;
  height: 9px;
  display: inline-block;
  background: url("/static/images/icon-bowtie.svg") no-repeat 0 0;
  background-size: 24px 9px;
  transition: transform 0.2s ease;
}

.btn--bowtie.btn--red:before {
  filter: brightness(0) saturate(100%) invert(1);
}

.btn--bowtie:hover:before {
  transform: scale3d(1.08, 1.08, 1) rotate(-2deg);
}

/* Full-width button styles */
.btn--full-width {
  width: 100%;
}

/* Buttons within <p> tags */
p .btn,
.btn-group {
  margin-top: var(--32px);
}

/* Two buttons side-by-side */
.btn-group {
  gap: var(--24px);
  display: flex;
}

.btn-group .btn {
  flex: 1;
}

/* Media queries */
@media screen and (max-width: 1100px) {
  .btn-group {
    flex-direction: column;
  }
}


/* --- static/css/components/arrow-link.css --- */
.arrow-link {
  text-decoration: none;
  font-family: var(--open-sans-condensed);
  text-transform: uppercase;
  font-size: var(--16px);
  line-height: var(--24px);
  color: var(--red);
}

.arrow-link:after {
  position: relative;
  content: "";
  margin-left: 7px;
  width: 14px;
  height: 12px;
  display: inline-block;
  background: url("/static/images/icon-arrow.svg") no-repeat 0 0;
  background-size: 14px 12px;
  transition: transform 0.15s ease;
}

.arrow-link:hover:after {
  transform: translate3d(2px, 0, 0);
}

/* Larger arrow link */
.arrow-link--large {
  font-size: var(--18px);
  line-height: var(--26px);
}


/* --- static/css/components/header.css --- */
#header {
  padding: 20px 0;
}

#header .inner-column {
  justify-content: space-between;
  gap: 25px;
  display: flex;
}

#header .logo {
  flex-shrink: 0;
  display: flex;
}

#header .logo img {
  top: -4px;
}

#nav ul {
  margin: 0;
  padding: 0;
  height: 100%;
  list-style-type: none;
  gap: 10px;
  align-items: center;
  display: flex;
}

#nav ul li {
  margin: 0;
  padding: 0;
}

#nav ul li a {
  padding: 17px 15px 18px;
  text-decoration: none;
  font-family: var(--open-sans-condensed);
  text-transform: uppercase;
  font-size: var(--18px);
  line-height: var(--18px);
  color: var(--black);
  display: block;
  transition: color 0.15s ease;
}

#nav ul li a:hover {
  color: var(--red);
}

/* Media queries */
@media screen and (max-width: 940px) {
  #nav {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  #header .logo {
    max-width: 44%;
  }

  #header .logo img {
    top: -2px;
  }
}


/* --- static/css/components/footer.css --- */
#footer {
  padding: var(--24px) 0;
  font-size: var(--16px);
  text-align: center;
  background: var(--grey-light-alt);
}

#footer p {
  margin: 0 0 var(--6px);
}

#footer p.attribution {
  margin-bottom: 0;
  font-size: var(--10px);
  /* font-style: italic; */
}

#footer p.attribution a {
  font-weight: 300;
  color: var(--black);
  text-decoration: underline;
}

#footer p.attribution a:hover {
  color: var(--red);
}


/* --- static/css/components/two-columns.css --- */
.two-columns {
  grid-template-columns: 1fr 1fr;
  gap: var(--32px);
  display: grid;
}

.two-column--content {
  z-index: 20;
  align-self: center;
}

.two-column--image,
.two-column--bg-image {
  z-index: 10;
}

.two-column--image img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* Keyframes for subtle bowtie wiggle */
@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Bowtie background image */
.two-column--bg-image img {
  position: absolute;
  top: -6%;
  left: -8.5%;
  width: 117%;
  max-width: 672px;
  pointer-events: none;
  display: block;
  /* transform: rotate(-2deg); */
  transform-origin: center;
  animation: wiggle 1s ease-in-out 1;
  /* animation-fill-mode: forwards; */
}

/* Media queries */
@media screen and (max-width: 1100px) {
  .two-column--bg-image img {
    top: 0;
    left: -5%;
    width: 110%;
  }
}

@media screen and (max-width: 940px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .two-column--bg-image {
    display: none;
  }
}


/* --- static/css/components/book-cards.css --- */
.book-cards {
  margin: var(--24px) 0 0;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  display: grid;
}

.book-card {
  border: 1px solid var(--grey-blue);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  font-weight: 300;
  color: var(--black);
  flex-direction: column;
  display: flex;
  background-color: var(--white);
  transition: box-shadow 0.2s ease;
}

.book-card--figure {
  margin: 0 0 var(--8px);
  padding: 0;
  background-color: var(--grey-light);
}

.book-card--figure img {
  width: 71%;
  display: block;
}

.book-card--tagline {
  margin: 0 var(--12px) var(--5px);
  text-transform: uppercase;
  font-size: var(--8px);
  font-weight: 400;
}

.book-card--title {
  margin: 0 var(--12px) var(--12px);
}

.book-card .arrow-link {
  margin: auto var(--12px) var(--18px);
}

.book-card:hover {
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

.book-card:hover .arrow-link:after {
  transform: translate3d(2px, 0, 0);
}

/* Media queries */
@media screen and (max-width: 480px) {
  .book-cards {
    grid-template-columns: 1fr;
  }
}


/* --- static/css/components/table.css --- */
.table {
  padding-top: var(--8px);
  width: 100%;
  display: table;
}

.table--row {
  display: table-row;
}

.table--cell {
  padding: var(--24px) 0;
  border-bottom: 1px solid var(--grey-blue);
  display: table-cell;
}

.table--row:first-child .table--cell {
  padding-top: 0;
}

.table--row:last-child .table--cell {
  padding-bottom: 0;
  border-bottom: none;
}

.table--cell:not(:last-child) {
  padding-right: var(--32px);
}

.table--cell--no-shrink {
  white-space: nowrap;
}

.table h1,
.table h2,
.table h3,
.table h4,
.table h5,
.table h6 {
  margin: 0;
}

.table a:not(.arrow-link) {
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.table a:hover {
  color: var(--red);
}

/* Media queries */
@media screen and (max-width: 940px) {
  .table {
    display: block;
  }

  .table--row {
    padding: var(--24px) 0;
    border-bottom: 1px solid var(--grey-blue);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--14px);
    display: grid;
  }

  .table--row:first-child {
    padding-top: 0;
  }

  .table--row:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .table--cell {
    padding: 0;
    border-bottom: none;
    display: flex;
  }

  .table--cell:not(:last-child) {
    padding-right: 0;
  }

  .table--cell:first-child {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 480px) {
  .table--row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: var(--4px);
  }

  .table--cell {
    grid-column: 1;
    grid-row: initial;
  }
}


/* --- static/css/homepage.css --- */
/* HERO */
.hero-section {
  padding: var(--top-bottom-padding) 0;
  background-color: var(--grey-light);
}

.hero-section .two-column--content p {
  padding-right: var(--32px);
}

/* ABOUT SECTION */
.about-section {
  padding: var(--top-bottom-padding) 0;
}

/* PUBLICATIONS & NEWS SECTION */
.publications-news-section {
  padding: var(--top-bottom-padding) 0;
  background-color: var(--grey-light);
}

/* SPEAKER SECTION */
.speaking-section {
  padding: var(--top-bottom-padding) 0;
  color: var(--white);
  overflow: hidden;
  background-color: var(--grey-dark);
}

/* Decorative background bowtie image */
.speaking-section:before,
.speaking-section:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  background: url("/static/images/bowtie-background.svg") no-repeat 0 0;
  background-size: contain;
}

/* Flip the second background bowtie image so it appears on the right side */
.speaking-section:after {
  transform: scaleX(-1);
}

.speaking-section h1,
.speaking-section h2,
.speaking-section h3,
.speaking-section h4,
.speaking-section h5,
.speaking-section h6 {
  color: var(--white);
}

/* Media queries */
@media screen and (max-width: 940px) {
  .speaking-section:before,
  .speaking-section:after {
    display: none;
  }
}


