* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  background: #ffffff;
  color: #000000;
  line-height: 1.5;
  overflow-x: hidden; /* Prevent overflow scrolling */
}

body,
.page-body {
  margin: 0;
  padding: 0;
  color: #666;
}

/* Typography resets */
h1,
h2,
h3,
p,
a,
strong,
span {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

a {
  text-decoration: underline;
  color: #000;
}

strong {
  font-weight: bold;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #000;
  padding: 16px;
  box-sizing: border-box;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.header__branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__avatar-link {
  display: inline-block;
}

.header__avatar {
  width: 24px;
  height: 24px;
  border-radius: 0;
}

.header__title-container {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.header__title-desktop {
  display: inline;
}

.header__title-mobile {
  display: none;
}

/* Show mobile title on mobile, hide desktop title */
@media (max-width: 700px) {
  .header__title-desktop {
    display: none;
  }
  .header__title-mobile {
    display: inline;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav-items {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.header__menu-toggle {
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  padding: 10px;
  font-weight: 500;
  display: none;
  position: relative;
}

.header__menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.header__menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.header__menu-close {
  background: none;
  border: 1px solid #000;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1101;
  padding: 8px;
  cursor: pointer;
}

.header__menu-items {
  list-style: none;
  padding: 80px 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header__menu-items li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}
.header__menu-items.active li {
  opacity: 1;
  transform: translateY(0);
}
.header__menu-items li:nth-child(1) {
  transition-delay: 0.1s;
}
.header__menu-items li:nth-child(2) {
  transition-delay: 0.2s;
}
.header__menu-items li:nth-child(3) {
  transition-delay: 0.3s;
}
.header__menu-items li:nth-child(4) {
  transition-delay: 0.4s;
}
.header__menu-items li:nth-child(5) {
  transition-delay: 0.5s;
}

.header__menu-items a {
  display: block;
  font-size: 24px;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
}

@media (max-width: 700px) {
  .header__nav-items {
    display: none;
  }

  .header__menu-toggle {
    display: block;
  }

  .header__menu-overlay {
    display: block;
  }
}

/* Accessibility */
.header__menu-items a:focus,
.header__menu-toggle:focus,
.header__menu-close:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Main Content */
.main-content {
  padding-top: 80px;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.content-section {
  display: flex;
  gap: 20px;
  padding: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.content-section__aside {
  width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  white-space: nowrap;
  flex-shrink: 0;
  color: #000;
}

@media (max-width: 700px) {
  .content-section__aside {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.content-section__title {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.content-section__link {
  font-size: 10px;
  opacity: 0.5;
  text-decoration: underline;
  color: #000;
  font-weight: 400;
}

.content-section__content {
  flex: 1;
  min-width: 0; /* Important for flex items to shrink below their content width */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-section__content a {
  text-decoration: none;
}

/* Intro */
.content-section--intro .intro-text {
  overflow: hidden;
}

.intro-text__image {
  float: right;
  width: 200px;
  margin: 0 0 20px 20px;
  border-radius: 5px;
}

@media (max-width: 700px) {
  .intro-text__image {
    width: 30vw;
    max-width: 100px;
  }
}

.intro-text__heading {
  margin-bottom: 8px;
  margin-top: -2px;
  color: #000;
  font-size: 24px;
  font-weight: 700;
}

/* Intro links */
.intro-text a {
  color: inherit;
  text-decoration: underline;
}

/* Intro paragraph spacing */
.intro-text p {
  margin-bottom: 1em;
}
.intro-text p:last-child {
  margin-bottom: 0;
}

/* Citation */
.citation {
  text-decoration: underline dotted #000;
  cursor: help;
  position: relative;
}

.citation sup {
  font-size: 0.75em;
}

/* Remove old tooltip styles since we're using Tippy now */
/* Just keep the underline and styling from above. */

/* Adjust line items and dots */
.work-list__item,
.press-list__item,
.artist-list__item,
.hobby-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* Allow flex items to shrink */
}

.work-list__dots,
.press-list__dots,
.artist-list__dots,
.hobby-list__dots {
  flex: 1;
  white-space: nowrap;
  font-family: monospace;
  font-size: 0.5em;
  letter-spacing: 2px;
  overflow: hidden;
  min-width: 0; /* Ensure dots can shrink */
}

/* Work List */
.work-list__left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0; /* Allow shrinking */
  flex-shrink: 0; /* But prevent excessive shrinking */
}
.work-list__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.work-list__emoji {
  display: inline-flex;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  flex-shrink: 0;
}
.work-list__company {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for overflow text */
}
.work-list__dates {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent dates from shrinking */
}

/* Location Block */
.location-block__container {
  position: relative;
  width: 100%;
  height: 200px;
  background-image: url("images/locations/nyc.png");
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  overflow: hidden;
}

.location-block__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.location-block__flag {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.location-block__text {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.location-block__heading {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Previously */
.previously-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.previously-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000;
}

.previously-list__flag {
  height: 24px;
}

/* Coming soon (Posts) */
.coming-soon-box {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  text-align: right;
  color: #666;
  min-height: 100px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.coming-soon-box__text {
  font-size: 14px;
  color: #000;
}

/* Press List */
.press-list__left,
.press-list__right {
  font-size: 14px;
  font-weight: 400;
  color: #000;
}
.press-list__left {
  min-width: 0;
  overflow: hidden;
}
.press-list__left a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.press-list__right {
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Artists */
.content-section__subtext-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

@media (max-width: 700px) {
  .content-section__subtext-container {
    flex-direction: row;
    align-items: center;
  }
}

.content-section__subtext {
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-weight: 400;
}

.artist-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.artist-list__album-art {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.artist-list__name {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-list__spotify-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.artist-list__dots {
  font-size: 0.5em;
  letter-spacing: 2px;
  white-space: nowrap;
  font-family: monospace;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

/* Hobbies */
.hobby-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hobby-list__left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-shrink: 0;
}
.hobby-list__emoji {
  display: inline-flex;
  width: 20px;
  height: 20px;
  font-size: 16px;
  flex-shrink: 0;
}
.hobby-list__hobby {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hobby-list__right {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  opacity: 0.5;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Footer */
.footer {
  width: 100%;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.footer__content p {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .header__inner,
  .content-section {
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .header__inner {
    gap: 16px;
  }

  .content-section {
    flex-direction: column;
    gap: 16px;
  }

  .content-section__aside {
    align-items: flex-start;
    width: 100%;
    border-left: dotted 1px #000;
    padding-left: 8px;
  }
}

/* Tippy custom theme to replicate old tooltip look */
.tippy-box[data-theme~="custom"] {
  background-color: #000;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  padding: 8px 12px;
  max-width: 300px;
}
.tippy-box[data-theme~="custom"] .tippy-arrow {
  color: #000;
}
