/* ==================================================
   Imports
================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* ==================================================
   Base Variables & Resets
================================================== */

:root {
    --background: #FAF9F6;
    --text: #1C1C1A;
    --muted: #73736D;
    --line: #DCDAD4;
  --page-width: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191918;
    --text: #E8E6DF;
    --muted: #9A9992;
    --line: #383833;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;

  font-size: 14px;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================================================
   Page Layout
================================================== */

.page {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 72px 0 60px;
}

/* ==================================================
   Header
================================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-image {
  width: 60px;
  height: 60px;

  object-fit: cover;
  border-radius: 50%;
}

.identity-text h1 {
  margin: 0;

  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.location {
  margin: 2px 0 0;

  color: var(--muted);
  font-size: 13px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;

  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.social-links {
  display: flex;
  gap: 12px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  text-decoration: underline;
}

.contact a:hover {
  color: var(--text);
}

/* ==================================================
   Sections
================================================== */

.section {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;

  padding: 2.25rem 0;

  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 3px 0 0;

  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

.section-content p {
  margin: 0 0 14px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* ==================================================
   Entries (Experience & Work)
================================================== */

.entry {
  margin-bottom: 36px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
}

.entry h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.role {
  margin: 2px 0 0;

  color: var(--muted);
  font-size: 13px;
}

.dates {
  flex-shrink: 0;

  margin: 0;

  color: var(--muted);
  font-size: 12px;

  white-space: nowrap;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 8px;
  color: var(--text);
}

li:last-child {
  margin-bottom: 0;
}

/* ==================================================
   Skills
================================================== */

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
}

.skills span {
  color: var(--muted);
  font-size: 13px;
}

.skills span::after {
  content: "·";
  margin: 0 10px;
  color: #b5b5b5;
}

.skills span:last-child::after {
  display: none;
}

/* ==================================================
   Footer
================================================== */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 28px;

  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ==================================================
   Mobile Responsive Adjustments
================================================== */

@media (max-width: 600px) {
  .page {
    width: min(calc(100% - 32px), var(--page-width));
    padding-top: 40px;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .contact {
    align-items: flex-start;
    text-align: left;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 12px;

    padding: 1.75rem 0;
  }

  .entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dates {
    margin-top: 2px;
  }

  .site-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
}