/*
  Custom Property Documentation
  --purple: Purple accent color used in gradients.
  --aqua: Aqua accent color used in gradients and highlights.
  --lime: Lime accent color used in gradients.
  --bg1: Dark background gradient start color.
  --bg2: Dark background gradient end color.
  --text: Default text color for the site.
  --max-width: Maximum width for the overall layout.
  --content-width: Width constraint for articles and content sections.
  --font-body: Font family for regular text.
  --font-heading: Font family for headings.
  --header-bg: Gradient background applied to the header and footer.
*/

/* Root Variables */
:root {
  --purple: #7f19ff;
  --aqua: #00d3b4;
  --lime: #b6ff37;
  --bg1: #1a1740;
  --bg2: #0d1530;
  --text: #f8fafc;
  --max-width: 1184px;
  --content-width: 800px;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --header-bg: linear-gradient(90deg, var(--aqua) 0%, var(--purple) 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  margin: 0;
  background: radial-gradient(circle at 15% 20%, rgb(53, 53, 103) 1%, var(--bg1) 50%, var(--bg2) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p {
  line-height: 1.4;
}

img.align-left {
  float: left;
  margin: 0 1rem 1rem 0;
}

img.align-right {
  float: right;
  margin: 0 0 1rem 1rem;
}

img.align-center {
  display: block;
  margin: auto;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Layout */
/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo svg,
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav a {
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.25s, font-weight 0.25s;
}

nav a:hover {
  opacity: 0.85;
  font-weight: 500;
}

/* Hero */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image, url('/images/hero.png')) center/cover no-repeat;
  z-index: -3;
  filter: brightness(var(--hero-brightness, 0.3)) contrast(var(--hero-contrast, 0.3)) blur(var(--hero-blur, 0));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(182, 255, 55, 0.55) 0%, rgba(0, 211, 180, 0.6) 50%, rgba(127, 25, 255, 0.6) 100%);
  mix-blend-mode: overlay;
}

.hero .content {
  max-width: 760px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.1rem, 6vw, 4.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--aqua) 0%, var(--lime) 100%);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.hero p.lead {
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(248, 250, 252, 0.92);
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

/* Components */
.cta {
  display: inline-block;
  font-size: 1.111rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 88px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--aqua) 0%, var(--lime) 100%);
  color: var(--bg1);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 211, 180, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 211, 180, 0.5);
}

/* Message Section */
.message {
  padding: 4em 1rem;
  text-align: center;
  background: radial-gradient(circle at 85% 15%, rgba(0, 211, 180, 0.15) 0%, transparent 40%);
}

.message p {
  max-width: 745px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.222rem;
  font-weight: 300;
}

.message p:first-of-type {
  font-weight: 300;
}

/* Content sections */
.content-section {
  padding: 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.content-section h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.content-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: 1.111rem;
}

.content-section a {
  color: var(--aqua);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.content-section a:hover {
  border-bottom-color: var(--aqua);
}

.content-section,
.blog-post article,
.blog-index article {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--aqua);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 2rem;
}

/* Blog styles */
.blog-post {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem;
}

.blog-post h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.blog-post .date {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-post article p {
  margin-bottom: 1.2rem;
}

.blog-post article a {
  color: var(--aqua);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.blog-post article a:hover {
  border-bottom-color: var(--aqua);
}

/* Footnote references */
.blog-post sup {
  vertical-align: super;
  font-size: 0.75em;
  line-height: 0;
}

.blog-post sup a {
  color: var(--text);
  text-decoration: none;
}

/* Footnote list */
.footnote {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.4;
}

.footnote a {
  color: var(--text);
  font-size: 0.85em;
  text-decoration: none;
}

.footnote hr {
  display: none;
}

.footnote ol {
  font-size: inherit;
  padding-left: 1.2rem;
}

.footnote li {
  font-size: inherit;
  margin-bottom: 0.3rem;
}

.footnote li p {
  margin: 0;
  display: inline;
}

.blog-index {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem;
}

.blog-index h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.blog-index article {
  margin-bottom: 3rem;
}

.blog-index article h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-index article h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s;
}

.blog-index article h2 a:hover {
  color: var(--aqua);
}

.blog-index .date {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.111rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list img {
  width: 3rem;
  height: 3rem;
  flex: none;
  filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.contact-list span {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Footer */
footer {
  background: var(--header-bg);
  color: #fff;
  padding: 1.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 300;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-top: auto;
  text-transform: uppercase;
}

/* Responsive Rules */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p.lead {
    font-size: 1.111rem;
  }

  .cta {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
  }

  nav ul {
    gap: 1rem;
  }
}
