/*
Theme Name: Crazy Horse Journal
Theme URI: https://crazyhorsejournal.org/
Author: Crazy Horse Journal
Author URI: https://crazyhorsejournal.org/
Description: A minimal sports journal in ivory. Primary menu with Home, Trading, Invest, Pasar, and Saham, plus About Us, Contact Us, a single post, and a privacy policy. Activating the theme publishes those pages and sections so the menu does not 404.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crazy-horse-journal
Tags: sports, blog, news, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, one-column, two-columns
*/

:root {
  --chj-ivory: #fffff0;
  --chj-ivory-deep: #f3f0e2;
  --chj-sheet: #ffffff;
  --chj-ink: #1a1a18;
  --chj-muted: #6d685f;
  --chj-line: #e3dece;
  --chj-sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --chj-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --chj-wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--chj-ivory);
  color: var(--chj-ink);
  font-family: var(--chj-sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

#content {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--chj-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 0.8rem;
}

a {
  color: inherit;
}

::selection {
  background: var(--chj-ink);
  color: var(--chj-ivory);
}

:focus-visible {
  outline: 2px solid var(--chj-ink);
  outline-offset: 3px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--chj-sheet);
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
  padding: 0.6rem 0.8rem;
}

.chj-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--chj-ink);
  color: var(--chj-ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  z-index: 100;
}

.chj-skip:focus {
  top: 0.5rem;
  color: var(--chj-ivory);
}

.chj-wrap {
  width: min(var(--chj-wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.chj-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--chj-muted);
  font-family: var(--chj-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.chj-kicker:hover {
  color: var(--chj-ink);
}

.chj-meta {
  margin: 0 0 0.35rem;
  color: var(--chj-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.chj-meta time,
.chj-meta a {
  color: var(--chj-muted);
  text-decoration: none;
}

.chj-btn {
  display: inline-block;
  background: var(--chj-ink);
  color: var(--chj-ivory);
  font-family: var(--chj-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--chj-ink);
  padding: 0.95rem 1.15rem;
  cursor: pointer;
}

.chj-btn:hover,
.chj-btn:focus-visible {
  background: transparent;
  color: var(--chj-ink);
}

/* Header */

.chj-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 240, 0.94);
  border-bottom: 1px solid var(--chj-line);
  backdrop-filter: blur(12px);
}

.chj-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.4rem;
}

.chj-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--chj-ink);
  text-decoration: none;
}

.chj-mark {
  display: block;
  flex: none;
}

.chj-brand__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.05;
  text-transform: uppercase;
}

