* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  min-height: 100vh;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

body.soul {
  background-color: #4E31E1;
}

body.misc {
  background-color: #1f903d;
}

/* Navigation */
nav {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 100;
}

.nav-brand {
  display: inline-block;
  margin-bottom: 32px;
  text-decoration: none;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
}

.nav-brand .caret {
  font-size: 14px;
  margin-right: 1px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.1;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
}

.nav-links a .caret {
  display: none;
}

.nav-links a.active .caret {
  display: inline;
}

.nav-links a.muted {
  color: rgba(0, 0, 0, 0.26);
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Soul and misc page overrides */
body.soul .nav-brand,
body.misc .nav-brand {
  background-color: #fff;
  padding: 1px 2px;
  margin-left: -2px;
}

body.soul .nav-links a.active,
body.misc .nav-links a.active {
  color: #fff;
}

body.soul .time-display,
body.misc .time-display {
  color: rgba(255, 255, 255, 0.38);
}

/* Main content */
main {
  margin-left: 280px;
  padding: 32px;
  padding-bottom: 80px;
}

/* About page */
.about-content {
  display: flex;
  gap: 120px;
  align-items: flex-start;
  margin-top: 200px;
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
}

.about-text p {
  margin-bottom: 8px;
}

.about-text a {
  color: #002FA7;
  font-weight: 550;
}

.about-image {
  flex-shrink: 0;
}

.about-image img {
  max-width: 360px;
  height: auto;
}

.image-caption {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* Home page */
.home-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.home-media {
  text-align: center;
}

.home-media img {
  max-width: 55px;
  height: auto;
}

/* Soul page */
.soul-content {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin-top: 200px;
}

.soul-statement {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 0;
}

.soul-statement p {
  margin-bottom: 16px;
}

.soul-link a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
}

.soul-link {
  margin: 0;
}

/* Misc page */
.misc-content {
  color: #fff;
  margin-top: 200px;
  display: flex;
  gap: 120px;
  align-items: flex-start;
}

.misc-text {
  flex: 1;
  max-width: 600px;
}

.misc-text h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
}

.misc-text h3 {
  font-size: 16px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
}

.misc-text p {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.misc-text a {
  color: #fff;
  text-decoration: underline;
}

.reading-list {
  list-style: none;
  font-size: 16px;
  line-height: 1.4;
}

.reading-list a {
  color: #fff;
}

.misc-text .updated-date {
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.6;
}

.misc-image {
  flex-shrink: 0;
}

.misc-image img {
  max-width: 200px;
  height: auto;
}

.misc-image .image-caption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 8px;
  display: block;
}

/* Investors page */
.investors-content {
  margin-top: 200px;
  max-width: 600px;
}

.investors-text {
  font-size: 16px;
  line-height: 1.6;
}

.password-field {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  width: 180px;
  outline: none;
}

.password-field::placeholder {
  color: inherit;
  opacity: 0.4;
}

.auth-status {
  margin-left: 1em;
  font-size: 0.7em;
  opacity: 0.5;
}

/* Time display */
.time-display {
  position: fixed;
  bottom: 24px;
  left: 32px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.38);
}

/* Tablet styles */
@media (max-width: 1024px) {
  main {
    margin-left: 160px;
  }

  .about-content {
    gap: 60px;
  }

  .misc-content {
    gap: 60px;
  }

  .about-image img {
    max-width: 280px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    position: relative;
    top: auto;
    left: auto;
    padding: 24px;
  }

  .nav-brand {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 12px;
  }

  .nav-brand .caret {
    font-size: 12px;
  }

  .nav-links {
    flex-direction: row;
    gap: 24px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .nav-links a .caret {
    display: none;
  }

  .nav-links a.active .caret {
    display: none;
  }

  main {
    margin-left: 0;
    padding: 24px;
    padding-bottom: 80px;
  }

  .home-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
  }

  .home-media img {
    max-width: 40px;
  }

  .time-display {
    left: 24px;
    bottom: 16px;
    font-size: 10px;
  }

  .about-content {
    flex-direction: column;
    margin-top: 16px;
  }

  .about-text {
    font-size: 14px;
  }

  .about-image {
    margin-top: 24px;
  }

  .about-image img {
    max-width: 100%;
    width: 100%;
  }

  .image-caption {
    font-size: 10px;
  }

  .soul-content {
    margin-top: 16px;
  }

  .soul-statement {
    font-size: 14px;
  }

  .soul-link a {
    font-size: 14px;
  }

  .misc-content {
    margin-top: 16px;
    flex-direction: column;
  }

  .investors-content {
    margin-top: 16px;
  }

  .investors-text {
    font-size: 14px;
  }

  .misc-text h2,
  .misc-text h3 {
    font-size: 14px;
  }

  .misc-text p,
  .reading-list {
    font-size: 14px;
  }

  .misc-image img {
    max-width: 140px;
  }

  /* Soul/misc nav overrides for mobile */
  body.soul .nav-brand,
  body.misc .nav-brand {
    margin-left: 0;
  }

  body.soul .nav-links a,
  body.misc .nav-links a {
    color: #fff;
  }

  body.soul .nav-links a.muted,
  body.misc .nav-links a.muted {
    opacity: 0.4;
  }
}
