/*
Theme Name: Squash Source
Theme URI: https://www.squashsource.com/
Author: Pierre
Description: Custom block theme for squashsource.com. Built from scratch using Twenty Twenty-Five as a structural reference. Design tokens ported from the sixteen_nine Genesis child theme.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: squashsource
*/

/*
 * Most theme styling lives in theme.json. Add CSS here only when theme.json can't express it.
 * Any styling associated with the Squash Source plugin should be added to squashsource-plugin.css.
 */


/* -----------------------------------------------
   Site-wide changes
----------------------------------------------- */

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

.wp-block-post-content {
    margin-bottom: 4rem;
}

/* Squash Source link treatment */

a {
    text-decoration: underline;
}

a:hover {
    background-color: #d8171712; /* 8-digit hex, where the last two digits 12 are the alpha channel, giving a subtle, low-opacity red blush on hover */
}

/* -----------------------------------------------
   Blockquote
----------------------------------------------- */

blockquote {
    color: #999;
    margin: 1.5rem 1rem;
    padding: 0 1.5rem;
}

.wp-block-quote::before {
    content: "\201C";
    display: block;
    font-size: 24px;
    height: 0;
    left: -20px;
    position: relative;
    top: -10px;
}

/* -----------------------------------------------
   Buttons
----------------------------------------------- */
.button,
a.button,
button,
[type=submit],
[type=reset],
[type=button] {
    -webkit-appearance: none;
    display: inline-block;
    border: 2px solid var(--wp--preset--color--primary);
    border-radius: 4px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--background);
    font-weight: 300;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.125rem;
    height: auto;
    text-transform: uppercase;
    padding: .75rem 1.25rem;
    margin: 0 0 .5rem 0;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.button:hover,
a.button:hover,
button:hover,
[type=submit]:hover,
[type=reset]:hover,
[type=button]:hover {
    border-color: #c11515;
    background: #f39595;
    color: var(--wp--preset--color--background);
    text-decoration: none;
}

.button:focus,
.button:active,
a.button:focus,
a.button:active,
button:focus,
button:active,
[type=submit]:focus,
[type=submit]:active {
    border-color: #c21e1e;
    background: #c21e1e;
    color: var(--wp--preset--color--background);
    text-decoration: none;
}

/* -----------------------------------------------
   Forms
----------------------------------------------- */
input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]),
select,
textarea {
    display: block;
    border: 1px solid #dedede;
    border-radius: 4px;
    padding: .75rem;
    outline: none;
    background: var(--wp--preset--color--background);
    margin-bottom: .5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    line-height: 1;
}

input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]):hover,
select:hover,
textarea:hover {
    border: 1px solid #cdcdcd;
}

input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]):focus,
input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]):active,
select:focus,
select:active,
textarea:focus,
textarea:active {
    border: 1px solid var(--wp--preset--color--primary);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 0 6px #f09090;
}

textarea {
    overflow: auto;
    height: auto;
}

label {
    font-weight: 600;
    max-width: 100%;
    display: block;
    margin: 1rem 0 .5rem;
}

input,
select,
textarea {
    color: #666;
    font-family: var(--wp--preset--font-family--body);
}


/* ---------
Home
 --------- */

.home #last-updated {
    display: none;
}