/*
Theme Name: Eddie Mead Portfolio
Theme URI: https://eddiemead.com/
Author: Eddie Mead
Description: A clean, modern block theme for an eLearning and multimedia portfolio.
Version: 0.3.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: eddiemead-portfolio
*/

:root {
  --em-shadow-sm: 0 1px 2px rgba(36, 32, 45, 0.04), 0 8px 24px rgba(36, 32, 45, 0.06);
  --em-shadow-lg: 0 24px 60px rgba(56, 39, 107, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

a {
  text-underline-offset: 0.2em;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--wp--preset--color--purple);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--wp--preset--color--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 76px;
}

.site-brand a {
  text-decoration: none;
}

.site-brand__name {
  letter-spacing: 0.16em;
  line-height: 1;
}

.site-brand__dot {
  color: var(--wp--preset--color--purple);
}

.site-header .wp-block-navigation a {
  text-decoration: none;
}

.site-header .wp-block-navigation a:hover {
  color: var(--wp--preset--color--deep-purple);
}

.hero {
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: radial-gradient(circle, rgba(155, 122, 232, 0.22) 0%, rgba(155, 122, 232, 0) 68%);
  content: "";
  height: 42rem;
  pointer-events: none;
  position: absolute;
  right: -15rem;
  top: -18rem;
  width: 42rem;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--wp--preset--color--deep-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
}

.hero__summary {
  max-width: 64ch;
}

.hero__panel {
  background: linear-gradient(145deg, var(--wp--preset--color--deep-purple), #211742);
  border-radius: 28px;
  box-shadow: var(--em-shadow-lg);
  color: var(--wp--preset--color--white);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.hero__panel::before,
.hero__panel::after {
  border: 34px solid var(--wp--preset--color--purple);
  border-radius: 50%;
  content: "";
  height: 240px;
  opacity: 0.92;
  position: absolute;
  width: 240px;
}

.hero__panel::before {
  right: -44px;
  top: -60px;
}

.hero__panel::after {
  border-color: rgba(255, 255, 255, 0.18);
  bottom: -112px;
  left: -96px;
}

.hero__panel-content {
  height: 100%;
  position: relative;
  z-index: 1;
}

.hero__capability {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1rem;
}

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

.metric-grid > * {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1rem;
}

.metric-value {
  color: var(--wp--preset--color--white);
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-label {
  color: #d9d3e6;
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 0.45rem;
}

.capability-strip {
  border-bottom: 1px solid var(--wp--preset--color--line);
  border-top: 1px solid var(--wp--preset--color--line);
}

.capability-strip p {
  margin: 0;
}

.section-heading {
  max-width: 720px;
}

.work-card,
.service-card,
.process-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 20px;
  box-shadow: var(--em-shadow-sm);
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.work-card:hover {
  border-color: rgba(155, 122, 232, 0.65);
  box-shadow: var(--em-shadow-lg);
  transform: translateY(-4px);
}

.work-card__visual {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0ecfb, #ded5f7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.work-card__visual::before {
  background: var(--wp--preset--color--white);
  border: 1px solid rgba(56, 39, 107, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(56, 39, 107, 0.14);
  content: "";
  height: 66%;
  transform: rotate(-3deg);
  width: 72%;
}

.work-card__number {
  color: var(--wp--preset--color--deep-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag {
  background: var(--wp--preset--color--purple-soft);
  border-radius: 999px;
  color: var(--wp--preset--color--deep-purple);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.55rem 0.72rem;
}

.process-card__number {
  align-items: center;
  background: var(--wp--preset--color--purple-soft);
  border-radius: 50%;
  color: var(--wp--preset--color--deep-purple);
  display: inline-flex;
  font-weight: 750;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.contact-cta {
  background: var(--wp--preset--color--charcoal);
  border-radius: 28px;
  color: var(--wp--preset--color--white);
  overflow: hidden;
  position: relative;
}

.contact-cta::after {
  background: var(--wp--preset--color--purple);
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  height: 260px;
  opacity: 0.28;
  position: absolute;
  right: -90px;
  top: -100px;
  width: 260px;
}

.contact-cta > * {
  position: relative;
  z-index: 1;
}

.site-footer {
  border-top: 1px solid var(--wp--preset--color--line);
}

.site-footer a {
  text-decoration: none;
}

.wp-block-button .wp-block-button__link {
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.wp-block-button .wp-block-button__link:hover {
  box-shadow: 0 10px 24px rgba(56, 39, 107, 0.17);
  transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--purple-soft);
}

@media (max-width: 781px) {
  .site-header__inner {
    min-height: 66px;
  }

  .hero__panel {
    min-height: 340px;
  }

  .capability-strip .wp-block-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
