/*
Theme Name: Gold365 Journal
Theme URI: https://gold365us.co.in/blog/
Author: Gold365 US
Description: Lightweight, minimal WordPress blog theme for Gold365 US.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: gold365-journal
*/

@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  src: url("https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format("woff2");
}

:root {
  --journal-black: #070707;
  --journal-ink: #1b1720;
  --journal-muted: #6f6876;
  --journal-paper: #ffffff;
  --journal-soft: #f7f4fa;
  --journal-purple: #5700ad;
  --journal-purple-bright: #8200ff;
  --journal-yellow: #fac316;
  --journal-line: #e8e0ee;
  --journal-shadow: 0 22px 55px rgba(31, 0, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--journal-paper);
  color: var(--journal-ink);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
}

.screen-reader-text,
.skip-link:not(:focus) {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.skip-link:focus {
  background: #ffffff;
  color: #000000;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  z-index: 99999;
}

.journal-shell {
  margin: 0 auto;
  max-width: 1180px;
  width: calc(100% - 32px);
}

.site-header {
  background:
    radial-gradient(circle at 12% 10%, rgba(250, 195, 22, 0.2), transparent 28%),
    linear-gradient(135deg, #050505 0%, #2d005b 55%, #7600e7 100%);
  color: #ffffff;
}

.header-row {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 90px;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: 190px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 15px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .nav-highlight {
  background: var(--journal-yellow);
  color: #111111;
  outline: 0;
}

.blog-hero {
  padding: clamp(46px, 7vw, 76px) 0;
}

.eyebrow {
  color: var(--journal-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.blog-hero h1,
.post-hero h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  max-width: 900px;
}

.blog-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.blog-hero p:not(.eyebrow),
.post-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 22px 0 0;
  max-width: 740px;
}

.journal-main {
  padding: 0 0 80px;
}

.post-card,
.article-card,
.empty-card {
  background: var(--journal-paper);
  border: 1px solid var(--journal-line);
  border-radius: 16px;
}

.blog-main {
  padding-top: clamp(42px, 6vw, 68px);
}

.blog-list-heading {
  margin-bottom: 24px;
}

.blog-list-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:hover {
  border-color: rgba(87, 0, 173, 0.35);
  transform: translateY(-3px);
}

.post-card-image {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 75% 20%, rgba(250, 195, 22, 0.6), transparent 25%),
    linear-gradient(135deg, #0a0a0a, #5b00b3);
  display: block;
  overflow: hidden;
}

.post-card-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-category {
  color: var(--journal-purple);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.post-meta {
  color: var(--journal-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  gap: 8px 14px;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover,
.post-card h3 a:focus-visible {
  color: var(--journal-purple);
}

.post-excerpt {
  color: var(--journal-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.post-card-footer {
  border-top: 1px solid var(--journal-line);
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.read-more {
  align-items: center;
  color: var(--journal-purple);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  margin-top: 0;
  text-decoration: none;
}

.entry-content table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border-bottom: 1px solid var(--journal-line);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: #f7f2fa;
  color: var(--journal-purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  background: #ffffff;
  border: 1px solid var(--journal-line);
  border-radius: 9px;
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.pagination .current,
.pagination a:hover {
  background: var(--journal-purple);
  color: #ffffff;
}

.post-hero {
  padding: 52px 0 74px;
}

.post-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 980px;
}

.article-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.article-card {
  min-width: 0;
  padding: clamp(24px, 5vw, 54px);
}

.entry-content {
  font-size: 1.02rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.2;
  margin: 1.8em 0 0.7em;
}

.entry-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.entry-content a {
  color: var(--journal-purple);
  font-weight: 700;
}

.entry-content blockquote {
  background: #f7f2fa;
  border-left: 5px solid var(--journal-yellow);
  margin: 28px 0;
  padding: 20px 24px;
}

.entry-content .wp-block-table {
  margin: 28px 0;
  overflow-x: auto;
}

.article-aside {
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.aside-card {
  background: #ffffff;
  border: 1px solid var(--journal-line);
  border-radius: 16px;
  padding: 22px;
}

.aside-card h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.aside-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-card a {
  color: var(--journal-purple);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.empty-card {
  padding: 42px;
  text-align: center;
}

.site-footer {
  background:
    radial-gradient(circle at 10% 18%, rgba(250, 195, 22, 0.16), transparent 25%),
    linear-gradient(135deg, #360069 0%, var(--journal-purple) 52%, #7b00ef 100%);
  color: #ffffff;
  padding: 42px 16px 46px;
}

.footer-wrap {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.footer-meta {
  align-self: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  order: 2;
  text-align: center;
  width: 100%;
}

.footer-brand {
  max-width: 460px;
  order: 1;
  text-align: left;
}

.footer-brand img {
  display: block;
  height: auto;
  margin-right: auto;
  max-width: 210px;
  width: min(68vw, 210px);
}

.footer-brand h2 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 18px 0 10px;
}

.site-footer p {
  margin: 0;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.65;
  max-width: 430px;
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 18px;
}

.social-icon {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 42%),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
  width: 42px;
}

.social-icon svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.social-icon-link {
  text-decoration: none;
}

.social-icon:hover,
.social-icon-link:hover {
  background: var(--journal-yellow);
  box-shadow: 0 14px 28px rgba(250, 195, 22, 0.28);
  color: #111111;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .article-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
}

@media (max-width: 680px) {
  .journal-shell {
    width: calc(100% - 28px);
  }

  .header-row {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    padding: 14px 0;
  }

  .site-brand img {
    width: 168px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 12px;
    padding: 8px 11px;
  }

  .posts-grid,
  .article-aside {
    grid-template-columns: 1fr;
  }

  .article-card {
    border-radius: 14px;
  }

  .site-footer {
    padding: 34px 16px 46px;
    text-align: left;
  }

  .footer-wrap {
    align-items: flex-start;
  }

  .footer-brand {
    max-width: 100%;
    text-align: left;
  }

  .footer-brand img {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-meta {
    align-self: center;
    text-align: center;
  }

  .footer-social {
    gap: 8px;
    justify-content: flex-start;
    margin-top: 14px;
  }

  .social-icon {
    height: 34px;
    width: 34px;
  }

  .social-icon svg {
    height: 16px;
    width: 16px;
  }
}

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