/*
Theme Name: NYA Network
Theme URI: https://www.notyouagain.ai
Author: Alfons Scholing
Author URI: https://www.notyouagain.ai
Description: NYA Network custom WordPress theme with five fullscreen panels and scrollable category boxes.
Version: 1.1.0
Text Domain: nya-network
*/

:root {
  --black: #000000;
  --white: #ffffff;
  --orange: #ff8a00;
  --red: #ff3b30;
  --pink: #ff4fd8;
  --purple: #9d4edd;
  --glass: rgba(0, 0, 0, 0.62);
  --glass-2: rgba(0, 0, 0, 0.48);
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1240px;
  --menu-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 99999;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 999px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--menu-height);
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-logo, .custom-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-subtitle {
  font-size: .72rem;
  opacity: .72;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 10px 12px;
}
.hamburger {
  width: 22px;
  height: 16px;
  display: inline-grid;
  gap: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-toggle-text {
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #fff;
  transition: color .2s ease, text-shadow .2s ease;
}
.main-nav a:hover, .main-nav a:focus { text-shadow: 0 0 10px currentColor; }
.main-nav .menu-blog > a:hover,
.main-nav .menu-blog.current-menu-item > a,
.main-nav .menu-blog.current-menu-ancestor > a { color: var(--orange); }
.main-nav .menu-concepts > a:hover,
.main-nav .menu-concepts.current-menu-item > a,
.main-nav .menu-concepts.current-menu-ancestor > a { color: var(--red); }
.main-nav .menu-testimonies > a:hover,
.main-nav .menu-testimonies.current-menu-item > a,
.main-nav .menu-testimonies.current-menu-ancestor > a { color: var(--pink); }
.main-nav .menu-about > a:hover,
.main-nav .menu-about.current-menu-item > a,
.main-nav .menu-about.current-menu-ancestor > a { color: var(--purple); }

.page-shell { scroll-snap-type: y mandatory; }

.panel, .archive-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--menu-height) + 40px) 20px 40px;
  display: flex;
  align-items: center;
  background-color: #111;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.panel { scroll-snap-align: start; }

.panel::before, .archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.35) 30%, rgba(0,0,0,.72));
  z-index: 0;
}
.panel-inner, .archive-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.panel-card,
.scroll-box,
.content-card {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.panel-card {
  max-width: 760px;
  padding: 28px;
  /* Limit the vertical content area to 75% of the viewport height. This helps retain more of the
     background imagery on tall panels, especially in portrait orientation. */
  max-height: 75vh;
  overflow: auto;
}

.panel-kicker, .section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.kicker-blog { color: var(--orange); }
.kicker-network { color: var(--white); }
.kicker-ventures { color: var(--purple); }
.kicker-concepts { color: var(--red); }
.kicker-testimonies { color: var(--pink); }

.panel-title, .archive-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.2vw, 3.75rem);
  line-height: 1.02;
  text-transform: uppercase;
  font-family: 'Permanent Marker', cursive;
  font-weight: normal;
}
.panel-text, .intro-text, .archive-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 64ch;
  /* Revert body text to a simple sans-serif for readability while letting the headings carry the expressive style */
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
}

.panel-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel-box {
  background: rgba(0,0,0,.56);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  min-height: 140px;
}
.panel-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.panel-box p, .panel-box li {
  margin: 0;
  line-height: 1.6;
  font-size: .96rem;
}
.panel-box ul { margin: 0; padding-left: 18px; }

.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.venture-card {
  background: rgba(0,0,0,.56);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.venture-logo-wrap {
  display: grid;
  place-items: center;
  min-height: 200px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
}
.venture-logo {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}
.venture-logo.solidred {
  max-height: 220px;
}
.venture-card h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.venture-card p {
  margin: 0;
  line-height: 1.65;
}

.bg-1 { background-image: url("assets/images/bg1.webp"); }
.bg-2 { background-image: url("assets/images/bg2.webp"); }
.bg-3 { background-image: url("assets/images/bg3.webp"); }
.bg-4 { background-image: url("assets/images/bg4.webp"); }
.bg-5 { background-image: url("assets/images/bg5.webp"); }

.content-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--menu-height) + 24px) 20px 40px;
}
.content-card {
  padding: 22px;
}

