/* prageeth.dev: colours and type match the AI twin at ai.prageeth.dev */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: linear-gradient(180deg, #dde3fb 0%, #e7eaf8 40%, #ebeff5 100%);
  --page-end: #ebeff5;
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -14px rgba(15, 23, 42, 0.16);
  --heading: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #4338ca;
  --chip: #eef2ff;
  --chip-text: #3730a3;
  --line: #c7d2fe;
  --portrait-ring: #ffffff;
  --feature: linear-gradient(135deg, #5b50e6 0%, #4338ca 55%, #3b3a9c 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a0f1e;
    --page-end: #0a0f1e;
    --card: #111827;
    --card-border: rgba(148, 163, 184, 0.12);
    --shadow: none;
    --heading: #f8fafc;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --subtle: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-text: #a5b4fc;
    --chip: rgba(99, 102, 241, 0.16);
    --chip-text: #c7d2fe;
    --line: #312e81;
    --portrait-ring: #1e293b;
    --feature: linear-gradient(135deg, #4f46e5 0%, #3730a3 60%, #312e81 100%);
  }
}

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

html {
  background: var(--page-end);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page) fixed;
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-text);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 9vw, 80px) clamp(16px, 4vw, 32px) 24px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
}

.portrait {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 5px solid var(--portrait-ring);
  box-shadow: 0 16px 36px -14px rgba(30, 27, 75, 0.5);
  object-fit: cover;
}

h1 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.role {
  margin: 0;
  color: var(--accent-text);
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 600;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.location svg {
  width: 16px;
  height: 16px;
}

.lead {
  max-width: 34em;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Buttons and icons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.7);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--heading);
  box-shadow: var(--shadow);
}

.btn-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
}

.btn-light {
  background: #ffffff;
  color: #4338ca;
}

.btn-light:hover {
  background: #eef2ff;
}

svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.filled {
  fill: currentColor;
  stroke: none;
}

/* ---------- Sections ---------- */

section {
  margin-top: clamp(44px, 8vw, 64px);
}

.label {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card {
  margin: 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  color: var(--heading);
}

.prose p {
  margin: 0 0 14px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Featured project ---------- */

.feature {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 40px);
  background: var(--feature);
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 24px 44px -24px rgba(67, 56, 202, 0.7);
}

.feature::before,
.feature::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.feature::before {
  width: 280px;
  height: 280px;
  top: -110px;
  right: -90px;
}

.feature::after {
  width: 160px;
  height: 160px;
  bottom: -70px;
  right: 120px;
}

.feature > * {
  position: relative;
}

.feature .eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature p {
  max-width: 36em;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags {
  margin-bottom: 24px;
}

.tags li {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px 28px;
}

.skills h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.chips li {
  padding: 4px 12px;
  background: var(--chip);
  border-radius: 999px;
  color: var(--chip-text);
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- Education ---------- */

.education {
  display: grid;
  gap: 16px;
  list-style: none;
}

.education strong {
  display: block;
  color: var(--heading);
  font-weight: 600;
}

.education span {
  color: var(--muted);
}

/* ---------- Contact and footer ---------- */

.contact {
  text-align: center;
}

.contact h3 {
  font-size: clamp(22px, 3.6vw, 26px);
  letter-spacing: -0.02em;
}

.contact p {
  margin: 6px auto 22px;
  color: var(--muted);
}

.contact .actions {
  justify-content: center;
}

.footer {
  padding: 40px 16px 48px;
  color: var(--subtle);
  font-size: 14px;
  text-align: center;
}

/* ---------- 404 page ---------- */

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.not-found .actions {
  justify-content: center;
  margin-top: 16px;
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .portrait {
    width: 136px;
    height: 136px;
  }

  .location,
  .actions {
    justify-content: center;
  }

  .lead {
    margin-inline: auto;
  }

  /* The main button gets its own full-width row; email and LinkedIn share the next one */
  .hero .actions {
    max-width: 340px;
    margin-inline: auto;
  }

  .hero .btn-primary {
    flex: 1 0 100%;
    justify-content: center;
  }

  /* Contact buttons stacked, all the same width */
  .contact .actions {
    flex-direction: column;
    max-width: 300px;
    margin-inline: auto;
  }

  .contact .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
