@import url('https://fonts.googleapis.com/css2?family=Allura&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Oranienbaum&family=Roboto+Condensed:wght@300;400;500&display=swap');


* {
	box-sizing: border-box;
}


html {
	background-image:
		radial-gradient(
			circle,
			rgba(255,255,255,.80) 0%,
			rgba(238,173,193,.95) 77%,
			rgba(233,148,175,1) 98%
		),
		url(bg.png);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	background-position: 0 0;
	min-height: 100%;

	font-family: "Roboto Condensed", san-serif;
	font-size: 95%;
	color: #62534f;
		letter-spacing: .07rem;
}


body {
	margin: 0;
	min-width: 1000px;
	min-height: 100vh;
	background: transparent;
}


a {
	color: #9e4a55;
	text-decoration: none;
}

a:hover, .hevonen-tiedot a:hover {
	color:  #c83f62; 
	text-shadow: 0.3px 0 currentColor, -0.3px 0 currentColor;
}

a:active {
	color: #c83f62; 
	font-weight: 500;
}


p {
	line-height: 1.65;
	font-weight: 100;
}


.selite {
	font-family: "Roboto Condensed", sans-serif;
	font-size: .8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .16rem;
	color: #55443f;
}

.selite:after {
	content: "·";
	margin: auto 5px; 
}

em, .varsa p {
	font-style: normal;
	font-size: .8rem;
	letter-spacing: .13rem;
	color: #8b7770;
}


/* HEADER */

header {
	background: rgb(255 241 239 / 86%);
	border-bottom: 1px solid rgb(112 71 72 / 10%);
}


.header-sisalto {
	width: 1000px;
	height: 145px;
	margin: auto;
	padding: auto 10px; 
	display: flex;
	align-items: center;
}


.otsikko {
	font-family: "Bodoni Moda", serif;
	font-size: 2.4rem;
	letter-spacing: .55rem;
	color: #86545b;
	padding-left: 20px; 
}


.otsikko small {
	display: block;
	margin-top: 8px;
	margin-left: 8px;
	font-family: "Roboto Condensed", sans-serif;
	font-size: .7rem;
	font-weight: 300;
	letter-spacing: .25rem;
	text-transform: uppercase;
}


header nav {
	margin-left: auto;
	display: flex;
	gap: 40px;
	padding-right: 20px; 
}


header nav a {
	font-family: "Roboto Condensed", sans-serif;
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .16rem;
	text-transform: uppercase;
	color: #684b4c;
}


/* MAIN */

main {
	width: 1000px;
	margin: auto;
	background: rgb(255 247 240 / 93%);
}


/* HERO */

.info-box {
	height: 425px;
	display: flex;
}


.hero-kuva img, .hero-kuva-etusivu img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	filter:
		sepia(65%)
		brightness(80%);
}


.hero-kuva {
	position: relative;
	width: 60%;
	height: 100%;
	overflow: hidden;
}

.hero-kuva-etusivu {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hero-kuva::after, .hero-kuva-etusivu:after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(72 82 58 / 50%);
	pointer-events: none;
}

.hero-teksti {
    position: absolute;
    left: 45px;
    top: 45px;
    z-index: 2;
	color: #fff; 
	max-width: 350px;
}

.hero-teksti span {
	font-family: "Bodoni Moda", serif;
	font-size: 1.5rem; 
	font-weight: bold;
	font-style: italic; 
	color: rgb(237 199 202 / 90%);
}

.hero-teksti p {
	max-width: 280px; 
	text-align: justify; 
}

.perustiedot {
	position: relative;
	width: 50%;
	padding: 30px;
	background: rgb(162 171 115 / 90%);
}

.ylaselitte {
	font-family: "Roboto Condensed", sans-serif;
	font-size: .8rem;
	letter-spacing: .25rem;
	text-transform: uppercase;
}


h1 {
	margin: 3px 0 18px;
	font-family: "Bodoni Moda", serif;
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: .25rem;
	text-transform: uppercase;
	color: #57483f;
}


.hero-tiedot p,
.kilpailee {
	margin: 0 0 15px;
	line-height: 1.6;
}


.pikkuviiva {
	width: 60px;
	height: 1px;
	margin: 20px 0;
	background: rgb(84 67 58 / 35%);
}


.meriitit {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}


.meriitit a, .saavutus a, .varsa a {
	padding: 8px 17px;
	background: rgb(190 143 132);
	font-family: "Roboto Condensed", sans-serif;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .13rem;
	font-weight: 500;
	color: #fff5ee;
}

.meriitit a:hover, .saavutus a:hover, .varsa a:hover {
	background: rgb(169 111 98);
}


/* TABIT */

.tab {
	height: 53px;
	display: flex;
	background: #c83f62;
}


.trigger {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: "Roboto Condensed", sans-serif;
	font-size: .8rem;
	letter-spacing: .16rem;
	text-transform: uppercase;
	color: #fff2ec;
}


.trigger:hover {
	background: rgb(255 255 255 / 10%);
	color:#fff2ec;
	font-weight: normal;
}


.trigger.active {
	background: #f7e4e1;
	color: #9a5360;
}


/* TABIKONTSAT */

.piilodiv {
	display: none;
} 


.leipateksti,
.suku,
.kilpailut,
.paivakirja,
.listaus, 
.sivut {
	padding: 60px 65px;
}


/* OTSIKOT */

.osio-otsikko,
.pikkuotsikko {
	display: flex;
	align-items: center;
	gap: 25px;
}


.osio-otsikko {
	margin-bottom: 35px;
}


.osio-otsikko h2 {
	margin: 0;
	font-family: "Bodoni Moda", serif;
	font-size: 1.65rem;
	font-weight: 400;
	letter-spacing: .35rem;
	text-transform: uppercase;
	color: #754e50;
}

