/*
Theme Name: Marrow Lines
Author: Elian Shore Studio
Description: A classic PHP WordPress theme with a minimal editorial layout, mobile-first responsive structure, dynamic menus, dynamic categories, and domain-specific class/function naming.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ovs-theme
Domain Path: /languages
*/

:root {
  --ovs-bg: #050505;
  --ovs-panel: #111111;
  --ovs-ink: #f7f3ea;
  --ovs-muted: #c9c2b4;
  --ovs-soft: #8d877d;
  --ovs-line: rgba(247, 243, 234, 0.18);
  --ovs-accent: #d9c9a5;
  --ovs-card: #fbf7ee;
  --ovs-card-ink: #15120f;
  --ovs-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --ovs-banner-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1800 1120'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23020202'/%3E%3Cstop offset='0.42' stop-color='%231c1711'/%3E%3Cstop offset='1' stop-color='%2306070a'/%3E%3C/linearGradient%3E%3CradialGradient id='gold' cx='66%25' cy='35%25' r='42%25'%3E%3Cstop offset='0' stop-color='%23f1d28b' stop-opacity='0.85'/%3E%3Cstop offset='0.38' stop-color='%238f6830' stop-opacity='0.45'/%3E%3Cstop offset='1' stop-color='%23000000' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='blue' cx='27%25' cy='40%25' r='38%25'%3E%3Cstop offset='0' stop-color='%238aa0b9' stop-opacity='0.62'/%3E%3Cstop offset='0.48' stop-color='%23213240' stop-opacity='0.42'/%3E%3Cstop offset='1' stop-color='%23000000' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur stdDeviation='24'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='1800' height='1120' fill='url(%23bg)'/%3E%3Crect width='1800' height='1120' fill='url(%23gold)'/%3E%3Crect width='1800' height='1120' fill='url(%23blue)'/%3E%3Cg filter='url(%23blur)' opacity='0.8'%3E%3Cellipse cx='1120' cy='360' rx='360' ry='220' fill='%23775f3a'/%3E%3Cellipse cx='480' cy='430' rx='310' ry='250' fill='%232b3944'/%3E%3Cellipse cx='1020' cy='740' rx='420' ry='210' fill='%23362d25'/%3E%3C/g%3E%3Cg opacity='0.32' fill='none' stroke='%23f7f3ea' stroke-width='2'%3E%3Cpath d='M0 330c260-86 500-78 720 24s470 92 750-64c126-70 236-110 330-120'/%3E%3Cpath d='M0 840c310-110 594-116 850-18s520 75 792-70c58-31 111-55 158-72'/%3E%3C/g%3E%3Cg opacity='0.18' stroke='%23f7f3ea'%3E%3Cpath d='M180 100v880M450 70v940M760 40v980M1130 70v930M1500 120v820'/%3E%3C/g%3E%3C/svg%3E");
  --ovs-banner-image: url("assets/images/ovs-tech-banner.svg");
  --ovs-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ovs-serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ovs-bg);
  color: var(--ovs-ink);
  font-family: var(--ovs-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

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

.ovs-skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  color: var(--ovs-card-ink);
  background: var(--ovs-card);
  border-radius: 6px;
  box-shadow: var(--ovs-shadow);
}

.ovs-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.84);
  border-bottom: 1px solid var(--ovs-line);
  backdrop-filter: blur(18px);
}

.ovs-header-shell,
.ovs-footer-shell,
.ovs-section-inner,
.ovs-hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ovs-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.ovs-brand {
  min-width: 0;
}

.ovs-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ovs-custom-logo {
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
}

.ovs-site-title {
  display: inline-block;
  font-family: var(--ovs-serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.ovs-site-description {
  margin: 6px 0 0;
  color: var(--ovs-muted);
  font-size: 0.78rem;
}

.ovs-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  gap: 5px;
  color: var(--ovs-ink);
  background: transparent;
  border: 1px solid var(--ovs-line);
  border-radius: 8px;
  cursor: pointer;
}

.ovs-menu-toggle-line {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ovs-navigation-open .ovs-menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ovs-navigation-open .ovs-menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.ovs-navigation-open .ovs-menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.ovs-site-navigation {
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  padding: 18px;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid var(--ovs-line);
  border-radius: 8px;
  box-shadow: var(--ovs-shadow);
}

.ovs-navigation-ready .ovs-site-navigation {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
}

.ovs-navigation-open .ovs-site-navigation {
  max-height: 70vh;
  padding-top: 18px;
  padding-bottom: 18px;
  overflow: auto;
  opacity: 1;
  pointer-events: auto;
}

.ovs-menu,
.ovs-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ovs-sub-menu {
  padding-top: 8px;
  padding-left: 14px;
}

.ovs-nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--ovs-muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.ovs-nav-link:hover,
.ovs-nav-link:focus,
.ovs-nav-item-current > .ovs-nav-link {
  color: var(--ovs-ink);
}

.ovs-main {
  min-height: 60vh;
}

.ovs-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--ovs-panel);
  background-image:
    var(--ovs-banner-image),
    url("assets/images/ovs-hero-bg.svg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--ovs-line);
  overflow: hidden;
}

.ovs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.08) 46%, rgba(5, 5, 5, 0.26)),
    linear-gradient(0deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0) 52%, rgba(5, 5, 5, 0.14));
}

