:root {
  color-scheme: light;
  --paper: #f3ece4;
  --paper-2: #faf6f1;
  --card: #fffdfb;
  --ink: #241c18;
  --muted: #5c514a;
  --line: #e3d5c8;
  --blush: #9c4d55;
  --wine: #6b2d36;
  --sage: #2a6b52;
  --gold: #8d6b3e;
  --shadow: 0 16px 40px rgba(36, 28, 24, 0.06);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--wine) 12%, transparent), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

a { color: var(--wine); }

a:hover { color: var(--blush); }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(243, 236, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand strong {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.header-progress {
  min-width: 132px;
  text-align: right;
  text-decoration: none;
  color: inherit;
}

.header-progress small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.bar {
  height: 6px;
  background: #e7dcd2;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blush), var(--wine));
}

.desk-nav {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}

.desk-nav a,
.tabs a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.desk-nav a:hover,
.tabs a:hover { border-color: var(--wine); }

.desk-nav a[aria-current="page"] {
  background: var(--wine);
  color: #fffaf7;
  border-color: var(--wine);
}

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: rgba(255, 253, 251, 0.96);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.tabs a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  border-radius: 14px;
}

.tabs a[aria-current="page"] {
  background: var(--wine);
  color: #fffaf7;
  border-color: var(--wine);
}

.hero { padding: 36px 0 8px; }

.kicker {
  margin: 0 0 8px;
  color: var(--blush);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.02;
  font-weight: 500;
}

h1 em { font-style: italic; color: var(--wine); }

h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 8px; }

h3 { font-size: 1.25rem; margin: 0 0 6px; }

.lede { font-size: 1.15rem; max-width: 40rem; }

.section { padding: 28px 0; }

.section + .section { border-top: 1px solid var(--line); }

.grid-2 {
  display: grid;
  gap: 14px;
}

.card, .note-card, .agency, .search-card, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}

.card p:last-child, .agency p:last-child { margin-bottom: 0; }

ul.clean { margin: 8px 0 0; padding-left: 1.1rem; }

ul.clean li { margin: 6px 0; }

.field { margin: 0 0 12px; }

.row .field { margin: 0; }

.row textarea { min-height: 72px; }

.note-card label, .field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

