/*
Theme Name: Tender Nest
Description: Warm, premium child theme for the Tender Nest parenting blog.
Template: twentytwentyfive
Version: 2.0.0
Text Domain: tender-nest
*/

/* ============================================================
   1. Web fonts (self-hosted, latin subset, variable)
   ============================================================ */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   2. Tokens
   ============================================================ */
:root:root {
  --tn-serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --tn-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wp--preset--font-family--heading: var(--tn-serif);
  --wp--preset--font-family--body: var(--tn-sans);

  --tn-cream: #FDF5EF;
  --tn-cream-deep: #F8ECE3;
  --tn-ink: #3D2C35;
  --tn-ink-soft: #6B5763;
  --tn-ink-mute: #8B7A85;
  --tn-rose: #D98FA6;
  --tn-rose-deep: #C4708C;
  --tn-rose-plum: #8A3D57;
  --tn-rose-soft: #FBE7EC;
  --tn-sage: #91B3A1;
  --tn-sage-deep: #5F8A73;
  --tn-sage-soft: #E9F1EC;
  --tn-gold: #D2A66F;
  --tn-gold-soft: #F7EBD8;
  --tn-line: rgba(61, 44, 53, .10);
  --tn-shadow-card: 0 1px 2px rgba(61, 44, 53, .04);
  --tn-shadow-lift: 0 28px 54px -28px rgba(61, 44, 53, .42);
  --tn-ease: cubic-bezier(.2, .7, .2, 1);
  --tn-radius: 26px;
}

/* ============================================================
   3. Base
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--tn-sans);
  color: var(--tn-ink);
  background-color: var(--tn-cream);
  background-image:
    radial-gradient(80% 40% at 50% -10%, rgba(217, 143, 166, .10), transparent 70%),
    radial-gradient(60% 30% at 90% 0%, rgba(145, 179, 161, .09), transparent 70%);
  background-repeat: no-repeat;
}

::selection { background: rgba(217, 143, 166, .34); color: var(--tn-ink); }

a { text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid rgba(217, 143, 166, .65);
  outline-offset: 3px;
  border-radius: 8px;
}

img { height: auto; }

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: 96px; }

/* ============================================================
   4. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
.wp-block-site-title,
.wp-block-query-title {
  font-family: var(--tn-serif);
  font-weight: 600;
  color: var(--tn-ink);
  letter-spacing: -.015em;
}

p { text-wrap: pretty; }

/* Section headings get a small gold rule above them. */
main h2.wp-block-heading {
  position: relative;
  padding-top: 1.55rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: .55rem;
  letter-spacing: -.02em;
}
main h2.wp-block-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tn-rose), var(--tn-gold));
}
main h2.wp-block-heading.has-text-align-center::before {
  left: 50%;
  transform: translateX(-50%);
}
main h2.wp-block-heading + p {
  color: var(--tn-ink-soft);
  font-size: 1.02rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   5. Buttons
   ============================================================ */
.tn-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 .98rem/1 var(--tn-sans);
  letter-spacing: .005em;
  text-decoration: none;
  color: var(--tn-ink);
  background: linear-gradient(135deg, #E9A7BA 0%, var(--tn-rose) 52%, #CE7F99 100%);
  box-shadow:
    0 14px 30px -14px rgba(196, 112, 140, .80),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--tn-ease), box-shadow .3s var(--tn-ease), background .3s, color .3s, border-color .3s;
}
.tn-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .75s var(--tn-ease);
}
.tn-btn:hover {
  transform: translateY(-2px);
  color: var(--tn-ink);
  box-shadow:
    0 22px 40px -18px rgba(196, 112, 140, .9),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}
.tn-btn:hover::after { transform: translateX(130%); }

