@import url('https://fonts.googleapis.com/css?&family=Elsie:wght@200|Cormorant Garamond|Arapey|Raleway|Mrs+Saint+Delafield|Barlow:wght@300&display=swap');

* {
	box-sizing: border-box;
}


html {
	background-image:
		linear-gradient(
			rgb(250 248 242 / 50%),
			rgb(255 243 224 / 90%)
		),
		url(bg.jpg);

	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	background-position: 0 0;

	line-height: 25px;
	letter-spacing: 1px;
	font-family: "Cormorant Garamond", serif;
	font-variant-numeric: lining-nums;
	min-height: 100%;
}


body {
	margin: 0;
	min-width: 1000px;
	min-height: 100vh;
	background: transparent;
}


/* NAVI */

header {
	width: 100%;
	margin: auto;
	top: 0;
	z-index: 10;
	display: flex;
	position: relative;
	background-color: rgb(232 220 195 / 50%); 
	border-bottom: 2px solid rgb(113 90 90 / 20%);
}

.header-lehti {
    position: absolute;
	height: 120px;
	width: 120px; 
    right: -100px;
    top: -20px;
	rotate: 40deg;
    background-color: rgb(160 111 111 / 15%);
    -webkit-mask: url("leaf-3.svg") center / contain no-repeat;
    mask: url("leaf-3.svg") center / contain no-repeat;
}

.navi {
	margin: 0 auto;
	align-self: flex-end;
	list-style: none;
	display: flex;
	margin-right: 0;
	text-transform: uppercase;
	width: 450px;
	justify-content: flex-end;
	padding-bottom: 5px;
}

.navi li {
	margin: 0;
	padding: 0 18px;
	width: 100px;
}

.navi a:hover {
	text-shadow: none;
	transition: 1s;
}

.otsikko {
	margin-right: auto !important;
	padding-left: 0 !important;
	font-size: 35px;
	font-family: "Water Brush", serif;
	color: rgb(65 49 49 / 40%);
	text-shadow: 0 0 3px #af9797;
	font-style: italic;
}


/* YLEISET */

.sisalto {
	width: 900px;
	margin: 80px auto 100px;
}

a {
	text-decoration: none;
	color: #a06f6f;
}

p {
	text-align: justify;
}

em {
	font-style: normal;
	color: rgb(65 49 49 / 35%);
	font-size: 13px;
	font-family: "Labrada", serif;
}

h1 {
	font-family: "Mrs Saint Delafield", serif;
	font-weight: 100; 
	font-size: 3.5rem;
	color: rgb(65 49 49 / 50%);
	margin: 40px 0px 0px 0px; 
	font-style: italic; 
}

h2 {
	font-family: "Arapey", serif;
	text-transform: uppercase; 
	font-weight: 100; 
	color: #826969;
	margin: 0;
	text-shadow: 0 0 3px rgb(164 152 152 / 55%); 
}


/* YLÄOSA */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 50px;
    align-items: center;
    overflow: visible; 
    width: 800px; 
    margin: auto;
}

.hero-kuva img {
    width: auto;
    height: 500px; 
    display: block;
    filter: sepia(20%);
	opacity: 0.8;
	border-radius: 5px;
	box-shadow: 0 0 3px rgb(65 49 49 / 50%);
}

.hero-koriste {
    position: absolute;
    width: 530px; 
    left: 33%;      
    top: -80px; 
    z-index: 2; 
    pointer-events: none;
    rotate: -10deg; 
    opacity: 100%;
} 

.hero-tiedot {
    grid-column: 2;
    position: relative;
    z-index: 3;
    padding: 40px;
    background: #f9e9d8;
	border: solid #fef3e1;
	border-width: 1px 3px;
	border-radius: 5px;
	line-height: 1.2rem;
}

.hero-tiedot span {
	display: block; 
	text-transform: uppercase; 
	font-weight: bold;
	font-family: "Arapey", serif; 
	font-variant-numeric: lining-nums;
	letter-spacing: 0.15rem;
	font-size: 0.9rem;
	color: rgb(102 92 92); 
	margin-top: 10px; 
}