textarea, input[type="text"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

textarea { min-height: 110px; resize: vertical; }

.prompt {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 8px 0 0;
}

.status {
  min-height: 1.4em;
  color: var(--sage);
  font-size: 0.92rem;
}

.styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.styles button, .actions button, .text-btn, .row-actions button {
  font: inherit;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}

.styles button[aria-pressed="true"] {
  background: var(--wine);
  color: #fffaf7;
  border-color: var(--wine);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.actions .primary {
  background: var(--ink);
  color: #fffaf7;
  border-color: var(--ink);
}

.row {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
}

.row-actions { display: flex; justify-content: flex-end; }

.cv-layout { display: grid; gap: 20px; }

.cv-sheet {
  background: white;
  color: #1c1c1c;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-height: 420px;
}

.cv-empty { color: #667; font-family: var(--sans); }

.cv-sheet h2, .cv-sheet h3, .cv-sheet p, .cv-sheet li { font-family: inherit; }

.cv-sheet .cv-name {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cv-sheet .cv-contact { margin: 6px 0 0; }

.cv-sheet .cv-block { margin-top: 16px; }

.cv-sheet .cv-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cv-sheet ul { margin: 0; padding-left: 1.1rem; }

.cv-sheet .role { margin: 0; }

.cv-sheet .meta { margin: 0; color: #444; }

.cv-sheet .detail { margin: 4px 0 10px; white-space: pre-wrap; }

.style-classic {
  font-family: "Fraunces", Georgia, serif;
  text-align: center;
}

.style-classic .cv-label { border-bottom: 1px solid #222; padding-bottom: 3px; }

.style-classic ul, .style-classic .role, .style-classic .detail, .style-classic .meta {
  text-align: left;
}

.style-modern {
  font-family: var(--sans);
  border-left: 6px solid var(--sage);
}

.style-modern .cv-name { font-family: var(--sans); font-weight: 600; }

.style-modern .cv-label { color: var(--sage); }

.style-minimal {
  font-family: var(--sans);
  padding: 36px 28px;
  box-shadow: none;
  border: 1px solid #ececec;
}

.style-minimal .cv-name {
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.style-minimal .cv-label { color: #777; font-weight: 500; }

.style-fashion {
  font-family: "Fraunces", Georgia, serif;
  background: #fbf7f3;
}

.style-fashion .cv-name {
  font-style: italic;
  font-weight: 500;
  color: #6b2d36;
}

.style-fashion .cv-label { color: #9c4d55; }

.style-fashion .cv-block { border-top: 1px solid #eadfd4; padding-top: 10px; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid #cfe0d6;
  background: #f3faf6;
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.badge.warn {
  color: var(--gold);
  background: #fbf6ee;
  border-color: #ead9bf;
}

.links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }

.callout { background: #fbf6f4; }

.goal {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.goal input { width: 1.15rem; height: 1.15rem; margin-top: 4px; accent-color: var(--wine); }

.goal:last-child { border-bottom: 0; }

.site-footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.missed { padding: 64px 0; }

.tiles {
  display: grid;
  gap: 12px;
  margin: 8px 0 8px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 16px 16px 14px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

.tile:hover { color: inherit; border-color: var(--ink); }

.tile strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tile span { color: var(--muted); font-size: 0.95rem; }

.tile-cv { background: #e5f2ea; border-left: 7px solid #1d6b4f; }
.tile-agencies { background: #e6eef8; border-left: 7px solid #16324f; }
.tile-learn { background: #f8e8ee; border-left: 7px solid #7a3048; }
.tile-jobs { background: #e3f3f3; border-left: 7px solid #0c5c66; }
.tile-tips { background: #f8efd8; border-left: 7px solid #8a5a12; }
.tile-goals { background: #e5f6ee; border-left: 7px solid #1f6b45; }

.page-band {
  margin: 8px 0 18px;
  padding: 22px 20px 18px;
  border-radius: 26px;
}

.page-band h1 { margin-bottom: 8px; }

.page-band .lede { color: inherit; }

.stack { margin-top: 14px; }

body[data-page="home"] { --wine: #6b2d36; --blush: #9c4d55; --paper: #f3ece4; }
body[data-page="cv"] {
  --wine: #1d6b4f;
  --blush: #2f8f68;
  --paper: #e7f0ea;
  --paper-2: #f4faf6;
  --line: #c9ddd2;
}
body[data-page="agencies"] {
  --wine: #16324f;
  --blush: #2d5f8a;
  --paper: #e8eef5;
  --paper-2: #f5f8fb;
  --line: #cdd8e6;
}
body[data-page="learn"] {
  --wine: #7a3048;
  --blush: #a35d6e;
  --gold: #8d6b3e;
  --paper: #f6eef2;
  --paper-2: #fbf7f8;
  --line: #ead5de;
}
body[data-page="jobs"] {
  --wine: #0c5c66;
  --blush: #1d8a8a;
  --paper: #e7f3f3;
  --paper-2: #f4fbfb;
  --line: #c5e0e0;
}
body[data-page="tips"] {
  --wine: #8a5a12;
  --blush: #b4833a;
  --paper: #f7f1e4;
  --paper-2: #fffaf0;
  --line: #ead9b8;
}
body[data-page="goals"] {
  --wine: #1f6b45;
  --blush: #3d9464;
  --paper: #e8f4ee;
  --paper-2: #f5fbf7;
  --line: #c6e0d2;
}

body[data-page="cv"] .page-band { background: #17352a; color: #f3faf6; }
body[data-page="agencies"] .page-band { background: #16324f; color: #f4f7fb; }
body[data-page="learn"] .page-band {
  background:
    linear-gradient(135deg, #7a3048 0%, #9c4d55 55%, #c4a574 100%);
  color: #fffaf7;
}
body[data-page="jobs"] .page-band { background: #0c5c66; color: #f3fbfb; }
body[data-page="tips"] .page-band {
  background: #fff6df;
  color: #3d2a10;
  border: 1px solid #ead9b8;
  box-shadow: 4px 4px 0 #e7d3a4;
}
body[data-page="goals"] .page-band { background: #1f6b45; color: #f3faf6; }

.page-band .kicker { color: inherit; opacity: 0.8; }
body[data-page="tips"] .page-band .kicker { color: #8a5a12; opacity: 1; }

body[data-page="cv"] .site-header { border-bottom: 3px solid #1d6b4f; }
body[data-page="agencies"] .site-header { border-bottom: 3px solid #16324f; }
body[data-page="learn"] .site-header { border-bottom: 3px solid #7a3048; }
body[data-page="jobs"] .site-header { border-bottom: 3px solid #0c5c66; }
body[data-page="tips"] .site-header { border-bottom: 3px solid #8a5a12; }
body[data-page="goals"] .site-header { border-bottom: 3px solid #1f6b45; }

@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .cv-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); align-items: start; }
  .cv-preview-wrap { position: sticky; top: 86px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .desk-nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body.printing-cv { background: white; }
  body.printing-cv .no-print { display: none !important; }
  body.printing-cv .wrap { width: auto; }
  body.printing-cv .cv-sheet {
    box-shadow: none;
    border: 0;
    min-height: 0;
  }
  body.printing-cv .cv-preview-wrap { position: static; }
  .cv-empty { display: none !important; }
  @page { margin: 14mm; }
}
