/*
Theme Name: Tidepoint Press Site
Author: Tidepoint Press
Author URI: https://tidepointpress.com
Description: The tidepointpress.com site theme. Brand colors, Besley and Figtree, and page layouts for the home page and product pages. Not for distribution.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tidepoint-press-site
*/

:where(.wp-site-blocks) *:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; }
.has-navy-background-color :focus-visible { outline-color: var(--wp--preset--color--sun); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > footer { margin-block-start: auto; }
.wp-site-blocks > main { margin-block-start: 0; }
a { text-underline-offset: 3px; }

/* Small uppercase label above headings. */
.tp-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; color: var(--wp--preset--color--teal-deep); margin-bottom: 0; }
.has-navy-background-color .tp-label { color: var(--wp--preset--color--sun); }
.tp-lede { font-size: 1.15rem; line-height: 1.6; max-width: 46ch; }

/* Header logo. */
/* The image block writes an inline width; override it so the logo keeps its ratio when it shrinks. */
.tp-logo img { height: 48px; width: auto !important; }
@media (max-width: 600px) { .tp-logo img { height: 40px; } }

/* Signup box (MailerLite form, styled to match). */
.tp-signup { background: var(--wp--preset--color--white); border-radius: 8px; padding: 24px; max-width: 560px; }
.tp-signup .signup-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 16px; }
.tp-signup form { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-signup .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-signup input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--wp--preset--color--navy); border-radius: 4px; background: #fff; color: var(--wp--preset--color--ink); }
.tp-signup input::placeholder { color: #55626b; }
.tp-signup .ml-form-formContent { flex: 1 1 240px; min-width: 0; display: flex; }
.tp-signup .ml-form-fieldRow, .tp-signup .ml-field-group { flex: 1; display: flex; }
.tp-signup .ml-error input[type=email] { border-color: #b3261e; border-width: 2px; }
.tp-signup button { font: 600 16px/1.2 var(--wp--preset--font-family--figtree); padding: 14px 22px; border-radius: 8px; border: 0; cursor: pointer; background: var(--wp--preset--color--navy); color: #fff; }
.tp-signup button:hover { background: var(--wp--preset--color--ink); }
.tp-signup .fine { font-size: 15px; line-height: 1.45; color: #3c4b55; margin: 16px 0 0; }
.tp-signup .row-success .fine { margin-top: 0; }

/* Check-mark list. */
ul.tp-ticks { list-style: none; padding-left: 0; }
ul.tp-ticks li { padding-left: 34px; position: relative; margin: 10px 0; }
ul.tp-ticks li::before { content: ""; position: absolute; left: 6px; top: .25em; width: 8px; height: 14px; border-right: 2.5px solid var(--wp--preset--color--sun); border-bottom: 2.5px solid var(--wp--preset--color--sun); transform: rotate(45deg); }
:not(.has-navy-background-color) ul.tp-ticks li::before { border-color: var(--wp--preset--color--teal-deep); }
.has-navy-background-color ul.tp-ticks li::before { border-color: var(--wp--preset--color--sun); }

/* Screenshot rows. */
.tp-shots .wp-block-image img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top; width: 100%; border-radius: 8px; }
.tp-shots .wp-block-image figcaption { font-size: 15px; text-align: left; margin-top: 10px; }
.has-navy-background-color .tp-shots figcaption { color: var(--wp--preset--color--white); }
.tp-raised img { box-shadow: 0 1px 2px rgba(11, 34, 51, .12), 0 8px 24px rgba(11, 34, 51, .10); }

/* Cards and pricing. */
.tp-card { background: var(--wp--preset--color--white); border-radius: 8px; padding: 24px; height: 100%; }
.tp-card > * { margin-block: 0; }
.tp-card > * + * { margin-block-start: 12px; }
.tp-plan { border: 2px solid transparent; display: flex; flex-direction: column; }
.tp-plan.is-featured { border-color: var(--wp--preset--color--teal-deep); }
.tp-plan .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.tp-plan .wp-block-button, .tp-plan .wp-block-button__link { width: 100%; text-align: center; }
.tp-price { font-family: var(--wp--preset--font-family--besley); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.tp-price span { font-family: var(--wp--preset--font-family--figtree); font-size: 1.0625rem; font-weight: 400; color: #3c4b55; }
.tp-tag { align-self: flex-start; background: var(--wp--preset--color--sand); border-radius: 999px; font-size: 14px; font-weight: 600; padding: 4px 12px; }
.tp-muted { color: #3c4b55; }

/* Numbered steps. */
.tp-step-number { font-family: var(--wp--preset--font-family--besley); font-size: 1.75rem; font-weight: 700; color: var(--wp--preset--color--teal-deep); line-height: 1; margin-bottom: 8px; }

/* FAQ. */
.wp-block-details { border-bottom: 1px solid #c9d4d6; padding-block: 16px; }
.wp-block-details summary { cursor: pointer; font-size: 1.1875rem; font-weight: 600; }
.wp-block-details > :not(summary) { margin-block-start: 10px; }

/* Buttons: outline variant on dark backgrounds. */
.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; padding-block: 12px; }

/* Docs pages: side navigation and article. */
.tp-docs-nav ul { list-style: none; margin: 0; padding: 0; }
.tp-docs-nav li { margin: 0; }
.tp-docs-nav a { display: block; padding: 8px 12px; border-left: 2px solid #c9d4d6; text-decoration: none; line-height: 1.35; }
.tp-docs-nav a:hover { text-decoration: underline; }
.tp-docs-nav a[aria-current="page"] { border-left-color: var(--wp--preset--color--teal-deep); background: var(--wp--preset--color--mist); font-weight: 600; }
.tp-docs-nav .is-nested a { padding-left: 24px; }
@media (min-width: 782px) { .tp-docs-side { position: sticky; top: 24px; align-self: flex-start; } }
.tp-docs-body { max-width: 760px; }
.tp-docs-body h2 { font-size: var(--wp--preset--font-size--x-large); }
.tp-docs-body h3 { font-size: var(--wp--preset--font-size--large); font-family: var(--wp--preset--font-family--figtree); font-weight: 600; }

/* Text pages (docs, support): room above headings. Full-page patterns nest their headings in groups, so they're unaffected. */
.wp-block-post-content > h2:not(:first-child) { margin-block-start: 2.25rem; }
.wp-block-post-content > h3:not(:first-child) { margin-block-start: 1.75rem; }
.tp-docs-body ol, .tp-docs-body ul { padding-left: 1.4em; }
.tp-docs-body li + li { margin-top: 6px; }
code, kbd { font-size: .9em; background: var(--wp--preset--color--mist); border-radius: 4px; padding: 1px 6px; }
.tp-note { background: var(--wp--preset--color--sand); border-radius: 8px; padding: 16px 20px; }
.tp-note > * { margin-block: 0; }
.tp-note > * + * { margin-block-start: 8px; }

/* Footer. */
.tp-footer-mark img { width: 28px; height: 28px; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover, .wp-block-post-title a:focus-visible { text-decoration: underline; }
