/* 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.2rem;
}
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: 'Alegreya';
    src: url('/fonts/Alegreya-Regular.ttf') format('truetype');
    font-style: normal;
}

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

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

@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;
}

html {
    font-size: 14px;
}


header {
    text-align: center;
}

#hero {
    max-width: 20%;
}

body {
    font-family: 'AlegreyaSans', 'Calibri', sans;
    color: #606060;
    padding: 2rem;
    line-height: 1.3;
    max-height: 100%;
    max-width: 45rem;
    margin: auto;
}

a {
    text-decoration-style: solid;
}

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

h1 a:link {
    text-decoration: none;
    font-weight: 300;
}

h1 a:link, h1 a:visited {
    color: #9c4040;
}

h3 {
    color: #9c4040;
}

a:link, a:visited {
    color: #606060;
}

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


/* mobile layout */

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

header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.25rem;
}

img#hero {
    border-radius: 50%;
}

nav {
    margin: 0.5rem 0;
    line-height: 2.5rem;
    font-size: 1.25rem;
}

nav ul li {
    display: inline;
    padding-right: 1rem;
    white-space: nowrap;
}

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

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

main p {
    margin-bottom: 1rem;
}

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


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

footer {
    font-family: AlegreyaSans, sans-serif;
    border-top: 1px solid #dddddd;
    padding-top: 0.5rem;
    margin-top: 5rem;
    font-size: 0.75rem;
}

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 {
    font-size: 1.25rem;
    line-height: 1.66rem;
}

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


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

.social-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    fill: #828282;
    padding-left: 0.125rem;
    vertical-align: baseline;
}

.nowrap {
    white-space: nowrap;
}

/* frontpage + desktop layout */

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

  h1 {
    font-size: 2.66rem;
  }

  h2 {
    font-size: 1.5rem;
  }

}
