/*
Theme Name: piracysim
Author: Camden Vale Studio
Description: A classic PHP WordPress publishing theme inspired by modern SaaS landing-page structure, with dynamic category navigation, fixed homepage banner media, editable colors, editable intro text, and dense homepage modules.
Version: 2.1.9
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: psm-theme
*/

:root {
  --psm-bg: #F8F1E6;
  --psm-panel: #FFF9EF;
  --psm-text: #131313;
  --psm-muted: #5D524B;
  --psm-accent: #570D17;
  --psm-accent-two: #BA9765;
  --psm-cream: #F8F1E6;
  --psm-gold-soft: #EEDAA4;
  --psm-border: rgba(87, 13, 23, 0.14);
  --psm-border-strong: rgba(87, 13, 23, 0.24);
  --psm-card: rgba(255, 255, 255, 0.76);
  --psm-card-strong: #FFFFFF;
  --psm-shadow: 0 26px 70px rgba(87, 13, 23, 0.12);
  --psm-container: 1180px;
  --psm-single: 980px;
  --psm-radius: 28px;
  --psm-radius-sm: 16px;
  --psm-font-main: "Times New Roman", Times, serif;
  --psm-font-display: "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--psm-text);
  background:
    radial-gradient(circle at 16% 0%, rgba(105, 210, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(152, 255, 95, 0.14), transparent 30%),
    var(--psm-bg);
  font-family: var(--psm-font-main);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--psm-accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--psm-accent-two);
  outline-offset: 3px;
}

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

.psm-skip-link:focus {
  z-index: 1000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  color: #071016;
  background: var(--psm-accent);
  border-radius: 999px;
}

.psm-container {
  width: min(var(--psm-container), calc(100% - 32px));
  margin: 0 auto;
}

.psm-main {
  min-height: 70vh;
}

.psm-header {
  position: sticky;
  z-index: 80;
  top: 12px;
  padding: 12px 16px 0;
}

.psm-view-admin .psm-header {
  top: 46px;
}

.psm-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--psm-container), 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 10px;
  background: rgba(7, 11, 22, 0.76);
  border: 1px solid var(--psm-border);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.psm-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--psm-text);
  text-decoration: none;
}

.psm-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #071016;
  background: var(--psm-accent);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 950;
}

.psm-brand-logo {
  width: auto;
  max-width: 154px;
  max-height: 48px;
  object-fit: contain;
}

.psm-brand-text {
  display: grid;
  min-width: 0;
}

.psm-brand-name {
  overflow: hidden;
  color: var(--psm-text);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psm-brand-description {
  display: none;
  overflow: hidden;
  max-width: 190px;
  color: var(--psm-muted);
  font-size: 0.76rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psm-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #071016;
  background: var(--psm-accent);
  border: 0;
  border-radius: 999px;
}

.psm-menu-toggle-bars,
.psm-menu-toggle-bars::before,
.psm-menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.psm-menu-toggle-bars {
  position: relative;
}

.psm-menu-toggle-bars::before,
.psm-menu-toggle-bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.psm-menu-toggle-bars::before {
  top: -6px;
}

.psm-menu-toggle-bars::after {
  top: 6px;
}

.psm-header.psm-menu-open .psm-menu-toggle-bars {
  transform: rotate(45deg);
}

.psm-header.psm-menu-open .psm-menu-toggle-bars::before {
  transform: translateY(6px) rotate(90deg);
}

.psm-header.psm-menu-open .psm-menu-toggle-bars::after {
  opacity: 0;
}

.psm-navigation {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(7, 11, 22, 0.98);
  border: 0 solid transparent;
  border-radius: 28px;
  box-shadow: var(--psm-shadow);
  transition: max-height 220ms ease, border-color 220ms ease;
}

.psm-header.psm-menu-open .psm-navigation {
  max-height: 72vh;
  overflow-y: auto;
  border: 1px solid var(--psm-border);
}

.psm-menu-list,
.psm-footer-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.psm-menu-list {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.psm-menu-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  color: var(--psm-muted);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.psm-menu-link:hover,
.psm-menu-link:focus-visible,
.psm-menu-item-current > .psm-menu-link {
  color: #071016;
  background: var(--psm-accent);
}

.psm-navigation .psm-menu-item:nth-child(n+6) {
  display: none;
}

.psm-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--psm-border);
}