.tn-btn-ghost {
  background: rgba(255, 255, 255, .55);
  color: var(--tn-ink);
  border-color: rgba(61, 44, 53, .22);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.tn-btn-ghost:hover {
  background: var(--tn-ink);
  border-color: var(--tn-ink);
  color: var(--tn-cream);
  box-shadow: 0 18px 34px -20px rgba(61, 44, 53, .8);
}

/* ============================================================
   6. Header
   ============================================================ */
.tn-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 245, 239, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(61, 44, 53, .07);
  transition: box-shadow .35s var(--tn-ease), background .35s var(--tn-ease);
}
.tn-header.tn-scrolled {
  background: rgba(253, 245, 239, .94);
  box-shadow: 0 12px 32px -22px rgba(61, 44, 53, .55);
}
.tn-header > .wp-block-group { align-items: center; gap: 1.25rem; }

.tn-header .wp-block-site-title {
  font-size: 1.55rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.tn-header .wp-block-site-title a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}
.tn-header .wp-block-site-title a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tn-rose), var(--tn-gold));
  box-shadow: 0 0 0 4px rgba(217, 143, 166, .16);
  transition: transform .4s var(--tn-ease), box-shadow .4s var(--tn-ease);
}
.tn-header .wp-block-site-title a:hover::before {
  transform: scale(1.18) rotate(20deg);
  box-shadow: 0 0 0 6px rgba(217, 143, 166, .18);
}

/* Navigation */
.tn-header .wp-block-navigation { font-size: .93rem; }
.tn-header .wp-block-navigation__container { column-gap: 1.15rem !important; row-gap: .5rem; }
.tn-header .wp-block-navigation-item__content {
  position: relative;
  padding: .35rem 0;
  color: rgba(61, 44, 53, .88);
  transition: color .25s;
}
.tn-header .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tn-rose), var(--tn-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--tn-ease);
}
.tn-header .wp-block-navigation-item__content:hover { color: var(--tn-ink); }
.tn-header .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }

/* Dropdown */
.wp-block-navigation__submenu-container {
  background: #fff !important;
  border: 1px solid var(--tn-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 48px -26px rgba(61, 44, 53, .5) !important;
  padding: 10px !important;
  min-width: 250px;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: .5rem .65rem;
  border-radius: 10px;
  font-size: .92rem;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--tn-cream);
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }

/* Search field */
.tn-header .wp-block-search { width: 178px !important; }
.tn-header .wp-block-search__inside-wrapper {
  border: 1px solid rgba(61, 44, 53, .16) !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 3px 3px 3px 6px !important;
  transition: border-color .25s, box-shadow .25s;
}
.tn-header .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--tn-rose) !important;
  box-shadow: 0 0 0 4px rgba(217, 143, 166, .16);
}
.tn-header .wp-block-search__input {
  background: transparent !important;
  border: 0 !important;
  font-size: .88rem !important;
  padding: 7px 8px !important;
}
.tn-header .wp-block-search__button {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tn-ink) !important;
  color: var(--tn-cream) !important;
  padding: 8px 11px !important;
  transition: background .25s;
}
.tn-header .wp-block-search__button:hover { background: var(--tn-rose-plum) !important; }

/* Mobile menu button */
.wp-block-navigation__responsive-container-open {
  padding: 9px !important;
  border-radius: 12px;
  border: 1px solid rgba(61, 44, 53, .14);
  background: #fff;
  transition: background .25s, border-color .25s;
}
.wp-block-navigation__responsive-container-open:hover {
  background: var(--tn-rose-soft);
  border-color: rgba(217, 143, 166, .5);
}
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--tn-cream) !important;
}

/* ============================================================
   7. Hero — deep plum, gold accents, arch photo
   ============================================================ */
