/* Self-hosted Inter (variable, weight axis 100–900). No third-party requests. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ink: #2c272b;
  --muted: #71676e;
  --soft: #faf7f8;
  --paper: #ffffff;
  --line: #eadfe4;
  --accent: #8f5068;
  --accent-dark: #5b3844;
  --accent-soft: #f4e8ed;
  --gold: #b08a4a;
  --shadow: 0 24px 70px rgba(44, 39, 43, 0.10);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(143,80,104,.13), transparent 29rem),
    linear-gradient(180deg, #fffafa 0%, #f7f1f3 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-frame {
  width: min(calc(100% - 36px), var(--max));
  margin: 32px auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(234,223,228,.9);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(44,39,43,.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .86rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 8px 20px rgba(91,56,68,.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .88rem;
  color: var(--muted);
}

.nav a { color: var(--muted); font-weight: 650; }
.nav a:hover { color: var(--accent-dark); }

.resume-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  padding: 44px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,247,248,.94)),
    linear-gradient(135deg, rgba(143,80,104,.10), transparent);
}

.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.subtitle {
  margin: 18px 0 0;
  max-width: 790px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 650;
  font-size: .95rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}

.photo-card {
  justify-self: end;
  width: 170px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 40px rgba(44,39,43,.10);
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 19 / 24;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
}
.photo-caption {
  margin: 8px 2px 1px;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
}

.sidebar {
  padding: 34px 30px 40px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcf8f9);
}

.main-content {
  padding: 34px 44px 46px;
}

.section {
  padding: 0 0 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--line);
}
.section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}
.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.summary {
  margin: 0;
  font-size: 1.04rem;
  color: #423a40;
}

.competency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.competency-list li {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #ead2db;
  font-size: .88rem;
  font-weight: 700;
}

.timeline { display: grid; gap: 24px; }
.role {
  position: relative;
  padding-left: 23px;
}
.role::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.role-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 7px;
}
.role h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
}
.role .company {
  display: block;
  color: var(--muted);
  font-weight: 650;
}
.role .dates {
  white-space: nowrap;
  color: var(--accent-dark);
  font-size: .88rem;
  font-weight: 800;
  padding: 4px 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.role ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #453d43;
}
.role li { margin: 7px 0; }

.side-block { margin: 0 0 28px; }
.side-block:last-child { margin-bottom: 0; }
.side-title {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 900;
}
.side-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list li {
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  color: #433a40;
  font-size: .92rem;
  line-height: 1.45;
}
.side-list strong { display: block; color: var(--ink); }

.cta-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  box-shadow: 0 18px 36px rgba(91,56,68,.22);
}
.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.cta-panel p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.82);
  font-size: .91rem;
}
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: white;
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button.secondary {
  background: rgba(255,255,255,.12);
  color: white;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }

.footer {
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

.mobile-only { display: none; }

@media (max-width: 820px) {
  .site-frame { width: min(calc(100% - 22px), var(--max)); margin: 14px auto; }
  .topbar { border-radius: 18px; align-items: flex-start; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .photo-card { justify-self: start; width: 142px; grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 22px; }
  .main-content { padding: 28px 22px 34px; }
  .role-header { grid-template-columns: 1fr; gap: 5px; }
  .role .dates { justify-self: start; }
  .contact-row { align-items: stretch; }
  .contact-pill { width: 100%; }
  .mobile-only { display: initial; }
}

/* ---- Inline edit mode (inert for normal visitors) ---- */
#editor-toolbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 44px rgba(44, 39, 43, .34);
  font-size: .9rem;
  max-width: calc(100% - 24px);
  flex-wrap: wrap;
  justify-content: center;
}
#editor-toolbar .et-tag {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 999px;
}
#editor-toolbar .et-hint { color: rgba(255, 255, 255, .68); }
#editor-toolbar .et-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-family: inherit;
}
#editor-toolbar .et-save { background: var(--gold); color: #2a2117; }
#editor-toolbar .et-exit { background: rgba(255, 255, 255, .15); color: #fff; }
#editor-toolbar .et-btn:hover { filter: brightness(1.08); }

body.editing [contenteditable] {
  outline: 1px dashed transparent;
  border-radius: 6px;
  transition: outline-color .12s ease, background .12s ease;
}
body.editing [contenteditable]:hover {
  outline-color: var(--accent);
  background: rgba(143, 80, 104, .05);
}
body.editing [contenteditable]:focus {
  outline: 2px solid var(--accent);
  background: rgba(143, 80, 104, .07);
}

@media print {
  #editor-toolbar { display: none !important; }
  body { background: white; font-size: 10.5pt; }
  .site-frame { width: 100%; margin: 0; }
  .topbar, .cta-panel, .footer { display: none; }
  .resume-card { border: none; box-shadow: none; border-radius: 0; }
  .hero { padding: 0 0 16px; grid-template-columns: minmax(0,1fr) 100px; border-bottom: 1px solid #bbb; background: white; }
  h1 { font-size: 28pt; letter-spacing: 0; }
  .subtitle { font-size: 10.5pt; margin-top: 8px; }
  .contact-row { margin-top: 10px; gap: 4px; }
  .contact-pill { border: none; padding: 0; background: transparent; }
  .photo-card { width: 92px; padding: 0; box-shadow: none; border: none; }
  .photo-card img { border-radius: 8px; }
  .photo-caption { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { border: none; padding: 0; background: white; }
  .main-content { padding: 0; }
  .side-block { break-inside: avoid; }
  .section { padding-bottom: 12px; margin-bottom: 12px; }
  .section-title, .side-title { font-size: 9pt; color: #222; margin-bottom: 6px; }
  .competency-list { gap: 4px; }
  .competency-list li { padding: 0; border: none; background: transparent; color: #222; font-size: 9.5pt; }
  .competency-list li::after { content: " •"; }
  .competency-list li:last-child::after { content: ""; }
  .side-list { gap: 4px; }
  .side-list li { border: none; padding: 0; font-size: 9.5pt; }
  .role { break-inside: avoid; padding-left: 0; }
  .role::before { display: none; }
  .role-header { grid-template-columns: minmax(0,1fr) auto; }
  .role h3 { font-size: 10.5pt; }
  .role .dates { padding: 0; border: none; background: transparent; color: #222; }
  .role ul { margin-top: 4px; }
  .role li { margin: 2px 0; }
}