.ovs-hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 56px;
}

.ovs-hero-copyblock {
  width: min(100%, 960px);
}

.ovs-eyebrow {
  margin: 0 0 18px;
  color: var(--ovs-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ovs-hero-title {
  max-width: 920px;
  margin: 0;
  font-family: var(--ovs-serif);
  font-size: 3.2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
}

.ovs-hero-copy {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--ovs-muted);
  font-size: 1rem;
}

.ovs-hero-actions,
.ovs-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ovs-button,
.ovs-button-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.ovs-button {
  color: var(--ovs-card-ink);
  background: var(--ovs-ink);
}

.ovs-button-secondary {
  color: var(--ovs-ink);
  background: rgba(247, 243, 234, 0.1);
  border-color: var(--ovs-line);
}

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

.ovs-section {
  padding: 58px 0;
}

.ovs-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.ovs-section-title {
  margin: 0;
  font-family: var(--ovs-serif);
  font-size: 2.45rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
}

.ovs-section-copy {
  max-width: 620px;
  margin: 0;
  color: var(--ovs-muted);
}

.ovs-post-grid {
  display: grid;
  gap: 18px;
}

.ovs-post-card {
  overflow: hidden;
  color: var(--ovs-card-ink);
  background: var(--ovs-card);
  border-radius: 8px;
}

.ovs-card-image {
  display: block;
  min-height: 230px;
  color: var(--ovs-card-ink);
  background: #ded7ca;
  text-decoration: none;
}

.ovs-card-thumbnail {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ovs-card-placeholder {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(21, 18, 15, 0.68);
  font-family: var(--ovs-serif);
  font-size: 1.45rem;
  font-style: italic;
  text-align: center;
}

.ovs-card-content {
  padding: 22px;
}

.ovs-card-date,
.ovs-single-date,
.ovs-category-label,
.ovs-tag-label,
.ovs-nav-label {
  color: var(--ovs-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ovs-card-title {
  margin: 10px 0 12px;
  font-family: var(--ovs-serif);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.04;
}

.ovs-card-title a,
.ovs-text-link {
  text-decoration: none;
}

.ovs-card-title a:hover,
.ovs-card-title a:focus,
.ovs-text-link:hover,
.ovs-text-link:focus {
  text-decoration: underline;
}

.ovs-card-excerpt {
  color: rgba(21, 18, 15, 0.72);
}

.ovs-card-excerpt p {
  margin: 0;
}

.ovs-text-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
}

.ovs-topic-list,
.ovs-category-list,
.ovs-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ovs-topic-link,
.ovs-category-link,
.ovs-tag-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  color: var(--ovs-ink);
  background: rgba(247, 243, 234, 0.08);
  border: 1px solid var(--ovs-line);
  border-radius: 999px;
  text-decoration: none;
}

.ovs-pagination {
  margin-top: 32px;
}

.ovs-pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ovs-pagination-link,
.ovs-pagination-gap {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ovs-ink);
  border: 1px solid var(--ovs-line);
  border-radius: 6px;
  text-decoration: none;
}

.ovs-pagination-link-current {
  color: var(--ovs-card-ink);
  background: var(--ovs-ink);
}

.ovs-empty {
  padding: 32px;
  color: var(--ovs-card-ink);
  background: var(--ovs-card);
  border-radius: 8px;
}

.ovs-single-wrap {
  width: 80%;
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 0;
}

.ovs-single-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ovs-line);
}