.tn-hero {
  --tn-hero-pad: clamp(26px, 4.2vw, 62px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  padding: var(--tn-hero-pad) var(--tn-hero-pad) 0;
  border-radius: 34px;
  overflow: hidden;
  color: #F8F0EB;
  background:
    radial-gradient(72% 92% at 6% -6%, rgba(217, 143, 166, .44), transparent 62%),
    radial-gradient(58% 74% at 102% 4%, rgba(210, 166, 111, .32), transparent 62%),
    radial-gradient(70% 70% at 82% 104%, rgba(145, 179, 161, .18), transparent 66%),
    linear-gradient(158deg, #2C1C25 0%, #3B2430 46%, #211620 100%);
  box-shadow:
    0 46px 90px -52px rgba(28, 18, 24, .92),
    inset 0 0 0 1px rgba(216, 178, 124, .18);
}

/* Slow drifting aurora */
.tn-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(closest-side at 28% 30%, rgba(217, 143, 166, .48), transparent),
    radial-gradient(closest-side at 74% 66%, rgba(145, 179, 161, .30), transparent),
    radial-gradient(closest-side at 60% 18%, rgba(226, 183, 127, .36), transparent);
  filter: blur(52px);
  animation: tn-aurora 28s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Fine grain so the dark gradient never bands */
.tn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .30;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.tn-hero > * { position: relative; z-index: 1; }

.tn-hero-text { max-width: 40em; }

.tn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .2rem;
  padding: .45rem .95rem .45rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
  font: 700 .68rem/1 var(--tn-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F2DCB6;
  animation: tn-rise .7s var(--tn-ease) .05s both;
}
.tn-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E9C79A;
  box-shadow: 0 0 0 4px rgba(233, 199, 154, .18);
  animation: tn-pulse-gold 2.8s ease-in-out infinite;
}

.tn-hero h1 {
  margin: .9rem 0 1.05rem;
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #FCF7F3;
  text-wrap: balance;
  animation: tn-rise .95s var(--tn-ease) .16s both;
}

/* Metallic gold phrase */
.tn-gold {
  background: linear-gradient(96deg, #F8E9CD 0%, #EBC795 28%, #D2A66F 54%, #F6E5C6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tn-lead {
  margin: 0 0 1.7rem;
  max-width: 34em;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(248, 240, 235, .76);
  animation: tn-rise .9s var(--tn-ease) .3s both;
}

.tn-hero .tn-cta { animation: tn-rise .9s var(--tn-ease) .42s both; }
.tn-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.tn-hero .tn-btn {
  box-shadow:
    0 18px 36px -14px rgba(196, 112, 140, .75),
    0 0 0 1px rgba(255, 255, 255, .10) inset,
    0 0 42px -12px rgba(233, 167, 186, .55);
}
.tn-hero .tn-btn:hover { box-shadow: 0 26px 46px -16px rgba(196, 112, 140, .85), 0 0 54px -10px rgba(233, 167, 186, .7); }

.tn-hero .tn-btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .30);
  color: #F8F0EB;
  box-shadow: none;
}
.tn-hero .tn-btn-ghost:hover {
  background: #F8F0EB;
  border-color: #F8F0EB;
  color: #2C1C25;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9);
}

.tn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font: 600 .78rem/1 var(--tn-sans);
  color: rgba(248, 240, 235, .84);
  animation: tn-rise .9s var(--tn-ease) .54s both;
}
.tn-badges li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .8rem .48rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, .9);
}
.tn-badges li::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--tn-sage);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Arch photograph */
.tn-hero-art { position: relative; }
.tn-hero-art::before {
  content: "";
  position: absolute;
  inset: -16% -12% -12%;
  z-index: 0;
  background: radial-gradient(circle at 50% 42%, rgba(217, 143, 166, .55), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
}
.tn-hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  box-shadow:
    0 46px 80px -40px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(216, 178, 124, .45),
    0 0 0 13px rgba(255, 255, 255, .04);
  animation: tn-rise 1s var(--tn-ease) .34s both;
}
.tn-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  transition: transform 1.4s var(--tn-ease);
}
.tn-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(33, 22, 32, .26) 0%, transparent 26%, transparent 60%, rgba(33, 22, 32, .48) 100%);
}
.tn-hero:hover .tn-hero-photo img { transform: scale(1.035); }

