/* ==========================================================
   Oscar Lu: resume page styles
   Look: storyboard paper, ink, one red-pencil accent.
   ========================================================== */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #161513;
  --muted: #6b665d;
  --line: rgba(22, 21, 19, 0.14);
  --accent: #d6452b; /* red pencil */

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --rail: 88px; /* width of the left timeline rail */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --paper-2: #1d1b18;
    --ink: #eeeae1;
    --muted: #a39d92;
    --line: rgba(238, 234, 225, 0.14);
    --accent: #ff6a4d;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
}

h2 { font-size: clamp(34px, 5vw, 56px); }

.resume-page { font-size: 15px; line-height: 1.5; }

.resume-nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
}
.resume-nav button {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.resume {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.resume header { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.resume h1 { font-size: 40px; margin: 0 0 6px; }
.resume header p { margin: 0; color: var(--muted); }
.resume h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 8px;
}
.entry { margin-bottom: 12px; }
.entry-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entry-place { color: var(--muted); }
.entry-dates { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.entry-detail { margin: 2px 0 0; }
.entry ul { margin: 4px 0 0; padding-left: 18px; }
.entry li { margin-bottom: 2px; }
.resume section > p { margin: 4px 0; }

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #444; --accent: #000; }
  .resume-nav { display: none; }
  .resume { padding: 0; max-width: none; }
  .resume-page { font-size: 10.5pt; }
  .resume h1 { font-size: 22pt; }
  a { text-decoration: none; }
  @page { margin: 0.5in; }
}
