/* ============================================================
   Sam Kaner – samkaner.com
   Design System & Shared Styles
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg:         #F7F2EE;
  --bg-card:    #FDFAF8;
  --rose:       #C4786A;
  --rose-light: #E8C5BE;
  --rose-dark:  #A05C50;
  --ink:        #2A2320;
  --ink-muted:  #7A6E6A;
  --border:     #E8DDD8;
  --white:      #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 760px;
  --radius: 12px;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 242, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--rose); }

.nav-monogram {
  width: 36px;
  height: 36px;
  background: var(--rose);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--border);
}
.nav-links a.active {
  color: var(--rose-dark);
  background: var(--rose-light);
}

/* ---------- Page wrapper ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 80px;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--rose); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Section headings ---------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-muted); }

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 120, 106, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--rose-light);
  color: var(--rose-dark);
  background: var(--bg-card);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 4px 24px rgba(42, 35, 32, 0.07);
  transform: translateY(-2px);
}

/* ---------- Pill / Tag ---------- */
.pill {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ---------- Fade-in animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }
.fade-up:nth-child(5) { animation-delay: 0.45s; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .nav-inner, main { padding: 0 20px; }
  .nav-logo span { display: none; }
  footer { padding: 28px 20px; }
}
