@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/Roboto-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

:root {
    --dark:          #111828;
    --light:         #e2e8f0;
    --muted:         #a2afc1;
    --bubble:        #739bd0;
    --article:       #a2afc110;
    --article-hover: #a2afc12e;

    --font-family:    "Roboto Local", sans-serif;
    --weight-regular: 400;
    --weight-bold:    700;

    --stroke: 1px;

    --duration: 0.2s;
    --transition-colors:
        background-color var(--duration),
        color var(--duration);

    --btn-gap:   0.4em;
    --btn-pad-v: 0.2em;
    --btn-pad-h: 0.6em;

    --space-xxs: calc(var(--space-xs) / 2);
    --icon-size: 1lh;

    --z-bubble:       -1;
    --bubble-alpha:   8%;
    --bubble-blur:    75px;
    --bubble-radius:  50% 40% 60% 30%;
    --bubble-size-a:  clamp(200px, 25vw, 400px);
    --bubble-size-b:  clamp(150px, 20vw, 300px);
    --bubble-inset-x: clamp(1rem, 5vw, 3rem);
    --bubble-inset-y: clamp(1rem, 5vh, 3rem);
}

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

* {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-feature-settings:
        "liga" 0,
        "clig" 0,
        "kern" 0;
}

::selection {
    background-color: var(--selection-bg);
    color: var(--selection-fg);
}

html {
    background-color: var(--dark);
}

body {
    color: var(--color-text);
    font-size: var(--size-body);
    font-weight: var(--weight-regular);
    line-height: var(--line-height-body);
}

img {
    width: var(--icon-size);
    height: var(--icon-size);
    vertical-align: top;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

small {
    font-size: inherit;
}

header,
address {
    display: flex;
    flex-direction: column;
    gap: var(--gap-head);
}

section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-item);
}

article,
ul {
    display: flex;
    flex-direction: column;
    gap: var(--gap-row);
}

h1,
h2,
h3,
strong {
    font-weight: var(--weight-bold);
}

h1,
h2,
h3 {
    color: var(--color-heading);
}

h1 {
    font-size: var(--size-h1);
    line-height: var(--line-height-h1);
}

h2 {
    font-size: var(--size-h2);
    line-height: var(--line-height-head);
}

h3 {
    font-size: var(--size-h3);
    line-height: var(--line-height-head);
}

h3 [data-separator] {
    font-weight: var(--weight-regular);
}

header > p {
    font-size: var(--size-h4);
    font-weight: var(--weight-regular);
}

address p,
section > p,
article p,
article li {
    font-size: var(--size-sm);
    line-height: var(--line-height-body);
}

section > p,
article p,
article li {
    font-weight: var(--weight-regular);
}

address [data-value] {
    font-weight: var(--weight-regular);
}

article time {
    color: var(--color-soft);
    font-size: var(--size-xs);
    font-weight: var(--weight-regular);
    line-height: var(--line-height-head);
}

article p small {
    color: var(--color-soft);
}

article:not([data-skills]) p > span + span {
    color: var(--color-soft);
    font-size: var(--size-xs);
}

article[data-skills] h3 {
    color: var(--color-soft);
    font-size: var(--size-sm);
}

article p [data-entities] > span:first-child small {
    font-weight: var(--weight-bold);
}

h3 [data-separator],
address [data-separator],
article p [data-separator],
article li [data-bullet] {
    display: var(--separator-display);
}

a {
    color: var(--color-link);
    text-decoration: var(--link-decoration);
    text-decoration-color: var(--muted);
    white-space: var(--link-wrap);
}

a:not([href]) {
    font-weight: var(--weight-regular);
}

@media (hover: hover) {
    a:hover {
        text-decoration-color: var(--light);
    }
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: var(--z-bubble);
    border-radius: var(--bubble-radius);
    background-color: color-mix(in srgb, var(--bubble) var(--bubble-alpha), transparent);
    filter: blur(var(--bubble-blur));
    pointer-events: none;
}

body::before {
    top: var(--bubble-inset-y);
    left: var(--bubble-inset-x);
    width: var(--bubble-size-a);
    height: var(--bubble-size-a);
}

body::after {
    right: var(--bubble-inset-x);
    bottom: var(--bubble-inset-y);
    width: var(--bubble-size-b);
    height: var(--bubble-size-b);
}

@media print {
    body::before,
    body::after {
        display: none;
    }
}