/* ============================================================
   cudneys.net — shares the this-old.dad design system (violet accent)
   ============================================================ */

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

:root {
  /* Palette (shared neutrals) */
  --bg:             #FDFAF5;
  --surface:        #FFFFFF;
  --surface-tinted: #FAF7F2;
  --border:         #EDE9E3;
  --border-strong:  #D6CFC6;
  --text:           #1C1917;
  --text-muted:     #78716C;
  --text-faint:     #A8A29E;

  /* Accent — violet */
  --accent:         #7C3AED;
  --accent-hover:   #6D28D9;
  --accent-tint:    #F5F0FE;
  --accent-tint2:   #EBE1FD;
  --accent-glow:    rgba(124,58,237,.55);
  --accent-glow2:   rgba(109,40,217,.4);
  --accent-light:   #A78BFA;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  18px;

  /* Shadow */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow-md:  0 8px 24px rgba(0,0,0,.09);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.12);

  --max-width: 1200px;
  --gutter:    clamp(1rem, 4vw, 2rem);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.logo-mark { width: 28px; height: 28px; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-tinted); }
.site-nav a.active { color: var(--accent); }

/* Divider before off-site (family) links */
.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 .5rem;
  flex-shrink: 0;
}

/* ── Main ── */
.site-main { flex: 1; }

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--text);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -180px; right: -80px;
}
.hero-glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow2) 0%, transparent 70%);
  bottom: -120px; left: 5%;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--accent-light); }
.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ── Section ── */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ── Featured image ── */
.feature {
  margin: clamp(2rem, 4vw, 3rem) auto;
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,.16);
}
.image-frame img { width: 100%; height: auto; object-fit: cover; }

/* ── Family cards ── */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.family-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.family-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.family-card__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 1.4rem;
}
.family-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.family-card__desc { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.family-card__cta {
  margin-top: .2rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  background: #1C1917;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}
.site-logo--footer { color: rgba(255,255,255,.9); }
.site-logo--footer .logo-mark { color: var(--accent-light); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: .78rem; color: rgba(255,255,255,.3); text-align: center; }

