/* Make Art Not War — site styles */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-normal.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #14110f;
  --bg-2: #1c1815;
  --bg-3: #241f1b;
  --ink: #f3ece2;
  --ink-2: #c9bfb2;
  --ink-3: #8f8679;
  --line: rgba(243, 236, 226, 0.12);
  --accent: #d08a6a;
  --accent-2: #e2b48a;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 em, h2 em, .wordmark em {
  font-style: italic;
  font-weight: 350;
  color: var(--accent-2);
}

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.125rem; letter-spacing: 0.01em;
  text-decoration: none; font-variation-settings: "opsz" 24;
}
.mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 0.875rem; font-weight: 400; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 120px var(--gutter) clamp(96px, 14vh, 160px);
  overflow: hidden; isolation: isolate;
}
.field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  display: block;
}
.hero::before {
  /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.09; mix-blend-mode: soft-light;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,17,15,0), var(--bg));
}
.hero-inner { max-width: 880px; width: 100%; margin: 0 auto; }
.eyebrow {
  margin: 0 0 20px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}
.hero .eyebrow { color: var(--ink-2); }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 5.1rem);
  line-height: 1.02;
  margin-bottom: 28px;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55;
  color: var(--ink-2); max-width: 44ch; margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.005em;
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.button:hover { background: var(--accent-2); transform: translateY(-1px); }
.button-lg { padding: 16px 28px; font-size: 1.0625rem; }
.link-arrow {
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 400;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--ink); border-color: var(--accent); }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 32px; width: 1px; height: 56px; overflow: hidden;
  background: var(--line);
}
.scroll-hint span {
  position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--accent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }

.prose { color: var(--ink-2); max-width: 64ch; }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 500; }
.two-col {
  max-width: none; display: grid; gap: 24px 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.two-col p { margin: 0; }

/* Cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border: 1px solid var(--line);
}
.card {
  background: var(--bg); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .5s var(--ease);
}
.card:hover { background: var(--bg-2); }
.card-index {
  font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem;
  font-variation-settings: "opsz" 24;
}
.card h3 { font-size: 1.6rem; font-variation-settings: "opsz" 48, "SOFT" 30; }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.aside {
  margin: 28px 0 0; color: var(--ink-3); font-size: 0.9rem; max-width: 70ch;
}

/* Principles */
.principles-list {
  margin: 0; display: grid; gap: 40px 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.principles-list div { padding-top: 20px; border-top: 1px solid var(--line); }
.principles-list dt {
  font-family: var(--serif); font-size: 1.4rem; margin-bottom: 10px;
  font-variation-settings: "opsz" 48, "SOFT" 30;
}
.principles-list dd { margin: 0; color: var(--ink-2); }

/* Contact */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact .prose { margin: 20px auto 36px; }
.contact .button { max-width: 100%; word-break: break-all; }
.small { color: var(--ink-3); font-size: 0.875rem; margin: 20px 0 0; }

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9rem;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.foot-brand strong { color: var(--ink); font-weight: 500; }
.foot-brand .mark { margin-top: 3px; }
.foot-nav { display: flex; gap: 24px; }
.foot-nav a { text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { margin: 28px 0 0; color: var(--ink-3); font-size: 0.8125rem; max-width: 70ch; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 80px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 12px; }
.legal .updated { color: var(--ink-3); font-size: 0.875rem; margin: 0 0 48px; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 12px; font-variation-settings: "opsz" 48, "SOFT" 30; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal .top { position: static; margin: 0 auto; max-width: 760px; padding-left: 0; padding-right: 0; }
.legal-wrap .top { position: absolute; }

/* Reveal on scroll (progressive, no layout shift when JS is off) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Utility (CSP forbids inline style attributes) */
.defs { position: absolute; }
.legal-404 { min-height: 70vh; }
.updated-404 { margin-top: 20px; }
