/* ProgJ LLC site. Tokens come from ProgJ-Design-System (colors_and_type.css, Service One-Pager): ink, cream, gold, hunter
   green, royal purple. Fonts are self-hosted: no request leaves for a third party. */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("assets/fonts/orbitron-900.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  color-scheme: dark light;
  --ink: #0a0a0a;
  --cream: #f4f1eb;
  --gold: #d4af37;
  --green: #013220;
  --purple: #3d1a54;

  --bg: var(--ink);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1eb;
  --text-muted: rgba(244, 241, 235, 0.74);
  --accent: #d4af37;          /* gold: text and borders on dark */
  --accent-strong: #e0be4d;
  --on-accent: #013220;       /* hunter green on a gold button */
  --glow: rgba(212, 175, 55, 0.14);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --max: 1060px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f1eb;
    --surface: #fdfcfa;
    --surface-hover: #ffffff;
    --line: rgba(1, 50, 32, 0.16);
    --text: #0e1b15;
    --text-muted: #435048;
    --accent: #7a5f0a;        /* darkened gold so text passes contrast on cream */
    --accent-strong: #5f4a06;
    --on-accent: #f4f1eb;
    --glow: rgba(212, 175, 55, 0.2);
    --shadow: 0 18px 40px -22px rgba(1, 50, 32, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 20; font-weight: 700; }
.skip:focus { left: 8px; }

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

/* Heritage stripe: green | gold | purple | gold | green */
.stripe { height: 4px; background: linear-gradient(90deg, var(--green) 0 28%, var(--gold) 28% 35%, var(--purple) 35% 65%, var(--gold) 65% 72%, var(--green) 72% 100%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: "Orbitron", var(--font-sans); font-weight: 900; font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; }
.logo .prog { background: linear-gradient(135deg, #9b5de5, #f15bb5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .j { font-size: 1.25em; background: linear-gradient(135deg, #fee440, #00bbf9); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: light) {
  .logo .prog { background: none; color: #7b2fbe; }
  .logo .j { background: none; color: #b88a00; }
}
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-hover); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform 200ms, box-shadow 200ms, background 200ms, border-color 200ms; }
.btn-primary { background: var(--gold); color: #013220; }
.btn-primary:hover { background: #e0be4d; color: #013220; transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; padding: 88px 0 80px; background:
  radial-gradient(ellipse 60% 70% at 85% 0%, var(--glow), transparent 70%),
  radial-gradient(ellipse 50% 60% at 0% 100%, rgba(61, 26, 84, 0.28), transparent 70%); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h1, h2 { font-family: var(--font-serif); letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 56ch; margin: 22px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 76px 0; }
.section-head { margin-bottom: 36px; max-width: 60ch; }
.section-head p { color: var(--text-muted); margin-top: 12px; }

/* Work cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 250ms, border-color 250ms, box-shadow 250ms, background 250ms; }
.card:hover { background: var(--surface-hover); border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: var(--shadow); transform: translateY(-2px); }
.work-shot { aspect-ratio: 1312 / 634; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--surface); }
.work-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.work-body p { color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); }
.visit { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.visit:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Services */
.service { padding: 24px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--text-muted); }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: 0.5; }

/* Contact */
.contact-card { padding: 40px; text-align: center; background: linear-gradient(180deg, var(--surface), transparent), var(--surface); }
.contact-card p { color: var(--text-muted); margin: 12px auto 24px; max-width: 48ch; }
.contact-card .mail { font-family: var(--font-serif); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--text-muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 52px; }
  .wrap { padding: 0 20px; }
  .contact-card { padding: 28px 20px; }
}
@media (max-width: 420px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .logo { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn-primary:hover { transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.prose { max-width: 68ch; padding: 64px 0 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: none; margin-bottom: 8px; }
.prose h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-muted); margin-top: 10px; }
.prose ul { padding-left: 20px; }
.contact-card .or { margin: 14px auto; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
