/* Costas Boletsis, PhD — static site stylesheet */

/* Open Sans (variable, weights 400–700), self-hosted in assets/fonts */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/opensans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/opensans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/opensans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #1f7fa8;
  --accent-dark: #16607f;
  --text: #2b2b2b;
  --muted: #666;
  --bg: #eaeaea;
  --surface: #fff;
  --border: #e2e2e2;
  --nav-bg: #232323;
  --wrap: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word; /* long URLs/words wrap instead of widening the page */
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--surface); }
.site-header > .wrap { padding-top: 22px; padding-bottom: 18px; }

.site-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.site-title a { color: var(--accent); }
.site-title a:hover { text-decoration: none; color: var(--accent-dark); }

.site-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Navigation */
.site-nav {
  background: var(--nav-bg);
  border-top: 4px solid var(--accent);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Layout */
.layout {
  max-width: 900px;
  padding-top: 30px;
  padding-bottom: 40px;
}

main article {
  background: var(--surface);
  border-radius: 2px;
  padding: 28px 36px 34px;
}

.page-title {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
  color: #222;
}

/* Content */
.entry h5 {
  font-size: 18px;
  margin: 1.6em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: table; /* own line, underline only as wide as the text */
}
.entry .project-name {
  margin: 1.4em 0 0.2em;
  font-weight: 600;
}
.entry .project-name + p { margin-top: 0; }
.entry h5 a { color: inherit; }
.entry h5 a:hover { color: var(--accent); }
.entry > h5:first-child { margin-top: 0; }

.entry p { margin: 0 0 1.1em; }
.entry ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.entry li p { margin: 0 0 0.7em; }
.entry > br { display: none; }

.profile-photo {
  float: left;
  width: 150px;
  margin: 4px 18px 14px 0;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}
.entry::after { content: ""; display: table; clear: both; }

/* Footer */
.site-footer {
  background: var(--nav-bg);
  color: #bbb;
  font-size: 13px;
  padding: 18px 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  main article { padding: 18px 16px 22px; }
  .site-title { font-size: 24px; }
  .site-nav a { padding: 9px 10px; font-size: 13px; }
  .profile-photo { width: 110px; margin-right: 14px; }
}
