:root {
  color-scheme: light;
  --ink: #15221d;
  --muted: #65736d;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #dce2de;
  --green: #1d5d43;
  --green-dark: #123e2d;
  --mint: #e4f0e9;
  --shadow: 0 18px 60px rgba(28, 51, 41, .12);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(117, 157, 137, .16), transparent 30rem),
    var(--paper);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1500px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 42px 0 30px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

.subtitle { margin: 10px 0 0; color: var(--muted); }

.contact,
.viewer-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  background: rgba(255,255,255,.72);
  font-weight: 750;
  text-decoration: none;
  transition: .18s ease;
}

.contact:hover,
.viewer-actions a:hover { border-color: var(--green); transform: translateY(-1px); }

.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.intro h2 { margin-bottom: 6px; font-size: 1.25rem; }
.intro p { max-width: 700px; margin-bottom: 0; color: var(--muted); }
.location { color: var(--green); font-size: .84rem; font-weight: 800; white-space: nowrap; }

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #f1f2ed;
}

.resume-card {
  width: 100%;
  padding: 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: .16s ease;
}

.resume-card:hover { background: rgba(255,255,255,.75); }
.resume-card.active { border-color: #bfcfc6; background: var(--card); box-shadow: 0 7px 22px rgba(35, 62, 49, .08); }
.resume-card strong { display: block; margin: 6px 0 3px; font-size: 1.02rem; }
.resume-card small { display: block; color: var(--muted); line-height: 1.4; }
.tag { color: var(--green); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.viewer-panel { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; background: #dfe3e0; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.viewer-toolbar > div:first-child { display: flex; align-items: center; gap: 9px; }
.viewer-toolbar h2 { margin: 0; font-size: 1rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #35a56f; box-shadow: 0 0 0 4px #e0f3e9; }
.viewer-actions { display: flex; gap: 8px; }
.viewer-actions a { padding: 7px 13px; font-size: .82rem; }
.viewer-actions .primary { border-color: var(--green-dark); color: white; background: var(--green-dark); }

.preview-stage {
  display: grid;
  place-items: start center;
  min-height: 690px;
  padding: 22px;
  overflow: auto;
  background: #dfe3e0;
}

.preview-stage a { display: block; width: min(100%, 780px); }
.preview-stage img { display: block; width: 100%; height: auto; border: 1px solid #cfd5d1; background: white; box-shadow: 0 12px 32px rgba(25, 43, 35, .14); }
.viewer-fallback { display: none; margin: 0; padding: 10px 16px; color: var(--muted); background: var(--card); font-size: .8rem; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 38px; color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  .site-header, main, footer { width: min(100% - 24px, 1500px); }
  .site-header { padding-top: 24px; }
  .intro { align-items: start; flex-direction: column; }
  .workspace { display: block; }
  .resume-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 80%); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scroll-snap-type: x mandatory; }
  .resume-card { scroll-snap-align: start; }
  .preview-stage { min-height: 70vh; padding: 12px; }
}

@media (max-width: 560px) {
  .contact { display: none; }
  .viewer-toolbar { align-items: flex-start; flex-direction: column; }
  .viewer-actions { width: 100%; }
  .viewer-actions a { flex: 1; text-align: center; }
  footer { flex-direction: column; }
}
