/* ============================================================
   patrickmkellyjr.com — professional + author hub
   Patrick M. Kelly Jr. · AI Security Advisor & Author
   Deliberately composed & light — the credible counterpart
   to the dark, intimate Acellea music site.
   ============================================================ */

:root {
  --paper:    #fbfbf9;
  --paper-2:  #f3f3ee;
  --card:     #ffffff;
  --ink:      #14181f;
  --ink-soft: #3a414c;
  --muted:    #6a7280;
  --line:     #e6e5df;
  --accent:   #0e7490;   /* trust teal */
  --accent-d: #155e75;
  --accent-l: #e0f2f7;
  --gold:     #c08a3e;   /* faint thread back to the music brand */
  --maxw:     1080px;
  --radius:   14px;
  --shadow:   0 10px 40px rgba(20,24,31,.08);
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif:    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--paper); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
p.lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }

/* buttons */
.btn { display:inline-flex; align-items:center; gap:9px; padding:12px 22px; border-radius:10px;
  font-weight:700; font-size:15px; cursor:pointer; transition:.16s ease; border:1px solid transparent; }
.btn--primary { background: var(--accent); color:#fff; }
.btn--primary:hover { background: var(--accent-d); color:#fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* nav */
header.nav { position: sticky; top:0; z-index:50; background: rgba(251,251,249,.85);
  backdrop-filter: blur(12px); border-bottom:1px solid var(--line); }
.nav__inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { font-weight:800; font-size:16px; letter-spacing:-.01em; color: var(--ink); }
.brand small { display:block; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-top:1px; }
.nav__links { display:flex; gap:26px; align-items:center; }
.nav__links a { font-size:14.5px; color: var(--ink-soft); font-weight:500; }
.nav__links a:hover { color: var(--accent); }
.nav__links a.music { color: var(--gold); font-weight:600; }
@media (max-width:780px){ .nav__links a:not(.btn):not(.music){ display:none; } }

/* hero */
.hero { padding: 76px 0 72px; border-bottom:1px solid var(--line); background:
  radial-gradient(680px 320px at 88% 0%, var(--accent-l), transparent 70%); }
.hero__grid { display:grid; grid-template-columns: 1.3fr .7fr; gap:48px; align-items:center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); }
.hero .role { margin-top:14px; font-size:19px; color: var(--accent-d); font-weight:600; }
.hero p.lead { margin-top:16px; }
.hero__cta { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.hero__links { margin-top:18px; display:flex; gap:18px; font-size:14px; }
.portrait { border-radius: var(--radius); box-shadow: var(--shadow); border:1px solid var(--line); }
@media (max-width:820px){ .hero__grid{ grid-template-columns:1fr; gap:30px; } .portrait{ max-width:320px; } }

/* generic */
.center { text-align:center; }
.center p.lead { margin-inline:auto; }

/* advisory cards */
.advisory { background: var(--paper-2); }
.tier-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:34px; }
@media (max-width:880px){ .tier-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .tier-grid{ grid-template-columns:1fr; } }
.tier { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding:24px; display:flex; flex-direction:column; position:relative; }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.tier__badge { position:absolute; top:-11px; left:24px; background: var(--accent); color:#fff; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:4px 10px; border-radius:999px; }
.tier h3 { font-size:18px; margin-bottom:4px; }
.tier .price { font-size:26px; font-weight:800; color: var(--ink); margin:6px 0 2px; }
.tier .price span { font-size:13px; font-weight:600; color: var(--muted); }
.tier .turn { font-size:12.5px; color: var(--accent-d); font-weight:600; margin-bottom:12px; }
.tier p { font-size:14px; color: var(--ink-soft); flex:1; }
.tier .btn { margin-top:18px; justify-content:center; }
.advisory__note { margin-top:24px; font-size:14px; color: var(--muted); text-align:center; }

/* books */
.book { display:grid; grid-template-columns: 150px 1fr; gap:26px; align-items:start;
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding:26px; margin-top:22px; }
.book__cover { width:150px; height:225px; border-radius:8px; box-shadow: var(--shadow); object-fit:cover;
  display:grid; place-items:center; text-align:center; padding:16px; color:#fff; font-weight:800; font-family:var(--serif); }
.book__cover.live { background: linear-gradient(150deg, #16323d, var(--accent-d)); }
.book__cover.soon { background: linear-gradient(150deg, #3a414c, #6a7280); }
.book h3 { font-size:21px; }
.book .sub { color: var(--muted); font-style:italic; margin:2px 0 10px; }
.book p { color: var(--ink-soft); font-size:15px; }
.book .pill { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:3px 10px; border-radius:999px; margin-bottom:8px; }
.pill--live { background: var(--accent-l); color: var(--accent-d); }
.pill--soon { background: #efeee8; color: var(--muted); }
.book .btn { margin-top:14px; }
@media (max-width:560px){ .book{ grid-template-columns:1fr; justify-items:center; text-align:center; } }

/* writing / blog teaser */
.posts { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:30px; }
@media (max-width:780px){ .posts{ grid-template-columns:1fr; } }
.post-card { display:block; background: var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px; transition:.16s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card .date { font-size:12px; color: var(--muted); letter-spacing:.04em; }
.post-card h3 { font-size:17px; margin:8px 0; color: var(--ink); }
.post-card p { font-size:14px; color: var(--ink-soft); }

/* newsletter */
.newsletter { background: var(--ink); color:#fff; border-radius:18px; padding:48px; text-align:center; margin-top:8px; }
.newsletter h2 { color:#fff; }
.newsletter p { color:#c4c9d2; max-width:52ch; margin:8px auto 0; }
.newsletter form { display:flex; gap:10px; max-width:460px; margin:24px auto 0; }
.newsletter input { flex:1; padding:13px 15px; border-radius:10px; border:1px solid #2c333e; background:#1b212b; color:#fff; font-size:15px; }
.newsletter input:focus { outline:none; border-color: var(--accent); }
.newsletter small { display:block; margin-top:12px; color:#8b93a1; }
@media (max-width:540px){ .newsletter{ padding:34px 22px; } .newsletter form{ flex-direction:column; } }

/* about */
.about__grid { display:grid; grid-template-columns: 1fr 300px; gap:42px; align-items:start; }
@media (max-width:820px){ .about__grid{ grid-template-columns:1fr; } }
.about p { color: var(--ink-soft); margin-bottom:14px; }
.facts { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding:22px; }
.facts h3 { font-size:14px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:12px; }
.facts li { list-style:none; padding:9px 0; border-bottom:1px solid var(--line); font-size:14px; }
.facts li:last-child { border-bottom:0; }
.facts li b { color: var(--ink); }

/* footer */
footer { background: var(--paper-2); border-top:1px solid var(--line); padding:48px 0 40px; }
.footer__grid { display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.footer__links { display:flex; gap:24px; flex-wrap:wrap; font-size:14px; }
.footer__links a { color: var(--ink-soft); }
.footer__note { margin-top:26px; font-size:12.5px; color: var(--muted); }
.footer__brand b { font-size:16px; color:var(--ink); }
.cross { color: var(--gold); font-weight:600; }
