/* Scanimals Website Styles */

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

:root {
  --color-background-start: rgb(38, 74, 131);
  --color-background-end: rgb(23, 42, 72);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-accent: #f0544f;
  --color-accent-hover: #ff7a76;
  --color-link: #ffffff;
  --color-divider: rgba(255, 255, 255, 0.15);
  --content-width: 640px;
  --wide-width: 800px;
  --font-heading: "Anta", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-background-end) 0%, var(--color-background-start) 100%);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  margin-top: 0;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--color-accent);
}

hr {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 2.5rem 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Layout */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  padding: 1.5rem 1.5rem 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  max-width: var(--wide-width);
  margin: 0 auto;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-right: auto;
  opacity: 1;
  letter-spacing: 0.02em;
}

.site-main {
  flex: 1;
  padding: 3rem 1.5rem;
}

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.content-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.site-footer {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Home page */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero p:last-of-type {
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(240, 84, 79, 0.35);
}

.cta-button:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 84, 79, 0.45);
}

/* FAQ styles */
.faq-item {
  margin-bottom: 0.5rem;
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  margin-top: 0;
  color: var(--color-text);
}

.faq-item p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

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

.faq-item ul {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Blog styles */
.post-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-divider);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-divider);
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.post-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.post-list .post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* Contact page */
.contact-email {
  font-size: 1.35rem;
}

.contact-email a {
  color: var(--color-text);
  font-weight: 500;
}

.contact-email a:hover {
  color: var(--color-accent);
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.back-link:hover {
  color: var(--color-accent);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.spacer {
  height: 3rem;
}

.spacer-sm {
  height: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1rem 0;
  }

  .site-main {
    padding: 2rem 1rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }

  .site-title {
    margin-right: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .hero {
    padding: 1rem 0 2rem;
  }

  .cta-button {
    padding: 0.875rem 1.75rem;
  }
}
