/*
Theme Name: Camp Media
Theme URI: https://campmedia.com
Author: Camp Media
Description: A minimal holding-company theme for Campbell Online Media LLC.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: campmedia
License: GNU General Public License v2 or later
*/

:root {
  --bg: #0b0b0a;
  --bg-soft: #141413;
  --fg: #f3efe6;
  --muted: #9a9488;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

#pixel-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fg);
}

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100%;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - var(--pad) * 2, var(--measure));
  margin-inline: auto;
}

/* Header
--------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: clamp(132px, 18vw, 168px);
  height: auto;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  position: relative;
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

body.nav-open .nav-toggle-icon {
  background: transparent;
}

body.nav-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .menu-item-object-page.current_page_item > a {
  color: var(--fg);
}

/* Hero
--------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3.25rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 6.4vw, 4.8rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-tile {
  box-sizing: border-box;
  width: 8.75rem;
  height: 8.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-tile:hover,
.hero-tile:focus-visible {
  border-color: var(--fg);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
}

.hero-lede {
  margin: 1.6rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
}

.hero-legal {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Sections
--------------------------------------------- */

.section {
  padding: clamp(4rem, 10vh, 7rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-copy {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-copy p {
  margin: 0 0 1rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

/* Properties
--------------------------------------------- */

.property-list {
  display: grid;
}

.property {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
}

.app-row {
  grid-template-columns: 3.5rem minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.app-blurb {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 24rem;
}

.property:last-child {
  border-bottom: 1px solid var(--line);
}

.property-index {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.property-name {
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1rem;
}

.property-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.property-go {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 0.28s var(--ease), color 0.2s;
}

.property:hover .property-go,
.property:focus-visible .property-go {
  color: var(--fg);
  transform: translateX(6px);
}

a.app-row:hover .app-blurb,
a.app-row:focus-visible .app-blurb {
  color: var(--fg);
}

/* Apps
--------------------------------------------- */

.apps-panel {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 36rem);
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  width: fit-content;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-color: var(--fg);
}

.asset-logo {
  margin: 0 0 1.5rem;
}

.asset-logo img {
  max-height: 88px;
  width: auto;
}

.asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.asset-links .text-link {
  margin-top: 0;
}

.page-title + .property-tag {
  margin: -1.6rem 0 1.75rem;
  display: inline-block;
}

/* Inner pages
--------------------------------------------- */

.page-main {
  padding: clamp(3rem, 8vh, 5.5rem) 0 5rem;
}

.page-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-title {
  margin: 0 0 2.25rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.page-body {
  max-width: 40rem;
  color: color-mix(in srgb, var(--fg) 88%, var(--muted));
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-body > *:first-child {
  margin-top: 0;
}

.page-body h2,
.page-body h3 {
  color: var(--fg);
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.7rem;
}

.page-body h2 {
  font-size: 1.45rem;
  font-weight: 500;
}

.page-body h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

.page-body a {
  color: var(--fg);
}

.page-body ul,
.page-body ol {
  padding-left: 1.2rem;
}

.child-pages {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.child-pages a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.05rem;
}

.child-pages a span {
  color: var(--muted);
  transition: transform 0.28s var(--ease), color 0.2s;
}

.child-pages a:hover span {
  color: var(--fg);
  transform: translateX(5px);
}

.not-found {
  min-height: calc(100svh - var(--header-h) - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 0 5rem;
}

.not-found h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Footer
--------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--fg);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

/* Mobile
--------------------------------------------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: 1.5rem var(--pad) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s var(--ease);
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
  }

  .property {
    grid-template-columns: 2.4rem 1fr auto;
    padding: 1.35rem 0;
  }

  .app-row {
    grid-template-columns: 2.4rem 1fr;
  }

  .app-blurb {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  .hero-tile {
    width: 7.25rem;
    height: 7.25rem;
  }

  .hero h1 {
    white-space: nowrap;
    font-size: clamp(1.35rem, 7.2vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