.chj-brand__sub {
  display: block;
  margin-top: 0.18rem;
  color: var(--chj-muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo-link img,
.custom-logo {
  display: block;
  width: auto;
  max-height: 64px;
}

.chj-brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.chj-footer .chj-brand__mark {
  width: 56px;
  height: 56px;
}

.chj-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  color: var(--chj-ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  cursor: pointer;
}

.chj-nav-toggle__icon {
  display: inline-block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.chj-menu {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chj-menu a {
  color: var(--chj-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.chj-meta .chj-kicker {
  margin: 0 0.75rem 0 0;
}

.chj-menu .current-menu-item > a,
.chj-menu .current-menu-ancestor > a,
.chj-menu a:hover {
  box-shadow: inset 0 -1px 0 var(--chj-ink);
}

.chj-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid var(--chj-line);
}

.chj-search input {
  width: 8.5rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35rem 0;
}

.chj-search input:focus {
  outline: none;
}

.chj-search input::placeholder {
  color: var(--chj-muted);
}

.chj-search button {
  display: flex;
  background: transparent;
  border: 0;
  color: var(--chj-ink);
  padding: 0.2rem;
  cursor: pointer;
}

.chj-crumb-wrap {
  padding-top: 1.15rem;
}

.chj-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--chj-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.chj-crumb a {
  color: var(--chj-muted);
  text-decoration: none;
}

.chj-crumb a:hover {
  color: var(--chj-ink);
}

/* Front */

.chj-intro {
  padding: 3.6rem 0 2.2rem;
}

.chj-intro h1 {
  max-width: 11em;
}

.chj-intro .chj-dek {
  max-width: 36rem;
}

.chj-intro h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.chj-dek,
.chj-lede {
  color: var(--chj-ink);
  font-family: var(--chj-serif);
  font-size: 1.2rem;
  line-height: 1.45;
}

.chj-desks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 4rem;
  padding-bottom: 1rem;
}

.chj-desk__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--chj-ink);
  margin-bottom: 1.15rem;
  padding-bottom: 0.4rem;
}

.chj-desk__head h2 {
  margin: 0;
  font-family: var(--chj-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chj-desk__head h2 a {
  text-decoration: none;
}

.chj-more {
  color: var(--chj-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.chj-more:hover {
  color: var(--chj-ink);
}

.chj-row + .chj-row {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--chj-line);
}

.chj-row__title {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.chj-row__title a,
.chj-card__title a {
  text-decoration: none;
}

.chj-row__title a:hover,
.chj-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.chj-row p,
.chj-card p {
  color: var(--chj-muted);
  font-family: var(--chj-serif);
}

.chj-desk__empty {
  color: var(--chj-muted);
  font-family: var(--chj-serif);
}

.chj-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem auto 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--chj-line);
}

.chj-band h2 {
  font-family: var(--chj-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chj-band p {
  margin: 0;
  color: var(--chj-muted);
}

/* Lists and pages */

.chj-section {
  padding: 2.4rem 0 1rem;
}

.chj-page-head {
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

.chj-page-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.chj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.chj-card {
  border-top: 1px solid var(--chj-line);
  padding-top: 0.9rem;
}

.chj-card__media {
  display: block;
  margin-bottom: 0.85rem;
  background: var(--chj-ivory-deep);
}

.chj-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.chj-card__title {
  font-size: 1.3rem;
}

.chj-article {
  max-width: 42rem;
}

.chj-article--wide {
  max-width: none;
}

.chj-byline {
  color: var(--chj-muted);
  font-family: var(--chj-serif);
  font-style: italic;
}

.chj-figure {
  margin: 0 0 1.4rem;
}

.chj-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.chj-prose {
  font-family: var(--chj-serif);
  font-size: 1.12rem;
  line-height: 1.7;
}

.chj-prose h2,
.chj-prose h3 {
  margin-top: 1.6rem;
}

.chj-prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.chj-prose ul,
.chj-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.chj-prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--chj-ink);
  color: var(--chj-muted);
}

.chj-prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--chj-sans);
  font-size: 0.95rem;
}

.chj-prose th,
.chj-prose td {
  border-bottom: 1px solid var(--chj-line);
  padding: 0.55rem 0.4rem;
  text-align: left;
}

.chj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--chj-line);
}

.chj-tags a {
  display: inline-block;
  border: 1px solid var(--chj-line);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.chj-tags a:hover {
  border-color: var(--chj-ink);
}

.post-navigation {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--chj-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.post-navigation .nav-next a {
  text-align: right;
}

.chj-navpost__label {
  color: var(--chj-muted);
  font-family: var(--chj-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chj-navpost__title {
  font-family: var(--chj-serif);
}

.chj-related {
  margin-top: 2.5rem;
}

.chj-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--chj-ink);
  padding-bottom: 0.4rem;
}

.chj-section__head h2 {
  margin: 0;
  font-family: var(--chj-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chj-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3rem;
  align-items: start;
}

.chj-sidebar .widget {
  margin: 0 0 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--chj-line);
}

.chj-sidebar .widget-title {
  font-family: var(--chj-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chj-about__logo {
  margin-bottom: 1.4rem;
}

.chj-desks--index {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chj-desks--index a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--chj-ink);
  padding-top: 0.75rem;
  text-decoration: none;
}

.chj-desks--index span:last-child {
  font-family: var(--chj-serif);
  color: var(--chj-muted);
}

.chj-about__cta {
  margin-top: 1.8rem;
}

.chj-updated {
  color: var(--chj-muted);
  font-size: 0.85rem;
}

/* Contact */

.chj-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.7fr);
  gap: 3rem;
  align-items: start;
}

.chj-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chj-form input,
.chj-form textarea,
.chj-comments input[type="text"],
.chj-comments input[type="email"],
.chj-comments input[type="url"],
.chj-comments textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--chj-line);
  border-radius: 0;
  color: inherit;
  font: inherit;
  padding: 0.65rem 0;
}

