/*
Theme Name: StrongComet
Theme URI: https://strongcomet.com
Description: Editorial block theme for strongcomet.com: a record collection, stories about it, and a way to buy the copies that are for sale at Going Digital. Works with the StrongComet Collection plugin.
Version: 0.5.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: strongcomet
*/

/* Most styling lives in theme.json; this file holds what theme.json cannot express. */

.sc-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); padding: 12px 18px; }
.sc-skip:focus { left: 12px; top: 12px; }

/* Header */
.sc-masthead { border-bottom: 1px solid var(--wp--preset--color--line); }
.sc-logo { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.03em; line-height: 1; margin: 0; }
.sc-logo a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sc-tagline { font-family: var(--wp--preset--font-family--serif); font-style: italic; color: var(--wp--preset--color--muted); margin: 6px 0 0; }
.sc-nav { border-top: 3px solid var(--wp--preset--color--ink); border-bottom: 1px solid var(--wp--preset--color--ink); }
.sc-nav .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 0; }
.sc-nav .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -3px 0 var(--wp--preset--color--accent); }
.sc-shop-btn .wp-block-button__link:hover { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--paper) !important; }

/* Lists of posts */
.sc-postlist .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: 22px; }
.sc-postlist .wp-block-post-title a { text-decoration: none; }
.sc-postlist .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); }
.sc-postlist .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.sc-recommended { counter-reset: rec; }
.sc-recommended .wp-block-post { counter-increment: rec; display: flex; gap: 14px; border-bottom: 1px solid var(--wp--preset--color--line); padding: 14px 0; }
.sc-recommended .wp-block-post::before { content: counter(rec); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--wp--preset--color--accent); min-width: 24px; }
.sc-recommended .wp-block-post-title { font-size: 19px; margin: 0; }
.sc-recommended .wp-block-post-title a { text-decoration: none; }

/* Story */
.sc-story .wp-block-post-content > p:first-of-type::first-letter { float: left; font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 84px; line-height: .8; padding: 8px 10px 0 0; }
.sc-story .wp-block-post-content { font-family: var(--wp--preset--font-family--serif); font-size: 20px; line-height: 1.7; }
.sc-story .wp-block-post-content blockquote { border-left: 4px solid var(--wp--preset--color--accent); margin-left: 0; padding-left: 24px; font-size: 26px; font-style: italic; }
.sc-sticky { position: sticky; top: 24px; }

/* Footer */
.sc-shop-banner a { color: inherit; }
.sc-footer a { color: var(--wp--preset--color--paper); text-decoration: none; }
.sc-footer a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); }
.sc-footer .wp-block-navigation-item__content { font-size: 15px; }

/* Forms */
.wp-block-search__input { border: 2px solid var(--wp--preset--color--ink); border-radius: 0; min-height: 44px; padding: 0 12px; }
.wp-block-search__button { border-radius: 0; min-height: 44px; }

:where(a, button, input, select):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
