/* maxheegard.com/support preview — typography from the live site, brand gradient from the EPK */

:root {
  --bg: #130f19;
  --ink: #ffffff;
  --muted: #f3e6ee;
  --small: #c56a96;
  --handle: #3a1020;
  --btn-ink: #0d0812;
  --g: linear-gradient(90deg, #8249fe, #be669c, #ff8644);
  --gv: linear-gradient(165deg, #8249fe 0%, #be669c 50%, #ff8644 100%);
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 22.5rem;
  --tap: 3.5rem;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Top brand bar + soft gradient bloom behind the name, dark field like the EPK */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--g);
  z-index: 2;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 55% at 50% -5%, rgba(130, 73, 254, 0.55) 0%, rgba(190, 102, 156, 0.22) 42%, transparent 70%),
    radial-gradient(70% 40% at 80% 100%, rgba(255, 134, 68, 0.28) 0%, transparent 65%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.75rem 0 2.25rem;
  padding-top: max(2.75rem, calc(1.75rem + env(safe-area-inset-top)));
  padding-bottom: max(2.25rem, calc(1.25rem + env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero {
  text-align: center;
}

.portrait-wrap {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
  padding: 2px;
  border-radius: 50%;
  background: var(--g);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 9vw, 2.75rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.tag {
  margin: 0.4rem 0 0;
  color: var(--small);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta {
  margin: 0.85rem auto 0;
  max-width: 18.5rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.4;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.group h2 {
  margin: 0 0 0.05rem;
  color: var(--small);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: var(--tap);
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.btn .handle {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--handle);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.22);
}

.btn-fill {
  justify-content: flex-start;
  background: var(--g);
  color: var(--btn-ink);
}

.btn-fill > span:not(.handle) {
  flex: none;
}

.btn-fill:hover {
  filter: brightness(1.06);
}

.btn-fill:active {
  filter: brightness(0.96);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-height: 720px) {
  .page {
    padding-top: max(1.75rem, calc(1.1rem + env(safe-area-inset-top)));
    padding-bottom: max(1.4rem, calc(0.9rem + env(safe-area-inset-bottom)));
    justify-content: flex-start;
  }

  .portrait-wrap {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .cta {
    margin-top: 0.6rem;
  }

  .group {
    margin-top: 1.15rem;
    gap: 0.55rem;
  }
}

@media (min-width: 800px) {
  .page {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    filter: none !important;
  }
}
