/* ============================================================
   JONATHAN EARP — RÉSUMÉ
   "ORYZO" dark-studio system (matches the rest of the portfolio)
   ============================================================ */

:root {
  --bg: #100904;
  --fg: #ffedd7;
  --cream: #ffedd7;
  --fg-soft: #6c5f51;
  --line: #40372e;
  --cork: #382416;
  --accent: #dc5000;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-caption: 10px;
  --t-body: 14px;
  --t-sub: 18px;
  --t-h-sm: 24px;
  --t-h: 29px;
  --t-h-lg: 41px;
  --t-display: 51px;

  --gut: clamp(20px, 5vw, 45px);
  --header-h: 60px;
  --ease: ease;
  --t-fast: 0.2s ease;
  --t-base: 0.3s ease;
}

html[data-theme="light"] {
  --bg: #ece1cf;
  --fg: #241a0f;
  --fg-soft: #6f6152;
  --line: #c7b69a;
  --cork: #382416;
  --accent: #c2470a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--t-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---- vertical edge label ---- */
.vlabel {
  position: fixed; right: 6px; top: 50%; z-index: 50;
  transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-size: var(--t-caption); text-transform: uppercase; color: var(--fg);
  white-space: nowrap; pointer-events: none; opacity: 0.7;
}

/* ---- buttons ---- */
.btn-cork {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cork); color: var(--cream); border: 1px solid transparent;
  border-radius: 36px; padding: 14.4px 24px; font-size: var(--t-body);
  cursor: pointer; transition: border-color var(--t-base);
}
.btn-cork:hover { border-color: var(--accent); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg); border: 1px solid var(--fg);
  border-radius: 22.5px; padding: 6px 14px; font-size: 12px; text-transform: uppercase;
  cursor: pointer; transition: border-color var(--t-base);
}
.btn-ghost:hover { border-color: var(--accent); }
.tlink { color: inherit; border-bottom: 1px solid var(--accent); transition: opacity var(--t-fast); }
.tlink:hover { opacity: 0.7; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; }
.brand__crumb { font-size: var(--t-caption); text-transform: uppercase; color: var(--accent); }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav__link {
  font-size: 12px; text-transform: uppercase; color: var(--fg);
  position: relative; padding-bottom: 2px; transition: color var(--t-fast);
}
.topnav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width var(--t-base); }
.topnav__link:hover::after { width: 100%; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg); border: 1px solid var(--fg);
  border-radius: 22.5px; padding: 6px 14px; font-size: 12px; text-transform: uppercase;
  cursor: pointer; transition: border-color var(--t-base);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.theme-toggle__label::after { content: "Light"; }
html[data-theme="light"] .theme-toggle__label::after { content: "Dark"; }

/* ---- document layout ---- */
.doc {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(36px, 7vw, 80px) var(--gut) 0;
}

/* header */
.cv-head { padding-bottom: clamp(28px, 5vw, 44px); border-bottom: 1px dashed var(--line); }
.cv-name { font-size: clamp(40px, 8vw, var(--t-display)); line-height: 0.92; font-weight: 500; }
.cv-title { margin-top: 12px; font-size: var(--t-sub); color: var(--accent); font-weight: 500; }
.cv-contact {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px;
  font-size: var(--t-caption); text-transform: uppercase; letter-spacing: 0.02em; color: var(--fg-soft);
}
.cv-contact a { border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.cv-contact a:hover { color: var(--fg); border-bottom-color: var(--accent); }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.cv-actions .btn-cork span { transition: transform var(--t-fast); }
.cv-actions .btn-cork:hover span { transform: translateY(2px); }
.cv-tag {
  font-size: var(--t-caption); text-transform: uppercase; color: var(--fg);
  border: 1px solid var(--accent); border-radius: 22.5px; padding: 6px 12px;
}

/* summary */
.cv-summary { padding: clamp(28px, 4vw, 40px) 0; border-bottom: 1px dashed var(--line); }
.cv-summary p { font-size: clamp(16px, 2vw, 20px); line-height: 1.5; max-width: 70ch; }

/* grid */
.cv-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(32px, 5vw, 52px) 0 clamp(40px, 8vw, 80px);
}
.cv-main > section + section,
.cv-side > section + section { margin-top: clamp(36px, 5vw, 52px); }

/* section headers */
.shead {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 24px;
}
.shead__no { font-size: var(--t-caption); color: var(--accent); }
.shead__title { font-size: var(--t-h-sm); font-weight: 500; text-transform: uppercase; }

/* entries */
.entry + .entry { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line); }
.entry__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.entry__role { font-size: var(--t-sub); font-weight: 500; line-height: 1.25; }
.entry__role span { color: var(--fg-soft); font-weight: 400; }
.entry__meta { font-size: var(--t-caption); text-transform: uppercase; color: var(--fg-soft); white-space: nowrap; }
.entry__sub { font-size: var(--t-caption); text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.entry__muted { color: var(--fg-soft); font-size: var(--t-body); margin-top: 6px; }

.dlist { list-style: none; margin-top: 12px; }
.dlist li { position: relative; padding-left: 18px; margin-bottom: 8px; line-height: 1.5; color: var(--fg); }
.dlist li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.dlist strong { font-weight: 500; }

/* education / skills */
.cv-gpa { margin-top: 8px; font-weight: 500; }
.skills { display: grid; gap: 0; border-top: 1px dashed var(--line); }
.skills > div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.skills dt { font-size: var(--t-caption); text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.skills dd { font-size: var(--t-body); color: var(--fg); line-height: 1.45; }

/* footer */
.foot { border-top: 1px dashed var(--line); }
.foot__bar {
  padding: 20px 0; font-size: var(--t-caption); text-transform: uppercase; color: var(--fg-soft);
}

/* responsive */
@media (max-width: 820px) {
  .cv-grid { grid-template-columns: 1fr; gap: 44px; }
  .vlabel { display: none; }
  .topnav .btn-ghost { display: none; }
}

/* print — clean ink-on-paper */
@media print {
  :root { --bg: #fff; --fg: #111; --fg-soft: #555; --line: #bbb; --accent: #b03a10; --cork: #111; }
  .topbar, .vlabel, .foot, .cv-actions, .theme-toggle { display: none !important; }
  body { font-size: 11px; line-height: 1.4; }
  .doc { max-width: none; padding: 0; }
  .cv-name { font-size: 30px; }
  .cv-grid { gap: 28px; padding: 14px 0; }
  a { color: inherit; }
}