.osio-otsikko {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 20px 30px;
}

.osio-otsikko::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgb(179 154 150 / 40%);
}


/* leipateksti */

.teksti {
	column-count: 2;
    column-gap: 70px;
}


.teksti p {
	margin: 20px 0px;
	text-align: justify; 
}

.teksti p:first-child {
	margin-top: 0px; 
}
 
.teksti p:first-child::first-letter {
	float: left;
	margin: 6px 20px 0 0;
	font-family: "Bodoni Moda", serif;
	font-size: 4.2rem;
	line-height: .75;
	color: #8d4d55;
}


.lainaus {
	margin: 60px auto 10px auto;
	padding: 20px 35px;
	display: flex;
	justify-content: center;
	width: 700px; 
	gap: 25px;
	background: rgb(232 187 190 / 20%);
	line-height: 1.65;
	font-weight: 500;
	font-size: 1.05rem;
	letter-spacing: .09rem;
	font-family: "Bodoni Moda";
	font-style: italic; 
	color: #8c6260;
}

.lainaus span {
	font-family: Georgia, serif;
	font-size: 3rem;
	line-height: 1;
	margin-top: 5px; 
	color: rgb(177 108 116 / 55%);
}


/* ALAOSA */

.alaosio {
	display: grid;
	grid-template-columns: 2fr 1fr;
	margin: 40px auto; 
} 
 
 
.alaosio > div {
	padding: 0 30px;
}


.alaosio > div:first-child {
	padding-left: 0;
}


.alaosio > div:last-child {
	padding-right: 0;
}


.alaosio > div + div, .jalkelaiset > div + div {
	border-left: 1px solid rgb(111 78 73 / 22%);
}


h3 {
	margin: 0;
	margin-bottom: 25px;
	margin-left: 20px; 
	font-weight: 500;
	letter-spacing: .25rem;
	text-transform: uppercase; 
	color: rgb(211 141 147);
	width: 90%;
	padding-bottom: 8px; 
	padding-left: 5px;
	border-bottom: 1px solid rgb(179 154 150 / 40%);
}

.alaosio h3 {
	margin-left: 0px;
	}

.alaosio-etusivu {
	display: grid;
	grid-template-columns: 1fr 2fr;
}

.alaosio li {
	list-style-type: none; 
}

.alaosio ul {
	padding-left: 0px;
	font-family: "Roboto Condensed", sans-serif;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .16rem;
	color: #55443f;
}

.alaosio ul:before {
	content: "·";
	margin-right: 15px; 
}	

/* GALLERIA */

.galleriakuvat {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.galleriakuvat img {
    display: block;
    width: auto;
    height: var(--kuvakorkeus, 220px);
    max-width: 100%;
    object-fit: contain;
    filter: sepia(40%);
	border-radius: 2px; 
}

/* SAAVUTUKSET */


/* SUKU */

.suku table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 40px;
	background: #f7e4e166;
	line-height: 1.4rem;
	font-weight: 100;
}


.suku td {
	padding: 10px 20px;
	border: 1px solid rgb(111 78 73 / 17%);
}

.suku .selite:after {
	display: none;  
}

/* VARSAT */

.jalkelaiset {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-column-gap: 20px;
	padding: 10px; 
}

.varsa {
	padding: 20px; 
	text-align: center; 
}


/* KILPAILUT */ 

.kilpailut table, .sivut table {
	width: 100%; 
	border-collapse: collapse; 
	background: #f7e4e166;
	line-height: 1.65;
	font-weight: 100;
	margin: 0px auto 40px auto;
}

.kilpailut th, .sivut th {
	padding: 10px 17px;
	background: rgb(190 112 121 / 65%);
	font-family: "Roboto Condensed", sans-serif;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: .2rem;
	color: #fff5ee;
	font-weight: normal; 
	text-align: left;
}

.kilpailut td, .sivut td {
	padding: 8px 17px;
	border-bottom: 1px solid rgb(111 78 73 / 17%);
	font-size: 0.93rem;
}

.kilpailut td:nth-child(1), .sivut td:nth-child(1) {
	width: 120px; 
}

.sivut td:nth-child(2) {
	width: 120px; 
}

/* PÄIKKY */ 

h3 > em {
	font-weight: normal; 
	margin-left: 40px; 
}

/* LISTAUS */ 

.listaus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 10px;
	}

.hevonen {
    position: relative;
    width: 100%;
    height: 100px;
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    background-color: #f7e4e166;
	margin-bottom: 10px;
}

.hevonen::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 140px;
    border: 1px solid rgb(111 78 73 / 17%);
    border-left: 0;
    pointer-events: none;
}

.hevonen img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    display: block;
	filter: sepia(40%);
	opacity: 0.8;
}

.hevonen-tiedot {
	padding-left: 30px; 
}

.hevonen-tiedot > .selite {

	font-weight: normal;
	line-height: 1.5rem;
	color: #8b7770; 
	font-size: 0.8rem; 
}

.hevonen .selite:after  {
	content: none; 
}

.hevonen-tiedot i {
    padding: 0 6px;
    font-style: normal;
}

.hevonen-tiedot > h3 {
	margin: 5px 0 8px -5px;
	font-size: 1.0rem; 
	}

.hevonen-tiedot a {
	color: rgb(211 141 147); 
}


/* FOOTER */

.footer-sisalto {
	width: 890px;
	height: 100px;
	margin: auto;
	display: flex;
	align-items: center;
	gap: 30px;
	font-family: "Roboto Condensed", sans-serif;
	font-size: .8rem;
	letter-spacing: .16rem;
	text-transform: uppercase;
	color: #8b5b60;
	justify-content: space-between;
}