/* ============================================================
   COSMOS UNVEILED — style.css
   Global styles: reset, nav, footer, shared components
   cosmosunveiled.com
============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --navy:          #0D1421;
  --navy-mid:      #111b2e;
  --navy-light:    #16223a;
  --parchment:     #F7F3EA;
  --parchment-dim: #b8b2a4;
  --brass:         #C4922F;
  --brass-light:   #d4a84a;
  --obs-blue:      #3D6D96;
  --obs-blue-lt:   #5a8ebc;
  --container:     1160px;
  --container-art: 1060px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--parchment);
  font-family: 'Lora', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Accessibility ----------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Container -------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
}
.container--article {
  max-width: var(--container-art);
  margin: 0 auto;
  padding: 0 3rem;
}

/* --- Navigation ------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13, 20, 33, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 146, 47, 0.18);
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-offset { height: 64px; }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-wordmark .cosmos {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--parchment);
  text-transform: uppercase;
}

.nav-wordmark .rule {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(196, 146, 47, 0.45);
  flex-shrink: 0;
}

.nav-wordmark .unveiled {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: var(--parchment);
  letter-spacing: 0.02em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li { position: relative; }

.nav-links a {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  text-decoration: none;
  padding: 0 1.1rem;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1.1rem; right: 1.1rem;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--parchment); }
.nav-links a.active::after { transform: scaleX(1); }

/* Subscribe CTA button */
.nav-links a.nav-cta {
  color: var(--navy);
  background: var(--brass);
  margin-left: 1rem;
  padding: 0 1.25rem;
  height: 36px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: background 0.2s;
}

.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--brass-light); color: var(--navy); }

/* --- Button ------------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--brass);
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-1px); }

/* --- Newsletter section ------------------------------------ */
.newsletter {
  position: relative;
  padding: 6rem 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(196, 146, 47, 0.12);
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 260px;
  background: radial-gradient(ellipse, rgba(196, 146, 47, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.newsletter-symbol { margin-bottom: 1.5rem; display: flex; justify-content: center; }

.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--parchment);
  margin-bottom: 0.9rem;
}

.newsletter-sub {
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--parchment-dim);
  margin-bottom: 2.25rem;
}

.newsletter-form {
  display: flex;
  border: 1px solid rgba(196, 146, 47, 0.38);
  max-width: 420px;
  margin: 0 auto 0.8rem;
}

.newsletter-input {
  flex: 1;
  border: none;
  background: rgba(196, 146, 47, 0.04);
  padding: 0.95rem 1.2rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.85rem;
  color: var(--parchment);
  outline: none;
}
.newsletter-input::placeholder { color: var(--parchment-dim); opacity: 0.4; }

.newsletter-btn {
  border: none;
  background: var(--brass);
  padding: 0.95rem 1.5rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: var(--brass-light); }

.newsletter-note {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.67rem;
  color: var(--parchment-dim);
  opacity: 0.45;
  letter-spacing: 0.06em;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: #080e17;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid rgba(196, 146, 47, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(247, 243, 234, 0.06);
  margin-bottom: 2.5rem;
}

.footer-brand-tagline {
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(247, 243, 234, 0.28);
  line-height: 1.7;
  margin-top: 1.1rem;
}

.footer-col-title {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(247, 243, 234, 0.32);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(247, 243, 234, 0.72); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(247, 243, 234, 0.2);
  letter-spacing: 0.06em;
}

.footer-mark {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(247, 243, 234, 0.12);
  text-transform: uppercase;
}

/* footer logo reuse */
.footer .nav-logo { margin-bottom: 0; }
