/* Velvet: the whole sheet is deep aubergine. Ivory type, gold foil name, an engraved
   double hairline frame with scalloped corners on every page. An evening invitation.
   Everything is scoped to .resume (plus the stage and sheet colour). */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Sofia+Sans+Semi+Condensed:ital,wght@0,300..700;1,300..600&display=swap");

:root {
  --stage-bg: #0d040f;
}

.sheet {
  background: #1f0b23;
  box-shadow: 0 0 0 1px rgba(200, 164, 94, .18), 0 24px 70px -14px rgba(0, 0, 0, .8);
}

.resume {
  --ve-bg: #1f0b23;
  --ve-plum: #2c1230;
  --ve-gold: #c8a45e;
  --ve-gold-pale: #e4cd9a;
  --ve-gold-deep: #94702c;
  --ve-ivory: #f7efe2;
  --ve-text: #e7ddd2;
  --ve-soft: #b9a9b4;
  --ve-hair: rgba(200, 164, 94, .3);
  --ve-hair-faint: rgba(228, 205, 154, .13);
  --ve-display: "Fraunces", "Hoefler Text", "Baskerville", Georgia, serif;
  --ve-text-face: "Sofia Sans Semi Condensed", "Avenir Next Condensed", "Avenir Next", sans-serif;

  position: relative;
  font-family: var(--ve-text-face);
  font-size: 12.2px;
  line-height: 1.37;
  font-weight: 400;
  color: var(--ve-text);
  background:
    radial-gradient(460px 250px at 50% 168px, rgba(126, 62, 118, .5) 0%, rgba(126, 62, 118, 0) 72%),
    var(--ve-bg);
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: geometricPrecision;
}

/* ---------- signature: engraved double frame, scalloped corners ----------
   Drawn entirely with gradients on one empty box. In print the box is fixed,
   so Chrome repeats the frame on every page. */
.resume::before {
  --f-line: #b08f52;
  --f-line2: rgba(200, 164, 94, .34);
  --f-corner: radial-gradient(circle at 0 0, var(--ve-bg) 0 12.5px, var(--f-line) 12.5px 13.5px, rgba(31, 11, 35, 0) 13.5px);
  content: "";
  position: absolute;
  inset: 17px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, var(--ve-bg) 0 12.5px, var(--f-line) 12.5px 13.5px, rgba(31, 11, 35, 0) 13.5px) left top / 14px 14px no-repeat,
    radial-gradient(circle at 100% 0, var(--ve-bg) 0 12.5px, var(--f-line) 12.5px 13.5px, rgba(31, 11, 35, 0) 13.5px) right top / 14px 14px no-repeat,
    radial-gradient(circle at 0 100%, var(--ve-bg) 0 12.5px, var(--f-line) 12.5px 13.5px, rgba(31, 11, 35, 0) 13.5px) left bottom / 14px 14px no-repeat,
    radial-gradient(circle at 100% 100%, var(--ve-bg) 0 12.5px, var(--f-line) 12.5px 13.5px, rgba(31, 11, 35, 0) 13.5px) right bottom / 14px 14px no-repeat,
    linear-gradient(var(--f-line), var(--f-line)) left top / 100% 1px no-repeat,
    linear-gradient(var(--f-line), var(--f-line)) left bottom / 100% 1px no-repeat,
    linear-gradient(var(--f-line), var(--f-line)) left top / 1px 100% no-repeat,
    linear-gradient(var(--f-line), var(--f-line)) right top / 1px 100% no-repeat,
    linear-gradient(var(--f-line2), var(--f-line2)) left 0 top 5px / 100% 1px no-repeat,
    linear-gradient(var(--f-line2), var(--f-line2)) left 0 bottom 5px / 100% 1px no-repeat,
    linear-gradient(var(--f-line2), var(--f-line2)) left 5px top 0 / 1px 100% no-repeat,
    linear-gradient(var(--f-line2), var(--f-line2)) right 5px top 0 / 1px 100% no-repeat;
}

.resume .r-header,
.resume .r-body { position: relative; z-index: 1; }

/* ================= identity: centred, engraved ================= */
.resume .r-header {
  display: block;
  padding: 42px 66px 0;
  text-align: center;
}

.resume .r-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 9.8px;
  font-weight: 600;
  letter-spacing: .4em;
  text-indent: .4em;
  text-transform: uppercase;
  color: var(--ve-gold-pale);
}
.resume .r-eyebrow::before,
.resume .r-eyebrow::after {
  content: "";
  flex: none;
  width: 70px; height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 94, 0), var(--ve-gold));
}
.resume .r-eyebrow::after { background: linear-gradient(270deg, rgba(200, 164, 94, 0), var(--ve-gold)); }

