/*
Theme Name: Dispatch
Theme URI: https://bolhasani.com/newsletter/
Author: Mehran Bolhasani
Author URI: https://bolhasani.com
Description: A lean block theme for Digital Dispatch.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dispatch
Update URI: false
Tags: block-theme, blog, one-column
*/

/* Small refinements only; layout and type come from theme.json. */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    &.home {
        header.main-header {
            display: none;
        }
    }
}

::selection {
    background-color: #ec5b38;
    color: #fff;
}

.wp-block-site-title a {
    text-decoration: none;
}

.wp-block-post-navigation-link {
    font-size: var(--wp--preset--font-size--small);
}

a {
    text-decoration: none;

    &:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 1px;
    }
}

header.main-header {
    a {
        color: #111;
    }
}

/* Issue starter: website-only styling. The pattern itself stays plain so the
   same blocks render cleanly in email. */
.wp-block-post-content p > strong:first-child > a {
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.25;
    text-decoration: none;
}

.wp-block-post-content p > strong:first-child > a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 1px;
}
