/* ===== Resume · Noma Furrukh ===== */
/* Shares design tokens with /assets/css/style.css so the resume reads as the
   same brand system as the portfolio. Print rules live in /assets/css/print.css. */

:root {
  /* ===== V2 FOUNDATIONS — mirrors /assets/css/style.css canvas ===== */
  --bg:              #FAF9F5;
  --ink:             #1A1815;
  --ink-muted:       #4A453E;
  --ink-subtle:      #7A746B;
  --rule:            #E8E4D9;
  --surface:         #FFFFFF;
  --surface-sunken:  #F2EFE7;
  --bg-sidebar:      var(--surface-sunken);
  --accent-pink:     var(--ink);   /* accent colour retired under V2 — resolves to ink */

  /* Type scale + weights (subset the résumé uses) */
  --t-display: 3.5rem;
  --t-h2:      2rem;
  --t-h3:      1.5rem;
  --t-h4:      1.125rem;
  --t-body:    1rem;
  --t-meta:    0.875rem;
  --t-label:   0.8125rem;
  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --leading-tight: 1.1;
  --leading-relaxed: 1.65;
  --tracking-tight: -0.02em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;

  /* Spacing subset */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 32px;

  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Libre Baskerville', Georgia, serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.55;
  padding: 40px 20px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

/* ===== Portfolio link strip ===== */
.resume-back {
  max-width: 960px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

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

.resume-back__return {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 160ms ease;
}

.resume-back__return:hover { opacity: 0.65; }

.resume-print {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 300px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.resume-print:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ===== Page shell ===== */
.resume {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);   /* card sits on the warm paper body */
  display: grid;
  grid-template-columns: 300px 1fr;
  box-shadow: 0 30px 80px -40px oklch(0 0 0 / 0.25);
  border-radius: 16px;
  overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--bg-sidebar);
  padding: 40px 28px;
}

.sidebar__photo {
  width: 150px;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 28px;
  display: block;
  box-shadow: 0 12px 28px oklch(0 0 0 / 0.12);
}

.sidebar__contact {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 32px;
  display: grid;
  gap: 8px;
}

/* Contact rows — consistent line icon beside each detail */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.contact-item__icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  color: var(--ink-subtle);
}

.contact-item__text {
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

a.contact-item:hover .contact-item__text { border-color: currentColor; }

.sidebar h2 {
  font-family: var(--font-heading);
  font-size: var(--t-h4);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
}

.sidebar__contact {
  font-size: var(--t-meta);
  font-weight: var(--w-regular);
  color: var(--ink);
  margin-bottom: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.sidebar p,
.sidebar li {
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  line-height: var(--leading-relaxed);
  color: var(--ink);
}

.skill-group__label {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: var(--w-semibold);
  color: var(--ink);
  margin-bottom: var(--space-1);
  letter-spacing: var(--tracking-normal);
}

.skill-group__list {
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
}

.education-item__date {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: var(--w-medium);
  color: var(--ink-subtle);
  margin-bottom: var(--space-1);
}

.education-item__title {
  font-family: var(--font-heading);
  font-size: var(--t-body);
  font-weight: var(--w-semibold);
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.education-item__org {
  font-size: var(--t-meta);
  font-weight: var(--w-regular);
  color: var(--ink-muted);
}

.sidebar section + section { margin-top: 28px; }

.sidebar p,
.sidebar li {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
}

.sidebar p { margin-bottom: 10px; }
.sidebar p:last-child { margin-bottom: 0; }

.skill-group { margin-bottom: 14px; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group__label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.skill-group__list {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}

.education-item { margin-bottom: 14px; }
.education-item:last-child { margin-bottom: 0; }

.education-item__date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-bottom: 2px;
}

.education-item__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.education-item__org {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ink-muted);
}

.language-list li { margin-bottom: 2px; }

/* ===== Main column ===== */
.main {
  padding: 48px 44px 44px;
}

.main__name {
  font-family: var(--font-heading);
  font-size: var(--t-display);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-1);
}

.main__title {
  font-family: var(--font-heading);
  font-size: var(--t-h2);
  font-weight: var(--w-semibold);
  color: var(--accent-pink);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.main h2 {
  font-family: var(--font-heading);
  font-size: var(--t-h3);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
}

.main section + section { margin-top: 28px; }

/* Role / experience items */
.role { margin-bottom: 20px; }
.role:last-child { margin-bottom: 0; }

.role__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 2px;
}

.role__title {
  font-family: var(--font-heading);
  font-size: var(--t-h4);
  font-weight: var(--w-semibold);
  color: var(--ink);
}

.role__date {
  font-family: var(--font-heading);
  font-size: var(--t-meta);
  font-weight: var(--w-medium);
  color: var(--ink-subtle);
  white-space: nowrap;
  text-align: right;
}

.role__org {
  font-family: var(--font-body);
  font-size: var(--t-meta);
  font-weight: var(--w-medium);
  color: var(--accent-pink);
  margin-bottom: var(--space-2);
}

.role__bullets {
  padding-left: var(--space-4);
  list-style: disc;
}

.role__bullets li {
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  line-height: var(--leading-relaxed);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.role__bullets li strong {
  font-weight: var(--w-semibold);
  color: var(--ink);
}

.role__bullets li::marker { color: var(--ink-subtle); }

/* Qualifications list */
.quals-list {
  display: grid;
  gap: var(--space-2);
}

.quals-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  color: var(--ink);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
}

.quals-list li:last-child { border-bottom: none; }

.quals-list .quals-year {
  font-family: var(--font-heading);
  font-weight: var(--w-medium);
  color: var(--ink-subtle);
  white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  body { padding: 20px 12px; }
  .resume {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .sidebar { padding: 32px 24px; }
  .main { padding: 32px 24px; }
  .main__name { font-size: 2rem; }
  .main__title { font-size: 1.3rem; margin-bottom: 24px; }
  .role__header { flex-direction: column; gap: 2px; }
  .role__date { text-align: left; }
}


/* ===== Theme toggle (resume) ===== */
.resume-back__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  background: var(--surface-sunken);
  border-color: var(--rule);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.theme-toggle__icon { display: block; }
.theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }


@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
  .theme-toggle:hover { transform: none; }
}

/* ===== Dark mode (screen only — print stays light via @media print override in T14) ===== */
[data-theme="dark"] {
  /* ===== V2 FOUNDATIONS — inverted-warm dark mode ===== */
  --bg:              #1A1815;
  --ink:             #FAF9F5;
  --ink-muted:       #B5B0A5;
  --ink-subtle:      #837E73;
  --rule:            #3A352E;
  --surface:         #24211C;
  --surface-sunken:  #14120F;
}

[data-theme="dark"] .resume {
  background: var(--surface);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .resume-print {
  border-color: var(--ink);
  color: var(--ink);
}

[data-theme="dark"] .resume-print:hover {
  background: var(--ink);
  color: var(--bg);
}