.intro-card {
  margin-bottom: 20px;
}
.intro-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.post-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.post-card {
  background: rgba(0,0,0,.62);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.post-card h2, .post-card h3 {
  margin: 0 0 12px;
  line-height: 1.1;
}
.post-card-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.12rem, 1.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-transform: none;
}
.post-card-title a {
  color: inherit;
  text-decoration: none;
}
.post-card-title a:hover,
.post-card-title a:focus {
  color: var(--red);
}
.post-card-excerpt {
  font-size: .98rem;
  line-height: 1.68;
}

.post-card p:last-child { margin-bottom: 0; }
.post-card.category-blog { border-left: 5px solid var(--orange); }
.post-card.category-concept, .post-card.category-concepts { border-left: 5px solid var(--red); }
.post-card.category-testimony, .post-card.category-testimonies { border-left: 5px solid var(--pink); }
.post-card.category-about { border-left: 5px solid var(--purple); }


.category-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  background: rgba(255,255,255,.08);
}
.tag-blog { color: var(--orange); }
.tag-concept, .tag-concepts { color: var(--red); }
.tag-testimony, .tag-testimonies { color: var(--pink); }
.tag-about { color: var(--purple); }

.archive-hero.bg-concepts { background-image: url("assets/images/bg4.webp"); }
.archive-hero.bg-testimonies { background-image: url("assets/images/bg5.webp"); }

.archive-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 22px;
  align-items: start;
}
.archive-info {
  padding-top: 6px;
}
.archive-info .section-kicker.concepts { color: var(--red); }
.archive-info .section-kicker.testimonies { color: var(--pink); }

.scroll-box {
  padding: 18px;
  max-height: 68vh;
  max-width: 460px;
  width: 100%;
  justify-self: end;
  overflow: auto;
  overscroll-behavior: contain;
}
.scroll-box .post-list {
  margin-top: 0;
}
.scroll-box-title {
  margin: 0 0 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer {
  padding: 28px 20px 40px;
  background: #000;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}

@media (max-width: 980px) {
  .header-inner {
    padding: 14px 16px;
    height: auto;
    min-height: var(--menu-height);
    align-items: center;
  }
  .nav-toggle-label { display: inline-flex; }

  .archive-hero {
    align-items: flex-start;
  }

  .main-nav {
    position: fixed;
    inset: var(--menu-height) 0 0 0;
    background: rgba(0,0,0,.96);
    padding: 22px 18px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }
  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .main-nav a { font-size: clamp(1.2rem, 6vw, 2rem); }
  .main-nav .menu-blog > a { color: var(--orange); }
  .main-nav .menu-concepts > a { color: var(--red); }
  .main-nav .menu-testimonies > a { color: var(--pink); }
  .main-nav .menu-about > a { color: var(--purple); }

  .panel-grid, .venture-grid, .archive-layout {
    grid-template-columns: 1fr;
  }
  .venture-logo-wrap {
    min-height: 160px;
  }
}

@media (max-width: 700px) {
  :root { --menu-height: 92px; }
  .brand-logo, .custom-logo {
    width: 48px;
    height: 48px;
  }
  .brand-title { font-size: .9rem; }
  .brand-subtitle { font-size: .66rem; }
  .panel-card, .content-card, .scroll-box {
    padding: 18px;
    border-radius: 18px;
  }
  .archive-hero,
  .panel {
    padding: calc(var(--menu-height) + 18px) 14px 20px;
    align-items: flex-start;
  }
  .archive-layout {
    gap: 14px;
  }
  .scroll-box {
    max-height: 56vh;
    max-width: 100%;
  }
  .panel-title, .archive-title {
    font-size: clamp(1.55rem, 8vw, 2.4rem);
    line-height: 1.04;
  }
  .section-kicker,
  .panel-kicker {
    font-size: .7rem;
    letter-spacing: .1em;
  }
  .panel-text, .intro-text, .archive-text {
    font-size: .94rem;
    line-height: 1.58;
  }
  .scroll-box-title {
    font-size: .84rem;
    letter-spacing: .1em;
  }
  .post-card {
    padding: 16px;
    border-radius: 16px;
  }
  .post-card-title {
    font-size: 1.05rem;
    line-height: 1.24;
  }
  .post-card-excerpt {
    font-size: .94rem;
    line-height: 1.55;
  }
  .category-tag {
    font-size: .66rem;
    padding: 6px 9px;
  }
}


.site-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.site-list-grid li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .92rem;
  line-height: 1.35;
  word-break: break-word;
}
.site-list-grid.compact li {
  font-size: .88rem;
  padding: 9px 11px;
}
.founder-block {
  display: grid;
  gap: 8px;
}
.founder-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.founder-role {
  color: rgba(255,255,255,.85);
}
.founder-links {
  color: rgba(255,255,255,.9);
}
.contact-link {
  color: var(--orange);
}
.contact-link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .site-list-grid {
    grid-template-columns: 1fr;
  }
}


