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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  background-color: #F2F1ED;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 48px 64px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

/* Logo CSS variables */
:root {
  --border-width: 1px;
  --link-length: 40px;
  --link-width: 8px;
  --joint-size: 3px;
  --color-link-1: #683a8e;
  --color-link-2: #941e23;
  --color-link-3: #5c9847;
  --color-link-4: #6d87bc;
  --internal-angle: 0deg;
  --content-max-width: 600px;
}

.logo-container {
  position: relative;
  width: var(--link-length);
  height: var(--link-length);
  transform: rotate(45deg);
  margin-right: 12px;
}

.bar {
  position: absolute;
  background: white;
  border: var(--border-width) solid black;
  border-radius: 999px;
}

.bar-top {
  width: var(--link-length);
  height: var(--link-width);
  top: calc(
    (var(--link-length) - var(--link-width)) * (1 - cos(var(--internal-angle)))
  );
  left: calc(
    (var(--link-length) - var(--link-width)) * sin(var(--internal-angle))
  );
  z-index: 1;
  background: var(--color-link-1);
}

.bar-top-left {
  width: calc(var(--link-length) / 2);
  height: var(--link-width);
  top: calc(
    (var(--link-length) - var(--link-width)) * (1 - cos(var(--internal-angle)))
  );
  left: calc(
    (var(--link-length) - var(--link-width)) * sin(var(--internal-angle))
  );
  z-index: 5;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--color-link-1);
}

.bar-right {
  width: var(--link-width);
  height: var(--link-length);
  top: 0;
  right: calc(var(--border-width) * -2);
  z-index: 2;
  background: var(--color-link-2);
  transform-origin: center calc(var(--link-length) - var(--link-width) / 2);
  transform: rotate(var(--internal-angle));
}

.bar-bottom {
  width: var(--link-length);
  height: var(--link-width);
  bottom: calc(var(--border-width) * -2);
  left: 0;
  z-index: 3;
  background: var(--color-link-3);
}

.bar-left {
  width: var(--link-width);
  height: var(--link-length);
  top: 0;
  left: 0;
  z-index: 4;
  background: var(--color-link-4);
  transform-origin: center calc(var(--link-length) - var(--link-width) / 2);
  transform: rotate(var(--internal-angle));
}

.joint {
  position: absolute;
  width: var(--joint-size);
  height: var(--joint-size);
  border-radius: 50%;
  background: white;
  border: var(--border-width) solid black;
}

.joint-top-left {
  top: calc(
    (var(--link-width) - var(--joint-size)) / 2 +
      (var(--link-length) - var(--link-width)) *
      (1 - cos(var(--internal-angle)))
  );
  left: calc(
    (var(--link-width) - var(--joint-size)) / 2 +
      (var(--link-length) - var(--link-width)) * sin(var(--internal-angle))
  );
  z-index: 6;
}

.joint-top-right {
  top: calc(
    (var(--link-width) - var(--joint-size)) / 2 +
      (var(--link-length) - var(--link-width)) *
      (1 - cos(var(--internal-angle)))
  );
  left: calc(
    (var(--link-width) - var(--joint-size)) / 2 +
      (var(--link-length) - var(--link-width)) * sin(var(--internal-angle)) +
      var(--link-length) - var(--link-width)
  );
  z-index: 6;
}

.joint-bottom-right {
  bottom: calc(
    var(--border-width) * -2 + (var(--link-width) - var(--joint-size)) / 2
  );
  right: calc(
    var(--border-width) * -2 + (var(--link-width) - var(--joint-size)) / 2
  );
  z-index: 6;
}

.joint-bottom-left {
  bottom: calc(
    var(--border-width) * -2 + (var(--link-width) - var(--joint-size)) / 2
  );
  left: calc((var(--link-width) - var(--joint-size)) / 2);
  z-index: 6;
}

.logo-text {
  font-size: 32px;
  font-weight: 400;
}

.logo-svg {
  height: 40px;
  width: auto;
}

/* Navbar styles */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}

.nav-link {
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Announcement banner */
.announcement {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #999;
  /* border-radius: 6px; */
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 24px;
}

.main {
  display: flex;
  flex-direction: row;
  gap: 64px;
  flex: 1;
}

.content {
  flex: 1;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.content p a {
  color: #1a1a1a;
  text-decoration: underline;
}

.content ul {
  margin-bottom: 24px;
}

.placeholder-column {
  flex: 1;
}

/* Positions list styles (index and careers) */
.positions {
  margin-top: 0px;
}

.positions h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.positions ul {
  list-style: disc;
  padding-left: 24px;
}

.positions li {
  margin-bottom: 8px;
}

.positions a {
  color: #1a1a1a;
  text-decoration: underline;
  font-size: 16px;
}

.positions a:hover {
  text-decoration: underline;
}

/* Team section styles */
.team {
  margin-top: 24px;
}

.team h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.team p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.team a {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Footnote */
.footnote {
  font-size: 12px !important;
  color: #666;
}

/* Image column styles (index page) */
.image-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-placeholder {
  height: 40px;
  margin-bottom: 24px;
}

.image-column img,
.image-column video {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 24px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Careers page styles */
.careers-content {
  max-width: 700px;
}

h1 {
    margin-top: 24px;
}

.careers-content h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

.careers-content > p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.careers-content > p a {
  color: #1a1a1a;
}

/* Job page styles */
.job-content {
  max-width: 700px;
}

.job-content h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

.job-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.job-content p a {
  color: #1a1a1a;
}

.job-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.job-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.job-content ul ul {
    margin-top: 2px;
    margin-bottom: 2px;
}

.job-content li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 2px;
}

/* Blog page styles */
.blog-content {
  max-width: 700px;
}

.blog-content h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

.blog-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-pontent p a {
  color: #1a1a1a;
  text-decoration: underline;
}

.video-placeholder {
  background-color: #e0e0e0;
  border: 1px dashed #999;
  padding: 48px 24px;
  text-align: center;
  margin-bottom: 16px;
  color: #666;
  font-size: 14px;
}

.blog-content video {
  max-width: 100%;
  height: auto;
  margin-bottom: 4px;
}

.blog-content figure {
  margin: 0 0 16px 0;
}

.blog-content figcaption {
  font-size: 14px;
  color: #666;
}

.blog-content .hero-image {
  width: 80%;
  height: auto;
  margin-bottom: 24px;
}

.blog-content .body-image {
  width: 60%;
  height: auto;
  margin-bottom: 24px;
}

.video-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.video-row figure {
  flex: 0 1 calc(50% - 8px);
  margin: 0;
}

.video-row video {
  width: 100%;
  height: auto;
  margin-bottom: 4px;
}

.video-row figcaption {
  font-size: 14px;
  color: #666;
}


/**/
/* Mobile styles */
@media (max-width: 1000px) {
  body {
    padding: 24px;
  }

  .logo-svg {
    height: 32px;
  }

  .header-placeholder {
    height: 0;
  }

  .main {
    flex-direction: column;
    gap: 32px;
  }

  /* .image-column {
    order: -1;
  } */

  .placeholder-column {
    display: none;
  }
}