.psm-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.25), rgba(11, 16, 32, 0.25)),
    url("assets/images/psm-default-banner.jpg") center / cover no-repeat;
  background-color: #070b16;
}

.psm-hero-image,
.psm-hero-image-empty {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.psm-hero-image-empty,
.psm-card-image-empty {
  display: block;
  background:
    radial-gradient(circle at 24% 24%, rgba(152, 255, 95, 0.32), transparent 24%),
    radial-gradient(circle at 72% 28%, rgba(105, 210, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #111827, #070b16);
}

.psm-hero-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 11, 22, 0.9) 0%, rgba(7, 11, 22, 0.72) 34%, rgba(7, 11, 22, 0.24) 70%, rgba(7, 11, 22, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.08) 0%, rgba(7, 11, 22, 0.78) 100%);
}

.psm-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 760px;
  align-items: end;
  gap: 28px;
  padding-top: 128px;
  padding-bottom: 48px;
}

.psm-hero-copy {
  max-width: 760px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.psm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--psm-accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.psm-kicker::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.psm-hero-title,
.psm-section-title,
.psm-archive-title,
.psm-single-title {
  margin: 0;
  color: var(--psm-text);
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.psm-hero-title {
  max-width: 12ch;
  font-size: clamp(3.3rem, 12vw, 7.4rem);
}

.psm-hero-text,
.psm-section-text {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--psm-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.psm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.psm-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
}

.psm-button-primary {
  color: #071016;
  background: var(--psm-accent);
  box-shadow: 0 16px 38px rgba(152, 255, 95, 0.2);
}

.psm-button-secondary {
  color: var(--psm-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--psm-border);
}

.psm-button:hover,
.psm-button:focus-visible {
  transform: translateY(-1px);
}

.psm-hero-feature {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  padding: 18px;
  color: var(--psm-text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--psm-border);
  border-radius: 22px;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.psm-feature-label {
  color: var(--psm-accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.psm-hero-feature strong {
  font-size: 1.06rem;
  line-height: 1.25;
}

.psm-hero-feature span:last-child {
  color: var(--psm-muted);
  font-size: 0.88rem;
}

.psm-icon-row,
.psm-metrics,
.psm-system,
.psm-showcase,
.psm-latest,
.psm-flex-section,
.psm-archive,
.psm-single-main {
  padding: 58px 0;
}

.psm-icon-grid {
  display: grid;
  gap: 12px;
}

.psm-mini-icon {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 20px;
  color: var(--psm-text);
  background: var(--psm-card);
  border: 1px solid var(--psm-border);
  border-radius: 24px;
  font-weight: 850;
  text-align: center;
}

.psm-mini-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--psm-accent), var(--psm-accent-two));
  border-radius: 18px;
}

.psm-mini-symbol::before {
  width: 22px;
  height: 22px;
  background: #071016;
  content: "";
}

.psm-mini-symbol-one::before {
  border-radius: 50%;
}

.psm-mini-symbol-two::before {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.psm-mini-symbol-three::before {
  border-radius: 5px;
  transform: rotate(45deg);
}

.psm-mini-symbol-four::before {
  width: 26px;
  height: 14px;
  border-radius: 999px;
}

.psm-metrics-grid {
  display: grid;
  overflow: visible;
  background: var(--psm-card);
  border: 1px solid var(--psm-border);
  border-radius: var(--psm-radius);
}

.psm-metric {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 24px;
  border-bottom: 1px solid var(--psm-border);
}

.psm-metric:last-child {
  border-bottom: 0;
}

.psm-metric strong {
  color: var(--psm-accent);
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
}

.psm-metric span {
  display: block;
  color: var(--psm-muted);
  line-height: 1.45;
}

.psm-system-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.psm-section-heading,
.psm-archive-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.psm-section-title,
.psm-archive-title {
  font-size: clamp(2.3rem, 7vw, 5rem);
}

.psm-system-cards {
  display: grid;
  gap: 14px;
}

.psm-system-card,
.psm-card,
.psm-showcase-card,
.psm-widget,
.psm-empty-state,
.psm-single-nav-link {
  background: var(--psm-card);
  border: 1px solid var(--psm-border);
  border-radius: var(--psm-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.psm-system-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.psm-system-card span {
  color: var(--psm-accent-two);
  font-size: 0.82rem;
  font-weight: 900;
}

.psm-system-card h3,
.psm-showcase-card h3,
.psm-card-title,
.psm-widget-title,
.psm-empty-state h2 {
  margin: 0;
  color: var(--psm-text);
  font-size: 1.42rem;
  line-height: 1.15;
}

.psm-system-card p,
.psm-showcase-body time,
.psm-card-excerpt,
.psm-empty-state p {
  margin: 0;
  color: var(--psm-muted);
}

.psm-showcase-grid,
.psm-card-grid,
.psm-flex-grid {
  display: grid;
  gap: 18px;
}

.psm-showcase-card,
.psm-card {
  overflow: hidden;
}

.psm-showcase-media,
.psm-card-media {
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 16 / 11;
}

.psm-showcase-image,
.psm-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.psm-showcase-card:hover .psm-showcase-image,
.psm-card:hover .psm-card-image {
  transform: scale(1.035);
}

.psm-showcase-body,
.psm-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.psm-showcase-card h3 a,
.psm-card-title a {
  text-decoration: none;
}

.psm-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--psm-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.psm-meta-dot {
  width: 5px;
  height: 5px;
  background: var(--psm-accent);
  border-radius: 50%;
}

.psm-post-category {
  color: var(--psm-accent);
  text-decoration: none;
}

.psm-empty-state,
.psm-widget {
  padding: 24px;
}

.psm-posts-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.psm-posts-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  color: #071016;
  background: var(--psm-accent);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.psm-single-shell {
  width: min(80vw, var(--psm-single));
  margin: 0 auto;
}

.psm-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--psm-accent);
  font-weight: 850;
  text-decoration: none;
}

.psm-back-link::before {
  margin-right: 8px;
  content: "<-";
}

.psm-single-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--psm-border);
}

.psm-single-title {
  max-width: 900px;
  margin-top: 14px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
}

.psm-single-excerpt {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--psm-muted);
  font-size: 1.08rem;
}