/* stronger panel snap behavior */
html, body {
  scroll-snap-type: y mandatory;
}

.page-shell {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

.panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

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


.feed-list {
  margin: 12px 0 0;
  padding-left: 18px;
}
.feed-list li {
  margin: 0 0 10px;
  line-height: 1.5;
}
.feed-list a {
  color: var(--white);
}
.feed-list a:hover {
  color: var(--orange);
}

.panel-box .feed-list a {
  text-decoration: none;
}


/* v16 refinement: calmer typography + tighter portrait layout */
.panel-card,
.scroll-box,
.content-card {
  background: rgba(0, 0, 0, 0.56);
}

.panel-card {
  max-width: 700px;
}

.panel-title,
.archive-title {
  font-size: clamp(1.75rem, 4vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.intro-title {
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  line-height: 1.08;
  text-transform: none;
  font-weight: 700;
}

.panel-kicker,
.section-kicker,
.category-tag,
.scroll-box-title {
  letter-spacing: .08em;
  font-style: italic;
}

.panel-text,
.intro-text,
.archive-text,
.post-card p,
.post-card li {
  font-size: .97rem;
  line-height: 1.6;
}

.main-nav a {
  font-size: .88rem;
  letter-spacing: .06em;
}

@media (max-width: 1100px) and (orientation: portrait) {
  .panel,
  .archive-hero {
    padding-top: calc(var(--menu-height) + 22px);
    padding-bottom: 22px;
  }

  .panel-card {
    max-width: 100%;
    max-height: calc(100vh - var(--menu-height) - 64px);
    padding: 18px;
  }

  .panel-title,
  .archive-title {
    font-size: clamp(1.45rem, 4.8vw, 2.25rem);
    line-height: 1.04;
  }

  .panel-text,
  .intro-text,
  .archive-text,
  .post-card p,
  .post-card li,
  .post-card-excerpt {
    font-size: .91rem;
    line-height: 1.5;
  }

  .post-card {
    padding: 15px;
  }

  .post-card-title {
    font-size: 1.02rem;
    line-height: 1.22;
  }

  .scroll-box {
    max-height: min(58vh, calc(100vh - var(--menu-height) - 110px));
    max-width: 100%;
    padding: 16px;
  }

  .archive-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel-grid,
  .venture-grid {
    gap: 12px;
  }
}

/* site/domain links: always single column and never split awkwardly */
.site-list-grid {
  grid-template-columns: 1fr !important;
}

.site-list-grid li {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.site-list-grid a {
  display: block;
  color: var(--white);
  text-decoration: none;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.site-list-grid a:hover {
  color: var(--orange);
}
