/*
Theme Name: Steelray 2026
Theme URI: https://steelray.com/
Author: Steelray Software
Author URI: https://steelray.com/
Description: Blog theme matching the Steelray 2026 site redesign — ivory paper, deep ink, purple accent, Inter throughout. Reuses assets-2026/css/site.css from the main site when it is available on the same host, so the blog and the site stay visually in lockstep.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steelray-2026
Tags: blog, one-column, custom-menu, editor-style, featured-images, translation-ready, wide-blocks

This file carries the theme header and every blog-specific style. The shared
design tokens and site chrome (.wrap, .site-header, .menu, .btn, .sec, …) come
from the main site stylesheet, which is enqueued first. See functions.php.
*/

/* ==========================================================================
   Steelray 2026 — blog layer
   Sits on top of assets-2026/css/site.css. Only adds what the blog needs.
   ========================================================================== */

:root {
  --read: 72ch;          /* comfortable measure for article text */
}

/* --------------------------------------------------------------------------
   Section rhythm
   site.css's .sec carries a broad `.sec a:not(…)` rule that paints every link
   purple and underlined. That is right for marketing copy and wrong for a post
   listing, so the blog uses its own section class with the same metrics and
   opts individual link groups into the accent treatment below.
   -------------------------------------------------------------------------- */
.blog-sec { padding: 72px 0; }
@media (max-width: 640px) {
  .blog-sec { padding: 48px 0; }
}

/* Links inside prose get the site's accent + underline treatment. */
.entry-content a:not(.btn),
.comment-content a:not(.btn),
.state-block p a:not(.btn),
.sidebar .textwidget a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:not(.btn):hover,
.comment-content a:not(.btn):hover,
.state-block p a:not(.btn):hover,
.sidebar .textwidget a:not(.btn):hover {
  color: var(--accent-deep);
}
.entry-content a.wp-block-button__link,
.entry-content .wp-block-button a {
  text-decoration: none;
}
.entry-content figure a { text-decoration: none; }

/* Keep the sticky header clear of the WP admin bar. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header additions — "/ Blog" wordmark beside the Steelray logo
   -------------------------------------------------------------------------- */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-brand-blog {
  font-size: 15px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-brand-blog::before {
  content: "/";
  margin-right: 8px;
  color: var(--rule);
}
.site-brand-blog:hover { color: var(--ink); }

/* Third-level menus fly out to the side of their parent item. */
.sub li { position: relative; }
.sub .sub-nested {
  top: -9px;
  left: calc(100% + 4px);
}

/* Search affordance in the header tail */
.site-search-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.site-search-btn:hover { background: var(--ink); color: var(--bg); }

/* --------------------------------------------------------------------------
   Index / archive hero
   -------------------------------------------------------------------------- */
.hero .hero-meta {
  margin-top: 28px;
  font-size: 14px;
  color: var(--mute);
}

/* --------------------------------------------------------------------------
   Post list — editorial rows, not cards
   -------------------------------------------------------------------------- */
.post-list {
  border-top: 1px solid var(--rule);
}
.post-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.post-item-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.post-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-terms a {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.post-terms a:hover { color: var(--accent-deep); }

.post-item-main { min-width: 0; }
.post-item h2 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 34ch;
}
.post-item h2 a { color: var(--ink); }
.post-item h2 a:hover { color: var(--accent); }
.post-excerpt {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 68ch;
}
.post-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.post-more:hover { color: var(--accent-deep); }
.post-more svg { width: 14px; height: 14px; transition: transform .15s ease; }
.post-more:hover svg { transform: translateX(3px); }

.post-thumb {
  display: block;
  margin-bottom: 18px;
  max-width: 420px;
}
.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
  display: block;
}

