/* ============================================================
   Sarada Limited — sarada.io
   Plain CSS, mobile-first. Edit the variables below to retheme.
   ============================================================ */

:root {
  /* Brand palette */
  --indigo-deep: #2A2166;   /* primary dark */
  --indigo: #4B37A8;        /* primary */
  --indigo-soft: #7A72B0;   /* muted indigo — decorative / large text only */
  --gold: #F2B84B;          /* accent — use sparingly */

  --bg: #FAF9F6;            /* off-white page background */
  --surface: #FFFFFF;

  --text: #262047;          /* body ink (near-indigo) */
  --text-muted: #5C5494;    /* secondary text (meets AA on off-white) */
  --border: rgba(42, 33, 102, 0.13);

  --radius: 14px;
  --container: 68rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--indigo);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* Announced by screen readers, invisible on screen. Used to tell non-sighted
   users that a link opens in a new tab — the ↗ arrow only conveys that visually. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link (visible on keyboard focus only) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--indigo-deep);
  color: #fff;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  padding-block: 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--indigo-deep);
}

.site-header nav {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.25rem);
}

.site-header nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--indigo-deep);
  border-bottom-color: var(--gold);
}

/* ---------- Sections ---------- */
section { padding-block: clamp(4rem, 9vw, 6.5rem); }

h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--indigo-deep);
}

.section-lede {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(5rem, 12vw, 9rem);
  /* Faint indigo wash, top-right — the only gradient flourish */
  background: radial-gradient(55rem 28rem at 85% -20%, rgba(75, 55, 168, 0.09), transparent 65%);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  max-width: 18ch;
  color: var(--indigo-deep);
}

.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
}

.gold-rule {
  margin-top: 2.5rem;
  width: 3.5rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(242, 184, 75, 0.35));
}

/* ---------- Portfolio cards ---------- */
.cards {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(75, 55, 168, 0.35);
  box-shadow: 0 12px 28px -18px rgba(42, 33, 102, 0.35);
}

.card-name { font-size: 1.15rem; color: var(--indigo-deep); }

.card-desc {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.card-domain {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-domain .arrow {
  color: var(--indigo-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

a.card:hover .arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}

/* Not-yet-launched variant */
.card--soon { opacity: 0.75; }
.card--soon .card-domain { color: var(--text-muted); font-style: italic; }

/* ---------- About ---------- */
.about-body {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.name-note {
  margin-top: 1.5rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

/* ---------- Contact / Footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem;
  background: linear-gradient(135deg, var(--indigo-deep), #1E1749);
  color: #EDEBFA;
}

.footer-contact h2 { color: #fff; }

.footer-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 500;
  color: #EDEBFA;
  border-bottom: 2px solid rgba(242, 184, 75, 0.5);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-email:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

.footer-email:focus-visible { outline-color: var(--gold); }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(237, 235, 250, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: #B9B3DC;
}

.footer-bottom .copyright { margin-left: auto; }

/* ---------- Reveal-on-scroll (JS adds .js to <html>) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.6s ease var(--d, 0s);
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card, .card-domain .arrow { transition: none; }
}
