/*
Theme Name: High Mile Style
Theme URI: https://highmilestyle.com
Author: High Mile Style
Description: Lightweight block theme for highmilestyle.com. Fashion, beauty, wellness and travel with honest affiliate content. No page builder, no jQuery, no theme JavaScript.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: highmilestyle
*/

/* Design tokens live in theme.json. This file only holds what theme.json cannot express. */
a:where(:not(.wp-element-button)) { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.hms-card img { transition: transform .4s ease; }
.hms-card:hover img { transform: scale(1.02); }
.hms-card .wp-block-post-featured-image { overflow: hidden; }
.hms-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; }
.hms-disclosure { border-left: 3px solid var(--wp--preset--color--accent); }
.hms-product .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hms-table table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--small); }
.hms-table th { text-align: left; background: var(--wp--preset--color--sand); }
.hms-table th, .hms-table td { padding: .75em 1em; border-bottom: 1px solid var(--wp--preset--color--line); }
.hms-table figure { overflow-x: auto; }
.hms-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1em 0; }
.hms-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); }
.hms-newsletter input[type=email] { width: 100%; padding: .85em 1em; border: 1px solid var(--wp--preset--color--ink); background: var(--wp--preset--color--base); font: inherit; border-radius: 0; box-sizing: border-box; }
.hms-newsletter form { display: grid; gap: .75rem; max-width: 30rem; margin-inline: auto; }
@media (min-width: 600px) { .hms-newsletter form { grid-template-columns: 1fr auto; } }
.hms-hubs a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* Hero video: plays muted and looped (Safari, Chrome, Firefox, iOS, Android). Still image only for people who ask for less motion. */
.hms-hero .wp-block-cover__video-background { object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hms-hero .wp-block-cover__video-background { display: none; } }
.hms-hero .is-style-outline .wp-block-button__link { border-color: currentColor; }
.hms-hub-card a { text-decoration: none; }
.hms-hub-card { transition: filter .3s; }
.hms-hub-card:hover { filter: brightness(.96); }
.hms-hubs a { text-decoration: none; color: inherit; }
.hms-hub-card { margin: 0; }
.hms-wordmark { font-family: var(--wp--preset--font-family--body); font-weight: 700; text-transform: uppercase; letter-spacing: .32em; line-height: 1; font-size: clamp(1.5rem, 7vw, 3.25rem) !important; margin: 0; }
.hms-wordmark a { text-decoration: none; }

/* Article: editorial split (photo left, text right). Stacks on phones. */
.hms-article .wp-block-post-content > p:first-child::first-letter,
.hms-article .wp-block-post-content > .hms-disclosure + p::first-letter { font-family: var(--wp--preset--font-family--display); font-size: 4.2em; float: left; line-height: .8; padding: .08em .12em 0 0; }
.hms-article-cover .wp-block-post-title a { color: inherit; }
.hms-article-cover .hms-eyebrow a { color: inherit; text-decoration: none; }
.hms-article-meta { margin-bottom: 1.25rem; }
@media (min-width: 782px) { .hms-article .wp-block-columns > .wp-block-column:first-child .hms-article-cover { position: sticky; top: 0; } }
@media (max-width: 781px) { .hms-article .hms-article-cover { min-height: 60vh !important; } }
.hms-article-cover .wp-block-post-title { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hms-article-cover .wp-block-cover__image-background { object-position: 50% 8%; }

.hms-welcome .hms-welcome-col { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 1rem; font-size: var(--wp--preset--font-size--small); }
.hms-welcome .hms-welcome-col .hms-eyebrow { margin: 0 0 .4rem; }
.hms-welcome-closing { max-width: 760px; margin: var(--wp--preset--spacing--50) auto 0 !important; line-height: 1.4; }
