/*
Theme Name: Jay Journal
Author: Jay Wang
Description: A clean, responsive personal journal theme.
Version: 1.3.0
Text Domain: jay-journal
*/

:root {
  --ink: #f4f4ed;
  --muted: #93978d;
  --line: #292c24;
  --paper: #070807;
  --wash: #0d0f0c;
  --accent: #f4ff2f;
  --accent-dark: #dce71d;
  --max: 1120px;
}

@font-face {
  font-family: "Orbitron Local";
  src: url("assets/fonts/Orbitron-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Orbitron Local", "DIN Alternate", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; border-radius: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(244, 255, 47, .22);
  color: #fff;
  background: rgba(7, 7, 7, .92);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: .01em; }
.brand-mark { width: 36px; height: 36px; display: block; }
.brand-mark img { display: block; width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: .94rem; }

.hero {
  overflow: hidden;
  color: #fff;
  background-color: #050505;
  background-image:
    linear-gradient(rgba(244, 255, 47, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 255, 47, .045) 1px, transparent 1px),
    radial-gradient(circle at 80% 46%, rgba(244, 255, 47, .11), transparent 30%);
  background-size: 42px 42px, 42px 42px, auto;
}
.hero-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 88px 0 92px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .78rem; font-weight: 680; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 7vw, 5.9rem); line-height: .99; letter-spacing: -.065em; }
.hero p { max-width: 620px; margin: 30px 0 0; color: #aaa; font-size: clamp(1.05rem, 2.2vw, 1.24rem); line-height: 1.75; }
.hero-logo { width: 270px; height: 270px; border-radius: 44px; box-shadow: 0 0 58px rgba(244, 255, 47, .10); }

.main { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 76px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.15; letter-spacing: -.035em; }
.section-heading span { color: var(--muted); font-size: .9rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; min-height: 270px; flex-direction: column; justify-content: space-between; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: #0b0d0a; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(244, 255, 47, .65); box-shadow: 0 18px 46px rgba(244, 255, 47, .06); }
.post-meta { color: var(--muted); font-size: .82rem; letter-spacing: .02em; }
.post-card h3 { margin: 20px 0 12px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.03em; }
.post-card p { margin: 0; color: var(--muted); }
.read-more { margin-top: 28px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.pagination { margin-top: 46px; }

.article { max-width: 760px; margin: 0 auto; padding: 80px 0 120px; }
.article-header { margin-bottom: 48px; }
.article-title { margin: 12px 0 18px; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.08; letter-spacing: -.055em; }
.article-content h2, .article-content h3 { margin: 2.2em 0 .7em; line-height: 1.3; letter-spacing: -.025em; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); color: #43506a; }
.article-content code { padding: .15em .36em; border-radius: 5px; color: var(--accent); background: var(--wash); font-size: .9em; }
.article-content pre { overflow-x: auto; padding: 22px; border: 1px solid var(--line); border-radius: 14px; color: #f3f5e7; background: #0b0d0a; }

.site-footer { border-top: 1px solid var(--line); background: var(--wash); }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 38px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
.footer-inner a { color: var(--accent); }
.hero .hero-motto { color: var(--accent); margin-top: 24px; font-size: 1rem; letter-spacing: .055em; }
.empty { padding: 54px; border: 1px dashed #cbd5e1; border-radius: 20px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .site-nav { display: none; }
  .hero-inner { padding: 64px 0 62px; display: block; }
  .hero h1 { letter-spacing: -.05em; }
  .hero-logo { width: 116px; height: 116px; margin-top: 44px; border-radius: 24px; }
  .main { padding: 56px 0 80px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 235px; padding: 27px; }
  .footer-inner { flex-direction: column; }
}