.chj-form textarea,
.chj-comments textarea {
  resize: vertical;
}

.chj-form input:focus,
.chj-form textarea:focus,
.chj-comments input:focus,
.chj-comments textarea:focus {
  outline: none;
  border-bottom-color: var(--chj-ink);
}

.chj-form__note {
  color: var(--chj-muted);
  font-size: 0.88rem;
}

.chj-hp {
  position: absolute;
  left: -9999px;
}

.chj-notice {
  border: 1px solid var(--chj-line);
  background: var(--chj-ivory-deep);
  padding: 0.75rem 0.9rem;
}

.chj-notice--failed,
.chj-notice--missing,
.chj-notice--invalid {
  border-color: #8a3d32;
}

.chj-contact__aside {
  border-top: 1px solid var(--chj-ink);
  padding-top: 0.9rem;
}

.chj-contact__aside h2 {
  font-family: var(--chj-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chj-contact__aside a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Comments and pager */

.chj-comments {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--chj-line);
}

.chj-comments h2,
.chj-comments .comment-reply-title {
  font-family: var(--chj-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin-left: 1.2rem;
  padding: 0;
}

.comment-body {
  border-top: 1px solid var(--chj-line);
  padding: 0.9rem 0;
}

.comment-meta {
  font-size: 0.82rem;
  color: var(--chj-muted);
}

.comment-meta a {
  text-decoration: none;
}

.pagination {
  margin-top: 2rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 2.2rem;
  border: 1px solid var(--chj-line);
  padding: 0.35rem 0.55rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--chj-ink);
  background: var(--chj-ink);
  color: var(--chj-ivory);
}

.chj-pages {
  margin-top: 1rem;
}

.chj-empty {
  max-width: 36rem;
  padding: 2rem 0 1rem;
}

.chj-empty--404 h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.chj-empty .chj-search {
  max-width: 18rem;
  margin: 1rem 0 1.2rem;
}

.chj-empty .chj-search input {
  width: 100%;
}

/* Footer */

.chj-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--chj-ink);
  padding: 2.2rem 0 1.2rem;
}

.chj-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.chj-footer__brand p {
  max-width: 26rem;
  color: var(--chj-muted);
  font-family: var(--chj-serif);
}

.chj-footer h2 {
  margin: 0 0 0.7rem;
  font-family: var(--chj-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chj-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chj-footer-menu li + li {
  margin-top: 0.35rem;
}

.chj-footer-menu a {
  text-decoration: none;
}

.chj-footer-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.chj-footer__bar {
  margin-top: 2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--chj-line);
  color: var(--chj-muted);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .chj-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.85rem 0;
    min-height: 0;
  }

  .chj-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .chj-header__search {
    order: 3;
    flex: 1 1 100%;
  }

  .chj-search,
  .chj-search input {
    width: 100%;
  }

  .chj-nav {
    display: none;
    order: 4;
    flex: 1 1 100%;
    padding-bottom: 0.4rem;
  }

  .chj-nav.is-open {
    display: block;
  }

  .chj-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .chj-intro {
    padding-top: 2.2rem;
  }

  .chj-desks,
  .chj-desks--index,
  .chj-grid,
  .chj-contact,
  .chj-layout.has-sidebar,
  .chj-footer__grid,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next a {
    text-align: left;
  }

  .chj-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
