:root {
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;
  --ctp-surface0: #313244;
  --ctp-surface1: #45475a;
  --ctp-surface2: #585b70;
  --ctp-overlay0: #6c7086;
  --ctp-overlay1: #7f849c;
  --ctp-overlay2: #9399b2;
  --ctp-subtext0: #a6adc8;
  --ctp-subtext1: #bac2de;
  --ctp-text: #cdd6f4;
  --ctp-green: #a6e3a1;
}

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

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  line-height: 1.7;
  color: var(--ctp-text);
  background-color: var(--ctp-base);
}

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--ctp-mantle);
  border-bottom: 1px solid var(--ctp-surface1);
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.site-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ctp-text);
}

.tagline {
  font-size: 1.1rem;
  color: var(--ctp-subtext0);
  margin-top: 0.25rem;
}

/* Bio Section */
.bio {
  background: var(--ctp-mantle);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bio {
    flex-direction: row;
    align-items: center;
  }
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ctp-surface1);
  flex-shrink: 0;
}

.bio h2,
.content h2,
.contact h2,
.experiences h2 {
  font-size: 1.5rem;
  color: var(--ctp-text);
  margin-bottom: 1rem;
}

.bio-content p {
  font-size: 1.05rem;
}

/* Experiences Section */
.job-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.job-card,
.info-card {
  background: var(--ctp-mantle);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.card-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
  user-select: none;
}

.card-details summary::-webkit-details-marker {
  display: none;
}

.card-details summary::before {
  content: "▸";
  font-size: 1rem;
  color: var(--ctp-green);
  order: -1;
  transition: transform 0.2s ease;
}

.card-details[open] summary::before {
  transform: rotate(90deg);
}

.job-company {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ctp-text);
}

.job-years {
  font-size: 0.9rem;
  color: var(--ctp-subtext0);
  white-space: nowrap;
  margin-left: auto;
}

.card-body {
  animation: reveal 0.25s ease;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ctp-surface1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .card-body {
    flex-direction: row;
    gap: 2rem;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-details {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .job-details {
    width: 240px;
  }
}

.job-details h4 {
  font-size: 0.95rem;
  color: var(--ctp-subtext1);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.job-details h5 {
  font-size: 0.85rem;
  color: var(--ctp-subtext0);
  font-weight: 400;
  margin-top: 0.5rem;
}

.job-duties,
.info-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.job-duties li,
.info-group ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.job-duties li::before,
.info-group ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ctp-green);
}

.job-duties li:last-child,
.info-group ul li:last-child {
  margin-bottom: 0;
}

.info-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  flex: 1;
}

@media (min-width: 768px) {
  .info-groups {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
}

.info-group h3 {
  font-size: 1.05rem;
  color: var(--ctp-text);
  margin-bottom: 0.5rem;
}

.info-group p {
  font-size: 1rem;
}

.info-group .info-category {
  font-weight: 600;
  color: var(--ctp-subtext1);
  margin: 0 0 0.25rem;
}

.skill-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .skill-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Downloads Section */
.downloads {
  background: var(--ctp-mantle);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  margin-bottom: 2rem;
}

.download-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ctp-green);
  font-weight: 500;
  transition: text-decoration-color 0.2s ease;
}

.download-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--ctp-green);
}

.pdf-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.download-text {
  font-weight: 500;
}

/* Contact Section */
.contact-list {
  list-style: none;
  display: flex;
  gap: 0.75rem;
}

.contact-list a {
  color: var(--ctp-green);
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--ctp-subtext0);
  font-size: 0.9rem;
}

/* Global links */
a {
  color: var(--ctp-green);
}

/* Primary nav */
.site-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ctp-subtext1);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ctp-green);
}

/* Now page */
.now-section {
  background: var(--ctp-mantle);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  margin-bottom: 2rem;
}

.now-section h2 {
  font-size: 1.5rem;
  color: var(--ctp-text);
  margin-bottom: 1rem;
}

.now-section h3 {
  font-size: 1.05rem;
  color: var(--ctp-text);
  margin: 1.5rem 0 0.5rem;
}

.now-section h3:first-of-type {
  margin-top: 0;
}

.now-section p {
  font-size: 1.05rem;
}

.now-meta {
  color: var(--ctp-subtext0);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

.now-note {
  color: var(--ctp-subtext1);
  font-size: 0.95rem;
}

.now-note a {
  color: var(--ctp-green);
  text-decoration: none;
  font-weight: 500;
}

.now-note a:hover {
  text-decoration: underline;
}