/* ============================================================
   RJ — portfolio shared styles
   Editorial near-white · warm paper / deep ink / cobalt accent
   ============================================================ */

:root {
  --slogan-fg: #16202e;

  --bg: #e7effb;            /* open sky — solid fallback */
  --bg-grad: linear-gradient(180deg, #f5f9ff 0%, #e7effb 60%, #dbe8f9 100%);
  --surface: #ffffff;      /* cards / raised areas */
  --fg: #16202e;           /* deep ink navy */
  --muted: #5a6575;        /* secondary text */
  --faint: #7e8794;        /* tertiary / meta */
  --line: #dfe6f2;         /* cool hairline */
  --line-strong: #cdd8ec;
  --accent: #2557d9;       /* cobalt */
  --accent-hover: #1c44b0;
  --accent-soft: rgba(37,87,217,0.10);
  --ball: #e8801f;         /* basketball orange */

  --maxw: 660px;
  --sans: "Inter", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Georgia", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(22,32,46,0.04);
  --shadow-md: 0 6px 24px rgba(22,32,46,0.07);
}
/* Always render the light editorial look — no auto dark mode. */
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-grad) var(--bg) no-repeat;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); }

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
}

/* page-load entrance — subtle, professional */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal.d1 { animation-delay: .05s; }
  .reveal.d2 { animation-delay: .12s; }
  .reveal.d3 { animation-delay: .19s; }
  .reveal.d4 { animation-delay: .26s; }
}

/* ============================================================
   COVER PAGE  (index.html)
   ============================================================ */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 7vw 64px;
}
.cover-inner { width: 100%; max-width: 760px; }

.cover-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
}
.cover-intro { flex: 1 1 auto; min-width: 0; }

.cover-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.cover-name {
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 10px;
}
.cover-tagline {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.012em;
}
.cover-loc { font-weight: 400; }

.cover-cred {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
  margin: 16px 0 0;
}

.cover-hero {
  font-size: 23px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.014em;
  color: var(--fg);
  margin: 22px 0 0;
  max-width: 30ch;
}
.cover-hero em { font-style: normal; color: var(--accent); }

/* availability pill — speaks to recruiters at a glance */
.cover-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.cover-status .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1ea672;
  box-shadow: 0 0 0 0 rgba(30,166,114,0.45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30,166,114,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(30,166,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,166,114,0); }
}
.cover-status .cs-meta { color: var(--muted); font-weight: 400; }

/* basketball CTA — slogan */
.bball {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 4px;
}
.bball svg {
  width: 192px;
  height: 192px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(22,32,46,0.16));
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.bball:hover svg { transform: scale(1.06) rotate(-3deg); }
.bball:active svg { transform: scale(0.97); }
.bball svg > circle { transition: stroke .2s ease; }
.bball:hover svg > circle { stroke: var(--accent); }
.bball-cta {
  margin-top: -26px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color .2s ease;
}
.bball:hover .bball-cta { color: var(--accent); }
.bball-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  fill: var(--fg);
}

@media (max-width: 880px) {
  .cover-top { flex-direction: column; align-items: flex-start; gap: 26px; }
  .bball { flex-direction: row; gap: 14px; align-self: flex-start; }
  .bball svg { width: 84px; height: 84px; }
  .bball-text { display: none; }
  .cover-name { font-size: 36px; }
  .cover-hero { max-width: none; }
}

/* the index of links — the heart of the cover */
.cover-nav {
  display: flex;
  flex-direction: column;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
}
.cover-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 16px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  position: relative;
  transition: padding-left .2s ease, color .2s ease, border-color .2s ease;
}
.cover-nav a::after {
  content: "→";
  position: absolute;
  right: 4px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.cover-nav a:hover {
  color: var(--accent);
  padding-left: 12px;
  border-color: var(--line-strong);
}
.cover-nav a:hover::after { opacity: 1; transform: translateX(0); }
.cover-nav .cn-label { font-weight: 500; letter-spacing: -0.012em; font-size: 17px; }
.cover-nav .cn-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: var(--faint);
  white-space: nowrap;
  margin-right: 22px;
  transition: color .2s ease;
}
.cover-nav a:hover .cn-meta { color: var(--accent); }
.cover-nav a.cn-featured .cn-meta { color: var(--accent); }
@media (max-width: 540px) {
  .cover-nav a.cn-featured .cn-meta { display: inline; }
}
@media (max-width: 540px) {
  .cover-nav .cn-meta { display: none; }
}