.tn-hero-chip {
  position: absolute;
  z-index: 2;
  left: -6%;
  bottom: 7%;
  margin: 0;
  max-width: 232px;
  padding: .78rem 1.05rem;
  border-radius: 16px;
  background: rgba(30, 19, 25, .80);
  border: 1px solid rgba(216, 178, 124, .32);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 52px -26px rgba(0, 0, 0, .95);
  font: 600 .74rem/1.45 var(--tn-sans);
  color: rgba(248, 240, 235, .92);
  animation: tn-rise 1s var(--tn-ease) .62s both;
}
.tn-hero-chip span {
  display: block;
  margin-bottom: .32rem;
  font: 700 .58rem/1 var(--tn-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E9C79A;
}

/* ============================================================
   8. Topics ticker
   ============================================================ */
.tn-ticker {
  margin: 1.9rem 0 0;
  padding: .95rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tn-hero .tn-ticker {
  grid-column: 1 / -1;
  margin-inline: calc(-1 * var(--tn-hero-pad));
  padding-inline: var(--tn-hero-pad);
  padding-bottom: 1.15rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.tn-ticker-track {
  display: flex;
  width: max-content;
  animation: tn-scroll 58s linear infinite;
}
.tn-ticker:hover .tn-ticker-track { animation-play-state: paused; }
.tn-ticker span {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding-right: .9rem;
  font: 700 .66rem/1 var(--tn-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(248, 240, 235, .72);
  white-space: nowrap;
}
.tn-ticker span::after {
  content: "✦";
  font-size: .7rem;
  letter-spacing: 0;
  color: var(--tn-gold);
}

/* ============================================================
   8b. Scroll progress + editorial promise band
   ============================================================ */
.tn-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--tn-rose), #E2B77F 58%, #F8E9CD);
  pointer-events: none;
  will-change: transform;
}

.tn-promise {
  position: relative;
  overflow: hidden;
  color: rgba(248, 240, 235, .84);
  background:
    radial-gradient(80% 120% at 50% -30%, rgba(217, 143, 166, .34), transparent 62%),
    radial-gradient(60% 90% at 100% 110%, rgba(210, 166, 111, .20), transparent 60%),
    linear-gradient(160deg, #2C1C25 0%, #3A2430 58%, #241821 100%);
  box-shadow:
    0 44px 80px -60px rgba(28, 18, 24, .95),
    inset 0 0 0 1px rgba(216, 178, 124, .16);
}
.tn-promise::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.tn-promise > * { position: relative; z-index: 1; }
.tn-promise h2.wp-block-heading { color: #FCF7F3; }
.tn-promise p { color: rgba(248, 240, 235, .88); font-size: 1.02rem; }
.tn-promise a {
  color: #E9C79A;
  text-decoration-color: rgba(233, 199, 154, .45);
  text-underline-offset: 4px;
}
.tn-promise a:hover { color: #F8E9CD; text-decoration-color: rgba(248, 233, 205, .8); }

/* ============================================================
   9. Index cards ("Start here", "Explore by topic")
   ============================================================ */
.tn-grid { display: grid; gap: 22px; margin-top: 32px; }
.tn-grid-3 { grid-template-columns: repeat(3, 1fr); }

.tn-start,
.tn-cat {
  --c: var(--tn-rose);
  --c-deep: var(--tn-rose-deep);
  --c-soft: var(--tn-rose-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid rgba(61, 44, 53, .085);
  border-radius: 24px;
  text-decoration: none;
  color: var(--tn-ink);
  box-shadow: var(--tn-shadow-card);
  overflow: hidden;
  transition: transform .35s var(--tn-ease), box-shadow .35s var(--tn-ease), border-color .35s;
}
.tn-start::before,
.tn-cat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), var(--c-deep));
  opacity: .55;
  transition: opacity .4s var(--tn-ease);
}
.tn-start:hover,
.tn-cat:hover {
  transform: translateY(-6px);
  box-shadow: var(--tn-shadow-lift);
  border-color: rgba(61, 44, 53, .14);
  color: var(--tn-ink);
}
.tn-start:hover::before,
.tn-cat:hover::before { opacity: 1; }

.tn-c-rose { --c: #E7A1B6; --c-deep: #C4708C; --c-soft: #FBE7EC; }
.tn-c-sage { --c: #A9C7B7; --c-deep: #5F8A73; --c-soft: #E9F1EC; }
.tn-c-gold { --c: #E4C194; --c-deep: #B98A4F; --c-soft: #F7EBD8; }

.tn-tag {
  align-self: flex-start;
  padding: .32rem .66rem;
  border-radius: 999px;
  background: var(--c-soft);
  font: 700 .64rem/1 var(--tn-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tn-ink);
}

.tn-start strong {
  font-family: var(--tn-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.015em;
}
.tn-start span:last-child {
  font-size: .93rem;
  line-height: 1.55;
  color: var(--tn-ink-soft);
  padding-right: 1.2rem;
}
.tn-start::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 1rem;
  color: var(--c-deep);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s var(--tn-ease), transform .3s var(--tn-ease);
}
.tn-start:hover::after { opacity: 1; transform: translateX(0); }

.tn-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--c-soft);
  font-size: 1.65rem;
  line-height: 1;
  transition: transform .4s var(--tn-ease);
}
.tn-cat:hover .tn-ico { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.tn-cat h3 { margin: .5rem 0 .1rem; font-size: 1.3rem; }
.tn-cat p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--tn-ink-soft); }

/* ============================================================
   10. Post cards
   ============================================================ */
.tn-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(61, 44, 53, .085);
  border-radius: 24px;
  box-shadow: var(--tn-shadow-card);
  overflow: hidden;
  transition: transform .35s var(--tn-ease), box-shadow .35s var(--tn-ease), border-color .35s;
}
.tn-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tn-shadow-lift);
  border-color: rgba(61, 44, 53, .14);
}
.tn-card a { text-decoration: none; }
.tn-card figure.wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: .9rem !important;
  background: var(--tn-cream-deep);
}
.tn-card img {
  display: block;
  width: 100%;
  border-radius: 16px !important;
  transition: transform .7s var(--tn-ease);
}
.tn-card:hover img { transform: scale(1.045); }