.resume .r-name {
  position: relative;
  margin-top: 8px;
  padding-bottom: 23px;
  font-family: var(--ve-display);
  font-style: italic;
  font-size: 72px;
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -.012em;
  color: var(--ve-gold-pale);
  background: linear-gradient(176deg, #f6ecd0 8%, #e4cd9a 34%, #c8a45e 58%, #a98443 78%, #dcc48e 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* lozenge rule under the name */
.resume .r-name::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  background: var(--ve-gold);
  transform: rotate(45deg);
}
.resume .r-name::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 9px;
  width: 260px; height: 1px;
  margin-left: -130px;
  background:
    linear-gradient(90deg, rgba(200, 164, 94, 0), var(--ve-gold)) left / 118px 1px no-repeat,
    linear-gradient(270deg, rgba(200, 164, 94, 0), var(--ve-gold)) right / 118px 1px no-repeat;
}

.resume .r-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.resume .r-tags li {
  display: flex;
  align-items: center;
  font-size: 9.6px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ve-ivory);
  white-space: nowrap;
}
.resume .r-tags li + li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  margin: 0 15px 1px 13px;
  border: 1px solid var(--ve-gold);
  transform: rotate(45deg);
}

.resume .r-contact {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 17px;
  padding: 8.5px 0 8px;
  border-top: 1px solid var(--ve-hair);
  border-bottom: 1px solid var(--ve-hair);
  font-size: 12.6px;
  letter-spacing: .05em;
  color: var(--ve-ivory);
}
.resume .r-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.resume .r-contact svg {
  width: 12.5px; height: 12.5px;
  stroke: var(--ve-gold);
  stroke-width: 1.5;
}

/* ================= body: one measure, with strips ================= */
.resume .r-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 26px;
  padding: 22px 66px 56px;
}
.resume .r-main,
.resume .r-side { display: contents; }
.resume .r-summary    { grid-column: 1 / -1; grid-row: 1; }
.resume .r-skills     { grid-column: 1 / -1; grid-row: 2; }
.resume .r-experience { grid-column: 1 / -1; grid-row: 3; }
.resume .r-additional { grid-column: 1 / -1; grid-row: 4; }
.resume .r-certs      { grid-column: 1; grid-row: 5; }
.resume .r-education  { grid-column: 2; grid-row: 5; }

/* section headings: italic serif between fading hairlines */
.resume .r-h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--ve-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ve-gold-pale);
  white-space: nowrap;
  break-after: avoid;
  page-break-after: avoid;
}
.resume .r-h::before,
.resume .r-h::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 94, 0), rgba(200, 164, 94, .62));
}
.resume .r-h::after { background: linear-gradient(270deg, rgba(200, 164, 94, 0), rgba(200, 164, 94, .62)); }

.resume .r-summary-text {
  margin: 6px auto 0;
  font-family: var(--ve-display);
  font-size: 12.9px;
  line-height: 1.46;
  font-weight: 300;
  text-align: center;
  color: var(--ve-ivory);
  text-wrap: pretty;
}

/* competencies: three engraved columns */
.resume .r-skills { margin-top: 15px; }
.resume .r-skill-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  column-gap: 18px;
  margin-top: 5px;
}
.resume .r-skill-list li {
  position: relative;
  padding: 3.4px 0 3.2px 13px;
  line-height: 1.35;
  border-bottom: 1px solid var(--ve-hair-faint);
  break-inside: avoid;
}
.resume .r-skill-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .92em;
  width: 4px; height: 4px;
  background: var(--ve-gold);
  transform: rotate(45deg);
}

