/* Design tokens lifted verbatim from deepromallick.com so the portal and the
   portfolio read as one system. Values were read out of the live page's
   computed styles on 2026-07-27, not eyeballed. */

@import url("/fonts.css");

:root {
  --bg: #f6f4ee;
  --bg-2: #efece4;
  --surface: #ffffff;
  --surface-2: #faf9f5;
  --text: #14131a;
  --text-2: #3b3946;
  --muted: #6d6b78;
  --border: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.24);

  --accent: #5b3df5;
  --accent-2: #ff3d7f;
  --accent-3: #07c7a3;
  --accent-4: #ff8a3d;
  --ring: rgba(123, 99, 255, 0.45);
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-4));

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 40px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.12);

  --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
  --radius: 18px;
}

:root[data-theme="dark"] {
  --bg: #08070d;
  --bg-2: #0e0d17;
  --surface: #14131e;
  --surface-2: #100f19;
  --text: #f4f3fa;
  --text-2: #c6c4d4;
  --muted: #8d8b9d;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08070d;
    --bg-2: #0e0d17;
    --surface: #14131e;
    --surface-2: #100f19;
    --text: #f4f3fa;
    --text-2: #c6c4d4;
    --muted: #8d8b9d;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.24);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.6);
  }
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ---- site chrome ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.wordmark .dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.themetoggle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.themetoggle:hover { border-color: var(--border-strong); }
.themetoggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin: 0 0 0.6rem;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--muted); margin: 0; font-size: 1rem; max-width: 46ch; }

footer {
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
