/* ============================================================
   Akhil Ranjith — Design System · Components
   The reusable primitives that recur across the site. Page
   layout (grids, per-page positioning) intentionally lives in
   the app, not here.
   ============================================================ */

/* ---------- Brand lockup ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand .logo-mark {
  height: 33px;
  width: auto;
  display: block;
}
.brand .logo-word {
  height: 36px;
  width: auto;
  display: block;
  transform: translateY(3px);
}
.brand .divider {
  width: 1px;
  height: 33px;
  background: var(--hairline);
}

/* ---------- Primary nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav a {
  font-family: var(--ff-head);
  font-weight: var(--fw-regular);
  font-size: var(--fs-ui);
  letter-spacing: -0.2px;
  color: var(--nav);
  transition: color 0.25s ease;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--white);
}

/* ---------- Type styles ---------- */
.headline {
  font-family: var(--ff-head);
  font-weight: var(--fw-thin);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: 0;
  color: var(--white);
  overflow-wrap: anywhere;
}
.accent-blue {
  color: var(--blue);
}
.accent-magenta {
  color: var(--magenta);
}

.lead {
  font-family: var(--ff-head);
  font-weight: var(--fw-light);
  color: var(--white);
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
}
.sub-text {
  font-family: var(--ff-head);
  font-weight: var(--fw-light);
  color: var(--white);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-normal);
}

/* ---------- Outlined button with electric under-glow ---------- */
.btn-line {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-ui);
  color: var(--white);
  border: 1px solid var(--btn-border);
  padding: 11px 44px;
  transition: border-color 0.35s ease;
}
.btn-line::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--btn-glow-fill);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: var(--glow-bright);
  box-shadow: var(--btn-glow-bar);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition:
    opacity 0.4s ease,
    transform 0.45s var(--ease-out-expo);
}
.btn-line:hover {
  border-color: var(--btn-border-hover);
}
.btn-line:hover::before {
  opacity: 1;
}
.btn-line:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .btn-line::before,
  .btn-line::after {
    transition: opacity 0.2s ease;
  }
}

/* ---------- Form fields (minimal underline / line style) ---------- */
.field-input {
  width: 100%;
  font-family: var(--ff-head);
  font-weight: var(--fw-light);
  font-size: var(--fs-input);
  color: var(--field-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  padding: 12px 2px;
  transition: border-color 0.3s ease;
}
.field-input::placeholder {
  color: var(--field-ph);
}
.field-input:focus {
  border-bottom-color: var(--white);
}
.field-label {
  display: block;
  min-width: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: var(--fw-regular);
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.btn-line:disabled {
  cursor: wait;
  opacity: 0.65;
}
textarea.field-input {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Form submit status line ---------- */
.form-status {
  font-family: var(--ff-head);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  letter-spacing: 0.3px;
  min-height: 1.2em;
  overflow-wrap: anywhere;
  margin-top: 4px;
  transition: color 0.3s ease;
}
.form-status:empty {
  display: none;
}
.form-status.is-sending {
  color: var(--field-ph);
}
.form-status.is-ok {
  color: var(--glow-bright);
}
.form-status.is-error {
  color: var(--magenta);
}

/* ---------- LinkedIn icon button ---------- */
.li-icon {
  width: 40px;
  height: 40px;
  color: var(--linkedin);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.li-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}
.li-icon:hover {
  transform: translateY(-2px);
  filter: brightness(1.25);
}

/* ---------- Showcase frame ---------- */
.frame {
  border: 11px solid var(--frame-border);
  background: transparent;
}

/* ---------- Cursor-follow glow ---------- */
.cursor-effects {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: var(--cursor-spotlight);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- Legal footer line ---------- */
.copyright {
  font-family: var(--ff-body);
  font-size: var(--fs-fine);
  color: var(--white);
  letter-spacing: 0;
  line-height: 1.4;
}

/* ---------- Component-level responsive ---------- */
@media (max-width: 540px) {
  .brand .logo-mark {
    height: 27px;
  }
  .brand .logo-word {
    height: 29px;
  }
  .brand {
    gap: 16px;
  }
  .nav {
    gap: var(--space-2);
  }
  .nav a {
    font-size: 14px;
  }
}