.tn-card .wp-block-post-terms,
.tn-card .wp-block-post-terms a {
  font: 700 .66rem/1.4 var(--tn-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tn-rose-plum);
  text-decoration: none;
}
.tn-card .wp-block-post-title {
  margin: .35rem 0 .4rem;
  font-size: 1.2rem;
  line-height: 1.26;
}
.tn-card .wp-block-post-title a { color: var(--tn-ink); transition: color .25s; }
.tn-card .wp-block-post-title a:hover { color: var(--tn-rose-plum); }
.tn-card .wp-block-post-excerpt { color: var(--tn-ink-soft); font-size: .94rem; line-height: 1.6; }
.tn-card .wp-block-post-excerpt__excerpt { margin-bottom: .6rem; }
.tn-card .wp-block-post-date {
  font-size: .76rem;
  color: var(--tn-ink-mute);
  letter-spacing: .02em;
}
.tn-card .wp-block-post-date time { font-variant-numeric: tabular-nums; }

/* Featured image inside single posts */
.tn-photo img,
.wp-block-post-featured-image img { border-radius: 20px; }

/* ============================================================
   11. Baby name finder
   ============================================================ */
.tn-finder {
  position: relative;
  margin-top: 30px;
  padding: clamp(22px, 3vw, 38px);
  background: #fff;
  border: 1px solid rgba(61, 44, 53, .08);
  border-radius: 28px;
  box-shadow: 0 34px 64px -44px rgba(61, 44, 53, .55);
  overflow: hidden;
}
.tn-finder::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(217, 143, 166, .12), transparent 62%),
    radial-gradient(70% 70% at 0% 100%, rgba(145, 179, 161, .14), transparent 62%);
}
.tn-finder > * { position: relative; }
.tn-finder form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: end;
}
.tn-finder label {
  display: block;
  margin-bottom: 7px;
  font: 600 .78rem/1.2 var(--tn-sans);
  letter-spacing: .02em;
  color: var(--tn-ink);
}
.tn-finder select,
.tn-finder input,
.tn-finder button,
.tn-btn { box-sizing: border-box; }

