/*
Theme Name: Teatteri Kesy
Description: WordPress-teema Teatteri Kesylle. Perustyylit siirretty Drupal 7 -teemasta (kesy).
Author: Pasi Valkeila
Version: 1.0.0
Text Domain: kesy
*/

/* ==========================================================================
   Variables (CSS custom properties)
   ========================================================================== */

:root {
	--kesy-red: #d80612;
	--kesy-red-strong: #e1001a;
	--kesy-yellow: #ffd200;
	--kesy-text: #515151;
	--kesy-dark: #000;
	--kesy-light-bg: #f7f7f7;
	--kesy-font-body: 'Questrial', sans-serif;
	--kesy-font-heading: 'Abril Fatface', cursive;
	--kesy-font-special: 'Permanent Marker', cursive;
	--kesy-container: 1000px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	font-family: var(--kesy-font-body);
	font-size: 18px;
	line-height: 1.5;
	color: var(--kesy-text);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */

p {
	font-weight: 100;
	margin: 0 0 1rem;
}

h1,
h2,
h3 {
	font-family: var(--kesy-font-heading);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 1rem;
	hyphens: auto;
	word-break: break-word;
}

h1 {
	font-size: 35px;
	margin-bottom: 30px;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.3rem;
}

h4,
h5,
h6 {
	font-family: var(--kesy-font-body);
	font-weight: 600;
}

h4 {
	font-size: 1.1375rem;
	text-transform: uppercase;
}

a {
	color: var(--kesy-red);
	text-decoration: none;
	transition: 0.3s all;
}

a:hover,
a:focus {
	color: var(--kesy-red-strong);
}

hr {
	height: 1px;
	border: 0;
	border-top: 1px dotted rgba(255, 208, 0, 0.53);
	margin: 0.25rem 0;
}

blockquote {
	margin: 10px;
	padding: 0.5em 2em;
	color: #c11c1c;
	font-family: var(--kesy-font-special);
	font-size: 1rem;
	quotes: "\201C" "\201D" "\2018" "\2019";
}

.yellow {
	color: var(--kesy-yellow);
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.29);
}

.center {
	text-align: center;
}

.small {
	font-size: 0.8rem;
}

.grey {
	color: #b6b6b6;
	font-size: 0.9rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.kesy-container {
	width: 87%;
	max-width: var(--kesy-container);
	margin: 0 auto;
}

.kesy-main {
	padding: 40px 0 60px;
}

.kesy-section-light {
	background-color: var(--kesy-light-bg);
	color: #000;
}

.kesy-section-light h1,
.kesy-section-light h2,
.kesy-section-light h3 {
	color: var(--kesy-red-strong);
}

.kesy-section-light a {
	color: var(--kesy-red-strong);
	text-decoration: underline;
}

.kesy-section-dark {
	background-color: var(--kesy-red);
	color: #fff;
}

.kesy-section-dark h1,
.kesy-section-dark h2,
.kesy-section-dark h3,
.kesy-section-dark a {
	color: #fff;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 15px 0;
}

.site-header .kesy-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.site-branding img {
	display: block;
	max-height: 60px;
	width: auto;
}

.site-branding .site-title {
	font-family: var(--kesy-font-heading);
	font-size: 1.75rem;
	color: var(--kesy-red);
}

.site-branding .site-title a {
	color: inherit;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	display: block;
	padding: 8px 0;
	color: var(--kesy-red);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 4px;
	text-transform: uppercase;
	border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	border-bottom-color: var(--kesy-red);
}

/* ==========================================================================
   Content
   ========================================================================== */

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-meta {
	font-size: 0.9rem;
	color: #b6b6b6;
	margin-bottom: 1rem;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5rem;
}

.entry-content img {
	display: block;
	margin: 0 auto;
}

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin: 0 auto 1rem;
}

p.ingress {
	font-family: var(--kesy-font-special);
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1.6rem;
	color: var(--kesy-red);
	padding: 0.8vw 0 1vw;
	margin-bottom: 1.6vw;
	text-shadow: 1px 1px 4px #00000030;
}

.wp-block-image img,
.wp-caption img {
	height: auto;
}

/* Buttons and links styled as buttons */
.kesy-button,
.wp-element-button,
.wp-block-button__link,
input[type="submit"],
button {
	display: inline-block;
	background: var(--kesy-red);
	color: #fff;
	border: 0;
	border-radius: 50px;
	padding: 6px 23px;
	font-family: var(--kesy-font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: 0.2s all;
}

.kesy-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
	color: #fff;
	transform: scale(1.05);
}

.kesy-section-light .kesy-button,
.kesy-section-light .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--kesy-red-strong);
	color: var(--kesy-red-strong);
}

.kesy-section-light .kesy-button:hover,
.kesy-section-light .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 3px var(--kesy-red-strong);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="url"],
textarea,
select {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 12px;
	font: inherit;
	color: var(--kesy-text);
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--kesy-red);
}

/* ==========================================================================
   Widgets, comments and pagination
   ========================================================================== */

.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-family: var(--kesy-font-heading);
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	padding: 4px 0;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-top: 2rem;
}

.page-numbers {
	display: inline-block;
	padding: 4px 10px;
	color: var(--kesy-red);
}

.page-numbers.current {
	font-weight: 600;
	color: var(--kesy-red-strong);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--kesy-red);
	color: #fff;
	padding: 40px 0;
	font-size: 0.9rem;
}

.site-footer a {
	color: #fff;
	text-decoration: underline;
}

.site-footer .kesy-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
}

.site-footer .site-info {
	grid-column: 1 / -1;
	text-align: center;
	border-top: 1px dotted rgba(255, 255, 255, 0.5);
	padding-top: 20px;
	font-size: 0.8rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 768px) {
	body {
		font-size: 16px;
	}

	h1 {
		font-size: 30px;
		line-height: 30px;
		margin-bottom: 10px;
	}

	.kesy-container {
		width: 92%;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 auto 1rem;
	}
}

@media only screen and (max-width: 414px) {
	.kesy-button,
	.wp-element-button,
	.wp-block-button__link {
		width: 100%;
	}

	.main-navigation a {
		letter-spacing: 2px;
	}
}

/* ==========================================================================
   Productions
   ========================================================================== */

.production-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 20px;
	margin: 0 0 2rem;
	font-size: 0.95rem;
}

.production-details dt {
	font-weight: 600;
	color: var(--kesy-red);
}

.production-details dd {
	margin: 0;
}

@media only screen and (max-width: 414px) {
	.production-details {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Full-width hero image
   ========================================================================== */

.kesy-hero {
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw) 2rem;
}

.kesy-hero__image {
	display: block;
	width: 100%;
	height: 60vh;
	min-height: 280px;
	object-fit: cover;
}

@media only screen and (max-width: 768px) {
	.kesy-hero__image {
		height: 40vh;
	}
}
