@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --cat-black: #050505;
  --cat-panel: #101010;
  --cat-white: #f8f8f5;
  --cat-gray: #999994;
  --cat-amber: #ffb51b;
  --cat-line: rgba(255,255,255,.13);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: var(--cat-black);
  scroll-behavior: smooth;
}

body.category-page {
  min-height: 100vh;
  padding-top: 76px;
  overflow-x: hidden;
  background: var(--cat-black);
  color: var(--cat-white);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}

.category-page a {
  color: inherit;
  text-decoration: none;
}

.category-page button,
.category-page input {
  font: inherit;
}

.category-page button {
  color: inherit;
}

.category-page button:focus-visible,
.category-page a:focus-visible,
.category-page input:focus-visible {
  outline: 2px solid var(--cat-amber);
  outline-offset: 4px;
}

.category-page [hidden] {
  display: none !important;
}

/* HEADER */

.cat-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 76px;
  padding: 12px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(5,5,5,.97);
  border-bottom: 1px solid var(--cat-line);
  backdrop-filter: blur(14px);
}

.cat-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1.3px;
  white-space: nowrap;
}

.cat-logo span {
  color: var(--cat-amber);
}

.cat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cat-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.cat-icon-button:hover {
  color: var(--cat-amber);
  border-color: var(--cat-amber);
}

.cat-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-account {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cat-line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.cat-account:hover {
  color: var(--cat-amber);
  border-color: var(--cat-amber);
}

/* Hamburger icon */

.cat-menu-button {
  margin-left: 5px;
  flex-direction: column;
  gap: 5px;
}

.cat-menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.cat-menu-button.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.cat-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.cat-menu-button.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* SEARCH */

.cat-search {
  position: fixed;
  top: 86px;
  right: 4%;
  z-index: 1050;
  width: min(440px, 92%);
  padding: 12px;
  display: flex;
  gap: 8px;
  border: 1px solid var(--cat-line);
  border-radius: 10px;
  background: #111;
  box-shadow: 0 15px 45px rgba(0,0,0,.4);
}

.cat-search input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cat-line);
  border-radius: 6px;
  background: #080808;
  color: white;
}

.cat-search button {
  padding: 0 15px;
  border: none;
  border-radius: 6px;
  background: var(--cat-amber);
  color: #080808;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* NAVIGATION DRAWER */

.cat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
}

.cat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(370px, 88vw);
  height: 100vh;
  height: 100dvh;
  padding: 25px;
  overflow-y: auto;
  background: #101010;
  border-left: 1px solid var(--cat-line);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
}

.cat-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.cat-drawer-top {
  min-height: 48px;
  margin-bottom: 20px;
  padding-bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--cat-line);
}

.cat-drawer-top > span {
  color: var(--cat-gray);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.cat-drawer-top button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--cat-line);
  border-radius: 50%;
  background: transparent;
  color: var(--cat-white);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.cat-drawer-top button:hover {
  color: var(--cat-amber);
  border-color: var(--cat-amber);
}

.cat-drawer > a {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  transition: color .2s;
}

.cat-drawer > a span {
  color: var(--cat-amber);
}

.cat-drawer > a:hover,
.cat-drawer > a[aria-current="page"] {
  color: var(--cat-amber);
}

.cat-drawer-caption {
  margin-top: 30px;
  color: var(--cat-amber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

body.category-menu-open {
  overflow: hidden;
}

/* HERO */

.cat-hero {
  width: 92%;
  max-width: 1200px;
  margin: auto;
  padding: clamp(65px, 9vw, 110px) 0 36px;
  border-bottom: 1px solid var(--cat-line);
}

.cat-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--cat-amber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.8px;
}

.cat-eyebrow > span {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cat-amber);
  box-shadow: 0 0 12px rgba(255,181,27,.35);
}

