/* Global theme + sensible defaults */
:root {
  --bg: #c2b6c7;
  --surface: #c2b6c7;
  --card: rgba(255, 255, 255, 0.18);
  --border: rgba(74, 51, 68, 0.35);
  --text: #4a3344;
  --muted: rgba(74, 51, 68, 0.75);
  --accent: #241f21;
  --radius: 0;
  --sidebar-left: max(4rem, calc((100vw - 1300px) / 2));
  --sidebar-width: 180px;
  --column-gap: 4rem;
  --content-left: calc(var(--sidebar-left) + var(--sidebar-width) + var(--column-gap));
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: underline;
}

.body-link{
  text-decoration: underline;
}

.text-secondary {
  color: var(--muted) !important;
}

.navbar {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}

.navbar-inner {
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  color: var(--text) !important;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 4rem;
}

.navbar-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-socials a {
  color: #5a4152;
  font-size: 1.35rem;
  text-decoration: none;
  line-height: 1;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-left{
  margin-left: 4em
}

.navbar-links .nav-link {
  color: var(--text) !important;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0;
}

.navbar-links .nav-link.active {
  font-weight: 800;
}

.navbar-socials a:hover,
.navbar-links .nav-link:hover {
  opacity: 0.7;
}

/* Main intro section */

.content-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1080px);
  column-gap: var(--column-gap);

  margin-left: var(--sidebar-left);
  margin-right: 4rem;
  padding-top: 3rem;

  align-items: start;
}

.content-main {
  min-width: 0;
  max-width: 1080px;
}

.intro-card {
  position: sticky;
  top: 120px;

  width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  text-align: left;
}

.intro-profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem auto;
  border: 2px solid rgba(74, 51, 68, 0.15);
}

.intro-card h4 {
  font-size: 1.4rem;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.intro-meta {
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.intro-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 1.05rem;
}

.intro-section {
  margin: 0;
  padding: 0 0 5rem;
}

.intro-text {
  max-width: 1080px;
  padding: 0;
  margin: 0;
}

.intro-text h2 {
  font-weight: 400;
  font-size: 3rem;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: var(--text);
}

.intro-text .subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--text);
}

.intro-text p,
.prose,
.updates-list {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text);
}

.page-section {
  margin: 0 0 5rem;
  padding: 0;
}

.page-section h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.prose {
  max-width: 100%;
}

.updates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.updates-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.update-date {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-footer {
  background: var(--bg) !important;
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 750px) {
  .content-layout {
    display: block;
    margin: 0;
    padding: 2rem;
  }

  .intro-card {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 4rem;
    text-align: center;
  }

  .intro-links {
    align-items: center;
  }

  .content-main {
    max-width: 100%;
  }

  .intro-text h2 {
    font-size: 2.4rem;
  }

  .updates-list li {
    display: block;
  }

  .update-date {
    margin-bottom: 0.35rem;
  }

  .footer-links {
    justify-content: center;
  }


  .navbar-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .navbar-socials {
    gap: 1rem;
  }

  .navbar-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .navbar-links .nav-link {
    font-size: 1rem;
  }

  .navbar-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;

    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .navbar-left {
    margin-left: -3em !important;
  }
}


.update-with-image {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.update-img {
  width: 180px;
  max-width: 35%;
  height: auto;
  flex: 0 0 auto;
  display: block;
  border: 1px solid var(--border);
}

@media (max-width: 750px) {
  .update-with-image {
    display: block;
  }

  .update-img {
    width: 100%;
    max-width: 260px;
    margin-top: 1rem;
  }
}