.post-item.is-sticky .post-date::after {
  content: " · Featured";
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  margin-top: 48px;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pagination a.page-numbers:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-numbers.dots {
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   Single post / page
   -------------------------------------------------------------------------- */
.entry-header {
  padding: 72px 0 0;
}
.entry-header h1 {
  margin: 20px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.entry-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.entry-meta .sep { color: var(--mute); opacity: .45; }
.entry-meta a { color: var(--mute); }
.entry-meta a:hover { color: var(--ink); }

.entry-featured {
  margin: 48px 0 0;
}
.entry-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.entry-content {
  max-width: var(--read);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 20px; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.entry-content h1 { font-size: 30px; margin: 48px 0 16px; }
.entry-content h2 { font-size: 25px; margin: 44px 0 14px; }
.entry-content h3 { font-size: 20px; margin: 36px 0 12px; }
.entry-content h4 { font-size: 17px; margin: 32px 0 10px; }
.entry-content h5,
.entry-content h6 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 32px 0 10px;
}
.entry-content ul,
.entry-content ol { padding-left: 24px; margin: 0 0 20px; }
.entry-content li { margin-bottom: 10px; }
.entry-content li > ul,
.entry-content li > ol { margin: 10px 0 0; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}
.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
}
.entry-content figure {
  margin: 32px 0;
}
.entry-content figure img {
  border-radius: 6px;
  border: 1px solid var(--rule);
  display: block;
}
.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}
.entry-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.entry-content code,
.entry-content kbd,
.entry-content samp {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 6px;
}
.entry-content pre {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.entry-content pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 24px;
  border: 1px solid var(--rule);
}
.entry-content th {
  background: var(--bg-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.entry-content tr:last-child td { border-bottom: 0; }

/* Gutenberg blocks that need a nudge */
.entry-content .wp-block-image { margin: 32px 0; }
.entry-content .wp-block-quote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.entry-content .wp-block-pullquote {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 0;
  margin: 48px 0;
  text-align: left;
}
.entry-content .wp-block-pullquote blockquote {
  border: 0;
  padding: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}
.entry-content .wp-block-button__link {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--accent-deep); color: #fff; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.entry-content .wp-block-embed,
.entry-content .wp-block-video { margin: 32px 0; }
.entry-content .wp-block-embed__wrapper iframe { max-width: 100%; }
.entry-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.entry-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.entry-content .alignleft {
  float: left;
  margin: 6px 28px 20px 0;
  max-width: 50%;
}
.entry-content .alignright {
  float: right;
  margin: 6px 0 20px 28px;
  max-width: 50%;
}
.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.entry-content .alignwide {
  max-width: min(1040px, 92vw);
  margin-left: calc((var(--read) - min(1040px, 92vw)) / 2);
}
.entry-content .alignfull {
  max-width: min(1176px, 96vw);
  margin-left: calc((var(--read) - min(1176px, 96vw)) / 2);
}
.entry-content::after { content: ""; display: table; clear: both; }

/* Tag list under the article */
.entry-tags {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--read);
}
.entry-tags .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: 4px;
}
.entry-tags a {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.entry-tags a:hover { border-color: var(--ink); color: var(--ink); }

/* Page-link pagination inside a multi-page post */
.page-links {
  margin-top: 32px;
  font-size: 14px;
  color: var(--mute);
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-links a { color: var(--accent); }

/* Previous / next post */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.post-nav a {
  background: var(--bg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.post-nav a:hover { background: var(--bg-2); }
.post-nav .dir {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.post-nav .title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.post-nav .next { text-align: right; align-items: flex-end; }

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comments-area { max-width: var(--read); }
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.comment-list ol.children {
  list-style: none;
  margin: 0;
  padding-left: 32px;
}
.comment-list article.comment-body {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-meta img.avatar {
  border-radius: 999px;
  width: 36px; height: 36px;
}
.comment-author .fn {
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.comment-metadata {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.comment-metadata a { color: var(--mute); }
.comment-content {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.comment-content p { margin: 0 0 14px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--accent);
}
.reply { margin-top: 12px; }
.reply a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.comment-respond { margin-top: 48px; }
.comment-reply-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.comment-form .comment-notes,
.comment-form .logged-in-as {
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 20px;
}
.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease;
}
.comment-form textarea { min-height: 160px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form p { margin: 0 0 18px; }
.comment-form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.comment-form .form-submit input[type="submit"]:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.comment-form .comment-form-cookies-consent label {
  font-weight: 400;
  margin: 0;
}
.no-comments {
  font-size: 15px;
  color: var(--mute);
}
.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 20px 0;
}

/* --------------------------------------------------------------------------
   Search form
   -------------------------------------------------------------------------- */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.search-form .search-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease;
}
.search-form .search-field:focus { outline: none; border-color: var(--accent); }
.search-form .search-submit {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.search-form .search-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* The header search panel, revealed by the magnifier */
.header-search {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.header-search.is-open { display: block; }
.header-search .wrap { padding-top: 16px; padding-bottom: 16px; }
.header-search .search-form { max-width: 520px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Layout with optional sidebar
   -------------------------------------------------------------------------- */
.content-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}
.content-main { min-width: 0; }
.sidebar .widget + .widget {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.sidebar .widget-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.sidebar li { padding: 6px 0; color: var(--ink-2); }
.sidebar li a { color: var(--ink-2); }
.sidebar li a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   404 / empty states
   -------------------------------------------------------------------------- */
.state-block {
  max-width: 62ch;
}
.state-block p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}
.state-block .search-form { margin-top: 28px; }
.state-block .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Footer additions
   -------------------------------------------------------------------------- */
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer-links a { color: var(--mute); }
.site-footer-links a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .post-item { grid-template-columns: 1fr; gap: 14px; }
  .post-item-aside { flex-direction: row; align-items: center; gap: 14px; padding-top: 0; }
  .content-sidebar { grid-template-columns: 1fr; gap: 48px; }
  .entry-content .alignwide,
  .entry-content .alignfull { max-width: 100%; margin-left: 0; }
  .site-brand-blog { display: none; }
}

@media (max-width: 640px) {
  .entry-header { padding-top: 48px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; align-items: flex-start; }
  .entry-content .alignleft,
  .entry-content .alignright { float: none; margin: 24px 0; max-width: 100%; }
  .comment-list ol.children { padding-left: 16px; }
}
