:root {
  --royal: #4169E1;
  --royal-deep: #32519f;
  --gold: #D4AF6A;
  --gold-deep: #B8934E;
  --peri: #9DB4FF;
  --night: #141B33;
  --cream: #FAF6EF;
  --paper: #FFFDF8;
  --ink: var(--night);
  --muted: #5B6178;
  --line: #E4DFD2;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #10142A;
    --paper: #171C38;
    --ink: #F2EFE6;
    --muted: #B7BCD6;
    --line: #2B3157;
    --peri: #4A5799;
  }
}
:root[data-theme="dark"] {
  --cream: #10142A;
  --paper: #171C38;
  --ink: #F2EFE6;
  --muted: #B7BCD6;
  --line: #2B3157;
  --peri: #4A5799;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--night);
}
.logo em { color: var(--royal); font-style: normal; }
.logo img { height: 3.6rem; width: auto; display: block; }
.navlinks {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  font-size: .92rem; font-weight: 500;
}
.navlinks a { text-decoration: none; color: var(--muted); transition: color .15s; }
.navlinks a:hover { color: var(--royal); }
.navlinks a.active { color: var(--royal); font-weight: 600; }
.navcta {
  display: inline-block; padding: .55rem 1.2rem; border-radius: 999px;
  background: var(--royal); color: #fff; text-decoration: none;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.navtoggle-input { display: none; }
.navtoggle {
  display: none; border: none; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--night); padding: .2rem .3rem;
  order: 2; margin-left: .5rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.7rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--royal); color: #fff; box-shadow: 0 8px 20px -8px rgba(65,105,225,.55); }
.btn-secondary { background: transparent; color: var(--night); border: 1.5px solid var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-secondary { color: var(--ink); }
}
:root[data-theme="dark"] .btn-secondary { color: var(--ink); }

/* Footer */
footer.site {
  background: var(--night); color: #EFEDE3; padding: 4rem 0 2rem;
  position: relative;
}
footer.site::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
footer.site .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3rem 4rem;
}
.footlead {
  text-align: left; max-width: 20rem; margin: 0;
}
.footlead .logo { justify-content: flex-start; }
.footlead .logo img { height: 4.4rem; }
.footlead .logo em { color: var(--gold); }
.footlead p {
  color: #A9AFC9; font-size: .94rem; margin-top: .9rem;
}
.footgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  flex: 1 1 28rem; margin: 0; text-align: left;
}
.footgrid h4 {
  font-family: 'Inter', sans-serif; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 600;
}
.footgrid ul { list-style: none; margin: 0; padding: 0; }
.footgrid li { margin-bottom: .65rem; }
.footgrid a { color: #D6D8E8; text-decoration: none; font-size: .92rem; transition: color .15s; }
.footgrid a:hover { color: #fff; }
.footbottom {
  flex-basis: 100%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; color: #8B92B3;
}
.footbottom a { color: #8B92B3; text-decoration: none; }
.footbottom a:hover { color: var(--gold); }
.footbottom .btn-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28);
  transition: border-color .15s;
}
.footbottom .btn-instagram:hover { border-color: var(--gold); }

@media (max-width: 860px) {
  footer.site .wrap { flex-direction: column; gap: 2.4rem; }
  .footlead { text-align: center; max-width: none; }
  .footlead .logo { justify-content: center; }
  .footgrid { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .navlinks { display: none; order: 5; }
  .navtoggle-input:checked ~ .navlinks {
    display: flex; flex-direction: column; width: 100%; gap: 1rem;
    padding: 1rem 0 .4rem;
  }
  .navtoggle { display: block; }
  .navcta { order: 3; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 1.1rem; }
}

/* Back to top */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 30;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--royal); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
  transition: transform .15s;
}
.back-to-top:hover { transform: translateY(-2px); }
@media (max-width: 480px) {
  .back-to-top { right: 1rem; bottom: 1rem; width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
}
