@page {
  size: A4;
  margin: 0;
}

@media print {
  .resume {
    overflow: hidden;
  }

  .controls {
    display: none
  }

  html,
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact
  }
}

html,
body,
.cover,
.frame {
  width: 1210px;
  height: 1660px;
}

[data-theme="light"] {
  --page: #f8e6d5;
  --ink: #2c2c2a;
  --ink-2: #2a4551;
  --ink-3: #6B6B67;
  --line: rgba(44, 44, 42, .85);
  --hair: rgba(44, 44, 42, .30);
  --sky-1: #f8e6d5;
  --sky-2: #f7c0af;
  --sky-3: #f3b3a4;
  --sky-4: #e8c9c2;
  --sky-5: #d9dcdc;
  --sky-6: #c8dbdf;
  --orb: #FFF4E8;
  --orb-glow: #f3b3a4;
  --sun-op: 1;
  --moon-op: 0;
  --star-op: 0;
  --r1: #A9CFM0, 842 L3, 841 L24, 833 L78, 775 L139, 669 L154, 654 L204, 665 L269, 717 L295, 720 L324, 736 L348, 730 L382, 678 L418, 602 L481, 515 L565, 302 L578, 280 L596, 270 L609, 277 L677, 356 L745, 405 L790, 467 L850, 580 L962, 682 L1014, 770 L1054, 809 L1095, 876 L1156, 916 L1200, 957 L1242, 977 L1289, 951 L1396, 945 L1435, 936 L1459, 924 L1475, 927 L1587, 908 L1600, 907 L1600, 1600 L0, 1600 Z;
  --r2: #7FA8B0;
  --r3: #6B96A0;
  --r4: #48707E;
  --r5: #35586A;
  --mist: #e8c9c2;
  --mist-op: .40;
  --ridge-hover: brightness(.88) saturate(1.25);
  --veil-a: 80%;
  --veil-b: 62%;
  --veil-c: 84%;
  --grain-op: .40;
  --grain-blend: multiply;
}

[data-theme="dark"] {
  --page: #0f1218;
  --ink: #b8aec6;
  --ink-2: #a49cb8;
  --ink-3: #68698c;
  --line: rgba(184, 174, 198, .85);
  --hair: rgba(184, 174, 198, .28);
  --sky-1: #070910;
  --sky-2: #0b0e16;
  --sky-3: #0f1218;
  --sky-4: #161b28;
  --sky-5: #1d2334;
  --sky-6: #262c46;
  --orb: #ded9ea;
  --orb-glow: #68698c;
  --sun-op: 0;
  --moon-op: 1;
  --star-op: 1;
  --r1: #b8aec6;
  --r2: #68698c;
  --r3: #373e57;
  --r4: #1e2332;
  --r5: #0f1218;
  --mist: #262c46;
  --mist-op: .34;
  --ridge-hover: brightness(1.45) saturate(1.1);
  --veil-a: 90%;
  --veil-b: 82%;
  --veil-c: 92%;
  /* worst text pairing 5.2:1 */
  --grain-op: .24;
  --grain-blend: overlay;
}

:root {
  --display: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --max: 1210px;
  --inset: clamp(.75rem, 2.4vw, 2.5rem);
  --pad: clamp(.75rem, 2.4vw, 2.5rem);
  --corner: clamp(1rem, 2.4vw, 2.25rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box
}


html {
  -webkit-text-size-adjust: 100%
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important
  }
}

body {
  width: 1210px;
  height: 1660px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.52;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: var(--grain-op);
  mix-blend-mode: var(--grain-blend)
}

a {
  color: inherit;
  text-decoration: none
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px
}

/* ═════════ TYPOGRAPHY ═════════ */

h3 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  font-size: 3.6rem;
  line-height: 0.98;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--ink-2)
}


h4 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 36, 'WONK' 1;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0;
}

h5 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
}

h6 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.12;
  letter-spacing: "0.09em";
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

ul {
  margin-top: 0;
  margin-bottom: 0;
}

.body1 {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2)
}

.body2 {
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--ink-3)
}

.overline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* ═════════ COVER SHELL ═════════ */
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 1210px;
  height: 1660px;
}

.cover-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  line-height: 0;
  width: 1210px;
  height: 1660px;
}

.cover-art svg {
  width: 100%;
  height: 100%;
  display: block
}

.cover-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      color-mix(in srgb, var(--page) var(--veil-a), transparent) 0%,
      color-mix(in srgb, var(--page) var(--veil-b), transparent) 42%,
      color-mix(in srgb, var(--page) var(--veil-c), transparent) 100%);
  transition: background .45s ease;
  width: 1210px;
  height: 1660px;
}

.sky-el {
  pointer-events: none
}

.ridge {
  transition: filter .4s ease
}

/* ═════════ THE FRAME ═════════ */
.frame {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  /* border: 1px solid var(--hair); */
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  pointer-events: none;
}

.frame a,
.frame button {
  pointer-events: auto
}


/* ═════════ CARD ═════════ */
.card {
  border: 1px solid var(--hair);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 16px;
}

.card-header {
  padding: 6px 16px;
  background: rgb(from var(--ink-2) r g b / 0.8);
  color: var(--page);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-body {
  padding: 6px 16px;
}

.job-title-container,
.job-company {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.job-item {
  border-bottom: 1px dotted var(--hair);
}





/* ═════════ LEFT SECTION ═════════ */
.left-section-item {
  padding: 16px 0;
  margin-top: 32px;
}

.left-section-item .item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.left-section-item .title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.left-section-item .title h5 {
  color: var(--ink-3);
}

.left-section-item .title .fas,
.fa {
  color: var(--ink-3);
  font-size: 28px;
}

.left-section-item .skills p {
  margin-bottom: 6px;
}

.left-section-item .lang {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.lang img {
  width: 32px;
  height: 32px;
}

.qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.qrcode img {
  width: 180px;
}



/* ═════════ COVER GRID ═════════ */
.cover-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 8px;
}



@media (hover: hover) and (pointer: fine) {
  .ridge:hover {
    filter: var(--ridge-hover)
  }

  .toggle:hover {
    background: var(--ink);
    color: var(--page)
  }
}



.toggle:active {
  background: var(--ink);
  color: var(--page)
}

/* ═════════ THEME TOGGLE ═════════ */
.controls {
  position: absolute;
  top: 0;
  left: var(--corner);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .15rem
}

.toggle {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: none;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .25s, color .25s
}

.toggle svg {
  width: 1rem;
  height: 1rem
}

.toggle .sun {
  display: none
}

[data-theme="dark"] .toggle .sun {
  display: block
}

[data-theme="dark"] .toggle .moon {
  display: none
}