/* ============================================================
   Unemployed Arts — design system.
   Single source of truth for every page on unemployedarts.com.
   Subpages link only this file; the homepage layers its
   scroll-specific CSS on top in an inline <style>.
   ============================================================ */

/* --- Self-hosted fonts (Bunny Fonts latin subsets, served from /fonts) --- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }

/* --- Tokens --- */
:root {
  --ink: #0a0a0f;
  --panel-bg: rgba(12, 12, 18, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --cream: #f5f0e8;
  --cream-90: rgba(245, 240, 232, 0.9);
  --cream-70: rgba(245, 240, 232, 0.7);
  --cream-60: rgba(245, 240, 232, 0.6);
  --cream-55: rgba(245, 240, 232, 0.55);
  --cream-50: rgba(245, 240, 232, 0.5);
  --cream-40: rgba(245, 240, 232, 0.4);
  --accent: #8fbf72;
  --accent-soft: rgba(143, 191, 114, 0.35);
  --act-server: #5a7388;
  --act-fire: #c84818;
  --act-roots: #5a8550;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--ink); }

body {
  /* faint three-act gradient: blue whisper -> warm middle -> green at footer */
  background:
    linear-gradient(to bottom,
      rgba(90, 115, 136, 0.05) 0%,
      rgba(10, 10, 15, 0) 30%,
      rgba(200, 72, 24, 0.04) 55%,
      rgba(10, 10, 15, 0) 80%,
      rgba(90, 133, 80, 0.05) 100%),
    var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Film grain, page-wide --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='1'/></svg>");
  background-size: 220px 220px;
}

/* --- Type & links --- */
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.2s, color 0.2s;
}
a:hover { border-bottom-color: var(--accent); }

/* --- Page scaffold (subpages) --- */
.page { max-width: 640px; margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem; }

.back {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--cream-55);
  font-size: 0.85rem;
  border-bottom: none;
}
.back:hover { color: var(--accent); }

.app-header { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.app-header .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #181826, #10101a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}
.app-header h1 { font-size: 2.1rem; }
.app-header .muted { margin: 3px 0 0; }

.lede { font-size: 1.02rem; line-height: 1.7; color: var(--cream-90); margin-bottom: 2rem; }
.muted, .panel p.muted, .doc p.muted { color: var(--cream-55); font-size: 0.92rem; }

/* --- Panel --- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.4rem;
}
.panel h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.panel p { font-size: 0.95rem; line-height: 1.65; color: var(--cream-90); margin-bottom: 0.9rem; }
.panel p:last-child { margin-bottom: 0; }
.panel .aside { font-size: 0.9rem; color: var(--cream-60); font-style: italic; }

.panel ul { list-style: none; }
.panel li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cream-90);
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.panel li:last-child { margin-bottom: 0; }
.panel li::before { content: '\2014'; position: absolute; left: 0; color: var(--accent); opacity: 0.7; }
.panel li strong { color: var(--cream); font-weight: 500; }

/* --- Buttons (download rows) --- */
.links { display: flex; gap: 10px; flex-wrap: wrap; }
.links a {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  padding: 9px 20px;
  border-radius: 8px;
  border-bottom: none;
  font-weight: 500;
  font-size: 0.88rem;
}
.links a:hover { background: #ffffff; }

.panel .note, p.note { font-size: 0.82rem; color: var(--cream-50); margin-top: 1rem; line-height: 1.6; }

/* --- Footer strip --- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: var(--cream-40);
}

/* --- Document variant (privacy pages) --- */
.doc h1 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--cream);
  margin: 2rem 0 0.6rem;
}
.doc p { font-size: 0.95rem; color: var(--cream-90); margin-bottom: 0.9rem; }
.doc ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.doc li { font-size: 0.95rem; color: var(--cream-90); margin-bottom: 0.4rem; }

@media (max-width: 480px) {
  .page { padding: 2.5rem 1.1rem 2rem; }
  .app-header .icon { width: 54px; height: 54px; font-size: 1.6rem; border-radius: 14px; }
  .app-header h1 { font-size: 1.7rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
