/*
    _____  ___   ___  _  _ _  _  ___      _   _  ___  _    __      __
   |__   |/ _ \ / _ \| \| | \| |/ _ \    | |_| |/ _ \| |_ |  \    /  |
      |  | |_| |  _  |    |    |  _  |   |  _  | |_| |  /_ \  \  /  /
      |  |\___/|_| |_|_|\_|_|\_|_| |_|   |_| |_|\___/|____| \  \/  /
      |  |         _   _   ___   _     _  _   ___            \    /
  __  |  |        | |_| | / _ \ | |_  | |/ / / _ \            |  |
 |  |_|  |        |  _  || |_| ||  /_ |   < |  _  |           |  |
  \_____/         |_| |_| \___/ |____||_|\_\|_| |_|           |__|
                          http://joannaholy.pl
*/

/* CONTENT:
 * Fonts
 * General
 * Header
 * Articles and Sections
 * Images
 * Bookmarks

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Calligraffitti|Italianno|Lovers+Quarrel|Niramit:300,300i,400,400i,500,500i&subset=latin-ext');
/* https://fonts.google.com/selection?selection.family=Calligraffitti|Italianno|Lovers+Quarrel|Niramit:300,300i,400,400i,500,500i,600,600i,800,800i&query=Allura&category=Sans+Serif,Handwriting&subset=latin-ext&selection.subset=latin-ext */


/* General */
body{
	background:#cabda3;
	font-family:Niramit,sans-serif;
	font-size:21px;
	font-weight:300
}

main{
	background:rgba(250,250,250,.6);
	margin:0 auto 1em;
	max-width:1000px;
	padding:0 2em 1em;
	width:calc(100% - 4em)
}

a{
	color:#9E1318;
	text-decoration:none;
	transition:all .5s ease
}

a:hover
{text-decoration:underline}

cite{
	font-style:italic;
	font-weight:400
}

h1,h2,h3,h4,h5,h6{
	font-family:Italianno,cursive;
	font-weight:400
}

li{margin:.5em auto}
ol{margin-left:1em}


p{
	margin:0 0 1em;
	text-indent:1em
}

q{font-style: italic;}

section{margin:0 0 2em 0}
strong{font-weight:600}

/* Header */
header img{
	display:block;
	margin:.1em auto 0;
	width:80%
}

header h1{
	font-size:3em;
	text-align:center;
	margin:-3rem auto 0
}

header h2{
	font-size:2.5em;
	text-align:center
}

#menu,
#menuSmall
{margin:1em auto}

#menu ul,
#menuSmall ul{
	display:flex;
	flex-wrap:nowrap;
	justify-content:center
}

#menu li,
#menuSmall li{
	margin:0 .5em 0 0;
	transition:all .5s ease
}

#menu li:after,
#menuSmall li:after{
	content:'|';
	margin-left:.5em
}

#menu li:last-child:after,
#menuSmall li:last-child:after{
	content:none;
	margin:0
}

#menuSmall
{display:none}

#menuSmall.show{
	background:#cabda3;
	box-shadow:0 1em 1.5em -1em rgba(0,0,0,.5);
	display:block;
	height:2em;
	margin:0 auto 0 -2em;
	max-width:calc(1000px + 4em);
	padding:1em 0 .5em;
	position:fixed;
	top:0;
	transition:all .5s ease;
	width:100%;
	z-index:5
}

#menuSmall.show li:first-child:after{
	content:none;
	margin:0
}

@media(max-width:700px){
	#menu,
	#menuSmall.show
	{display:none}
}

#navTitle{
	display:none;
	transition:all .5s ease
}

#menuSmall.show #navTitle
{display:inline-block}

/* Articles and Sections */

article h3{
	font-size:2em;
	line-height:1;
	margin:0 0 .5em;
	text-align:center;
}

article h3 small
{font-size:.9}

h4,
.sources h5{
	font-size:1.8em;
	font-weight:bold;
	text-indent:.6em
}

li a:first-child cite
{font-weight:600}

#wstepArticle p::first-letter,
#czesc3Article section p:not(:first-of-type)::first-letter{
	font-family:'Lovers Quarrel',cursive;
	font-size:1.9em;
	margin-left:.05em
}

#wstepArticle p::first-line,
#czesc3Article section p:not(:first-of-type)::first-line
{line-height:.7}

#czesc3Article h4{
	display:inline-block;
	float:left;
	line-height:1;
	margin:0 .2em 0 0;
	position:relative;
	top:.1em
}

#czesc3Article section p:first-of-type{
	padding-top:.3em;
	text-indent:0
}

#czesc3Article footer{
	background-image:url('../img/separator.svg');
	background-position:center bottom;
	background-repeat:no-repeat;
	background-size:60%;
	padding:0 0 2.5em;
}

#autorzyArticle ul{
	align-items:center;
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	width:100%
}

#autorzyArticle li{
	align-items:center;
	border-left:1px solid #cabda3;
	border-right:1px solid #cabda3;
	display:flex;
	flex-direction:column;
	height:2em;
	justify-content:center;
	line-height:1.2;
	margin:.5em .05em;
	padding:0 .5em;
	text-align:center;
	width:30%
}

@media(max-width:850px){
	#autorzyArticle li{
		border:none;
		display:inline-block;
		flex-direction:row;
		margin:0;
		width:auto
	}
	
	#autorzyArticle li:after
	{content:','}
	
	#autorzyArticle li:last-of-type:after
	{content:none}
}

#autorzyArticle li:first-of-type,
#autorzyArticle li:nth-of-type(4)
{border-left:none}

#autorzyArticle li:last-of-type,
#autorzyArticle li:nth-of-type(3)
{border-right:none}

#autorzyArticle small{
	display:block;
	font-size:.5em
}

.text p
{text-align:justify}

@media(max-width:700px){
	.text p
	{text-align:left}
}

.list h4
{font-size:2em}

.list p{
	font-size:.9em;
	margin:2em 0 0;
	text-indent:0
}

.list section p:first-of-type
{margin:.5em 0 0}

.list ul
{margin:0 0 0 1em}

.roman{
	font-family:Calligraffitti;
	font-size:.8em
}

.sources
{font-size:.8em}

.sources cite
{font-weight:500}

.sygn:before
{content:"sygn. "}

.sygn{
	display:block;
	font-size:.8em
}

a.ref{
	font-size:.7em;
	vertical-align:text-top
}

ul.ref li{
	margin:.5em auto .5em 1em;
	text-indent:-1em
}

ul.ref a.sygn
{text-indent:0}

/* Images */

figure{
	float:right;
	margin:0 2em .5em;
	width:10em
}

figure.small
{display:none}

@media(max-width:900px){
	figure
	{width:20%}
}

@media(max-width:810px){
	figure
	{display:none}
	
	figure.small{
		border-bottom:1px solid #cabda3;
		display:block;
		float:none;
		margin:.5em auto;
		width:50%
	}
	
	figure.small figcaption
	{margin:.5em auto}
}

figure img
{width:100%}

figcaption{
	font-style:italic;
	font-size:.8em;
	text-align:center;
}

/* Bookmarks */

.anchor{
	height:6rem;
	margin-top:-6rem
}

.anchor:first-of-type{
	height:6rem;
	margin-top:-6rem;
	visibility:hidden
}

.ref .anchor{
	height:4em;
	margin-top:-4em;
	visibility:hidden
}