/* ─────────────────────────────────────────────────────────────
   jordansully.com — personal brand landing page

   Design tokens shared with sullydigital.com so the two read as
   one estate. The ambient background layer (radial glows +
   masked grid) is deliberately NOT carried over — this page is
   the person, and stays plainer than the entity page.

   No build step, no dependencies beyond the webfonts.
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --color-background: #0A1220;
  --color-foreground: #E8ECF2;
  --color-surface-1: #0E1A2D;
  --color-surface-2: #162038;
  --color-primary: #3B9EFF;
  --color-muted: #6F84A0;
  --color-muted-dim: #6585A7;
  --color-border: #1E3050;
  --color-border-subtle: rgba(30, 48, 80, 0.4);

  --gradient-text: linear-gradient(135deg, var(--color-primary) 0%, #7BB8FF 100%);

  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Manrope, var(--font-body);

  --radius-xl: 16px;
  --radius-pill: 999px;
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --color-background: #F8FAFC;
    --color-foreground: #1A2332;
    --color-surface-1: #F0F4F8;
    --color-surface-2: #E4EAF0;
    --color-primary: #1C70C5;
    --color-muted: #5A6B7F;
    --color-muted-dim: #607186;
    --color-border: #D0D8E2;
    --color-border-subtle: rgba(180, 195, 215, 0.4);

    --gradient-text: linear-gradient(135deg, #15599F 0%, #1C70C5 100%);

    --shadow-card-hover: 0 8px 24px rgba(26, 35, 50, 0.08);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) 1.5rem 4rem;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  text-align: center;
  animation: fadeInUp 0.6s ease-out both;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
  margin: 0 auto 1.75rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  max-width: 540px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-foreground);
}

/* Middle tier: the claim sits between the roles line and the story — foreground
   colour so it doesn't read as background, smaller so the roles line still leads. */
.thesis {
  max-width: 540px;
  margin: 1.5rem auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-foreground);
}

.bio {
  max-width: 540px;
  margin: 1.25rem auto 0;
  color: var(--color-muted);
}

/* ── Rule ──────────────────────────────────────────────────── */
/* Hairline-and-mark separator, shared with sullydigital.com. */

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 0 2.75rem;
}

/* Each line fades outward from the mark, so the centre reads strongest. */
.rule-line {
  width: min(160px, 22vw);
  height: 1px;
}

.rule-line:first-child {
  background: linear-gradient(to right, transparent, var(--color-border));
}

.rule-line:last-child {
  background: linear-gradient(to left, transparent, var(--color-border));
}

.mark {
  color: var(--color-primary);
  opacity: 0.6;
}

.mark-pulse { animation: markPulse 3s ease-in-out infinite; }
.mark-pulse-delay { animation: markPulse 3s ease-in-out infinite 1.5s; }

@keyframes markPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ── Section labels ────────────────────────────────────────── */

.layer {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.layer + .layer { animation-delay: 0.25s; }

/* ── Link cards ────────────────────────────────────────────── */

.links {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .links-2 { grid-template-columns: 1fr 1fr; }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  background: var(--color-surface-1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.link-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.link-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted-dim);
  margin-bottom: 0.4rem;
}

.link-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.link-desc {
  font-size: 14px;
  color: var(--color-muted);
}

/* Pushed to the bottom so the CTAs line up across cards of unequal text length. */
.link-cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.link-card:hover .link-cta,
.link-card:focus-visible .link-cta { transform: translateX(4px); }

/* ── Profile pills ─────────────────────────────────────────── */

.profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.profile:hover,
.profile:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-surface-1);
  color: var(--color-foreground);
}

.profile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.profile svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Matches the panel tags' size and tracking, in primary so it reads as a CTA. */
.footer-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

.footer-contact {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  color: var(--color-muted);
}

.nowrap { white-space: nowrap; }

/* ── Footer ────────────────────────────────────────────────── */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--color-border-subtle);
  text-align: center;
}

.footer-prompt {
  margin: 0;
  max-width: 540px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--color-border-subtle);
}

.footer-legal {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted-dim);
  opacity: 0.7;
}

/* ── Motion ────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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