.cover-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 34px;
}
.cover-foot a {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.cover-foot a:hover { color: var(--accent); border-color: var(--accent); }
.cover-foot .dot { color: var(--faint); }

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 28px 120px;
}

.page-head { margin-bottom: 52px; }
.back {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .18s ease, gap .18s ease;
}
.back:hover { color: var(--accent); gap: 9px; }
.page-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 26px 0 0;
}
.page-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 54ch;
}

p { margin: 0 0 16px; }
main p { max-width: 60ch; }

/* shared list of items (builds, talks, courses, etc.) */
.list { display: flex; flex-direction: column; gap: 4px; }
.item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: none; }
a.item { transition: padding-left .2s ease; }
a.item:hover { padding-left: 8px; }
.item-title {
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: -0.014em;
  transition: color .18s ease;
}
a.item:hover .item-title { color: var(--accent); }
.item-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
  position: relative;
  top: -1px;
}
.item-desc { color: var(--muted); margin: 6px 0 0; font-size: 15px; line-height: 1.62; max-width: 60ch; }
.arrow { color: var(--accent); font-size: 13px; font-weight: 500; }

/* numbered variant — the "systems" cue, used on AI builds */
.list.numbered { counter-reset: build; }
.list.numbered .item { position: relative; padding-left: 44px; }
.list.numbered .item::before {
  counter-increment: build;
  content: counter(build, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  opacity: 0.8;
}

/* contact / email links */
.contact a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .18s ease; }
.contact a:hover { color: var(--accent); }

/* ============================================================
   RÉSUMÉ PAGES
   ============================================================ */
.resume-name { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: -0.018em; margin: 26px 0 6px; }
.resume-contact {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.02em; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
}
.resume-contact a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; }
.resume-contact a:hover { color: var(--accent); border-color: var(--accent); }

.downloads { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 44px; }
.btn {
  font-family: var(--mono); font-size: 12.5px; text-transform: lowercase; letter-spacing: 0.02em;
  color: var(--accent); background: transparent;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 8px 16px; text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }

.resume-headline { margin: 0 0 8px; max-width: 62ch; }
.resume-headline p { margin: 0 0 7px; font-size: 18px; line-height: 1.5; letter-spacing: -0.012em; color: var(--muted); }
.resume-headline p:first-child { font-size: 19px; font-weight: 600; color: var(--fg); }

.r-section { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.r-section > .mono { display: block; margin-bottom: 22px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }

.exp { display: flex; flex-direction: column; gap: 28px; }
.exp-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.exp-co { font-weight: 600; letter-spacing: -0.01em; }
/* dates hidden on the web résumé by choice; they remain on the downloadable PDF (separate print layout) */
.exp-dates { display: none; }
.exp-meta { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.exp-title { color: var(--fg); font-weight: 500; font-size: 15.5px; margin: 2px 0 8px; }
.exp-lead { font-size: 15.5px; line-height: 1.55; margin: 0 0 10px; }
.exp ul { margin: 0; padding-left: 18px; }
.exp li { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; }

.skills-list { display: flex; flex-direction: column; gap: 16px; }
.skill-group .sg-label { font-weight: 600; }
.skill-group .sg-items { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.placeholder { color: var(--faint); font-style: italic; }

footer { margin-top: 88px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-note { color: var(--faint); font-size: 12px; font-family: var(--mono); letter-spacing: 0.02em; }

/* ============================================================
   PRINT / PDF  (used when the résumé is exported to PDF)
   ============================================================ */
@media print {
  @page { margin: 0.55in 0.6in; }
  :root {
    --bg: #ffffff; --fg: #14161c; --muted: #44474f;
    --faint: #6b6e76; --line: #d8dae0; --accent: #2f5fe0;
  }
  body { font-size: 10.5pt; line-height: 1.45; background: #ffffff !important; }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .back, .downloads, footer { display: none !important; }
  .resume-name { font-size: 22pt; margin-top: 0; }
  .resume-headline p { font-size: 11.5pt; }
  .resume-headline p:first-child { font-size: 12pt; }
  .r-section { margin-top: 22px; padding-top: 16px; break-inside: auto; }
  .exp-item, .skill-group { break-inside: avoid; }
  .exp ul { break-inside: auto; }
  .exp li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
