/* ============================================================
   Monit Sharma — shared design system
   Type:  Newsreader (display serif) · IBM Plex Sans · IBM Plex Mono
   Color: warm near-monochrome + quantum-violet accent
   ============================================================ */

:root {
  /* surfaces */
  --paper:    oklch(0.985 0.004 95);
  --paper-2:  oklch(0.965 0.005 95);
  --paper-3:  oklch(0.945 0.006 95);
  --ink:      oklch(0.205 0.012 280);
  --ink-2:    oklch(0.42 0.012 280);
  --ink-3:    oklch(0.58 0.010 280);
  --line:     oklch(0.885 0.006 280);
  --line-2:   oklch(0.92 0.005 280);

  /* accent */
  --accent-h: 285;
  --accent:    oklch(0.525 0.16 var(--accent-h));
  --accent-2:  oklch(0.525 0.16 var(--accent-h));
  --accent-soft: oklch(0.94 0.035 var(--accent-h));
  --accent-ink:  oklch(0.42 0.15 var(--accent-h));

  /* type */
  --serif: "Newsreader", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* metrics */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --density: 1;
}

[data-theme="dark"] {
  --paper:    oklch(0.185 0.012 280);
  --paper-2:  oklch(0.225 0.013 280);
  --paper-3:  oklch(0.255 0.014 280);
  --ink:      oklch(0.95 0.006 95);
  --ink-2:    oklch(0.78 0.008 280);
  --ink-3:    oklch(0.62 0.010 280);
  --line:     oklch(0.32 0.014 280);
  --line-2:   oklch(0.28 0.013 280);
  --accent:    oklch(0.70 0.15 var(--accent-h));
  --accent-2:  oklch(0.70 0.15 var(--accent-h));
  --accent-soft: oklch(0.30 0.05 var(--accent-h));
  --accent-ink:  oklch(0.80 0.13 var(--accent-h));
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: white; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: calc(80px * var(--density)); }
.section + .section { border-top: 1px solid var(--line-2); }

/* section label: 01 — Title */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow .num { color: var(--accent); font-weight: 500; }
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- type scale ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h-sec {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* site switch */
.siteswitch { display: flex; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.siteswitch a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; color: var(--ink-3); white-space: nowrap;
  transition: color .2s, background .2s;
}
.siteswitch a.active { background: var(--ink); color: var(--paper); }
.siteswitch a:not(.active):hover { color: var(--ink); }

.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a {
  font-size: 13.5px; color: var(--ink-2); position: relative; transition: color .2s;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--accent); transition: width .25s;
}
.navlinks a:hover::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translate(2px,-2px); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 56px; background: var(--paper-2); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.foot-soc { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-soc a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--ink-2); transition: color .2s; }
.foot-soc a:hover { color: var(--accent); }
.foot-fine { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ---------- utilities ---------- */
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
  background: var(--paper); white-space: nowrap;
}
.tag-accent { color: var(--accent-ink); border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); background: var(--accent-soft); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 720px) {
  .navlinks { display: none; }
}
