/* reset rules */

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

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* custom rules */

:root {
  --text-heading: #0b0b0b;
  --text-body: #404040;
  --text-bullet: #535353;
  --divider: #e6e6e6;
  --link: #1773b2;
  --link-visited: #145c90;
  --link-hover: #2591d2;
  --link-active: #0f2a42;
  --accent: #2591d2;
}

html,
body,
a {
  cursor:
    url("../images/cursor.svg") 11 8,
    auto;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  color: var(--text-body);
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
}

li,
p,
a {
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  color: var(--link);
}
a:visited {
  color: var(--link-visited);
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-color: var(--link-hover);
  text-underline-offset: 3px;
}
a:active {
  color: var(--link-active);
}
a:focus-visible {
  outline-color: var(--link);
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
header.no-flex {
  display: unset;
}

ul {
  padding-left: 1.25em;
}
li {
  list-style: none;
  padding-left: 1.25em;
  color: var(--text-bullet);
  background: url("../images/icons/arrow-badge-right.svg") no-repeat left
    0.35em / 0.75em;
}

dt {
  font-weight: 700;
}

.page {
  max-width: 37.5rem;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 1rem;
  padding: 2rem;
}
.page.page-xw {
  max-width: 75rem;
  margin: 0 auto;
}

.title {
  margin: 0;
}

.portrait {
  max-width: 3rem;
  border-radius: 100%;
}

@media (min-width: 547px) {
  header {
    flex-direction: row;
    align-items: center;
  }

  .title {
    margin: 1.25rem 0 1.25rem;
  }
}

.hr {
  border: 1px dotted var(--divider);
}

.links-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cv-link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cv-section-title {
  border-bottom: 1px solid var(--text-heading);
}

.cv-entry-header-top,
.cv-entry-header-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.cv-entry-header-top {
  margin-bottom: 0.25rem;
}
.cv-entry-value {
  margin: 0.25rem 0;
}

.header-desc {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

.tech-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tech-item-logo {
  width: 2rem;
}
