/* Resume styles, kept apart from the site's main.css so the resume stays a pixel match
   of the Figma A4 frame (file sbDsXjKYKDibngeEqKCLor, node 3204:209). The resume is
   always light; it is not part of the site's dark theme.
   The first part is the old site base (10px root, links, images, h2) the resume layout
   was built on; changing it moves the resume. */


:root {
  --color-accent: #00BCD4;
  --color-accent-hover: #00d0ea;
  --color-accent-text: #00838f;
  --color-accent-text-hover: #006978;
  --color-text: #4A4A4A;
  --color-border: #e5e8ea;
  --color-light-gray: #eef0f2;
  --color-muted: rgba(0, 0, 0, 0.65);
  --color-gray: #9B9B9B;
  --color-ink: #160F29;
  --color-white: #fff;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Spacing scale, 8px steps (html font-size is 10px, so 0.8rem = 8px) */
  --space-1: 0.8rem;
  --space-2: 1.6rem;
  --space-3: 2.4rem;
  --space-4: 3.2rem;
  --space-5: 4rem;
  --space-6: 4.8rem;
  --space-8: 6.4rem;
  --space-10: 8rem;
}

/* Transitions only on links and the Earlier work toggle, and only the properties
   that change on hover, focus or open */
a,
a *,
summary,
summary * {
  transition-property: color, background-color, border-color, margin, transform;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  a,
  a *,
  summary,
  summary * {
    transition: none;
  }
}

html {
  font-size: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'OpenSans', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
}

a {
  color: var(--color-accent);
}

a:hover,
a:focus,
a:active {
  color: var(--color-accent-hover);
}

/* width/height attributes reserve space (no layout shift); auto keeps ratio */
img {
  height: auto;
}


h2 {
  font-family: 'JosefinSans';
  font-size: 4.8rem;
  color: var(--color-text);
  text-align: center;
  margin-top: 120px;
  margin-bottom: var(--space-10);
}

/***********************/
/* Styling the resume */
/*********************/

@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 500 600;
  src: url(../fonts/Teko.woff2) format('woff2');
  font-display: swap;
}

.resume {
  --zinc-50: #fafafa;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-800: #27272a;
  --resume-font-display: 'Teko', Impact, sans-serif;
  --resume-font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: #fff;
  font-family: var(--resume-font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

/* the page is the A4 design from Figma at 150dpi: 1240 x 1754 */
.resume-page {
  display: flex;
  width: 1240px;
  min-height: 1754px;
  margin: 0 auto;
  background-color: #fff;
}

.resume-sider {
  display: flex;
  flex: 0 0 472px;
  flex-direction: column;
  gap: 40px;
  padding: 48px;
  background-color: var(--zinc-800);
  color: var(--zinc-50);
  /* Figma sets SF Pro with no tracking; the system font tracks tighter, so the
     sider text wrapped one line earlier than in the design */
  letter-spacing: 0.02em;
}

.resume-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 41px;
  min-width: 0;
  padding: 72px 48px;
  color: var(--zinc-800);
}

.resume h1,
.resume h2 {
  margin: 0;
  color: inherit;
  font-family: var(--resume-font-display);
  line-height: normal;
  text-align: left;
}

.resume h1 {
  font-size: 132px;
  font-weight: 600;
  line-height: 114px;
  white-space: nowrap;
}

.resume h2 {
  font-size: 44px;
  font-weight: 500;
}

.resume h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
}

.resume p,
.resume ul {
  margin: 0;
}

.resume .photo {
  display: block;
  width: 251px;
  height: 251px;
  margin: 0 auto;
  border-radius: 50%;
}

.resume-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-sider .contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-sider .contact-list li {
  display: flex;
  gap: 8px;
}

.resume-sider .contact-list a {
  color: inherit;
  text-decoration: none;
}

.resume-sider .contact-list svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.resume-sider .contact-list li.small {
  font-size: 16px;
  line-height: 22px;
}

.resume-sider .stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.resume-sider .stack > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-sider h3 {
  color: #fff;
}

.resume-sider .education {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-sider .edu-year {
  color: var(--zinc-400);
}

.resume-body .headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resume-body .jobs {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.resume .job {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume .job .position {
  display: flex;
}

.resume .job .position > div {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.resume .job .position .role {
  gap: 2px;
}

.resume .job .position .company {
  color: var(--zinc-600);
  font-weight: 600;
}

.resume .job .position .when {
  align-items: flex-end;
  gap: 8px;
  color: var(--zinc-500);
  text-align: right;
}

.resume .job ul {
  padding-left: 27px;
  list-style: disc;
}

.resume .earlier strong {
  font-weight: 600;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  .resume-page {
    zoom: 0.64;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* The design is a fixed A4 page; stack the sider above the body on narrow screens */
@media (max-width: 1239px) {
  .resume-page {
    flex-direction: column;
    width: 100%;
    min-height: 0;
  }

  .resume-sider {
    flex: none;
  }

  .resume-body {
    padding: 48px;
  }

  .resume h1 {
    font-size: 96px;
    line-height: 1;
    white-space: normal;
  }
}

@media (max-width: 576px) {
  .resume-sider,
  .resume-body {
    padding: 32px 20px;
  }

  .resume h1 {
    font-size: 72px;
  }

  .resume .job .position {
    flex-direction: column;
    gap: 4px;
  }

  .resume .job .position .when {
    align-items: flex-start;
    text-align: left;
  }
}
