/* ---------------------------------------------------------------------------
   arsha.studio — Monokai-inspired theme
   Palette tokens live here; change them once to retheme the whole page.
--------------------------------------------------------------------------- */
:root {
  /* Monokai surfaces */
  --bg:        #272822;
  --bg-soft:   #2f302a;
  --panel:     #34352e;
  --line:      #3e3d32;

  /* Text */
  --fg:        #f8f8f2;
  --muted:     #a59f85; /* readable; lighter than Monokai's true comment grey */
  --comment:   #75715e;

  /* Monokai accents */
  --pink:      #f92672;
  --green:     #a6e22e;
  --cyan:      #66d9ef;
  --orange:    #fd971f;
  --yellow:    #e6db74;
  --purple:    #ae81ff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 720px;
  --pad:  clamp(1.5rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  color: var(--fg);
  background-color: var(--bg);
  /* Two faint accent glows for depth — kept very low alpha to stay minimal. */
  background-image:
    radial-gradient(60rem 60rem at 85% -10%, rgba(249, 38, 114, 0.10), transparent 60%),
    radial-gradient(55rem 55rem at -10% 110%, rgba(102, 217, 239, 0.08), transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* --------------------------------- layout --------------------------------- */
.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* --------------------------------- header --------------------------------- */
.site-header {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}

.brand-dot { color: var(--pink); }

.brand:hover { color: var(--green); }
.brand:hover .brand-dot { color: var(--green); }

/* ---------------------------------- hero ---------------------------------- */
.hero {
  align-self: center;
  max-width: var(--maxw);
  padding-block: clamp(2rem, 8vh, 5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--comment);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.headline {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
}

.t-fn { color: var(--green); }   /* function-name green */
.t-kw { color: var(--pink); }    /* keyword pink */

/* blinking block caret after the headline */
.caret {
  display: inline-block;
  width: 0.62em;
  height: 0.9em;
  margin-left: 0.12em;
  translate: 0 0.06em;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* -------------------------------- actions --------------------------------- */
.actions {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.btn {
  --btn-accent: var(--green);
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--btn-accent);
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--btn-accent);
  border-radius: 8px;
  background: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, translate 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg);
  background: var(--btn-accent);
  translate: 0 -2px;
}

/* --------------------------------- footer --------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--comment);
}

.site-footer p { margin: 0; }

.footer-meta { color: var(--muted); }

/* ------------------------------ focus states ------------------------------ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------- reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .caret { opacity: 1; }
}
