/*
Theme Name: HPS Lightframe
Theme URI: https://hiddenpointstudio.com/
Author: Hidden Point Studio
Author URI: https://hiddenpointstudio.com/
Description: Lightframe-owned WordPress design runtime for Hidden Point Studio. Owns theme-pack registry, manifests, layouts, assignments, and package handling without BeaconWP bridge dependency.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hps-lightframe
Tags: custom-logo, custom-menu, featured-images, blog, one-column, accessibility-ready
*/

:root {
  --hps-bg: #07111f;
  --hps-bg-soft: #0b1728;
  --hps-surface: #101d30;
  --hps-surface-2: #142238;
  --hps-text: #eef5ff;
  --hps-muted: #b7c5d8;
  --hps-link: #7cc7ff;
  --hps-link-hover: #a8dcff;
  --hps-border: rgba(184, 205, 230, 0.2);
  --hps-focus: #7cffea;
  --hps-max: 1160px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(47, 107, 255, 0.12), transparent 34rem), var(--hps-bg);
  color: var(--hps-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hps-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--hps-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hps-focus);
  outline-offset: 3px;
}

p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--hps-border);
  margin: 2rem 0;
}

pre, code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--hps-border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
}

blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--hps-link);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hps-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}

th, td {
  padding: 0.65rem;
  border: 1px solid var(--hps-border);
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hps-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hps-text);
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

button,
input[type="button"],
input[type="submit"],
.wp-block-button__link {
  display: inline-block;
  width: auto;
  min-height: 2.5rem;
  padding: 0.68rem 1rem;
  border: 1px solid rgba(124, 199, 255, 0.45);
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.22);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: rgba(47, 107, 255, 0.35);
  color: #ffffff;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #ffffff;
  color: #07111f;
  border-radius: 0.5rem;
}

.site-header {
  border-bottom: 1px solid var(--hps-border);
  background: rgba(7, 17, 31, 0.9);
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(calc(100% - 2rem), var(--hps-max));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 1rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.custom-logo {
  max-height: 52px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-description {
  margin: 0.12rem 0 0;
  color: var(--hps-muted);
  font-size: 0.92rem;
}

.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  padding: 0.45rem 0.2rem;
  color: var(--hps-muted);
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: #ffffff;
}

.site-main {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.hps-entry {
  margin-bottom: 2.5rem;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title a {
  color: #ffffff;
  text-decoration: none;
}

.entry-meta,
.entry-footer,
.archive-description,
.no-results .page-content {
  color: var(--hps-muted);
}

.entry-content,
.page-content {
  color: var(--hps-text);
}

.entry-content > *:last-child,
.page-content > *:last-child {
  margin-bottom: 0;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
  color: var(--hps-muted);
}

.wp-caption-text {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.alignleft { float: left; margin: 0.35rem 1rem 1rem 0; }
.alignright { float: right; margin: 0.35rem 0 1rem 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.bypostauthor { outline: 1px solid transparent; }

.post-navigation,
.posts-navigation,
.pagination {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--hps-border);
  background: rgba(7, 17, 31, 0.86);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--hps-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--hps-link);
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-navigation ul {
    justify-content: flex-start;
  }

  .site-main,
  .site-header__inner,
  .site-footer__inner {
    width: min(calc(100% - 1.25rem), var(--hps-max));
  }
}