.cat-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(46px, 9vw, 100px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.cat-period {
  color: var(--cat-amber);
}

.cat-hero > p {
  max-width: 680px;
  margin-top: 18px;
  color: #a4a49e;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.9;
}

.cat-hero-bottom {
  margin-top: 34px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #777770;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* CONTENT */

.cat-content {
  width: 92%;
  max-width: 1200px;
  min-height: 400px;
  margin: auto;
  padding: 45px 0 75px;
}

.cat-section-heading {
  margin-bottom: 28px;
  padding-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--cat-line);
}

.cat-section-heading .cat-eyebrow {
  margin-bottom: 8px;
}

.cat-section-heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(25px, 4.5vw, 38px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.cat-section-heading h2 span {
  color: var(--cat-amber);
}

.cat-pill {
  padding: 7px 10px;
  border: 1px solid var(--cat-line);
  border-radius: 5px;
  color: var(--cat-amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

/* Published story cards — ready for database integration */

.cat-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cat-story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cat-line);
  border-radius: 9px;
  background: var(--cat-panel);
  transition: border-color .2s, transform .2s;
}

.cat-story-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat-amber);
}

.cat-story-card > a {
  display: block;
}

.cat-story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #171717;
}

.cat-story-body {
  padding: 18px;
}

.cat-story-tag {
  color: var(--cat-amber);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.cat-story-title {
  margin-top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1.4;
}

.cat-story-excerpt {
  margin-top: 9px;
  color: var(--cat-gray);
  font-size: 13px;
  line-height: 1.7;
}

.cat-story-meta {
  margin-top: 15px;
  color: #777;
  font-size: 11px;
}

/* EMPTY STATE */

.cat-empty {
  min-height: 235px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.17);
  border-radius: 12px;
  text-align: center;
}

.cat-empty-mark {
  margin-bottom: 12px;
  color: var(--cat-amber);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.cat-empty h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
}

.cat-empty p {
  max-width: 420px;
  margin-top: 9px;
  color: var(--cat-gray);
  font-size: 13px;
  line-height: 1.8;
}

/* FOOTER */

.cat-footer {
  padding: 48px 4% 25px;
  border-top: 1px solid var(--cat-line);
  text-align: center;
}

.cat-footer .cat-logo {
  justify-content: center;
  font-size: 25px;
}

.cat-footer > p {
  margin-top: 13px;
  color: #888;
  font-size: 10px;
  letter-spacing: 3px;
}

