/* ============================================================
   kath.love — shared aesthetic ✦ refined
   A soft, romantic, slightly boutique theme: blush gradients,
   drifting aurora, a fine grain, elegant serif display type,
   and glassy cards that bloom on hover.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Comfortaa:wght@400;500;700&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --rose:        #d6517a;
  --rose-deep:   #7a2247;
  --rose-soft:   #f7c4d8;
  --blush:       #ffe7ef;
  --peach:       #ffe6d6;
  --sky:         #e4f6ff;
  --rose-tint:   #fff4f8;
  --ink:         #5b3a48;
  --ink-soft:    #8a6675;
  --paper:       rgba(255, 255, 255, 0.72);
  --paper-solid: #ffffff;
  --line:        rgba(214, 81, 122, 0.16);
  --shadow-sm:   0 4px 16px rgba(150, 70, 100, 0.10);
  --shadow:      0 18px 44px rgba(150, 70, 100, 0.14);
  --shadow-lg:   0 30px 70px rgba(150, 70, 100, 0.22);
  --radius:      22px;
  --radius-sm:   14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  padding: 0 20px 96px;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 720px at 6% -12%, var(--blush) 0%, transparent 55%),
    radial-gradient(1000px 820px at 114% -4%, var(--sky) 0%, transparent 52%),
    radial-gradient(950px 760px at 50% 122%, var(--peach) 0%, transparent 55%),
    linear-gradient(165deg, #fff8f3 0%, #ffeef5 55%, #f1fbff 100%);
  background-attachment: fixed;
}

/* drifting aurora orbs */
body::before {
  content: '';
  position: fixed; inset: -22vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 156, 188, 0.50), transparent) 12% 20% / 42vmax 42vmax no-repeat,
    radial-gradient(closest-side, rgba(150, 205, 255, 0.42), transparent) 88% 14% / 36vmax 36vmax no-repeat,
    radial-gradient(closest-side, rgba(255, 196, 150, 0.40), transparent) 72% 92% / 44vmax 44vmax no-repeat;
  filter: blur(18px);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) rotate(6deg) scale(1.06); }
}

/* fine grain for depth */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }

/* ---- header / hero ---- */
.site-head { text-align: center; padding: 70px 0 6px; margin-bottom: 2.4em; position: relative; }

.site-head .kicker {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: .72;
  margin: 0 0 1.1em;
}

.site-head h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 .24em;
  background: linear-gradient(120deg, #e35d86 0%, #c63f7d 40%, #b14ec9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .site-head h1 { color: var(--rose); }
}

.site-head .heart {
  display: inline-block;
  -webkit-text-fill-color: initial;
  color: initial;
  animation: beat 1.7s infinite ease-in-out;
  filter: drop-shadow(0 4px 10px rgba(214, 81, 122, .35));
}
@keyframes beat { 0%,100%{transform:scale(1)} 22%{transform:scale(1.22)} 38%{transform:scale(.98)} 54%{transform:scale(1.08)} }

/* keep emoji inside a gradient-clipped heading in full colour */
.site-head h1 .emoji {
  -webkit-text-fill-color: initial;
  color: initial;
  filter: drop-shadow(0 4px 10px rgba(214, 81, 122, .28));
}

.site-head p,
.site-head .tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
  opacity: .82;
  margin: 0;
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
}

/* a small flourish under the hero */
.flourish {
  margin: 1.4em auto 0;
  width: 100%;
  max-width: 230px;
  color: var(--rose);
  font-size: 1.1rem;
  display: flex; align-items: center; gap: .8em;
  opacity: .7;
}
.flourish::before, .flourish::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-soft));
}
.flourish::after { background: linear-gradient(90deg, var(--rose-soft), transparent); }

/* ---- nav cards ---- */
.cards { display: grid; gap: 1.15em; }

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--rose-deep);
  background: var(--paper);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5em 3.2em 1.5em 1.85em;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) forwards;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), box-shadow .38s ease, border-color .38s ease;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* gradient accent rail */
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--rose-soft), var(--rose));
  transition: width .38s ease;
}
/* hover arrow */
.card::after {
  content: '→';
  position: absolute; right: 1.4em; top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-size: 1.25rem; color: var(--rose);
  opacity: 0; transition: opacity .35s ease, transform .35s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(214, 81, 122, .30);
  background: rgba(255, 255, 255, .86);
}
.card:hover::before, .card:focus-visible::before { width: 8px; }
.card:hover::after, .card:focus-visible::after { opacity: .9; transform: translateY(-50%) translateX(0); }

.card .title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  display: flex; align-items: center; gap: .5em;
  color: var(--rose-deep);
}
.card .meta {
  font-family: 'Nunito', sans-serif;
  font-size: .76rem; opacity: .6; margin-top: .45em;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.card .desc { margin-top: .6em; line-height: 1.6; opacity: .92; font-size: 1rem; }

/* feature card — a touch more presence */
.card.feature {
  background: linear-gradient(135deg, #ffffff 0%, #fff2f7 60%, #fdeaff 100%);
  border-color: rgba(214, 81, 122, .22);
  box-shadow: var(--shadow);
}
.card.feature::before { width: 6px; }
.card.feature .title { font-size: 1.55rem; }

/* muted / secondary card */
.card.muted {
  background: rgba(255, 255, 255, .55);
  box-shadow: none;
}
.card.muted .title { color: var(--ink-soft); }
.card.muted::before { opacity: .55; }
.card.muted:hover { background: rgba(255, 255, 255, .82); box-shadow: var(--shadow); }

/* stagger the entrance */
.cards .card:nth-child(1) { animation-delay: .04s; }
.cards .card:nth-child(2) { animation-delay: .12s; }
.cards .card:nth-child(3) { animation-delay: .20s; }
.cards .card:nth-child(4) { animation-delay: .28s; }
.cards .card:nth-child(5) { animation-delay: .36s; }

/* ---- section labels ---- */
.section-label {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
  opacity: .85;
  font-size: 1.12rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 2.8em 0 1.1em;
  display: flex; align-items: center; gap: .8em;
}
.section-label::before {
  content: '❀'; font-style: normal; color: var(--rose); opacity: .8; font-size: .9em;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--rose-soft), transparent);
}

/* ---- footer ---- */
.site-foot {
  text-align: center; margin-top: 3.4em; font-size: .88rem;
  color: var(--rose-deep); opacity: .6;
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
}
.site-foot a { color: var(--rose); text-decoration: none; border-bottom: 1px solid var(--rose-soft); }
.site-foot a:hover { border-bottom-color: var(--rose); }

/* ---- back link ---- */
.back {
  display: inline-flex; align-items: center; gap: .4em;
  margin: 28px 0 0;
  padding: .5em 1.1em;
  color: var(--rose); text-decoration: none; font-weight: 700; font-size: .9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, gap .25s ease;
}
.back:hover { transform: translateY(-2px); box-shadow: var(--shadow); gap: .65em; }

/* ---- motion-safe ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1 !important; transform: none !important; }
}
