/*
Theme Name: Jhamly
Theme URI: https://www.jhamly.com/blog/
Author: Jhamly
Description: Marketing-site theme so /blog matches www.jhamly.com.
Version: 1.0.0
Text Domain: jhamly
*/

:root {
  --navy-900: #0f1226;
  --navy-800: #161a38;
  --navy-700: #1e2145;
  --violet: #7c6cff;
  --violet-deep: #5b4bd4;
  --amber: #f5b84c;
  --text-hi: #f4f3ff;
  --text-mid: #c6c4e8;
  --text-dim: #9b98c4;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.jhamly-body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

a {
  color: var(--amber);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--navy-900);
  padding: 8px 16px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(15, 18, 38, 0.8);
  border-bottom: 1px solid var(--card-border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.nav-brand img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-hi);
}

.nav-quiet {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.nav-cta {
  background: var(--violet-deep);
  color: var(--text-hi);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--violet);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 48px;
}

.blog-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 320px at 80% 20%, rgba(124, 108, 255, 0.2), transparent 70%);
}

.kicker {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-hero h1,
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 16px;
}

.lead,
.meta {
  color: var(--text-mid);
  max-width: 46ch;
}

.lead a {
  color: var(--amber);
}

.post-grid {
  list-style: none;
  display: grid;
  gap: 20px;
  padding: 24px 0 80px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}

.post-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.post-card h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.post-card h2 a {
  color: var(--text-hi);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--amber);
}

.post-card p:last-child {
  color: var(--text-mid);
}

.legal {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 80px;
}

.legal-hero {
  margin-bottom: 48px;
}

.legal-hero h1 {
  max-width: none;
}

.legal-body h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.legal-body h3 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
}

.legal-body p,
.legal-body li {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body p {
  margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 1.2em;
  display: grid;
  gap: 8px;
}

.legal-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 24px auto 8px;
  border: 1px solid var(--card-border);
}

.legal-body em {
  color: var(--text-dim);
}

.legal-body blockquote {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 16px;
  margin: 16px 0 20px;
  color: var(--text-hi);
}

.back {
  margin-top: 36px;
}

.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--card-border);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 32px;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-tag {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 260px;
}

.footer-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer-group ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-group a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-group a:hover {
  color: var(--text-hi);
}

.footer-legal {
  padding: 20px 0 28px;
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-legal p + p {
  margin-top: 8px;
}

.admin-bar .site-nav {
  top: 32px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
