/* Kontrast: black and white editorial. Grey profile block, b/w photo, the name running up a narrow
   spine, white experience section and an inverted black section below it. */
:root {
  --rs-accent: #111;
  --rs-ink: #111;
  --rs-text: #3a3a3a;
  --rs-muted: #777;
  --rs-line: #d9d9d9;
  --kt-grey: #d4d4d4;
  --kt-black: #141414;
  --jo-accent: #141414;
  --cv-max: 1060px;
  --cv-backdrop: #d9d9d6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.65 'Open Sans', system-ui, sans-serif; color: var(--rs-text); background: #fff; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
a { color: #111; }

.kt { background: #fff; }
.kt-h { font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 1.45rem; color: inherit; margin-bottom: 1.1rem; letter-spacing: -.005em; }

/* top: grey profile block + photo */
.kt-top { display: grid; grid-template-columns: minmax(0, 1fr) 46%; min-height: 330px; }
.kt-profile { background: var(--kt-grey); color: #222; padding: 48px 44px 36px 60px; display: flex; flex-direction: column; justify-content: flex-end; }
.kt-about { white-space: pre-wrap; font-size: .93rem; color: #333; max-width: 52ch; }
.kt-contact { margin-top: 1.2rem; }
.kt-contact .rs-contact { gap: .4rem 1.8rem; font-size: .9rem; }
.kt-contact .rs-contact span { color: #555; }
.kt-photo { position: relative; background: #bdbdbd; overflow: hidden; }
.kt-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05); }
.kt-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 6rem; color: #fff; }

/* the rest: spine with the vertical name + main column */
.kt-rest { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.kt-spine { position: relative; border-right: 3px solid var(--kt-black); padding: 40px 0; }
.kt-spine-text { position: sticky; top: 24px; display: flex; gap: 1.2rem; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto; }
.kt-name { font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 3.6rem; line-height: 1.02; color: #111; letter-spacing: -.01em; }
.kt-spine-meta { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; color: #444; padding-top: .5rem; }

.kt-main { display: flex; flex-direction: column; }
.kt-sec { padding: 40px 52px; }
.kt-light { background: #fff; }
.kt-dark { background: var(--kt-black); color: #e6e6e6; flex: 1; }
.kt-group + .kt-group { margin-top: 2.2rem; }

/* entries: date column + content */
.kt-entries .rs-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 26px;
  grid-template-areas: "date title" "date org" "date meta" "date desc"; }
.kt-entries .rs-item + .rs-item { margin-top: 1.6rem; }
.kt-entries .rs-item-head { display: contents; }
.kt-entries .rs-dates { grid-area: date; font-family: Merriweather, Georgia, serif; font-size: .8rem; white-space: normal; padding-top: .2rem; }
.kt-entries .rs-item h3 { grid-area: title; font-family: Merriweather, Georgia, serif; font-size: 1rem; font-weight: 700; }
.kt-entries .rs-org { grid-area: org; font-weight: 600; font-size: .85rem; }
.kt-entries .rs-meta { grid-area: meta; }
.kt-entries .rs-desc { grid-area: desc; margin-top: .45rem; font-size: .9rem; }

.kt-light .rs-org { color: #555; }
.kt-light .rs-dates { color: #444; }

/* inverted section */
.kt-dark .rs-item h3, .kt-dark .rs-pairs dt, .kt-dark .rs-langs b { color: #fff; }
.kt-dark .rs-org, .kt-dark .rs-dates, .kt-dark .rs-meta { color: #b9b9b9; }
.kt-dark .rs-desc, .kt-dark .rs-pairs dd { color: #d6d6d6; }
.kt-dark .rs-langs span { color: #a9a9a9; }
.kt-dark .rs-pairs { gap: 1.1rem 2.2rem; }

.kt-sec-contact .jo-contact { margin: 0; padding: 0; max-width: none; }
.kt-sec-contact .jo-contact-title { display: none; }

/* phones: one column in the order photo, name, profile, experience, black section */
@media screen and (max-width: 820px) {
  .kt { display: flex; flex-direction: column; }
  .kt-top, .kt-rest { display: contents; }
  .kt-photo { order: 1; height: 300px; }
  .kt-spine { order: 2; border-right: 0; border-bottom: 3px solid var(--kt-black); padding: 26px 22px; }
  .kt-profile { order: 3; padding: 28px 22px; }
  .kt-main { order: 4; }
  .kt-spine-text { writing-mode: horizontal-tb; transform: none; flex-direction: column; gap: .6rem; position: static; margin: 0; }
  .kt-name { font-size: 2.4rem; }
  .kt-spine-meta { flex-direction: row; flex-wrap: wrap; gap: .3rem 1.2rem; padding: 0; }
  .kt-sec { padding: 30px 22px; }
  .kt-entries .rs-item { grid-template-columns: 1fr; grid-template-areas: "date" "title" "org" "meta" "desc"; }
}

/* PDF (A4, desktop layout) */
.is-print { font-size: 9.5pt; }
.is-print .kt-top { min-height: 230px; grid-template-columns: minmax(0, 1fr) 40%; }
.is-print .kt-profile { padding: 26px 26px 22px 30px; }
.is-print .kt-rest { grid-template-columns: 120px minmax(0, 1fr); }
.is-print .kt-name { font-size: 30pt; }
.is-print .kt-spine-text { position: static; }
.is-print .kt-sec { padding: 24px 28px; }
.is-print .kt-h { font-size: 14pt; margin-bottom: .8rem; }
.is-print .kt-entries .rs-item { grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; }
.is-print .rs-item { break-inside: avoid; page-break-inside: avoid; }
