/* ==========================================================================
   Resume page
   ========================================================================== */

.resume-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 140px;
}
.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

/* ---------- Intro ---------- */
.resume-intro { position: relative; z-index: 2; }
.resume-intro .section-head { margin-bottom: clamp(40px, 7vh, 88px); }
.resume-intro h1 {
  font-size: clamp(64px, 7vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.lede {
  font-family: var(--font-alt);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 40px;
}
.btn--lg { padding: 18px 26px; font-size: 16px; gap: 14px; }

/* ---------- Document preview ---------- */
.resume-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.paper {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 8.5 / 11;
  padding: 9% 9% 7%;
  background: linear-gradient(170deg, #ece5d3, #d9d0ba);
  border-radius: 3px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.3) inset,
    0 40px 80px rgba(0,0,0,.55),
    0 12px 24px rgba(0,0,0,.35);
  transition: box-shadow .4s ease;
  will-change: transform;
}
.paper:hover { box-shadow: 0 2px 0 rgba(255,255,255,.3) inset, 0 50px 100px rgba(0,0,0,.6), 0 16px 30px rgba(0,0,0,.4); }
.paper-head {
  display: flex;
  justify-content: space-between;
  gap: 8%;
  padding-bottom: 6%;
  margin-bottom: 6%;
  border-bottom: 1px solid rgba(17,16,13,.12);
}
.paper-head > div:first-child { flex: 1; }
.paper-name {
  font-size: clamp(11px, 1.3vw, 17px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #11100d;
  margin-bottom: 8px;
}
.paper-contact {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4%;
  background: rgba(17,16,13,.05);
}
.paper-body { display: grid; grid-template-columns: 1fr 34%; gap: 8%; }
.paper-main,
.paper-side { display: flex; flex-direction: column; gap: 5px; }
.paper-side { padding: 6% 8%; background: rgba(17,16,13,.05); }

.bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(17,16,13,.22);
}
.bar.h { height: 5px; margin-top: 10px; background: rgba(17,16,13,.55); }
.bar.h:first-child { margin-top: 0; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }

/* Leaf peeking from behind the paper */
.leaf {
  position: absolute;
  z-index: 0;
  left: -20%;
  top: 6%;
  width: 50%;
  aspect-ratio: 1 / 1.6;
  will-change: transform;
}
.leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100% 0 100% 0;
  background:
    linear-gradient(135deg, transparent 49%, rgba(0,0,0,.35) 50%, transparent 51%),
    radial-gradient(ellipse at 30% 20%, #737a4c, transparent 70%),
    linear-gradient(160deg, #5a6038, #2a2d1d);
  transform: rotate(-32deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}

/* ---------- Summary ---------- */
.resume-facts {
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition-delay: .12s;
}
.fact-big {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fact-label {
  margin-top: 8px;
  font-family: var(--font-alt);
  font-size: 22px;
  color: var(--ink-soft);
}
.rule { display: block; width: 40px; height: 1px; background: var(--ink-muted); }
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-alt);
  font-size: 22px;
  color: var(--ink-soft);
}
.fact-note {
  font-family: var(--font-alt);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 22ch;
}

.site-footer { padding-bottom: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .resume-grid { grid-template-columns: 1fr 1fr; }
  .resume-facts {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 48px;
  }
  .resume-facts .rule { display: none; }
}

@media (max-width: 760px) {
  .resume-hero { padding: 100px 0 120px; }
  .resume-grid { grid-template-columns: 1fr; gap: 56px; }
  .resume-intro .section-head { margin-bottom: 32px; }
  .resume-visual { padding: 0 8%; }
  .resume-facts { flex-direction: column; gap: 24px; }
  .resume-facts .rule { display: block; }
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] .paper {
  background: linear-gradient(170deg, #ffffff, #f1f1ef);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 70px rgba(0,0,0,.14), 0 10px 20px rgba(0,0,0,.07);
}
:root[data-theme="light"] .leaf::before { box-shadow: 0 30px 60px rgba(60,50,30,.2); }
