/* James Makes Stuff – single stylesheet, no build step, no external requests. */

:root {
  color-scheme: dark light;
  --bg: #0c0c1e;
  --surface: #15152d;
  --surface-2: #1d1d3a;
  --border: #2c2c52;
  --text: #f4f1ea;
  --muted: #a9b2c7;
  --accent-text: #e6b95a; /* gold: eyebrow, status, icons */
  --indigo: #9aa8ff;
  --btn-bg: #e6b95a;
  --btn-ink: #1a1400;
  --ring: #c7d2fe;
  --glow-1: #26265f66;
  --glow-2: #4a256b33;
  --shadow: 0 12px 34px #0006;
  --font-display: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius: 16px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f2e7;
    --surface: #fffdf7;
    --surface-2: #efe6d2;
    --border: #d8cba9;
    --text: #2a2418;
    --muted: #5f5340;
    --accent-text: #85570a;
    --indigo: #4b3fb5;
    --btn-bg: #2a2170;
    --btn-ink: #ffffff;
    --ring: #3b2a8f;
    --glow-1: #ffffffcc;
    --glow-2: #e6d3a066;
    --shadow: 0 12px 30px #3a2d1022;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -8%, var(--glow-1), transparent 70%),
    radial-gradient(800px 420px at 105% 8%, var(--glow-2), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font: 700 19px/1 var(--font-display); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 12vw, 132px) 0 clamp(40px, 8vw, 88px); }
.hero-wrap { position: relative; }
.hero-art { position: absolute; right: -8px; top: 50%; width: min(36vw, 400px); height: auto; transform: translateY(-50%) rotate(8deg); color: var(--accent-text); opacity: .16; fill: none; stroke: currentColor; stroke-width: .35; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
@media (max-width: 760px) { .hero-art { display: none; } }
.eyebrow { margin: 0 0 14px; color: var(--accent-text); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
h1 { margin: 0; font: 700 clamp(38px, 8vw, 72px)/1.05 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.lead { max-width: 34em; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 700 16px var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-disabled { color: var(--muted); border: 1px dashed var(--border); background: transparent; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 8vw, 84px) 0; }
.section-alt { background: color-mix(in srgb, var(--surface) 70%, transparent); border-block: 1px solid var(--border); }
.section-title { margin: 0 0 28px; font: 700 clamp(28px, 4.5vw, 40px)/1.15 var(--font-display); }

/* ---------- app cards ---------- */
.app-grid { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1.7fr 1fr; align-items: stretch; } }
.app-grid > li { display: flex; }

.card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 32px); box-shadow: var(--shadow); }
.app-card { display: flex; flex-direction: column; gap: 18px; transition: transform .2s, border-color .2s; }
.app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-text) 55%, var(--border)); }
.app-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-head > div { flex: 1; min-width: 140px; }
.app-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: var(--accent-text); background: var(--surface-2); border: 1px solid var(--border); }
.app-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-title { margin: 0; font: 700 26px/1.15 var(--font-display); }
.app-meta { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent-text) 50%, var(--border)); color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.app-desc { margin: 0; color: var(--muted); }
.features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features svg { flex: none; margin-top: 4px; fill: none; stroke: var(--accent-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.features strong { color: var(--text); }
.card-actions { margin: auto 0 0; padding-top: 6px; }

.next-card { display: flex; flex-direction: column; justify-content: center; gap: 10px; background: transparent; border-style: dashed; box-shadow: none; }

/* ---------- about ---------- */
.about { max-width: 42em; }
.about p { margin: 0 0 16px; color: var(--muted); font-size: 19px; }
.about p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* ---------- small screens ---------- */
.brand-name { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-name { font-size: 17px; }
  .nav a { padding: 10px 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand-name { font-size: 15px; }
  .nav a { padding: 10px 8px; }
}
@media (max-width: 340px) {
  .brand-name { font-size: 14px; }
  .nav a { padding: 10px 6px; }
  .header-inner { gap: 8px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn-primary:hover, .app-card:hover { transform: none; }
}
