/*
 * 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 {
  /* Balanced Dark Tech Theme Colors */
  --background-color: #1E293B;
  --light-color: #334155;
  --dark-color: #64748B;
  --text-color: #F1F5F9;
  --text-secondary: #CBD5E1;
  --link-color: #60A5FA; /* Bright but not harsh blue */
  --link-hover-color: #93C5FD; /* Lighter blue */
  --accent-color: #D3C5FF; /* Subtle purple */
  --accent-hover: #C4B5FD;
  --border-color: #475569;
  --code-bg: #0F172A;
  --success-color: #34D399;
  --warning-color: #FBBF24;
  --error-color: #F87171;

  /* fonts */
  --body-font-family: 'Plus Jakarta Sans', sans-serif;
  --heading-font-family: 'Plus Jakarta Sans', sans-serif;
  --code-font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;

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

  /* heading sizes */
  --heading-font-size-xxl: 48px;
  --heading-font-size-xl: 36px;
  --heading-font-size-l: 30px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 20px;
  --heading-font-size-xs: 18px;

  /* nav heights */
  --nav-height: 64px;
  --breadcrumbs-height: 34px;
  --header-height: var(--nav-height);
}

/* Media query for larger screens */
@media (width >= 900px) {
  :root {
    /* body sizes */
    --body-font-size-m: 19px;
    --body-font-size-s: 17px;
    --body-font-size-xs: 15px;

    /* heading sizes */
    --heading-font-size-xxl: 54px;
    --heading-font-size-xl: 42px;
    --heading-font-size-l: 32px;
    --heading-font-size-m: 26px;
    --heading-font-size-s: 22px;
    --heading-font-size-xs: 20px;
  }
}

/* Body styling */
body {
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.7;
  font-weight: 400;
  display: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.appear {
  display: unset;
}

/* Mobile-specific body font size */
@media (width < 900px) {
  body {
    font-size: var(--body-font-size-m);
  }
}

header {
  height: var(--header-height);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-family: var(--heading-font-family);
  font-weight: 700;
  line-height: 1.2;
  scroll-margin: 40px;
  letter-spacing: -0.025em;
}

h1 {
  margin-top: 1em;
  font-size: var(--heading-font-size-xl);
  background: linear-gradient(135deg, var(--link-color) 0%, var(--accent-color) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: var(--heading-font-size-xl);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

/* Paragraphs and other text elements */
p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

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

pre {
  padding: 24px;
  border-radius: 12px;
  background-color: var(--code-bg);
  overflow-x: auto;
  white-space: pre;
  border: 1px solid var(--border-color);
  position: relative;
  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 15%);
}

pre code {
  color: var(--text-color);
  background: none;
  padding: 0;
  border: none;
  font-weight: 400;
}

@media (width < 900px) {
  code,
  pre {
    font-size: var(--body-font-size-xs);
  }
} 

code:not(pre code) {
  background-color: var(--code-bg);
  color: var(--accent-color);
  padding: 0.125em 0.25em;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

main > div {
  margin: 40px 16px;
}

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

/* Links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  word-break: break-word;
  transition: all 0.2s ease;
}

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

a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Buttons */
a.button:any-link,
button {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: 12px 0;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.75em 1.5em;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--link-color) 0%, var(--accent-color) 100%);
  color: var(--text-color);
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 15%);
}

.header .nav-hamburger button {
  background: none;
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  background: linear-gradient(135deg, var(--link-hover-color) 0%, var(--accent-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -2px rgb(0 0 0 / 25%);
  cursor: pointer;
}

a.button.secondary,
button.secondary {
  background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-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: 40px 0;
}

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

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

@media (width >= 900px) {
  main > .section > div {
    padding: 0 32px;
  }
}

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