:root {
  /* Colors */
  --resonance-blue: #0F1D2E;
  --ember-gold:     #F7A644;
  --inner-flame:    #D95C19;
  --stone-grey:     #D8D2C8;
  --luminous-white: #F6F5F3;

  /* Typography */
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-s:   0.5rem;
  --space-m:   1rem;
  --space-l:   2rem;
  --space-xl:  4rem;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-short: 150ms;
  --dur-medium: 300ms;
  --dur-long: 600ms;

  /* Header */
  --header-offset: 0px;  /* will be set dynamically */
}

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

/* Page & typography */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--luminous-white);
  color: var(--resonance-blue);
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.full-width {
  width: 100%;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-m) 0;
  background: var(--luminous-white);
  transition: padding var(--dur-medium) var(--ease), box-shadow var(--dur-medium) var(--ease);
}

/* Shrink header when scrolled */
.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Shrink logo on scroll */
.site-header.scrolled .logo-icon svg {
  height: 2.5rem;
}
.site-header.scrolled .logo-text {
  font-size: 1.25rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  text-decoration: none;  /* remove underline */
  color: inherit;         /* keep original text color */
  cursor: pointer;        /* show pointer on hover */
}
.logo:hover .logo-icon svg {
  stroke: var(--inner-flame);
}
.logo-icon svg {
  height: 4rem;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--resonance-blue);
}

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-l);
}
.nav-list a {
  font-weight: 500;
  color: var(--resonance-blue);
  transition: color var(--dur-short) var(--ease);
}
.nav-list a:hover {
  color: var(--ember-gold);
}

/* Sections */
.section {
  background: #fff;
  padding: var(--space-l);
  margin: var(--space-l) 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  scroll-margin-top: var(--header-offset);
}
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--resonance-blue);
  margin-bottom: var(--space-m);
}
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem;   line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.4; }
p { margin-bottom: var(--space-m); }

/* Links */
a {
  text-decoration: none;
  transition: opacity var(--dur-short) var(--ease);
  color: var(--ember-gold);
}
a:hover {
  opacity: 0.8;
}
.accent-link {
  color: var(--ember-gold);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--ember-gold);
  color: var(--resonance-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: background var(--dur-short) var(--ease), opacity var(--dur-short) var(--ease);
}
.btn-primary:hover {
  background: var(--inner-flame);
  opacity: 0.9;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--resonance-blue);
  color: var(--resonance-blue);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background var(--dur-short) var(--ease), color var(--dur-short) var(--ease);
}
.btn-secondary:hover {
  background: var(--resonance-blue);
  color: var(--luminous-white);
}

/* Burger toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.burger {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--resonance-blue);
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--resonance-blue);
}
.burger::before { top: -8px; }
.burger::after  { top:  8px; }

/* Responsive */
@media (max-width: 1050px) {
  .menu-toggle {
    display: flex;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--luminous-white);
    padding: var(--space-m);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .nav-list.open {
    display: flex;
  }
}

/* Footer */
.site-footer {
  background: var(--resonance-blue);
  color: var(--luminous-white);
  text-align: center;
  padding: var(--space-m) 0;
  font-size: 0.875rem;
}