.tn-finder select,
.tn-finder input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(61, 44, 53, .16);
  border-radius: 13px;
  background: #FDF8F4;
  font: 400 .95rem/1.2 var(--tn-sans);
  color: var(--tn-ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.tn-finder select:hover,
.tn-finder input:hover { border-color: rgba(61, 44, 53, .28); }
.tn-finder select:focus,
.tn-finder input:focus {
  outline: 0;
  background: #fff;
  border-color: var(--tn-rose);
  box-shadow: 0 0 0 4px rgba(217, 143, 166, .18);
}
.tn-finder button {
  width: 100%;
  min-height: 46px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #E9A7BA, var(--tn-rose) 52%, #CE7F99);
  color: var(--tn-ink);
  font: 600 .96rem/1 var(--tn-sans);
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 14px 28px -16px rgba(196, 112, 140, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .25s var(--tn-ease), box-shadow .25s var(--tn-ease), filter .25s;
}
.tn-finder button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 20px 34px -18px rgba(196, 112, 140, .95), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.tn-finder button:active { transform: translateY(0); }

.tn-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.tn-name {
  padding: 16px 18px;
  background: #FDF8F4;
  border: 1px solid rgba(61, 44, 53, .08);
  border-radius: 18px;
  transition: transform .3s var(--tn-ease), box-shadow .3s var(--tn-ease), border-color .3s;
  animation: tn-pop .5s var(--tn-ease) both;
}
.tn-name:nth-child(2) { animation-delay: .04s; }
.tn-name:nth-child(3) { animation-delay: .08s; }
.tn-name:nth-child(4) { animation-delay: .12s; }
.tn-name:nth-child(5) { animation-delay: .16s; }
.tn-name:nth-child(6) { animation-delay: .2s; }
.tn-name:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 44, 53, .14);
  box-shadow: 0 18px 30px -24px rgba(61, 44, 53, .65);
}
.tn-name h3 { margin: 0 0 4px; font-size: 1.3rem; }
.tn-name small {
  display: block;
  margin-bottom: 8px;
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--tn-ink-mute);
}
.tn-name p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--tn-ink-soft); }
.tn-name p strong { color: var(--tn-ink); font-weight: 600; }
.tn-note { margin-top: 18px; font-size: .82rem; line-height: 1.55; color: var(--tn-ink-mute); }

/* ============================================================
   11b. Article content (posts and pages)
   ============================================================ */
.tn-breadcrumbs {
  margin: 0 0 1.15rem;
  font-size: .82rem;
  color: var(--tn-ink-mute);
}
.tn-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tn-breadcrumbs li + li::before {
  content: "›";
  margin: 0 .5rem 0 .1rem;
  color: rgba(61, 44, 53, .32);
}
.tn-breadcrumbs a { color: var(--tn-rose-plum); text-decoration: none; }
.tn-breadcrumbs a:hover { text-decoration: underline; }
.tn-breadcrumbs [aria-current] { color: var(--tn-ink-soft); }

.tn-cover,
.tn-photo { margin: 0 0 1.7rem; }
.tn-cover img,
.tn-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 24px 46px -30px rgba(61, 44, 53, .55);
}
.tn-cover svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 24px 46px -30px rgba(61, 44, 53, .55);
}
.tn-cover figcaption,
.tn-photo figcaption {
  margin-top: .55rem;
  font-size: .76rem;
  color: var(--tn-ink-mute);
  text-align: right;
}
.tn-cover figcaption a,
.tn-photo figcaption a { color: inherit; }