.psm-single-content {
  padding-top: 34px;
  color: #131313;
  font-size: 1.05rem;
}

.psm-single-content > *:first-child {
  margin-top: 0;
}

.psm-single-content h2,
.psm-single-content h3,
.psm-single-content h4 {
  color: var(--psm-text);
  line-height: 1.15;
}

.psm-single-content a {
  color: var(--psm-accent);
  font-weight: 800;
}

.psm-single-content img {
  border-radius: var(--psm-radius-sm);
}

.psm-single-content blockquote {
  margin: 28px 0;
  padding: 22px;
  color: var(--psm-text);
  background: var(--psm-card);
  border-left: 4px solid var(--psm-accent);
  border-radius: var(--psm-radius-sm);
}

.psm-single-footer {
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--psm-border);
}

.psm-single-footer-label,
.psm-single-nav-link span {
  color: var(--psm-accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.psm-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psm-tag-list a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  color: var(--psm-text);
  background: var(--psm-card-strong);
  border: 1px solid var(--psm-border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.psm-single-nav {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.psm-single-nav-link {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-decoration: none;
}

.psm-single-nav-link-next {
  text-align: left;
}

.psm-footer {
  padding-top: 64px;
  color: var(--psm-text);
  background: #050814;
  border-top: 1px solid var(--psm-border);
}

.psm-footer-grid {
  display: grid;
  gap: 28px;
  padding-bottom: 36px;
}

.psm-footer-brand {
  margin: 0 0 10px;
  color: var(--psm-text);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.psm-footer p,
.psm-footer a {
  color: var(--psm-muted);
}

.psm-footer h2 {
  margin: 0 0 12px;
  color: var(--psm-text);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.psm-footer .psm-menu-list,
.psm-footer-menu {
  display: grid;
  gap: 8px;
  padding: 0;
}

.psm-footer .psm-menu-link,
.psm-footer-menu .psm-menu-link {
  min-height: auto;
  padding: 0;
  color: var(--psm-muted);
  background: transparent;
}

.psm-footer-bottom {
  padding: 22px 0 28px;
  border-top: 1px solid var(--psm-border);
  color: var(--psm-muted);
  font-size: 0.9rem;
}

.psm-footer-bottom p {
  margin: 0;
}

@media (min-width: 560px) {
  .psm-brand-description {
    display: block;
  }

  .psm-icon-grid,
  .psm-metrics-grid,
  .psm-showcase-grid,
  .psm-card-grid,
  .psm-flex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psm-single-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psm-single-nav-link-next {
    text-align: right;
  }
}

@media (min-width: 860px) {
  .psm-view-admin .psm-header {
    top: 44px;
  }

  .psm-menu-toggle {
    display: none;
  }

  .psm-navigation {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .psm-navigation .psm-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    max-width: 760px;
    padding: 0;
  }

  .psm-navigation .psm-menu-link {
    min-height: 42px;
    padding: 9px 13px;
  }

  .psm-hero-content {
    grid-template-columns: minmax(0, 760px);
    align-items: end;
  }

  .psm-hero-copy {
    padding: 0;
  }

  .psm-system-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .psm-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .psm-metrics-grid,
  .psm-showcase-grid,
  .psm-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .psm-card-grid .psm-card:first-child {
    grid-column: span 2;
  }

  .psm-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  }

  .psm-footer-flex,
  .psm-footer-nav {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .psm-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .psm-hero {
    min-height: 820px;
  }

  .psm-hero-content {
    min-height: 820px;
    padding-top: 150px;
    padding-bottom: 62px;
  }
}

/* Imperial visual refresh inspired by the reference site's light luxury system. */
body {
  color: var(--psm-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(248, 241, 230, 0.92)),
    var(--psm-bg);
}

.psm-main {
  background: var(--psm-bg);
}

.psm-header {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  padding: 14px 16px 0;
}

.psm-view-admin .psm-header {
  top: 32px;
}

.psm-header-inner {
  min-height: 72px;
  padding: 10px 14px;
  background: rgba(248, 241, 230, 0.86);
  border: 1px solid rgba(87, 13, 23, 0.12);
  border-radius: 0;
  box-shadow: 0 18px 46px rgba(87, 13, 23, 0.1);
  backdrop-filter: blur(18px);
}

.psm-brand {
  color: var(--psm-accent);
}

.psm-brand-mark {
  color: var(--psm-cream);
  background: var(--psm-accent);
  border: 2px solid var(--psm-accent-two);
  box-shadow: 0 10px 26px rgba(87, 13, 23, 0.18);
}

.psm-brand-name {
  color: var(--psm-accent);
  font-family: var(--psm-font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.psm-brand-description {
  color: rgba(87, 13, 23, 0.64);
}

.psm-menu-toggle {
  color: var(--psm-cream);
  background: var(--psm-accent);
  border: 1px solid rgba(87, 13, 23, 0.16);
  cursor: pointer;
}

.psm-navigation {
  z-index: 120;
  background: rgba(248, 241, 230, 0.98);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(87, 13, 23, 0.16);
}

.psm-header.psm-menu-open .psm-navigation {
  border-color: rgba(87, 13, 23, 0.18);
}

.psm-menu-link {
  color: var(--psm-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.psm-menu-link:hover,
.psm-menu-link:focus-visible,
.psm-menu-item-current > .psm-menu-link {
  color: var(--psm-cream);
  background: var(--psm-accent);
}

.psm-hero {
  min-height: 100svh;
  background: var(--psm-bg);
  border-bottom: 0;
}

.psm-hero-media {
  background:
    linear-gradient(90deg, rgba(248, 241, 230, 0.92) 0%, rgba(248, 241, 230, 0.74) 34%, rgba(248, 241, 230, 0.2) 66%, rgba(248, 241, 230, 0.04) 100%),
    url("assets/images/psm-default-banner.jpg") center / cover no-repeat;
  background-color: var(--psm-bg);
}

.psm-hero-scrim {
  background:
    linear-gradient(90deg, rgba(248, 241, 230, 0.94) 0%, rgba(248, 241, 230, 0.72) 34%, rgba(248, 241, 230, 0.18) 72%, rgba(248, 241, 230, 0.02) 100%),
    linear-gradient(180deg, rgba(87, 13, 23, 0.04) 0%, rgba(87, 13, 23, 0.16) 100%);
}

.psm-hero-content {
  min-height: 100svh;
  align-items: center;
  padding-top: 138px;
  padding-bottom: 76px;
}

.psm-hero-copy {
  max-width: 640px;
  color: var(--psm-accent);
  text-shadow: none;
}

.psm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--psm-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.psm-kicker::before {
  width: 32px;
  height: 2px;
  background: var(--psm-accent-two);
  content: "";
}

.psm-hero-title,
.psm-section-title,
.psm-archive-title,
.psm-single-title {
  color: var(--psm-accent);
  font-family: var(--psm-font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.psm-hero-title {
  max-width: 10.5ch;
  font-size: clamp(3.8rem, 10vw, 8.2rem);
  line-height: 0.9;
}

.psm-hero-text,
.psm-section-text {
  color: var(--psm-muted);
  font-size: 1.04rem;
  line-height: 1.86;
}

.psm-button {
  border-radius: 0;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(87, 13, 23, 0.14);
}

.psm-button-primary {
  color: var(--psm-cream);
  background: var(--psm-accent);
}

.psm-button-secondary {
  color: var(--psm-accent);
  background: rgba(255, 249, 239, 0.78);
  border-color: rgba(87, 13, 23, 0.2);
}

.psm-hero-feature {
  max-width: 380px;
  color: var(--psm-accent);
  background: rgba(255, 249, 239, 0.86);
  border: 1px solid rgba(87, 13, 23, 0.16);
  border-left: 4px solid var(--psm-accent-two);
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(87, 13, 23, 0.12);
  backdrop-filter: blur(14px);
}

.psm-hero-feature span:last-child,
.psm-feature-label {
  color: rgba(87, 13, 23, 0.68);
}

.psm-hero-image-empty,
.psm-card-image-empty {
  background:
    linear-gradient(135deg, rgba(248, 241, 230, 0.82), rgba(238, 218, 164, 0.54)),
    var(--psm-panel);
}

.psm-icon-row,
.psm-metrics,
.psm-showcase,
.psm-latest,
.psm-flex-section,
.psm-archive,
.psm-single-main {
  background: var(--psm-bg);
}

.psm-archive,
.psm-single-main {
  padding-top: 150px;
}

.psm-icon-row {
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(87, 13, 23, 0.1);
}

.psm-mini-icon,
.psm-metric,
.psm-showcase-card,
.psm-card,
.psm-widget,
.psm-empty-state,
.psm-single-nav-link {
  background: rgba(255, 249, 239, 0.9);
  border: 1px solid rgba(87, 13, 23, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(87, 13, 23, 0.08);
}

.psm-mini-symbol {
  background: linear-gradient(135deg, var(--psm-accent), var(--psm-accent-two));
}

.psm-metrics {
  padding-top: 42px;
  padding-bottom: 42px;
}

.psm-metrics-grid {
  overflow: visible;
  background: rgba(255, 249, 239, 0.82);
  border: 1px solid rgba(87, 13, 23, 0.12);
  border-radius: 0;
}

.psm-metric {
  border: 0;
  border-right: 1px solid rgba(87, 13, 23, 0.12);
  box-shadow: none;
}

.psm-metric strong {
  color: var(--psm-accent);
  font-family: var(--psm-font-display);
}

.psm-metric span,
.psm-card-excerpt,
.psm-empty-state p,
.psm-system-card p,
.psm-showcase-body time {
  color: var(--psm-muted);
}

.psm-system {
  color: var(--psm-cream);
  background:
    linear-gradient(135deg, rgba(87, 13, 23, 0.98), rgba(78, 2, 8, 0.98));
}

.psm-system .psm-kicker,
.psm-system .psm-section-title {
  color: var(--psm-cream);
}

.psm-system .psm-section-text {
  color: rgba(248, 241, 230, 0.78);
}

.psm-system-card {
  background: rgba(248, 241, 230, 0.08);
  border: 1px solid rgba(248, 241, 230, 0.18);
  border-radius: 8px;
}

.psm-system-card span {
  color: var(--psm-accent-two);
}

.psm-system-card h3 {
  color: var(--psm-cream);
}

.psm-section-heading {
  max-width: 760px;
}

.psm-showcase-card,
.psm-card {
  overflow: hidden;
}

.psm-showcase-media,
.psm-card-media {
  background: #eadfce;
}

.psm-showcase-card h3,
.psm-card-title {
  color: var(--psm-accent);
  font-family: var(--psm-font-display);
  font-weight: 700;
}

.psm-card-title a,
.psm-showcase-card h3 a {
  color: var(--psm-accent);
}

.psm-post-meta {
  color: rgba(87, 13, 23, 0.64);
}

.psm-post-meta a {
  color: var(--psm-accent);
  background: rgba(186, 151, 101, 0.16);
  border: 1px solid rgba(186, 151, 101, 0.24);
}

.psm-single-shell {
  background: rgba(255, 249, 239, 0.92);
  border: 1px solid rgba(87, 13, 23, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(87, 13, 23, 0.08);
}

.psm-entry-content {
  color: #2b211d;
}

.psm-footer {
  color: var(--psm-cream);
  background: #570D17;
  border-top: 0;
}

.psm-footer a,
.psm-footer h2,
.psm-footer .psm-brand-name {
  color: var(--psm-cream);
}

.psm-footer p,
.psm-footer-bottom,
.psm-footer .psm-menu-link {
  color: rgba(248, 241, 230, 0.74);
}

.psm-footer .psm-menu-link:hover,
.psm-footer .psm-menu-link:focus-visible {
  color: #570D17;
  background: var(--psm-gold-soft);
}

@media (min-width: 860px) {
  .psm-header-inner {
    width: min(1440px, calc(100% - 48px));
  }

  .psm-navigation .psm-menu-list {
    gap: 8px;
    max-width: 820px;
  }

  .psm-navigation .psm-menu-link {
    min-height: 40px;
    padding: 8px 12px;
  }

  .psm-hero-content {
    grid-template-columns: minmax(0, 660px);
    padding-top: 150px;
  }
}

@media (max-width: 859px) {
  .psm-view-admin .psm-header {
    top: 46px;
  }

  .psm-header-inner {
    width: calc(100% - 12px);
    min-height: 64px;
  }

  .psm-navigation .psm-menu-list {
    padding: 14px;
  }

  .psm-hero {
    min-height: 88svh;
  }

  .psm-hero-content {
    min-height: 88svh;
    padding-top: 116px;
    padding-bottom: 42px;
  }

  .psm-hero-title {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .psm-hero-feature {
    display: none;
  }
}

/* Gentle typography pass: lighter weights and calmer labels across the theme. */
body,
button,
input,
select,
textarea {
  font-family: var(--psm-font-main);
  font-weight: 400;
}

.psm-brand-name,
.psm-footer-brand,
.psm-menu-link,
.psm-button,
.psm-kicker,
.psm-feature-label,
.psm-mini-icon,
.psm-metric span,
.psm-post-meta,
.psm-post-meta a,
.psm-single-meta,
.psm-tag-list a,
.psm-single-nav-link,
.psm-footer h2,
.psm-footer .psm-menu-link,
.psm-footer-menu .psm-menu-link {
  font-family: var(--psm-font-main);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.psm-brand-mark {
  font-weight: 600;
}

.psm-hero-title,
.psm-section-title,
.psm-archive-title,
.psm-single-title,
.psm-card-title,
.psm-showcase-card h3,
.psm-system-card h3,
.psm-widget-title,
.psm-empty-state h2 {
  font-family: var(--psm-font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.psm-hero-title {
  line-height: 0.98;
}

.psm-section-title,
.psm-archive-title,
.psm-single-title {
  line-height: 1.05;
}

.psm-hero-text,
.psm-section-text,
.psm-card-excerpt,
.psm-system-card p,
.psm-empty-state p,
.psm-footer p,
.psm-footer a,
.psm-entry-content {
  font-weight: 400;
}

.psm-metric strong {
  font-family: var(--psm-font-main);
  font-weight: 500;
}

.psm-footer h2 {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.psm-footer .psm-menu-list,
.psm-footer-menu {
  gap: 10px;
}

.psm-footer .psm-menu-link,
.psm-footer-menu .psm-menu-link {
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Light step-flow section inspired by the supplied reference. */
.psm-system {
  position: relative;
  overflow: hidden;
  color: #25304e;
  background:
    radial-gradient(circle at 10% 12%, rgba(34, 191, 220, 0.2), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(98, 104, 209, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 52%, #e7f0fb 100%);
}

.psm-system::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.82));
  pointer-events: none;
  content: "";
}

.psm-system > .psm-container {
  position: relative;
  z-index: 1;
}

.psm-system-heading {
  max-width: 980px;
  margin: 0 auto 44px;
  text-align: center;
}

.psm-system .psm-kicker {
  justify-content: center;
  color: #6268d1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.psm-system .psm-kicker::before {
  display: none;
}

.psm-system .psm-section-title {
  max-width: none;
  margin-top: 8px;
  color: #25304e;
  font-family: var(--psm-font-display);
  font-size: clamp(3.3rem, 8vw, 5.7rem);
  font-weight: 800;
  line-height: 0.98;
}

.psm-system .psm-section-title span {
  color: transparent;
  background: linear-gradient(90deg, #24c2dc 0%, #676bd5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.psm-system .psm-section-text {
  max-width: 760px;
  margin: 18px auto 0;
  color: #617096;
  font-size: 1.08rem;
  line-height: 1.65;
}

.psm-system-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.psm-system-card {
  display: grid;
  min-height: 280px;
  align-content: start;
  gap: 16px;
  padding: 34px 28px;
  color: #25304e;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(97, 112, 150, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(37, 48, 78, 0.08);
  backdrop-filter: blur(18px);
}

.psm-step-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  color: #6268d1;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(98, 104, 209, 0.18);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
}

.psm-step-icon {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin-top: 18px;
  color: #22bfdc;
}

.psm-step-icon::before,
.psm-step-icon::after {
  position: absolute;
  content: "";
}

.psm-step-icon-publish::before {
  inset: 8px;
  border: 4px solid currentColor;
  border-radius: 8px;
  transform: rotate(30deg) skew(-8deg, -8deg);
}

.psm-step-icon-publish::after {
  left: 21px;
  top: 5px;
  width: 4px;
  height: 34px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(30deg);
}

.psm-step-icon-organize::before {
  left: 6px;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 4px solid currentColor;
  border-radius: 3px;
}

.psm-step-icon-organize::after {
  right: 5px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  border-radius: 0 0 12px 0;
}

.psm-step-icon-showcase::before {
  left: 6px;
  top: 12px;
  width: 34px;
  height: 26px;
  border: 4px solid currentColor;
  border-radius: 5px;
}

.psm-step-icon-showcase::after {
  left: 13px;
  top: 5px;
  width: 20px;
  height: 12px;
  border: 4px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.psm-step-icon-grow::before {
  left: 8px;
  bottom: 8px;
  width: 34px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}

.psm-step-icon-grow::after {
  left: 10px;
  bottom: 12px;
  width: 5px;
  height: 24px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 14px -10px 0 currentColor, 28px -2px 0 currentColor;
}

.psm-system-card h3 {
  color: #25304e;
  font-family: var(--psm-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.psm-system-card p {
  max-width: 440px;
  color: #617096;
  font-size: 1.03rem;
  line-height: 1.65;
}

@media (min-width: 760px) {
  .psm-system-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .psm-system .psm-section-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .psm-system-card {
    min-height: 248px;
    padding: 28px 22px;
  }
}

/* Sequential reveal animations, similar to luxury landing pages. */
.psm-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--psm-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.psm-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.psm-hero-copy.psm-reveal {
  transform: translateY(24px);
}

.psm-hero-feature.psm-reveal {
  transform: translateY(28px) scale(0.98);
}

.psm-hero-feature.psm-reveal-visible {
  transform: translateY(0) scale(1);
}

.psm-showcase-card.psm-reveal,
.psm-card.psm-reveal,
.psm-system-card.psm-reveal,
.psm-mini-icon.psm-reveal,
.psm-metric.psm-reveal {
  transform: translateY(36px);
}

@media (prefers-reduced-motion: reduce) {
  .psm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Homepage latest section add-on. Banner styles intentionally untouched. */
.psm-latest {
  position: relative;
  overflow: hidden;
}

.psm-latest .psm-container {
  position: relative;
  z-index: 1;
}

.psm-latest .psm-section-heading {
  max-width: none;
  margin-bottom: 34px;
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(255, 251, 242, 0.92), rgba(232, 244, 235, 0.72)),
    var(--psm-panel);
  border: 1px solid rgba(11, 107, 87, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 63, 59, 0.06);
}

.psm-latest-layout {
  display: grid;
  gap: 22px;
  align-items: start;
}

.psm-latest-grid {
  min-width: 0;
}

.psm-latest-grid .psm-card {
  min-width: 0;
}

.psm-latest-grid .psm-card:first-child {
  background: rgba(255, 251, 242, 0.94);
}

.psm-card-link {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--psm-accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.psm-card-link::after {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.psm-card-link:hover::after,
.psm-card-link:focus-visible::after {
  transform: translateX(4px);
}

.psm-rhythm-panel {
  --psm-rhythm-accent: #0b6b57;
  --psm-rhythm-deep: #103f3c;
  --psm-rhythm-muted: #66766f;
  --psm-rhythm-soft: #e9f4ed;
  --psm-rhythm-gold: #d1b36b;

  display: grid;
  gap: 22px;
  padding: 24px;
  color: var(--psm-rhythm-deep);
  background:
    linear-gradient(160deg, rgba(255, 251, 242, 0.96), rgba(233, 244, 237, 0.9)),
    var(--psm-panel);
  border: 1px solid rgba(11, 107, 87, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(17, 63, 59, 0.1);
}

.psm-rhythm-header {
  display: grid;
  gap: 12px;
}

.psm-rhythm-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  color: var(--psm-rhythm-accent);
  background: rgba(11, 107, 87, 0.08);
  border: 1px solid rgba(11, 107, 87, 0.13);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.psm-rhythm-panel h3 {
  margin: 0;
  color: var(--psm-rhythm-deep);
  font-family: var(--psm-font-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
}

.psm-rhythm-panel p {
  margin: 0;
  color: var(--psm-rhythm-muted);
  line-height: 1.65;
}

.psm-rhythm-meter {
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  justify-self: start;
  color: var(--psm-rhythm-deep);
  background:
    radial-gradient(circle closest-side, #fffaf0 72%, transparent 73%),
    conic-gradient(var(--psm-rhythm-accent) 0 74%, rgba(11, 107, 87, 0.14) 74% 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(11, 107, 87, 0.1);
}

.psm-rhythm-meter span,
.psm-rhythm-meter small {
  grid-area: 1 / 1;
}

.psm-rhythm-meter span {
  margin-top: -16px;
  color: var(--psm-rhythm-accent);
  font-family: var(--psm-font-display);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
}

.psm-rhythm-meter small {
  margin-top: 42px;
  color: var(--psm-rhythm-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.psm-rhythm-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(11, 107, 87, 0.13);
}

.psm-rhythm-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11, 107, 87, 0.13);
}

.psm-rhythm-list li > span {
  grid-row: span 2;
  color: var(--psm-rhythm-gold);
  font-weight: 850;
}

.psm-rhythm-list strong {
  color: var(--psm-rhythm-deep);
  font-size: 1rem;
  line-height: 1.2;
}

.psm-rhythm-list small {
  color: var(--psm-rhythm-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.psm-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psm-topic-chips a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  color: var(--psm-rhythm-accent);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(11, 107, 87, 0.16);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.psm-topic-chips a:hover,
.psm-topic-chips a:focus-visible {
  color: #fffaf0;
  background: var(--psm-rhythm-accent);
}

.psm-rhythm-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: #fffaf0;
  background: var(--psm-rhythm-accent);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(11, 107, 87, 0.16);
}

.psm-rhythm-link:hover,
.psm-rhythm-link:focus-visible {
  color: #fffaf0;
  transform: translateY(-1px);
}

@media (min-width: 980px) {
  .psm-latest-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .psm-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .psm-latest-grid .psm-card:first-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr);
  }

  .psm-latest-grid .psm-card:first-child .psm-card-media {
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
  }

  .psm-rhythm-panel {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 979px) {
  .psm-rhythm-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 559px) {
  .psm-latest .psm-section-heading,
  .psm-rhythm-panel {
    padding: 20px;
  }

  .psm-rhythm-meter {
    width: 108px;
    height: 108px;
  }

  .psm-rhythm-meter span {
    font-size: 2.35rem;
  }
}