.tieto-nosto {
	border-bottom: 1px solid rgb(200 160 160 / 45%); 
	margin-bottom: 20px; 
	padding-bottom: 5px; 
}

/* LUONNETEKSTI */

.teksti {
	width: 650px;
	margin: 0 0 110px 70px;
}

.teksti p {
	margin: 30px 0;
}

/* OSIOIDEN OTSIKOT */

h3 {
	width: 100%;
	margin: 0 0 45px;

	display: flex;
	align-items: center;
	gap: 25px;

	font-family: "Labrada", serif;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 5px;
	text-transform: uppercase;

	color: #826969;
}

h3::after {
	content: "";
	height: 1px;
	flex: 1;
	background: rgb(113 90 90 / 30%);
}


/* SUKUTAULU */

.sukuosio {
	width: 900px;
	margin: 0 auto 85px;
}

.taulukko {
	width: 100%;
	border-collapse: collapse;
}

.suku {
	height: 480px;
}

.suku td {
	padding: 10px 14px;
}

.bl {
	border-left: 2px solid rgb(113 90 90 / 20%);
}

.bb {
	border-bottom: 1px solid rgb(113 90 90 / 20%);
}

.suku {
	background:
		url("magnolia-placeholder.png")
		right bottom / 70% auto
		no-repeat;
}


/* JÄLKELÄISET */

.jalkelaiset {
	width: 790px;
	margin: 0 auto 100px;
}

.varsat {
	display: flex;
	margin: 0;
	text-align: center;
}

.v {
	position: relative;
	width: 33.333%;
	padding: 5px 30px;

	background: none;
	border: 0;
	border-radius: 0;
	margin: 0;
}

.v + .v {
	border-left: 1px solid rgb(113 90 90 / 25%);
}

.v a {
	display: block;
	margin-bottom: 8px;

	font-size: 17px;
	font-style: italic;
}

.v em,
.v span {
	display: block;
}

.v span {
	margin-top: 4px;
	font-size: 12px;
	color: rgb(65 49 49 / 50%);
}


/* KILPAILUT */

.kilpailut {
	width: 820px;
	margin: 0 0 80px 55px;
}

.kilpailusisalto {
	display: grid;
	grid-template-columns: 170px 210px 1fr;
	align-items: stretch;
}

.sijoitusmaara,
.kilpailutiedot,
.tulokset {
	padding: 5px 35px;
}

.kilpailutiedot,
.tulokset {
	border-left: 1px solid rgb(113 90 90 / 25%);
}


/* iso 40 */

.sijoitusmaara {
	padding-left: 0;
	text-align: center;
}

.sijoitusmaara strong {
	display: block;

	font-family: "Water Brush", serif;
	font-size: 90px;
	line-height: .9;
	font-weight: normal;
	font-style: italic;

	color: #9c7b7b;
}

.sijoitusmaara span {
	display: block;
	margin-top: 15px;

	font-family: "Water Brush", serif;
	font-size: 25px;
	color: #9c7b7b;
}


/* kilpailutiedot */

.kilpailutiedot > strong {
	display: block;
	font-weight: normal;
	font-style: italic;
	font-size: 16px;
}

.kilpailutiedot > span {
	display: block;
	margin: 3px 0 20px;
	color: #a06f6f;
}

.kilpailutiedot dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;

	font-family: "Labrada", serif;
	font-size: 12px;
	color: rgb(65 49 49 / 55%);
}

.kilpailutiedot dt,
.kilpailutiedot dd {
	margin: 2px 0;
}


/* tulokset */

.tulokset h4 {
	margin: 0 0 15px;

	font-weight: normal;
	font-style: italic;
	font-size: 16px;
}

.tulokset p {
	margin: 0;
	font-family: "Labrada", serif;
	font-size: 11px;
	line-height: 1.9;
	color: rgb(65 49 49 / 45%);
	text-align: left;
	text-transform: uppercase;
}


/* FOOTER */

footer {
	width: 850px;
	margin: auto;
	padding: 25px 0;

	border-top: 1px solid #eee;

	text-align: center;
	text-transform: uppercase;
	color: rgb(65 49 49 / 40%);
	font-size: 11px;
	font-family: "Labrada", serif;
	letter-spacing: 2px;
}