.tn-toc {
  margin: 1.8rem 0;
  padding: 1.15rem 1.45rem;
  background: #fff;
  border: 1px solid rgba(61, 44, 53, .08);
  border-left: 4px solid var(--tn-rose);
  border-radius: 16px;
  box-shadow: var(--tn-shadow-card);
}
.tn-toc p {
  margin: 0 0 .55rem;
  font: 700 .7rem/1 var(--tn-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tn-rose-plum);
}
.tn-toc ul { margin: 0; padding-left: 1.15em; font-size: .95rem; }
.tn-toc li { margin: .34rem 0; }
.tn-toc a { color: var(--tn-ink); text-decoration: none; }
.tn-toc a:hover { color: var(--tn-rose-plum); text-decoration: underline; }

.wp-block-post-content table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: .94rem;
}
.wp-block-post-content th,
.wp-block-post-content td,
.entry-content th,
.entry-content td {
  border: 1px solid rgba(61, 44, 53, .12);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}
.wp-block-post-content th,
.entry-content th {
  background: var(--tn-rose-soft);
  font-weight: 600;
}
.wp-block-post-content tr:nth-child(even) td,
.entry-content tr:nth-child(even) td { background: rgba(253, 245, 239, .55); }

/* Callout boxes authored inside articles (inline styles) re-skinned to the brand palette. */
.fx-takeaways {
  border-left-color: var(--tn-sage-deep) !important;
  background: rgba(145, 179, 161, .14) !important;
  border-radius: 16px !important;
  padding: 1.15rem 1.45rem !important;
  margin: 0 0 1.6rem !important;
}
.fx-takeaways p:first-child {
  margin: 0 0 .6rem;
  font: 700 .7rem/1 var(--tn-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tn-sage-deep);
}
.fx-takeaways ul { margin: 0; padding-left: 1.1em; font-size: .95rem; }
.fx-takeaways li { margin: .35rem 0; }

.fx-toc {
  background: #fff !important;
  border: 1px solid rgba(61, 44, 53, .08) !important;
  border-left: 4px solid var(--tn-rose) !important;
  border-radius: 16px !important;
  padding: 1.15rem 1.45rem !important;
  margin: 0 0 1.6rem !important;
  box-shadow: var(--tn-shadow-card);
}
.fx-toc p:first-child {
  margin: 0 0 .55rem;
  font: 700 .7rem/1 var(--tn-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tn-rose-plum);
}
.fx-toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; color: var(--tn-ink-mute); }
.fx-toc a { color: var(--tn-ink); text-decoration: none; }
.fx-toc a:hover { color: var(--tn-rose-plum); text-decoration: underline; }

/* The article body already opens with a cover photo: drop the duplicate featured image. */
body.single-post:has(.tn-cover) .wp-block-post-featured-image { display: none; }

.wp-block-post-content blockquote,
.entry-content blockquote {
  margin: 1.6rem 0;
  padding: .9rem 1.3rem;
  border-left: 4px solid var(--tn-sage);
  background: rgba(145, 179, 161, .10);
  border-radius: 0 14px 14px 0;
  font-family: var(--tn-serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--tn-ink);
}

/* ============================================================
   12. Footer
   ============================================================ */
