/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1.2;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* --- end reset --- */



/* basic typographic styles */

b,
strong {
    font-weight: bold
}

i,
em {
    font-style: italic
}

/* fonts */


@font-face {
    font-family: 'Kumar One Outline';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/KumarOneOutline-Regular.ttf') format('truetype');
}


@font-face {
    font-family: 'AlegreyaSans';
    src: url('/fonts/AlegreyaSans-Regular.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'AlegreyaSans';
    src: url('/fonts/AlegreyaSans-Italic.ttf') format('truetype');
    font-style: italic;
}

@font-face {
    font-family: 'AlegreyaSans';
    src: url('/fonts/AlegreyaSans-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('/fonts/Inconsolata-g.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 1rem;
    height: 100%;
    overflow: auto;
    margin-left: calc(100vw - 100%);
    margin-right: 0;
}


header {
    background-image: url('/images/swirl.webp');
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: -2rem;
    margin-bottom: 0;
    /* Break out to full viewport width */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%); 
}


body {
    font-family: 'AlegreyaSans', 'Calibri', sans;
    color: #f4f3fe;
    background-color: #1E1E3F;
    padding: 2rem;
    line-height: 1.3;
    min-height: 100vh;
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scrollbar-gutter: stable both-edges;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ebfaab;
    font-family: 'AlegreyaSans', sans-serif;
    font-weight: bold;
}

h1 {
    font-size: 2.66rem;
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 0; /* see next rules */
}

/* Skip lines after h1, or h1+h2 together */
h1+h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

h1:not(:has(+ h2)) {
    margin-bottom: 2rem;
}

header h2 {
    font-weight: normal;
    font-style: italic;
}

h2 {
    font-size: 1.25rem;
}

h2.subhead {
    font-style: italic;
}

a:link {
    color: #9EFFFF;
    text-decoration: none;
}

a:visited {
    color: #bdffff;
}

a:hover {
    text-decoration: underline;
}

#image>img {
    object-fit: cover;
    width: 100%;
}

/* Always hide menu-toggle checkbox in the header */
#menu-control input {
    display: none;
}

/* Always hide checkbox */
#menu-toggle {
    display: none;
}

#site-title {
    font-family: 'Kumar One Outline', sans-serif; 
    margin: 0;
    text-align: left;
    white-space: nowrap;
    font-size: 2rem;
    color: #FF628C;
}

#site-title a:link,
#site-title a:visited {
    color: #FF628C;
}

.social-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    fill: #9EFFFF;
    padding-right: 0.25rem;
    vertical-align: baseline;
}

/* Mobile-first responsive header */
@media only screen and (max-width: 39.999rem) {
    header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #who {
        flex: 1;
        min-width: 0;
        order: 1;
        display: flex;
        flex-direction: column;
    }

    #menu-control {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        margin: 0;
        order: 2;
        width: 2rem;
        height: rem;
        align-items: right;
        justify-content: right;
    }

    #menu-control label {
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    /* Nav with sliding animation */
    nav {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        text-align: center;
    }

    /* Nav shown when checkbox is checked */
    #menu-control:has(#menu-toggle:checked)~nav {
        max-height: 20rem;
    }

    /* Mobile navigation styling - applies when nav is visible */
    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    nav ul li a:link,
    nav ul li a:visited {
        display: block;
        padding: 1rem 0;
        font-size: 1.5rem;
        width: 100%;
        color: #9EFFFF;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }


    /* flip the display of the hamburger icon according to the checkbox state */
    #menu-toggle~label #menu-toggle-open {
        display: inline;
    }

    #menu-toggle~label #menu-toggle-close {
        display: none;
    }

    #menu-toggle:checked~label #menu-toggle-open {
        display: none;
    }

    #menu-toggle:checked~label #menu-toggle-close {
        display: inline;
    }
}

