/*
 * Retkipaikka Brand Kit V1 sivustolla.
 *
 * Värit tulevat Enfoldin värisarjoista, jotka asetetaan tiedostossa inc/brand.php.
 * Tämä tiedosto hoitaa fontin, painot, napit, linkit ja yksityiskohdat, joita Enfoldin
 * asetuksista ei saa. Värimuuttujat (--rp-*, --fn-*) tulostetaan inc/brand.php:sta.
 */

/* ---------- Nunito Sans omalta palvelimelta (SIL Open Font License 1.1, fonts/nunito-sans/OFL.txt) ---------- */

@font-face {
	font-family: 'Nunito Sans';
	font-style: normal;
	font-display: swap;
	font-weight: 200 1000;
	src: url('../fonts/nunito-sans/nunito-sans-latin-ext-wght-normal.woff2') format('woff2-variations'),
	     url('../fonts/nunito-sans/nunito-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Nunito Sans';
	font-style: normal;
	font-display: swap;
	font-weight: 200 1000;
	src: url('../fonts/nunito-sans/nunito-sans-latin-wght-normal.woff2') format('woff2-variations'),
	     url('../fonts/nunito-sans/nunito-sans-latin-wght-normal.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: 'Nunito Sans';
	font-style: italic;
	font-display: swap;
	font-weight: 200 1000;
	src: url('../fonts/nunito-sans/nunito-sans-latin-ext-wght-italic.woff2') format('woff2-variations'),
	     url('../fonts/nunito-sans/nunito-sans-latin-ext-wght-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Nunito Sans';
	font-style: italic;
	font-display: swap;
	font-weight: 200 1000;
	src: url('../fonts/nunito-sans/nunito-sans-latin-wght-italic.woff2') format('woff2-variations'),
	     url('../fonts/nunito-sans/nunito-sans-latin-wght-italic.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;
}

/* ---------- Typografia: Nunito Sans, otsikot SemiBold, leipäteksti Regular, nostot Bold ---------- */

body#top,
#top input,
#top textarea,
#top select,
#top button,
#top p.p1 {
	font-family: var(--rp-fontti);
}

#top strong,
#top b {
	font-weight: 700;
}

/* Lihavointi tummana kuten brand kitin Bold-näytteessä. Enfold värjäisi sen pääväriin (Puro), jolloin se näyttäisi linkiltä. */
#top .main_color strong,
#top .main_color b,
#top .alternate_color strong,
#top .alternate_color b {
	color: inherit;
}

/* Otsikot normaalein kirjaimin kuten brand kitin typografianäytteissä (tuotannon style.css muuttaa niitä isoiksi). */
#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6,
#top .post-title,
#top .entry-title,
#top .av-masonry-entry-title {
	font-family: var(--rp-fontti);
	font-weight: 600;
	text-transform: none;
	letter-spacing: -0.01em;
}

#top h1,
#top h2 {
	line-height: 1.15;
}

/* Pienet nostot isoin kirjaimin ja väljällä välistyksellä, kuten brand kitin otsakkeissa. */
#top .post-entry .minor-meta,
#top #footer .widgettitle {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

#top .av-main-nav > li > a .avia-menu-text {
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* ---------- Linkit: Puro, tekstissä alleviivattuna, jotta linkki ei erotu pelkällä värillä ---------- */

#top .entry-content a:not([class]),
#top .avia_textblock a:not([class]) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

#top .entry-content a:not([class]):hover,
#top .avia_textblock a:not([class]):hover {
	color: var(--rp-sammal);
	text-decoration-thickness: 2px;
}

/* ---------- Toimintakehote: Sammal-pohja, valkoinen lihavoitu teksti (brand kitin "Tutustu ja varaa") ---------- */

#top .avia-button.avia-color-theme-color,
#top input[type="submit"]:not(#searchsubmit),
#top button[type="submit"],
#top .button {
	background-color: var(--rp-sammal);
	border-color: var(--rp-sammal);
	color: #fff;
	font-weight: 700;
	border-radius: var(--rp-pyoristys);
}

#top .avia-button.avia-color-theme-color:hover,
#top input[type="submit"]:not(#searchsubmit):hover,
#top button[type="submit"]:hover,
#top .button:hover {
	background-color: var(--rp-havu);
	border-color: var(--rp-havu);
	color: #fff;
}

/* ---------- Saavutettavuus: näkyvä fokus näppäimistöllä liikuttaessa ---------- */

#top a:focus-visible,
#top button:focus-visible,
#top input:focus-visible,
#top select:focus-visible,
#top textarea:focus-visible {
	outline: 2px solid var(--rp-puro);
	outline-offset: 2px;
}

/* ---------- Yksityiskohdat: Nuotio harkiten ---------- */

/* Anfangi Nuotiolla (iso teksti, kontrasti valkoisella 4,6:1). */
#top .has-drop-cap:not(:focus)::first-letter {
	color: var(--rp-nuotio);
	font-weight: 700;
}

::selection {
	background: var(--rp-utu);
	color: var(--rp-piki);
}
