/*
Theme Name: Ondaatje
Theme URI: https://github.com/masonyekta/ondaatje/
Author: Mason Y
Author URI: https://masonyekta.com/
Description: A WordPress block theme for bloggers and writers.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.0
Tested up to: 6.1
Requires PHP: 5.6
Version: 0.7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ondaatje

*/

/* Defaults
---------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

a,
button,
input[type="button"],
input[type="submit"],
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--medium);
}

blockquote {
	margin: 0;
}

ol,
ul {
	margin: 0;
	padding: 0;
}

ul,
li {
	list-style: none;
	margin: 0;
	padding: 0;
}

pre {
	white-space: pre-wrap;
}

mark {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
	background-position: 0 85%;
	background-repeat: repeat-x;
	background-size: 100% 15%;
}

/* Forms
--------------------------------------------- */

input,
select,
textarea,
.wp-block-search__input {
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

input:focus:not([type="submit"]),
textarea:focus {
	background-color: transparent;
	transition: all 0.2s ease-in-out;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.6;
}

/* List
--------------------------------------------- */

ol li:where(:not([class*="block"])),
ul li:where(:not([class*="block"])),
.wp-block-list li {
	margin-left: 30px;
}

.is-style-no-disc li {
	list-style-type: none;
	margin-left: 0;
}

/* Blocks
---------------------------------------------------------------------------- */

/* Button - Fill Base
--------------------------------------------- */

.wp-block-button.is-style-fill-base .wp-element-button {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* Button - Outline
--------------------------------------------- */

.wp-block-button.is-style-outline .wp-element-button {
	background-color: transparent;
	border: 1px solid;
	border-color: currentcolor;
	color: var(--wp--preset--color--contrast);
	padding: 14px 29px;
}

/* Button - Outline Base
--------------------------------------------- */

.wp-block-button.is-style-outline-base .wp-element-button {
	background-color: transparent;
	border: 1px solid;
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
}

/* Code
--------------------------------------------- */

.wp-block-code code {
	overflow-wrap: normal;
	overflow-x: scroll;
	tab-size: 4;
	white-space: pre !important;
}

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* Comments
--------------------------------------------- */

.wp-block-comment-template li {
	margin-left: 0;
}

.wp-block-post-comments-form .comment-reply-title {
	font-weight: var(--wp--custom--font-weight--regular);
}

.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
	border-color: var(--wp--preset--color--contrast);
}

.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	font-weight: var(--wp--custom--font-weight--light);
	padding: 10px 15px;
}

.wp-block-post-comments-form input[type="submit"] {
	width: auto;
}

.wp-block-post-comments-form p {
	margin-bottom: 20px;
}

.wp-block-post-comments-form .form-submit {
	margin-bottom: 0;
}

.wp-block-post-comments-form .comment-form-cookies-consent label {
	font-size: var(--wp--preset--font-size--x-small);
}

/* Group
--------------------------------------------- */

.wp-block-group.is-style-shadow {
	box-shadow: 0 0 50px rgb(0 0 0 / 10%);
}

.wp-block-group.is-style-shadow-solid {
	box-shadow: 5px 5px var(--wp--preset--color--contrast);
}

/* Spacer
--------------------------------------------- */

.wp-block-spacer + * {
	margin-top: 0 !important;
}

/* Heading
--------------------------------------------- */

.wp-block-post-content .wp-block-heading + * {
	margin-top: 20px;
}

/* Image
--------------------------------------------- */

.wp-block-image.aligncenter {
	margin-left: auto !important;
	margin-right: auto !important;
}

.wp-block-image.alignleft {
	margin-right: 30px !important;
}

.wp-block-image.alignright {
	margin-left: 30px !important;
}

/* Navigation
--------------------------------------------- */
.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding-bottom: 30px;
	padding-top: 30px;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}

.wp-block-navigation:not([style*="text-decoration"]) a,
.wp-block-navigation:not([style*="text-decoration"]) a:focus,
.wp-block-navigation:not([style*="text-decoration"]) a:hover {
	text-decoration: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
	font-weight: var(--wp--custom--font-weight--medium);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list .wp-block-pages-list__item__link {
	font-size: var(--wp--preset--font-size--x-large);
}

/* Navigation Submenu
--------------------------------------------- */
.wp-block-navigation:not(.has-background)
.wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

/* Paragraph
--------------------------------------------- */

p.has-background {
	padding: 20px 30px;
}

/* Preformatted
--------------------------------------------- */

.wp-block-preformatted {
	overflow-wrap: normal;
	overflow-x: scroll;
	white-space: pre;
}

/* Pullquote
--------------------------------------------- */

.wp-block-pullquote p:last-of-type {
	margin-bottom: 0;
}

/* Quote
--------------------------------------------- */

.wp-block-quote p:last-of-type {
	margin-bottom: 0;
}

/* Separator
--------------------------------------------- */

.wp-block-separator.is-style-dots::before {
	font-family: inherit;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 10px;
	padding-left: 10px;
}

.wp-block-separator:not(.is-style-dots),
.wp-block-separator.has-background:not(.is-style-dots) {
	border-bottom: 1px solid currentcolor;
	border-top: none;
	height: 1px;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 100px;
}

/* Social Icons
--------------------------------------------- */

.wp-block-social-links.is-style-outline .wp-block-social-link {
	background-color: transparent;
	border: 1px solid currentcolor;
}

/* Table
--------------------------------------------- */

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--contrast);
	padding: 5px;
}

.wp-block-table th {
	font-weight: var(--wp--custom--font-weight--regular);
}

.wp-block-calendar tbody td,
.wp-block-calendar th {
	border: 1px solid var(--wp--preset--color--contrast);
	padding: 10px;
}

.wp-block-calendar table th {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wp-block-table.is-style-stripes {
	border-bottom: none;
}

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table thead {
	border-bottom: 3px solid var(--wp--preset--color--contrast);
}

.wp-block-table tfoot {
	border-top: 3px solid var(--wp--preset--color--contrast);
}


.wp-block-table tr,
.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th,
.wp-block-table.is-style-stripes tr {
	border: 1px solid var(--wp--preset--color--contrast);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--wp--preset--color--neutral);
}

/* Calendar
--------------------------------------------- */

.wp-block-calendar table caption,
.wp-block-calendar table tbody {
	color: var(--wp--preset--color--contrast);
}

/* Latest Posts
--------------------------------------------- */
.latest-posts .is-layout-flex {
	gap: 10px;
	margin-bottom: 0;
}

/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (max-width: 780px) {

	/* Columns
	--------------------------------------------- */
	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

	/* Latest Posts
	--------------------------------------------- */
	.latest-posts .has-text-align-right {
		margin-top: 0;
		text-align: left;
	}
}

@media only screen and (min-width: 600px) {

	.is-style-min-width {
		min-width: 200px;
	}
}

@media only screen and (min-width: 800px) {

	/* Navigation Link
	--------------------------------------------- */

	.wp-block-navigation-item.is-style-outline a {
		border: 1px solid currentcolor;
		padding: 8px 15px;
	}

	/* Pullquote
	--------------------------------------------- */

	.wp-block-pullquote.alignleft,
	.wp-block-pullquote.alignright {
		max-width: 300px;
	}

	.wp-block-pullquote.alignleft {
		margin-right: 30px !important;
	}

	.wp-block-pullquote.alignright {
		margin-left: 30px !important;
	}
}