.tn-footer {
  position: relative;
  background: linear-gradient(180deg, #3D2C35 0%, #342530 100%) !important;
  color: rgba(253, 245, 239, .92);
  overflow: hidden;
}
.tn-footer::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(50% 60% at 18% 0%, rgba(217, 143, 166, .22), transparent 70%),
    radial-gradient(40% 50% at 88% 10%, rgba(145, 179, 161, .16), transparent 70%);
  pointer-events: none;
}
.tn-footer > * { position: relative; }
.tn-footer .wp-block-site-title { font-size: 1.5rem; letter-spacing: -.03em; }
.tn-footer h3 {
  margin-bottom: .9rem;
  font-family: var(--tn-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tn-gold);
}
.tn-footer a {
  color: rgba(253, 245, 239, .82);
  text-decoration: none;
  transition: color .25s, transform .25s;
}
.tn-footer a:hover { color: #fff; }
.tn-footer .wp-block-navigation-item__content { font-size: .93rem; padding: .2rem 0; display: inline-block; }
.tn-footer .wp-block-navigation-item__content:hover { transform: translateX(3px); }
.tn-footer p { color: rgba(253, 245, 239, .68); }
.tn-footer .wp-block-columns { border-bottom: 1px solid rgba(253, 245, 239, .12); padding-bottom: 2rem; }

/* ============================================================
   13. Language switcher (injected by the fx-lang snippet)
   ============================================================ */
#fx-lang {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  left: auto !important;
  z-index: 9000 !important;
  display: flex !important;
  gap: 4px !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background: rgba(61, 44, 53, .93) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .65) !important;
  backdrop-filter: blur(10px) !important;
  opacity: .92;
  transition: opacity .25s;
}
#fx-lang:hover { opacity: 1; }
#fx-lang button {
  min-width: 34px;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font: 700 11px/1 var(--tn-sans) !important;
  letter-spacing: .08em !important;
  cursor: pointer;
  transition: background .2s, color .2s !important;
}

/* ============================================================
   14. Motion: scroll reveal (classes added by motion.js)
   ============================================================ */
html.tn-anim .tn-reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.tn-anim .tn-reveal.tn-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .75s var(--tn-ease) var(--d, 0ms),
    transform .75s var(--tn-ease) var(--d, 0ms);
}

@keyframes tn-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes tn-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes tn-aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.12); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.04); }
}
@keyframes tn-float {
  0%, 100% { transform: translateY(-8px) rotate(-1deg); }
  50%      { transform: translateY(10px) rotate(1deg); }
}
@keyframes tn-spin {
  to { transform: rotate(360deg); }
}
@keyframes tn-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(95, 138, 115, .15); }
  50%      { box-shadow: 0 0 0 7px rgba(95, 138, 115, .07); }
}
@keyframes tn-pulse-gold {
  0%, 100% { box-shadow: 0 0 0 4px rgba(233, 199, 154, .20); }
  50%      { box-shadow: 0 0 0 8px rgba(233, 199, 154, .07); }
}
@keyframes tn-mark {
  to { background-size: 100% 100%; }
}
@keyframes tn-scroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   15. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .tn-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
}

@media (max-width: 960px) {
  .tn-header .wp-block-search { display: none; }
}

@media (max-width: 900px) {
  .tn-hero {
    --tn-hero-pad: clamp(22px, 5vw, 34px);
    grid-template-columns: 1fr;
    border-radius: 28px;
    padding: var(--tn-hero-pad) var(--tn-hero-pad) 0;
  }
  .tn-hero-art {
    order: -1;
    width: min(74%, 330px);
    margin: 0 auto .6rem;
  }
  .tn-hero-chip { left: auto; right: -4%; bottom: 6%; max-width: 205px; }
  .tn-grid-3 { grid-template-columns: 1fr 1fr; }
  .tn-finder form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tn-header { position: static; }
  .tn-hero h1 { font-size: clamp(2rem, 8.2vw, 2.6rem); }
  .tn-hero { border-radius: 24px; }
  .tn-hero-art { width: 100%; max-width: 340px; }
  .tn-hero-chip { display: none; }
  .tn-hero .tn-ticker { margin-top: 1.3rem; }
  .tn-grid-3 { grid-template-columns: 1fr; }
  .tn-btn { width: 100%; }
  .tn-cta { gap: .55rem; }
  .tn-finder form { grid-template-columns: 1fr; }
  main h2.wp-block-heading { font-size: 1.75rem; }
}

/* ============================================================
   16. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .tn-hero::before { animation: none; }
  html.tn-anim .tn-reveal { opacity: 1 !important; transform: none !important; }
}
