/* ==========================================================================
   Jason Wadsworth LLC — jwadsworth.com
   Refined editorial dark theme. Deep purple, restrained pink accent.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #140f1e;
  --bg-raised: #1c1430;
  --surface: #221840;
  --line: rgba(233, 224, 250, 0.12);
  --line-strong: rgba(233, 224, 250, 0.22);

  --text: #efeaf8;
  --text-muted: #ab9ec7;
  --text-faint: #7c6f9b;

  --purple: #6d4bd4;
  --purple-bright: #9d7ef5;
  --pink: #ff3d8a;
  --pink-soft: rgba(255, 61, 138, 0.14);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  /* Rhythm */
  --space-section: clamp(5rem, 12vw, 9rem);
  --content-width: 68rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmosphere: soft purple glow at the top, faint grain everywhere. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 70% -10%, rgba(109, 75, 212, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at -10% 25%, rgba(255, 61, 138, 0.05), transparent 55%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  z-index: 0;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--pink);
  color: #1b0a12;
}

/* ==========================================================================
   Shared pieces
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--pink);
  color: #1b0a12;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--pink);
}

.section {
  padding: var(--space-section) 1.5rem 0;
}

.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: var(--space-section);
  border-top: 1px solid var(--line);
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 150ms ease, background-color 150ms ease,
    border-color 150ms ease, color 150ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--purple-bright);
  color: #170f2b;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #b598ff;
}

.button--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

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

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 15, 30, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.nav__initials {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--pink);
}

.nav__name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.nav__llc {
  color: var(--text-faint);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
}

.nav__links a.nav__cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
}

.nav__links a.nav__cta:hover,
.nav__links a.nav__cta:focus-visible {
  border-color: var(--purple-bright);
  color: var(--purple-bright);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 14vw, 11rem) 1.5rem clamp(3rem, 8vw, 5rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero__eyebrow {
  animation: rise 700ms ease both;
}

.hero__title {
  margin: 0 0 1.75rem;
  max-width: 13em;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  animation: rise 700ms 90ms ease both;
}

.hero__title em {
  font-style: italic;
  color: var(--purple-bright);
}

.hero__lede {
  max-width: 34em;
  margin: 0 0 2.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  animation: rise 700ms 180ms ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: rise 700ms 270ms ease both;
}

/* Interior pages: shorter hero, no ornament. */
.hero--page {
  padding: clamp(5rem, 10vw, 7.5rem) 1.5rem clamp(2rem, 5vw, 3.5rem);
}

/* Oversized serif W as a quiet decorative signature. */
.hero__ornament {
  position: absolute;
  top: 50%;
  right: 9rem;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.hero__glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(11rem, 24vw, 20rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157, 126, 245, 0.18);
}

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

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service {
  padding: 2rem 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  transition: border-color 200ms ease, transform 200ms ease;
}

.service:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.service::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 2rem;
  background: var(--pink);
}

.service__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.service__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-bright);
  text-decoration: none;
}

.service__link:hover,
.service__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ==========================================================================
   About
   ========================================================================== */

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
}

.about__inner .section__header {
  margin-bottom: 0;
}

.about__body p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  max-width: 38em;
}

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

.about__body a {
  color: var(--purple-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about__body a:hover,
.about__body a:focus-visible {
  color: #b598ff;
}

.about__aside {
  padding-left: 1.25rem;
  border-left: 2px solid var(--pink);
  color: var(--text) !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__inner {
  text-align: center;
  padding-bottom: var(--space-section);
}

.contact__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  letter-spacing: -0.015em;
}

.contact__lede {
  max-width: 30em;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.contact__inner .eyebrow::before {
  display: none;
}

.contact__button {
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 1rem 2.25rem;
}

/* ==========================================================================
   Prose pages (privacy, etc.)
   ========================================================================== */

.prose {
  max-width: 42em;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
}

.prose a {
  color: var(--purple-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose a:hover,
.prose a:focus-visible {
  color: #b598ff;
}

.prose__updated {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.site-footer p {
  margin: 0;
}

.site-footer__link {
  color: var(--text-faint);
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 800px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__ornament {
    display: none;
  }

  .nav__name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__lede,
  .hero__actions {
    animation: none;
  }

  .service,
  .service:hover {
    transform: none;
  }
}