.cat-footer-links {
  margin: 27px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.cat-footer-links a {
  color: var(--cat-gray);
  font-size: 13px;
  transition: color .2s;
}

.cat-footer-links a:hover {
  color: var(--cat-amber);
}

.cat-footer small {
  color: #777;
  font-size: 11px;
}

/* TABLET */

@media (max-width: 800px) {
  .cat-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* MOBILE */

@media (max-width: 560px) {
  .cat-header {
    min-height: 70px;
    padding: 10px 4%;
    gap: 8px;
  }

  body.category-page {
    padding-top: 70px;
  }

  .cat-logo {
    font-size: 18px;
    letter-spacing: -1px;
  }

  .cat-header-actions {
    gap: 7px;
  }

  .cat-icon-button {
    width: 36px;
    height: 36px;
  }

  .cat-icon-button svg {
    width: 19px;
    height: 19px;
  }

  .cat-account {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .cat-menu-button {
    margin-left: 1px;
  }

  .cat-hero {
    padding-top: 62px;
    padding-bottom: 29px;
  }

  .cat-hero h1 {
    font-size: clamp(43px, 11vw, 62px);
    letter-spacing: -2.5px;
  }

  .cat-hero > p {
    margin-top: 14px;
    font-size: 14px;
  }

  .cat-hero-bottom {
    margin-top: 25px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .cat-content {
    min-height: 350px;
    padding: 36px 0 55px;
  }

  .cat-section-heading {
    margin-bottom: 23px;
    padding-bottom: 19px;
  }

  .cat-section-heading h2 {
    font-size: 25px;
    letter-spacing: -1px;
  }

  .cat-section-heading .cat-eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .cat-pill {
    padding: 6px 8px;
    font-size: 8px;
  }

  .cat-story-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .cat-empty {
    min-height: 195px;
    padding: 25px 16px;
  }

  .cat-empty h3 {
    font-size: 19px;
  }

  .cat-empty p {
    font-size: 12px;
  }

  .cat-footer {
    padding-top: 42px;
  }

  .cat-footer-links {
    gap: 17px;
  }

  .cat-search {
    top: 78px;
  }
}

@media (max-width: 360px) {
  .cat-header {
    gap: 5px;
  }

  .cat-logo {
    font-size: 16px;
  }

  .cat-header-actions {
    gap: 5px;
  }

  .cat-icon-button {
    width: 32px;
    height: 32px;
  }

  .cat-account {
    padding: 0 6px;
    font-size: 10px;
  }
}

/* MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .category-page *,
  .category-page *::before,
  .category-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* =====================================
   ABOUT, CONTACT & TERMS PAGES
===================================== */

.info-page {
  min-height: 65vh;
  background: var(--black);
  color: var(--white);
}

.info-hero {
  padding: 90px 6% 65px;
  border-bottom: 1px solid var(--line);
}

.info-hero .section-eyebrow {
  color: var(--amber);
  margin-bottom: 18px;
}

.info-hero h1 {
  max-width: 950px;
  font-family: var(--display);
  font-size: clamp(38px, 8vw, 82px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -3px;
  overflow-wrap: anywhere;
}

.info-hero h1 span {
  color: var(--amber);
}

.info-hero > p:last-child {
  max-width: 620px;
  margin-top: 20px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.9;
}

.info-content {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 55px 6% 90px;
}

.info-block {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.info-block:first-child {
  padding-top: 0;
}

.info-block .section-eyebrow {
  color: var(--amber);
  margin-bottom: 12px;
}

.info-block h2,
.info-cta h2,
.contact-side h2 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.8px;
}

.info-block p,
.info-cta p,
.contact-side p {
  max-width: 760px;
  margin: 0 0 15px;
  color: #aaa9a3;
  font-size: 14px;
  line-height: 1.95;
}

.info-list {
  padding-left: 20px;
  color: #aaa9a3;
  font-size: 14px;
  line-height: 2;
}

.info-list li {
  padding-left: 5px;
  margin-bottom: 8px;
}

.info-list strong {
  color: var(--white);
}

.info-cta {
  margin-top: 35px;
  padding: 32px;
  border: 1px solid rgba(255,181,27,.35);
  background: linear-gradient(135deg, rgba(255,181,27,.08), transparent 65%);
}

.info-cta h2 {
  margin-bottom: 10px;
}

.info-cta .primary-button {
  margin-top: 5px;
}

.inline-link {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inline-link:hover {
  color: #ffd06a;
}

/* CONTACT PAGE */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: start;
  gap: 45px;
}

.contact-layout .info-block {
  padding-top: 0;
  border-bottom: 0;
}

.contact-method {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.contact-method a {
  display: inline-block;
  color: var(--white);
  font-size: 14px;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.contact-method a:hover {
  color: var(--amber);
}

.contact-note {
  margin-top: 22px !important;
  font-size: 12px !important;
}

.contact-side {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--black-soft);
}

.contact-side .section-eyebrow {
  color: var(--amber);
  margin-bottom: 12px;
}

.contact-side .primary-button {
  width: 100%;
  gap: 12px;
  margin-top: 10px;
  font-size: 10px;
}

/* TERMS PAGE */

.terms-content {
  max-width: 900px;
}

.terms-updated {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.terms-content .info-block {
  padding: 28px 0;
}

.terms-content .info-block h2 {
  font-size: clamp(20px, 3vw, 26px);
}

.terms-note {
  margin-top: 35px;
  padding: 18px;
  border-left: 3px solid var(--amber);
  background: #101010;
  color: #aaa9a3;
  font-size: 12px;
  line-height: 1.8;
}

/* MOBILE */

@media (max-width: 700px) {
  .info-hero {
    padding: 65px 6% 45px;
  }

  .info-hero h1 {
    letter-spacing: -1.8px;
  }

  .info-hero > p:last-child {
    font-size: 13px;
  }

  .info-content {
    padding: 38px 6% 65px;
  }

  .info-block {
    padding: 25px 0;
  }

  .info-block p,
  .info-cta p,
  .contact-side p {
    font-size: 13px;
  }

  .info-cta {
    padding: 24px 20px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-layout .info-block {
    padding-bottom: 0;
  }

  .contact-side {
    padding: 23px;
  }
}