@import url('https://fonts.googleapis.com/css2?family=Mate');

/* Colors */
:root {
  --accent: #696969;
  --highlight: #006699;
  --dark: #4d4d4d;
  --light: #EEEEEE;
}

/* Base typography. Keep the established 500/600 weights and browser bold synthesis. */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mate", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  background-color: var(--light);
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--dark);
}

p,
li,
.collapsible-label {
  font-size: 22px;
  color: var(--dark);
}

p,
a,
li,
.collapsible-label {
  font-weight: 500;
  margin: 0;
}

b,
strong {
  font-weight: bolder;
}

a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 72px;
  text-align: center;
  padding-bottom: 18px;
}

h2 {
  font-size: 36px;
  margin-bottom: 5px;
}

h3 {
  font-size: 24px;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 0;
  animation: slideUp 2s;
}

h3 img {
  width: 18px;
  padding-right: 10px;
}

ul {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Page layout */
.header,
.main {
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
}

.header {
  margin-top: 100px;
  position: relative;
}

.within {
  padding-left: 29px;
  animation: slideUp 2s;
}

.headshot {
  float: left;
  width: 180px;
  height: auto;
  margin: 0 10px;
}

.free-time {
  margin-top: 29px;
}

/* Fixed navigation */
.topnav_holder {
  background-color: var(--light);
  overflow: hidden;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 8vw;
  box-sizing: border-box;
}

.topnav {
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.topnav a {
  color: var(--accent);
  text-align: center;
  padding: 16px 18px 10px;
  font-size: 22px;
  white-space: nowrap;
}

.topnav a:hover {
  color: var(--dark);
  text-decoration: underline;
}

/* Existing expandable sections and their JavaScript height animation */
.collapsible {
  background-color: var(--light);
  color: black;
  cursor: pointer;
  padding: 0;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 24px;
  margin-bottom: 0;
  text-decoration: underline;
}

.collapsible-label {
  display: block;
  font-family: "Mate", serif;
}

.collapsible:hover {
  background-color: white;
}

.content {
  padding: 0;
  margin-top: 0;
  max-height: 0;
  overflow: auto;
  transition: max-height 0.2s ease-out;
  background-color: var(--light);
}

@keyframes slideUp {
  from {
    margin-top: 100%;
  }

  to {
    margin-top: 0;
  }
}

/* Existing responsive adjustments */
@media screen and (max-width: 900px) {
  .header h1 {
    font-size: 8vw;
  }
}

@media screen and (max-width: 600px) {
  .topnav_holder {
    padding: 0;
  }

  .topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  p,
  .collapsible-label {
    font-size: 4vw;
  }
}