@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    font-style: normal;
    src: url('fonts/Roboto-Thin.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    font-style: italic;
    src: url('fonts/Roboto-ThinItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: normal;
    src: url('fonts/Roboto-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: italic;
    src: url('fonts/Roboto-LightItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: italic;
    src: url('fonts/Roboto-Italic.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: normal;
    src: url('fonts/Roboto-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: italic;
    src: url('fonts/Roboto-MediumItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: normal;
    src: url('fonts/Roboto-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: italic;
    src: url('fonts/Roboto-BoldItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: normal;
    src: url('fonts/Roboto-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: italic;
    src: url('fonts/Roboto-BlackItalic.ttf') format('truetype');
}

:root {
    --background: #000000;
    --foreground: #ededed;
    --border-color: rgba(237, 237, 237, 0.25);
    --switch-track: #000000;
    --switch-thumb: #ffffff;
}

html[data-theme="light"] {
    --background: #ffffff;
    --foreground: #000000;
    --border-color: rgba(0, 0, 0, 0.15);
    --switch-track: #ffffff;
    --switch-thumb: #000000;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    color: var(--foreground);
    background: var(--background);
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1rem;
}

/* top bar / theme switch */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.switch {
    border: none;
    cursor: pointer;
    width: 3.6rem;
    height: 2rem;
    border-radius: 0.8rem;
    background-color: var(--switch-track);
    border: 1px solid var(--border-color);
    padding: 0.2rem;
    display: flex;
    align-items: center;
    margin: 0.25rem;
}

.switch-thumb {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--switch-thumb);
    transition: transform 0.2s ease;
}

html[data-theme="light"] .switch-thumb {
    transform: translateX(1.6rem);
}

/* center content */
.center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    width: 50vw;
    max-width: 420px;
    padding-top: 2rem;
}

.reconstruction {
    font-weight: 100;
    font-size: 2.3em;
    margin: 1.5rem 0 0 0;
    text-align: center;
}

@media (max-width: 768px) {
    .reconstruction {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .reconstruction {
        font-size: 1.4em;
    }
}

.card {
    margin-top: 0.5rem;
    width: 20rem;
    max-width: 90vw;
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card p {
    text-align: center;
    font-size: 1.55em;
    font-weight: 100;
    line-height: 1.3;
    margin: 0;
}

/* bottom bar / contacts */
.bottom-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 4rem;
}

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

.arrow {
    width: 20vw;
    max-width: 80px;
}

.link {
    color: inherit;
    text-decoration: none;
    font-size: 1.1rem;
    background: none;
    border: none;
    padding: 0.5rem;
}

.link:hover {
    opacity: 0.7;
}

.divider {
    width: 1px;
    height: 1.5rem;
    background-color: var(--border-color);
}

/* footer */
.footer {
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
}

.footer p {
    font-size: 0.85rem;
    font-weight: 300;
    text-align: center;
    opacity: 0.5;
    margin: 0;
    padding: 0 1rem;
}
