/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* colors */
  --background-color: #0a0a0a;
  --light-color: #1a1a1a;
  --dark-color: #b0b0b0;
  --text-color: #fff;
  --link-color: #09f;
  --link-hover-color: #0af;
  --secondary-gray: #cfcfcf;
  --tertiary-gray: #6d7175;
  --light-gray: #edeff2;

  /* fonts */

  /* fix(typography): match source site per-weight font-family naming */
  --body-font-family: 'RM Neue Regular', 'RM Neue Regular Placeholder', sans-serif;

  /* fix(typography): match source site per-weight font-family naming */
  --heading-font-family: 'RM Neue Bold', 'RM Neue Bold Placeholder', sans-serif;

  /* fix(typography): add semibold token — used for UI chrome and strong text */
  --semibold-font-family: 'RM Neue SemiBold', 'RM Neue SemiBold Placeholder', sans-serif;

  /* body sizes */
  --body-font-size-m: 18px;
  --body-font-size-s: 16px;
  --body-font-size-xs: 14px;

  /* heading sizes */
  --heading-font-size-xxl: 60px;
  --heading-font-size-xl: 40px;
  --heading-font-size-l: 32px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 18px;
  --heading-font-size-xs: 16px;

  /* nav height */
  --nav-height: 80px;
}


@media (width >= 900px) {
  :root {
    /* heading sizes - matching original exactly */
    --heading-font-size-xxl: 112px;
    --heading-font-size-xl: 72px;
    --heading-font-size-l: 24px;
    --heading-font-size-m: 24px;
    --heading-font-size-s: 19px;
    --heading-font-size-xs: 18px;
  }
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-s);
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.appear {
  display: block;
}

header {
  height: 0;
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 700;

  /* fix(typography): make letter-spacing explicit on all headings, not cascade-dependent */
  letter-spacing: -0.02em;
  scroll-margin: 40px;
}

h1,
h2 {
  background-image: linear-gradient(0deg, #999 0%, #ddd 40%, #fff 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.15em;
}

h1 {
  font-size: var(--heading-font-size-xxl);

  /* fix(typography): align global h1 line-height with hero.css override value */
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--heading-font-size-xl);
  line-height: 1;
}

h3 {
  font-size: var(--heading-font-size-l);
  line-height: 1.33;
}

h4 {
  font-size: var(--heading-font-size-m);
  line-height: 1.6;
}

h5 {
  font-size: var(--heading-font-size-s);
  line-height: 1.6;
}

h6 {
  font-size: var(--heading-font-size-xs);
  line-height: 1.6;
}

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 0;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: underline;
  overflow-wrap: break-word;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover-color);
}

/* buttons */
p.button-wrapper {
  margin: 12px 0;
}

a.button:any-link,
button.button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 99px;
  padding: 8px 32px;
  font: inherit;
  font-size: var(--body-font-size-m);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.button:any-link:hover,
button.button:hover {
  transform: translateY(-2px);
}

a.button[aria-disabled="true"],
button.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

a.button.primary,
button.button.primary {
  border-color: #fff;
  background-color: #fff;
  color: #0a0a0a;
}

a.button.primary:hover,
a.button.primary:focus-visible,
button.button.primary:hover,
button.button.primary:focus-visible {
  border-color: #e0e0e0;
  background-color: #e0e0e0;
  color: #0a0a0a;
}

a.button.primary[aria-disabled="true"],
a.button.primary[aria-disabled="true"]:hover,
a.button.primary[aria-disabled="true"]:focus-visible,
button.button.primary:disabled,
button.button.primary:disabled:hover,
button.button.primary:disabled:focus-visible {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--dark-color);
}

a.button.secondary,
button.button.secondary {
  border-color: rgb(255 255 255 / 30%);
  background-color: transparent;
  color: #fff;
}

a.button.secondary:hover,
a.button.secondary:focus-visible,
button.button.secondary:hover,
button.button.secondary:focus-visible {
  border-color: rgb(255 255 255 / 60%);
  background-color: rgb(255 255 255 / 10%);
  color: #fff;
}

a.button.secondary[aria-disabled="true"],
a.button.secondary[aria-disabled="true"]:hover,
a.button.secondary[aria-disabled="true"]:focus-visible,
button.button.secondary:disabled,
button.button.secondary:disabled:hover,
button.button.secondary:disabled:focus-visible {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--dark-color);
}

/* high-impact call-to-action */
a.button.accent,
button.button.accent {
  border-color: var(--link-color);
  background-color: var(--link-color);
  color: var(--background-color);
}

a.button.accent:hover,
a.button.accent:focus-visible,
button.button.accent:hover,
button.button.accent:focus-visible {
  border-color: var(--link-hover-color);
  background-color: var(--link-hover-color);
}

a.button.accent[aria-disabled="true"],
a.button.accent[aria-disabled="true"]:hover,
a.button.accent[aria-disabled="true"]:focus-visible,
button.button.accent:disabled,
button.button.accent:disabled:hover,
button.button.accent:disabled:focus-visible {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--dark-color);
}

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

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  margin: 60px 0;
}

main > .section > div {
  max-width: 1240px;
  margin: auto;
  padding: 0 24px;
}

main > .section:first-of-type {
  margin-top: 0;
}

@media (width >= 600px) {
  main > .section {
    margin: 80px 0;
  }

  main > .section > div {
    padding: 0 32px;
  }
}

@media (width >= 900px) {
  main > .section {
    margin: 100px 0;
  }

  main > .section > div {
    padding: 0 40px;
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 60px 0;
}

@media (width >= 900px) {
  main .section.light,
  main .section.highlight {
    padding: 80px 0;
  }
}

@media (width >= 600px) {
  main .section.center .default-content-wrapper {
    text-align: center;
  }
}

@media (width >= 900px) {
  main .section.center .default-content-wrapper > p {
    max-width: 880px;
    margin-inline: auto;
  }
}

/* Respect user's motion preferences for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* stylelint-disable no-descending-specificity */

/* Ensure minimum touch target size (44x44px per WCAG 2.1) */
a,
button {
  min-height: 44px;
  min-width: 44px;
}

/* Accessibility: Visible focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}
/* stylelint-enable no-descending-specificity */

/* Skip to main content link for screen readers */
.skip-to-main {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-main:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 16px;
  background: var(--background-color);
  color: var(--text-color);
  border: 2px solid var(--link-color);
  z-index: 10000;
}
