@charset "UTF-8";

:root {
  --fonts: 'Jacquard 12', "Palatino", "Georgia", serif;
  --base-size: 12px;
  --background: black;
  --background-transparent: transparent;
  --background-image: url("../images/yan-ots-bg.jpg");
  --text: #FFFFFF;
  --accent: #CC3366;
  --accent-alt: #E9004E;
  --page-bg: #FFFFFF;
  --page-text: #000000;
  --page-shadow: rgba(255,255,255,.5);
  --page-width: 768px;
  --header-height: 400px;
  --header-bg: url(../images/hubble.jpg);
  --header-text: #FFFFFF;
  --sidebar-width: 200px;
  --sidebar-bg: #000000;
  --sidebar-text: #DCDCDC;
  --sidebar-dropshadow: #333333;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--background-image) var(--background);
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--fonts);
  font-size: var(--base-size);
}

}

a {
  color: var(--accent);
  text-decoration: underline dotted;
}
a:hover {
  color: var(--accent-alt);
}

h1 {
  font-size: 48px;
  margin: 0;
}

h2 {
  font-size: 2.5em;
}

h3 {
  font-size: 2em;
}

h4 {
  text-transform: uppercase;
}

blockquote {
  border-left: 1px var(--page-text) dotted;
  padding-left: 10px;
  margin-left: 10px;
}

img[align=right] {
  margin-left: 10px;
  margin-top: 10px;
}

img[align=left] {
  margin-right: 10px;
  margin-top: 10px;
}

blockquote {
  font-style: italic;
}

#page {
  display: grid;
  grid-template-rows: 150px auto 100px;
  gap: 20px;
  max-width: var(--page-width);
  margin: 0 auto;
  transform: translateX(-50px);
}

header {
  grid-row: 1;
  grid-column: 2;
  text-align: right;
  font-style: italic;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.profile {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  object-fit: cover;
  float: right;
  border: 1px var(--text) dotted;
  margin-top: 5px;
  margin-left: 5px;
}

aside {
  grid-row: 2;
  grid-column: 1;
  text-align: right;
  max-width: 150px;
}
aside h2 {
  margin-bottom: 0;
  font-style: italic;
  clear: both;
}
aside h2 + p {
  margin-top: 0;
}
aside .profile + p {
  margin-top: 0;
}
aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
aside ul li:after {
  content: " «";
}

main {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  gap: 20px;
}
main article {
  padding: 10px;
  background-color: var(--page-bg);
  color: var(--page-text);
  box-shadow: 5px 5px 0 var(--page-shadow);
}
main article > :first-child {
  margin-top: 0;
}
main article h2 {
  padding-bottom: 5px;
  border-bottom: 1px var(--page-text) dotted;
  margin-bottom: 10px;
}
main article h3 {
  margin: 0 0 0.5em;
}
main article h4 {
  margin: 0;
}

nav {
  grid-row: 2;
  grid-column: 3;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  font-style: italic;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 2em;
  font-weight: bold;
}

footer {
  grid-row: 3;
  grid-column: 2;
  text-align: center;
  border-top: 1px dotted;
  padding-top: 10px;
  font-size: 0.8em;
}
