/* ==========================================================================
   Fonts
   Note: Crimson Pro's variable-font build renders broken in this project,
   so we load the static weights instead. Don't switch back without testing.
   ========================================================================== */

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/crimson-pro-v28-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  src: url('/assets/fonts/crimson-pro-v28-latin-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/crimson-pro-v28-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 600;
  src: url('/assets/fonts/crimson-pro-v28-latin-600italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 800;
  src: url('/assets/fonts/crimson-pro-v28-latin-800.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 800;
  src: url('/assets/fonts/crimson-pro-v28-latin-800italic.woff2') format('woff2');
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #F9EBDB;
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', Times, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 130%;
}

a {
  color: unset;
  text-decoration: underline;
  text-decoration-color: #AC04BC;
  text-decoration-thickness: 10%;
  text-underline-offset: 16%;
  transition: all ease-in-out 0.1s;
}

a:hover {
  color: #AC04BC;
  text-decoration-thickness: 15%;
}

a:visited {
  text-decoration-color: #868686;
}

sup {
  position: relative;
  top: -0.5em;
  vertical-align: baseline;
  font-size: 0.7em;
  line-height: 0;
}

.footnote-ref a {
  color: #AC04BC;
  text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.main-content {
  position: relative;
  margin: 2rem auto;
  max-width: 45rem;
  padding: 1rem 2rem 0 2rem;
  border-left: solid 2px #868686;
}

/* ==========================================================================
   Construction banner
   ========================================================================== */

.construction-banner-container {
  margin: 0;
  padding: 0;
  background: repeating-linear-gradient(-45deg, #a402b3 0 20px, #AC04BC 0 40px);
  text-align: center;
}

.construction-banner {
  padding: 0.2em 1em;
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   Navigation (top nav + footer nav share the same inline-list pattern,
   only the separator glyph differs)
   ========================================================================== */

.top-navigation,
.footer-nav {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-navigation ul,
.footer-nav ul {
  margin: 0;
  padding: 0;
}

.top-navigation ul li,
.footer-nav ul li {
  display: inline;
  list-style: none;
}

.top-navigation ul li:last-child::after,
.footer-nav ul li:last-child::after {
  content: none;
}

.top-navigation {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.top-navigation ul li::after {
  content: " \2022"; /* bullet */
}

.footer-nav ul li::after {
  content: " \00b7"; /* middle dot */
}

.footer-copyright {
  padding-top: 0.7rem;
  color: #868686;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.symbol-logo {
  display: none;
}

.aside-logo-container {
  position: absolute;
  top: 5.4rem;
  left: 0;
  transform: translateX(calc(-100% - 2rem));
}

.aside-logo {
  width: clamp(40px, 8vw, 64px);
  height: clamp(40px, 8vw, 64px);
  fill: #AC04BC;
}

/* ==========================================================================
   Bio header (homepage)
   ========================================================================== */

.bio-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bio-name {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  word-break: break-word;
}

.bio-text-hello {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.bio-text-italic {
  font-style: italic;
}

/* ==========================================================================
   Bordered text blocks (bio description + generic page body share the
   same top/bottom-rule "framed" look, just at different type scales)
   ========================================================================== */

.bio-description,
.page-body {
  margin: 1em 0;
  padding: 0.5em 0;
  border: solid 2px #868686;
  border-right: none;
  border-left: none;
}

.bio-description {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.bio-description p {
  margin: 0 0 0.7rem 0;
}

.page-body {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.page-body p {
  margin: 0 0 0.5em 0;
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body h2 {
  margin: 1em 0 0.3em 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.page-body h3 {
  margin: 0.6em 0 0.3em 0;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
}

.page-body ul {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

.page-body li {
  margin-bottom: 0.5em;
}

.page-body li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Page heading (non-home pages)
   ========================================================================== */

.page-heading {
  margin: 0.5em 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  * {
    font-size: 100%;
  }

  .main-content {
    margin: 1rem 0;
    padding: 0.75rem 1rem 0 1rem;
    border-left: none;
  }

  .top-navigation {
    margin-bottom: 0.5rem;
  }

  .aside-logo-container {
    position: static;
    margin: 2rem 0 0 0;
    transform: none;
  }

  .bio-header {
    display: block;
  }

  .bio-description {
    line-height: 0.8;
    margin: 1.5rem auto;
  }

  .bio-name {
    line-height: 0.95;
  }

  .footer-copyright {
    font-size: 1rem;
  }

  .construction-banner {
    font-size: 80%;
  }
}