﻿:root {
  --bg: #0f1118;
  --bg-alt: #171b26;
  --surface: rgba(19, 25, 38, 0.74);
  --surface-strong: #1c2334;
  --text: #f1f4fa;
  --muted: #b4bfce;
  --accent: #ebb15a;
  --accent-strong: #f1ca86;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
}

html[data-theme='light'] {
  --bg: #f6f2e8;
  --bg-alt: #e9e0cf;
  --surface: rgba(255, 253, 247, 0.82);
  --surface-strong: #fff8ed;
  --text: #182033;
  --muted: #4e5a71;
  --accent: #9e5f1f;
  --accent-strong: #7f4a16;
  --border: rgba(24, 32, 51, 0.18);
  --shadow: 0 18px 36px rgba(105, 82, 41, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(235, 177, 90, 0.22), transparent 40%),
    radial-gradient(circle at 84% 84%, rgba(54, 143, 202, 0.18), transparent 42%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.45;
  z-index: -1;
}

.ambient-a {
  width: 340px;
  height: 340px;
  left: -110px;
  top: -80px;
  background: rgba(235, 177, 90, 0.45);
}

.ambient-b {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -90px;
  background: rgba(62, 155, 210, 0.38);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: clamp(64px, 7vw, 88px);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  outline: none;
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero,
.grid-section,
.split-section,
.site-footer {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.hero {
  margin-top: 0.75rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

h1 {
  margin-top: 0.75rem;
  max-width: 14ch;
  font-size: clamp(2.05rem, 4.8vw, 4rem);
}

.hero-copy {
  margin-top: 1rem;
  max-width: 70ch;
  color: var(--muted);
}

.cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.12rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.cta-primary {
  background: var(--accent);
  color: #1f1506;
  box-shadow: 0 12px 26px rgba(235, 177, 90, 0.32);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--accent-strong);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.grid-section,
.split-section {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3.2vw, 2rem);
}

.grid-section h2,
.split-section h2 {
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.card {
  background: var(--surface-strong);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.card h3 {
  font-size: 1.14rem;
}

.card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.cards-compact .card {
  padding: 0.9rem;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.panel {
  background: var(--surface-strong);
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.panel p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.site-footer {
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
}

.footer-meta {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cards-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.noscript-note {
  margin: 0;
  padding: 0.8rem 1rem 1.4rem;
  text-align: center;
  color: var(--muted);
}

.hero,
.grid-section,
.split-section,
.site-footer,
.site-header {
  animation: rise-in 0.6s ease both;
}

.grid-section {
  animation-delay: 0.08s;
}

.split-section {
  animation-delay: 0.14s;
}

.site-footer {
  animation-delay: 0.2s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .cards,
  .split-section {
    grid-template-columns: 1fr;
  }

  .cards-trio {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  .hero,
  .grid-section,
  .split-section,
  .site-footer {
    border-radius: 18px;
  }

  .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
