.language-switch {
  display: inline-flex;
  gap: 2px;
  margin-inline-start: 6px;
  vertical-align: top;
  color: var(--paper);
}

.language-switch button {
  border: 1px solid currentColor;
  background: transparent;
  font: 600 11px/1 'DM Mono', monospace;
  padding: 6px;
}

.language-switch button { min-height: 30px; }
.language-switch [aria-pressed='true'] { background: var(--lime); color: #141414; }
html[data-theme='light'] .language-switch { color: #23192b; }

.header .profile-name {
  color: inherit;
  font: 600 clamp(14px, 2vw, 20px)/1.2 'Pixelify Sans', monospace;
  margin: 4px 0 0;
}

.header .profile-description {
  margin: 5px auto 9px;
  max-width: 34rem;
  font: 500 clamp(10px, 1.7vw, 12px)/1.35 'DM Mono', monospace;
  letter-spacing: normal;
}

.panel.about .panel-inner,
.panel.contact .panel-inner { grid-template-rows: auto 1fr; row-gap: 7px; }
.panel.about h2 { grid-area: 1 / 1 / 2 / -1; }
.profile-copy { grid-area: 2 / 1 / 3 / -1; align-self: start; }
.panel.about .profile-copy p {
  font-size: clamp(10px, 1.8vw, 13px);
  line-height: 1.4;
  margin: 0 0 8px;
}
.profile-copy .ink-button {
  margin: 0;
  min-height: 30px;
  padding: 7px 13px;
  border: 1px solid #d4ff76;
  box-shadow: 3px 3px 0 #9866c8;
  font-size: clamp(10px, 2vw, 12px);
}
.profile-copy .ink-button:hover { box-shadow: 3px 3px 0 #e0b9ff, 0 0 12px #d4ff7670; }

:is(#experience-dialog, #contact-dialog) {
  width: min(550px, 92vw);
  height: auto;
  max-height: 85svh;
  overflow: auto;
  border-radius: 4px;
  padding: 56px clamp(18px, 5vw, 32px) 24px;
  text-align: left;
}
:is(#experience-dialog, #contact-dialog) h2 {
  font: 600 clamp(23px, 5vw, 33px)/1.1 'Pixelify Sans', monospace;
  letter-spacing: normal;
  margin: 0 0 21px;
}
#experience-dialog section + section { border-top: 1px solid #8b68a8; margin-top: 17px; }
#experience-dialog h3 { margin: 15px 0 8px; font-size: 15px; }
:is(#experience-dialog, #contact-dialog) p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
#contact-dialog { width: min(430px, 92vw); }
#contact-dialog.shows-cv { width: min(780px, 92vw); }
#cv-preview { display: block; width: 100%; height: min(56svh, 580px); border: 1px solid #8b68a8; margin-bottom: 13px; }
#contact-dialog p { overflow-wrap: anywhere; margin-bottom: 19px; }
#contact-dialog .ink-button { background: #d4ff76; color: #151a0e; box-shadow: 3px 3px 0 #9866c8; }
.technical-skills {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 8px 14px;
  margin: 0;
  font: 13px/1.45 'DM Mono', monospace;
}
.technical-skills dt { font-weight: 600; }
.technical-skills dd { margin: 0; }

.panel.contact h2 { grid-area: 1 / 1 / 2 / -1; }
.panel.contact p { grid-area: 2 / 1; align-self: center; margin: 0; }
.contact-links {
  grid-area: 2 / 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  --link-surface: #251638;
  --link-text: #f3e8ff;
  --link-edge: #9874bd;
}
.contact-links :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  min-height: 33px;
  padding: 4px 2px;
  border: 1px solid var(--link-edge);
  background: var(--link-surface);
  color: var(--link-text);
  box-shadow: 3px 3px 0 var(--link-edge);
  font: 600 clamp(8px, 1.6vw, 11px)/1 'DM Mono', monospace;
  white-space: nowrap;
}
.contact-links .contact-email { background: #d4ff76; color: #181e0d; border-color: #d4ff76; }
.contact-links :is(a, button):is(:hover, :focus-visible) { text-decoration: underline; box-shadow: 3px 3px 0 var(--link-edge), 0 0 12px var(--link-edge); }
.contact-links :is(a, button):active { box-shadow: none; transform: translate(2px, 2px); }
html[data-theme='light'] .contact-links { --link-surface: #eee3f9; --link-text: #29153b; --link-edge: #714694; }

@media (max-width: 600px) and (min-height: 490px) {
  .panel.about, .panel.contact { height: max(188px, min(49vw, 52cqh)); }
  .panel.contact .panel-inner { column-gap: 8px; }
}

@media (max-height: 480px) {
  .header { display: block; }
  .header .profile-description { display: block; }
  .panel.about .profile-copy p { font-size: 9px; }
}
