/* ============================================================
   VIGNESWARAN R — Portfolio
   Neo-brutalist editorial system (adapted from Figma reference)
   ============================================================ */

:root {
  --paper: #FEFFF0;
  --ink: #0C0C0C;
  --ink-soft: #1b1b1b;
  --hi: #FFDC58;      /* yellow highlight */
  --blue: #BAE6FF;    /* sky button */
  --pink: #F3ABCB;
  --coral: #FF6258;
  --accent: #BAE6FF;  /* tweakable */
  --muted: #6a6a63;
  --line: #0C0C0C;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --shadow-hard: 6px 6px 0 0 rgba(0,0,0,1);
  --shadow-soft: 6px 6px 0 0 rgba(0,0,0,0.22);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* dotted-grid paper texture, very subtle */
.paper-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: var(--doodle-grid, 1);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }

/* ---------- type ---------- */
h1, h2, h3, h4, p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-head {
  font-weight: 500;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.mark {
  background: var(--hi);
  box-shadow: 0 0 0 2px var(--hi);
  padding: 0 2px;
}

/* black outline + hard shadow box */
.box {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

/* pill button */
.btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: 20px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--ink);
  border-radius: 100px;
  padding: 18px 38px;
  box-shadow: inset 0 0 0 6px var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: inset 0 0 0 6px var(--ink), 6px 6px 0 0 rgba(0,0,0,0.85); }
.btn:active { transform: translate(0,0); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
  padding: 16px 30px;
  font-size: 18px;
}
.btn-solid:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 0 rgba(0,0,0,0.85); }

/* ---------- sections ---------- */
section { position: relative; z-index: 1; }

.rule {
  height: 0; border: none;
  border-top: 3px solid var(--ink);
  margin: 0;
}

/* scroll reveal — only hides when JS is active (progressive enhancement / SEO-safe) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* doodle visibility */
.doodle { opacity: var(--doodle-on, 1); transition: opacity .3s; }

.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  border: 2px solid var(--ink);
  padding: 5px 11px;
  border-radius: 100px;
  background: #fff;
  white-space: nowrap;
}
