/* ==========================================================================
   Main Stylesheet — Shared across all pages
   ========================================================================== */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f0efec;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Animated gradient angle */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin-gradient {
  to { --angle: 360deg; }
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: #f0efec;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

nav.scrolled {
  box-shadow: 0 1px 0 #e0dedd;
}

.nav-logo {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: white;
  background: conic-gradient(from var(--angle), #fcd29f, #d9a8e0, #91d3f0, #fcd29f);
  animation: spin-gradient 4s linear infinite;
  padding: 7px 14px;
  border-radius: 10px;
}

.nav-back {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: white;
  padding: 7px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.15s;
}

.nav-back:hover {
  background: #f0efec;
}

/* Footer */
footer {
  border-top: 1px solid #e0dedd;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 13px;
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #aaa;
}

.footer-links a {
  font-size: 13px;
  color: #aaa;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #555;
}

/* Mailto link gradient border (used on multiple pages) */
a[href^="mailto"] {
  position: relative;
  isolation: isolate;
}

a[href^="mailto"]::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r, 0px) + 2px);
  background: conic-gradient(from var(--angle), #fcd29f, #d9a8e0, #91d3f0, #fcd29f);
  animation: spin-gradient 4s linear infinite;
  z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  nav { padding: 16px 0; }
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 0;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