/* experience */
.resume .r-experience { margin-top: 16px; }
.resume .r-job { margin-top: 9px; }
.resume .r-h + .r-job { margin-top: 7px; }
.resume .r-job-head {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content 1fr;
  column-gap: 11px;
  align-items: baseline;
  break-inside: avoid;
  break-after: avoid;
  page-break-after: avoid;
}
.resume .r-role {
  grid-column: 1;
  font-family: var(--ve-display);
  font-size: 15.6px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ve-ivory);
}
.resume .r-badge {
  grid-column: 2;
  align-self: center;
  padding: 2px 8px 1.5px;
  font-size: 7.8px;
  font-weight: 700;
  letter-spacing: .2em;
  text-indent: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ve-bg);
  background: linear-gradient(180deg, #e4cd9a, #c8a45e);
  border-radius: 1px;
  white-space: nowrap;
}
.resume .r-dates {
  grid-column: 3;
  justify-self: end;
  font-size: 9.6px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ve-gold);
  white-space: nowrap;
}
.resume .r-org {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: var(--ve-soft);
}
.resume .r-company {
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--ve-gold-pale);
}
.resume .r-loc { font-style: italic; }
.resume .r-loc::before {
  content: "";
  display: inline-block;
  width: 3.5px; height: 3.5px;
  margin: 0 9px 2.5px 9px;
  background: var(--ve-gold);
  transform: rotate(45deg);
}

.resume .r-bullets { margin-top: 4px; }
.resume .r-bullets li {
  position: relative;
  padding-left: 16px;
  margin-top: 1px;
  break-inside: avoid;
  text-wrap: pretty;
}
.resume .r-bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 4px; height: 4px;
  border: 1px solid var(--ve-gold);
  transform: rotate(45deg);
}
.resume .r-desc {
  margin-top: 4px;
  text-wrap: pretty;
}

.resume .r-additional { margin-top: 15px; break-inside: avoid; }
.resume .r-additional .r-job { break-inside: avoid; }
.resume .r-job-brief .r-job-head { grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 12px; }
.resume .r-job-brief .r-role { grid-column: 1; grid-row: 1; }
.resume .r-job-brief .r-org { grid-column: 2; grid-row: 1; margin-top: 0; }
.resume .r-job-brief .r-dates { grid-column: 3; grid-row: 1; }
.resume .r-job-brief .r-desc { margin-top: 2px; }

/* ================= closing pair: credentials and education ================= */
.resume .r-certs,
.resume .r-education { margin-top: 16px; break-inside: avoid; }

.resume .r-cert-list { margin-top: 9px; }
.resume .r-cert {
  position: relative;
  padding-left: 15px;
  line-height: 1.36;
  break-inside: avoid;
}
.resume .r-cert::before {
  content: "";
  position: absolute;
  left: 2px; top: .5em;
  width: 4px; height: 4px;
  background: var(--ve-gold);
  transform: rotate(45deg);
}
.resume .r-cert + .r-cert { margin-top: 6px; }
.resume .r-cert-name {
  font-weight: 600;
  color: var(--ve-ivory);
}
.resume .r-cert-org {
  margin-left: 7px;
  font-style: italic;
  color: var(--ve-soft);
}

.resume .r-edu {
  margin-top: 9px;
  padding-left: 15px;
  position: relative;
  line-height: 1.38;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
  break-inside: avoid;
}
.resume .r-edu::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
.resume .r-edu-title, .resume .r-edu-date { order: 1; }
.resume .r-edu-school, .resume .r-edu-loc { order: 3; }
.resume .r-edu::before {
  content: "";
  position: absolute;
  left: 2px; top: .56em;
  width: 4px; height: 4px;
  background: var(--ve-gold);
  transform: rotate(45deg);
}
.resume .r-edu + .r-edu { margin-top: 9px; }
.resume .r-edu-title {
  font-family: var(--ve-display);
  font-size: 14.2px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ve-ivory);
}
.resume .r-edu-school { color: var(--ve-text); }
.resume .r-edu-loc {
  font-style: italic;
  color: var(--ve-soft);
}
.resume .r-edu-loc::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 7px 2.5px 0;
  background: var(--ve-gold);
  transform: rotate(45deg);
}
.resume .r-edu-date {
  margin-left: auto;
  font-size: 9.4px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ve-gold);
}

/* ================= print: this is the product ================= */
@media print {
  @page { size: letter; margin: 0; }
  /* the page canvas itself is plum, so the dark runs to every edge of both pages */
  html[data-theme="velvet"], html[data-theme="velvet"] body { background: #1f0b23 !important; }
  .sheet { background: #1f0b23; }

  /* fixed boxes repeat on every printed page: the frame is drawn on both */
  .resume::before { position: fixed; }

  .resume .r-body {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-top: 46px;
    padding-bottom: 44px;
  }
  .resume .r-summary { margin-top: -26px; }

  /* Preview and other PDFKit viewers paint gradient clipped text as a solid block,
     so the printed name is plain pale gold. The foil is a screen only finish. */
  .resume .r-name {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #e4cd9a;
  }

  .resume p, .resume li { orphans: 2; widows: 2; }
}