.ovs-single-meta {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.ovs-single-title {
  margin: 0;
  font-family: var(--ovs-serif);
  font-size: 3.15rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.ovs-single-excerpt {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ovs-muted);
  font-size: 1.08rem;
}

.ovs-entry-content {
  padding-top: 36px;
  color: var(--ovs-ink);
}

.ovs-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.ovs-entry-content h2,
.ovs-entry-content h3,
.ovs-entry-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  font-family: var(--ovs-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
}

.ovs-entry-content h2 {
  font-size: 2.05rem;
}

.ovs-entry-content h3 {
  font-size: 1.65rem;
}

.ovs-entry-content a {
  color: var(--ovs-accent);
}

.ovs-entry-content blockquote {
  margin-left: 0;
  padding-left: 22px;
  color: var(--ovs-muted);
  border-left: 2px solid var(--ovs-accent);
  font-family: var(--ovs-serif);
  font-size: 1.35rem;
  font-style: italic;
}

.ovs-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.ovs-entry-content th,
.ovs-entry-content td {
  padding: 12px;
  border: 1px solid var(--ovs-line);
}

.ovs-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.ovs-single-footer {
  display: grid;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--ovs-line);
}

.ovs-post-nav {
  display: grid;
  gap: 14px;
}

.ovs-post-nav-link {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: var(--ovs-ink);
  background: rgba(247, 243, 234, 0.06);
  border: 1px solid var(--ovs-line);
  border-radius: 8px;
  text-decoration: none;
}

.ovs-post-nav-link:hover,
.ovs-post-nav-link:focus {
  background: rgba(247, 243, 234, 0.1);
}

.ovs-site-footer {
  padding: 44px 0;
  color: var(--ovs-muted);
  background: #020202;
  border-top: 1px solid var(--ovs-line);
}

.ovs-footer-shell {
  display: grid;
  gap: 28px;
}

.ovs-footer-brand {
  display: grid;
  gap: 8px;
}

.ovs-footer-title {
  margin: 0;
  color: var(--ovs-ink);
  font-family: var(--ovs-serif);
  font-size: 1.35rem;
  font-style: italic;
}

.ovs-footer-description,
.ovs-footer-copy {
  margin: 0;
}

.ovs-footer-navigation .ovs-menu {
  gap: 4px;
}

:focus-visible {
  outline: 2px solid var(--ovs-accent);
  outline-offset: 4px;
}

@media (min-width: 760px) {
  .ovs-header-shell,
  .ovs-footer-shell,
  .ovs-section-inner,
  .ovs-hero-inner {
    width: min(1180px, calc(100% - 56px));
  }

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

  .ovs-site-navigation,
  .ovs-navigation-ready .ovs-site-navigation,
  .ovs-navigation-open .ovs-site-navigation {
    position: static;
    max-height: none;
    padding: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ovs-menu {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .ovs-nav-item {
    position: relative;
  }

  .ovs-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 10px;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid var(--ovs-line);
    border-radius: 8px;
    box-shadow: var(--ovs-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .ovs-nav-item:hover > .ovs-sub-menu,
  .ovs-nav-item:focus-within > .ovs-sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ovs-hero {
    min-height: 78vh;
  }

  .ovs-hero-title {
    font-size: 5.6rem;
  }

  .ovs-section {
    padding: 76px 0;
  }

  .ovs-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    align-items: end;
  }

  .ovs-section-title {
    font-size: 3.25rem;
  }

  .ovs-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ovs-card-thumbnail,
  .ovs-card-placeholder {
    height: 320px;
  }

  .ovs-single-title {
    font-size: 4.7rem;
  }

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

  .ovs-footer-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .ovs-footer-navigation .ovs-menu {
    flex-direction: row;
  }
}

@media (min-width: 1100px) {
  .ovs-hero-title {
    font-size: 7.1rem;
  }

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

  .ovs-post-card:nth-child(1) {
    grid-column: span 2;
  }

  .ovs-post-card:nth-child(1) .ovs-card-title {
    font-size: 2.35rem;
  }
}

@media (max-width: 520px) {
  .ovs-single-wrap {
    width: 80vw;
  }

  .ovs-hero-title {
    font-size: 3rem;
  }

  .ovs-single-title {
    font-size: 2.75rem;
  }
}

.ovs-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.46)),
    linear-gradient(135deg, rgba(33, 212, 253, 0.36) 0 2px, transparent 2px 72px),
    linear-gradient(45deg, rgba(244, 201, 93, 0.3) 0 2px, transparent 2px 92px),
    radial-gradient(circle at 74% 30%, rgba(33, 212, 253, 0.82), transparent 23%),
    radial-gradient(circle at 34% 44%, rgba(244, 201, 93, 0.72), transparent 22%),
    linear-gradient(135deg, #02040a 0%, #071b2d 46%, #050505 100%) !important;
  background-size: auto, 72px 72px, 92px 92px, auto, auto, auto !important;
}

.ovs-hero::before {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 42%),
    repeating-linear-gradient(90deg, rgba(247, 243, 234, 0.12) 0 1px, transparent 1px 96px) !important;
}