/* Desktop navigation */
@media only screen and (min-width: 40rem) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    #who {
        flex-shrink: 0;
    }

    nav {
        font-size: 1.25rem;
    }

    /* Hide mobile hamburger elements */
    #menu-control {
        display: none;
    }

    /* Show desktop horizontal menu */
    nav ul {
        margin: 0;
        padding: 0;
    }

    nav ul li {
        display: inline;
        padding: 0 1rem 0 0;
        font-size: 1.25rem;
        border-bottom: none;
        white-space: nowrap;
    }

    nav ul li:last-child {
        padding-right: 0;
    }

    nav ul li a:link,
    nav ul li a:visited {
        display: inline;
        color: #9EFFFF;
        transition: color 0.3s ease;
    }

}

nav ul li.selected {
    color: #FF628C;
    font-weight: bold;
}

main p {
    margin-bottom: 1rem;
}

main ul {
    padding-inline-start: 0;
    margin-left: 2rem;
    list-style-type: square;
}


main ul li {
    margin: 0.5rem 0 0.5rem 0;
}

footer {
    font-family: AlegreyaSans, sans-serif;
    background-color: #131328;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    margin-bottom: -2rem;
    font-size: 0.75rem;
    /* Break out to full viewport width */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

section#statement {
    font-family: AlegreyaSans, sans-serif;
    font-size: 1.2rem;
    border-bottom: 1px solid grey;
    border-top: 1px solid grey;
    padding: 1rem 0rem 0.5rem 0rem;
    text-align: center;
    vertical-align: middle;
    line-height: 150%;
}

h3 {
    font-size: 1.5rem;
    margin: 2rem 0 0.5rem 0;
}

tr {
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    border-collapse: collapse;
}

tr td {
    padding: 0.25rem 0.5rem 0.25rem 0;
}

main {
    padding-top: 2rem;
    font-size: 1.25rem;
    line-height: 1.33;
    flex: 1;
}

main table {
    width: 100%;
    table-layout: fixed;
}


pre {
    border-radius: 0.4em;
    margin-bottom: 2.1em;
    line-height: 1.45em;
    font-size: 1rem;
    overflow: auto;
}

pre:not(:has(code.hljs)) {
    background: #2d2b57;
    color: #C4B5FD;
    padding: .8em 1em;
}

.mono,
pre,
code,
tt {
    font-family: "Inconsolata-g", monospace;
}

p>code,
li>code {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.66rem;
    margin: 0.25rem;
    font-size: 1rem;
    padding: 0 .3rem;
    background: #2A2A4A;
    color: #C4B5FD;
}

p.skills {
    font-family: 'AlegreyaSans', sans-serif;
    font-size: smaller;
}

figure {
    border: 0px solid #A599E9;
    border-radius: 0.4em;
    padding: 0.25rem;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figcaption {
    font-size: smaller;
    font-style: italic;
    padding: 0.25rem;
    text-align: center;
}

video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.nowrap {
    white-space: nowrap;
}

/* Code container and copy button styles */
.code-container {
    position: relative;
    margin-bottom: 2.1em;
}

.code-container pre {
    margin-bottom: 0;
}

.copy-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 2rem;
    height: 2rem;
    background: url('/icons/copy.svg') center / 1rem no-repeat;
    border: none;
    border-radius: 0 0.4em 0 0.4em;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: none;
    text-indent: -9999px;
    overflow: hidden;
}

.code-container .copy-button {
    filter: invert(); /* For dark code theme */
}

.copy-button:hover {
    opacity: 1;
}

.code-container:hover .copy-button {
    display: block;
}

.copy-button.copied {
    font-family: "Inconsolata-g", monospace;
    background-image: none;
    text-indent: 0;
    width: auto;
    font-size: small;
    padding: 0.3rem 0.6rem;
}

/* frontpage + desktop layout */

@media only screen and (min-width: 40rem) {
    html {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.66rem;
    }

    h2 {
        font-size: 1.5rem;
    }

}
