/* ===========================================================
   jprnunez_ai — dark, professional theme
   Accent orange #ff6719 · near-black surfaces · light text
   =========================================================== */

:root {
  --orange: #ff6719;
  --orange-2: #ff8a4c;
  --orange-dark: #e2530a;
  --orange-soft: rgba(255, 103, 25, 0.12);
  --bg: #0a0a0c;
  --bg-2: #0f0f13;
  --surface: #141418;
  --surface-2: #1a1a20;
  --line: #26262e;
  --line-soft: #1f1f26;
  --text: #f4f4f6;
  --muted: #a3a3ad;
  --muted-2: #74747f;
  --radius: 16px;
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(255,103,25,.25), 0 14px 50px rgba(255,103,25,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* subtle ambient glow behind the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(255,103,25,.16), transparent 60%),
    radial-gradient(700px 500px at -5% 8%, rgba(255,138,76,.08), transparent 55%);
}

a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.02em; cursor: pointer;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(255,103,25,.4);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; cursor: pointer; transition: color .15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(255,103,25,.35);
}
.nav-cta:hover { filter: brightness(1.05); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 24px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #fff; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 28px rgba(255,103,25,.32);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange-2); background: var(--orange-soft); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-soft); color: var(--orange-2);
  font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid rgba(255,103,25,.22);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 800; max-width: 15ch;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--orange) 10%, var(--orange-2) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 50ch; margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* image frame (used in hero + about) */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.media .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgba(255,103,25,.22), rgba(255,138,76,.06)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
  color: var(--muted); font-size: 14px; padding: 20px;
}
.media .ph .ph-mark { font-size: 46px; font-weight: 900; color: rgba(255,255,255,.9); margin-bottom: 10px; letter-spacing: -.02em; }
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media { aspect-ratio: 4/5; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.025em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Credibility strip ---------- */
.strip { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.strip .stat { text-align: center; }
.strip .stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.strip .stat span { color: var(--muted-2); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,103,25,.4); background: var(--surface-2); }
.card .icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--orange-soft);
  border: 1px solid rgba(255,103,25,.25);
  display: grid; place-items: center; font-size: 23px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { aspect-ratio: 1/1; }
.about-grid h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; margin-bottom: 18px; }
.about-grid p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about-grid p strong { color: var(--text); font-weight: 600; }

/* ---------- Post cover (shared) ---------- */
.cover {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,103,25,.28), rgba(20,20,24,.4));
  border: 1px solid var(--line);
}
.cover .cover-mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40px; font-weight: 900; color: rgba(255,255,255,.85); letter-spacing: -.02em;
}
.cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Featured (home) ---------- */
.featured-card {
  display: flex; flex-direction: column; height: 100%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; border-color: rgba(255,103,25,.4); background: var(--surface-2); }
.featured-card .body { padding: 18px 12px 10px; display: flex; flex-direction: column; flex: 1; }
.featured-card .meta { color: var(--muted-2); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.featured-card h3 { font-size: 20px; margin: 10px 0; color: var(--text); letter-spacing: -0.01em; }
.featured-card p { color: var(--muted); font-size: 15px; flex: 1; }
.featured-card .readmore { color: var(--orange-2); font-weight: 600; font-size: 15px; margin-top: 14px; }

/* ---------- Post list (blog index) ---------- */
.post-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.post-row:hover { text-decoration: none; }
.post-row .cover { aspect-ratio: 16/10; }
.post-row .meta { color: var(--muted-2); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-row h3 { font-size: 25px; letter-spacing: -0.02em; margin: 8px 0 10px; color: var(--text); transition: color .15s; }
.post-row:hover h3 { color: var(--orange-2); }
.post-row p { color: var(--muted); font-size: 16px; max-width: 64ch; }
.post-row .readmore { color: var(--orange-2); font-weight: 600; font-size: 15px; margin-top: 12px; display: inline-block; }

/* ---------- Article ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 56px 24px 40px; }
.article .back { font-weight: 600; font-size: 15px; display: inline-block; margin-bottom: 26px; cursor: pointer; color: var(--muted); }
.article .back:hover { color: var(--orange-2); text-decoration: none; }
.article .a-meta { color: var(--muted-2); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.article h1.a-title { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin: 12px 0 26px; }
.article .a-cover { margin: 0 0 34px; }
.article-body { font-size: 18px; line-height: 1.78; color: #d6d6dd; }
.article-body h1 { font-size: 30px; margin: 40px 0 14px; letter-spacing: -0.02em; color: var(--text); }
.article-body h2 { font-size: 25px; margin: 36px 0 12px; letter-spacing: -0.02em; color: var(--text); }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--orange); padding: 6px 0 6px 22px; margin: 24px 0; color: var(--muted); font-style: italic; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 0.88em; }
.article-body a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #16161b 0%, #101013 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 64px 40px; text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 240px at 50% -20%, rgba(255,103,25,.28), transparent 70%);
}
.cta-band h2 { position: relative; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.cta-band p { position: relative; color: var(--muted); font-size: 18px; max-width: 50ch; margin: 14px auto 28px; }

/* ---------- Links / resources ---------- */
.link-list { display: grid; gap: 14px; max-width: 700px; }
.link-item {
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
  background: var(--surface); color: var(--text); transition: border-color .15s, background .15s, transform .15s;
}
.link-item:hover { text-decoration: none; border-color: rgba(255,103,25,.45); background: var(--surface-2); transform: translateY(-2px); }
.link-item .li-icon { font-size: 24px; width: 40px; text-align: center; }
.link-item .li-text strong { display: block; font-size: 16.5px; }
.link-item .li-text span { color: var(--muted); font-size: 14.5px; }
.link-item .li-arrow { margin-left: auto; color: var(--orange-2); font-weight: 700; font-size: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .brand { font-size: 17px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14.5px; cursor: pointer; }
.footer-links a:hover { color: var(--orange-2); text-decoration: none; }
.footer .copy { color: var(--muted-2); font-size: 13.5px; width: 100%; }

.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 360px; aspect-ratio: 16/10; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-media { max-width: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 14px; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 50px; }
  .cta-band { padding: 44px 24px; }
}
