:root {
  --text-green: #727272;
  --accent-green: #3c8965;
  --muted-green: #5f7f6f;
  --border-green: #d8e4dd;
  --bg-white: #ffffff;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  color: var(--text-green);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 400;
  display: inline-block;
}

a::before {
  content: attr(data-text);
  font-weight: 600;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  display: block;
}

a:hover {
  font-weight: 550;
  /* text-decoration: underline; */
}

/* Layout */
.layout {
  width: 100%;
  max-width: 1000px;
  margin: 3.5rem auto 0;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 360px 1fr;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2.5rem;
  align-self: start;
}

.sidebar h1 {
  margin: 0 0 1.2rem 0;
  font-size: 1.5rem;
  color: var(--accent-green);
}

.profile-photo {
  max-width: 240px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar .email {
  margin: 0.6rem 0 0.8rem;
  font-size: 0.95rem;
  color: var(--muted-green);
}

.sidebar-links a {
  display: block;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Top Navigation */
.top-nav {
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.top-nav a {
  margin-left: 0.6rem;
  font-weight: 400;
}

.top-nav a:hover {
  font-weight: 600;
  text-decoration: none;
}

.top-nav span {
  margin: 0 0.4rem;
  color: var(--muted-green);
}

/* Content */
.content {
  max-width: 700px;
}

.content p {
  margin-bottom: 1.25rem;
}

.content h1 {
  margin-top: 0;
}

.content h3 {
  margin-top: 2.5rem;
}

.content .entry-title {
  margin-bottom: 0.1rem;
}

.content .entry-sub {
  margin-top: 0;
}

.current-list {
  margin: -0.5rem 0 1.25rem;
  padding-left: 2.5rem;
}

.current-list li {
  margin-bottom: 0.5rem;
}

.exp-row {
  margin-bottom: 1.75rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.exp-company {
  font-weight: 600;
  color: var(--accent-green);
}

.exp-date {
  font-size: 0.9rem;
  color: var(--muted-green);
  white-space: nowrap;
  text-align: right;
}

.exp-row p {
  margin: 0.4rem 0 0;
}

/* Dividers & Spacing */
.line {
  border-top: 1px solid var(--border-green);
  margin: 2rem 0;
}

.spacer {
  height: 1.5rem;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 2.5rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.carousel .track {
  display: flex;
  gap: 18px;
  will-change: transform;
}

.tile {
  flex: 0 0 220px;
  height: 320px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.content .carousel:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 3rem 0 2rem;
  font-size: 13px;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 2rem;
  }

  .top-nav {
    text-align: left;
  }

  .sidebar {
    position: static;
  }

  .profile-photo {
    max-width: 180px;
  }
}
