/* RelationAdvisor — site stylesheet */
:root {
  --ink: #1d1430;
  --ink-2: #2e2342;
  --plum: #3b1d4a;
  --rose: #ff5d73;
  --coral: #ff8a5b;
  --lilac: #a68bff;
  --blush: #ffe9ec;
  --cream: #fff8f3;
  --paper: #ffffff;
  --muted: #6b5f7a;
  --line: #efe3ea;
  --grad: linear-gradient(135deg, #ff5d73 0%, #ff8a5b 100%);
  --grad-2: linear-gradient(135deg, #a68bff 0%, #ff5d73 60%, #ff8a5b 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -18px rgba(59, 29, 74, .28);
  --shadow-sm: 0 8px 24px -12px rgba(59, 29, 74, .25);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
em.accent { font-style: italic; font-weight: 500; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 0;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(255, 93, 115, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255, 93, 115, .9); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .38em .9em; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--blush); color: #c2304a; text-decoration: none; letter-spacing: .01em;
  transition: background .2s, color .2s;
}
a.chip:hover { background: var(--rose); color: #fff; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: .9em; }

/* ---------- header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; transition: width .1s linear; }
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 248, 243, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(59,29,74,.5); background: rgba(255, 248, 243, .92); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.42rem; letter-spacing: -.02em; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px -8px rgba(255,93,115,.9); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-mark svg { width: 21px; height: 21px; }
.logo span b { color: var(--rose); font-weight: 700; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: .55em .85em; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--blush); color: #c2304a; }
.main-nav .nav-cta a { background: var(--ink); color: #fff; margin-left: 6px; }
.main-nav .nav-cta a:hover { background: var(--rose); color: #fff; }
.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: 4px; padding: .55em .85em; border-radius: 999px; border: 0; background: none;
  font: 600 .95rem var(--sans); color: var(--ink-2); cursor: pointer;
}
.has-sub > button:hover, .has-sub.open > button { background: var(--blush); color: #c2304a; }
.has-sub > button svg { width: 14px; height: 14px; transition: transform .25s; }
.has-sub.open > button svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 520px; padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px !important;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 981px) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.sub a { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 10px 12px; }
.sub a .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blush); font-size: 1.05rem; }
.sub a small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.nav-toggle {
  display: none; position: relative; z-index: 120; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .2s, top .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.nav-overlay { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header, .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 248, 243, .97); }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); z-index: 110;
    background: var(--cream); padding: calc(var(--header-h) + 8px) 20px 32px; overflow-y: auto;
    transform: translateX(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility .38s;
    box-shadow: -20px 0 60px -20px rgba(29,20,48,.4);
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .has-sub > button { font-size: 1.08rem; padding: .85em 1em; width: 100%; text-align: left; justify-content: space-between; }
  .sub {
    position: static; transform: none !important; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 8px;
    grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none !important;
  }
  .has-sub.open .sub { display: grid !important; }
  .sub a { font-size: .98rem; padding: 8px 10px; }
  .main-nav .nav-cta a { margin: 14px 0 0; text-align: center; justify-content: center; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(29,20,48,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; isolation: isolate; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: float 18s ease-in-out infinite; }
.blob.b1 { width: 460px; height: 460px; background: #ffb3bf; top: -120px; left: -120px; }
.blob.b2 { width: 380px; height: 380px; background: #c9b8ff; top: 20%; right: -100px; animation-delay: -6s; }
.blob.b3 { width: 320px; height: 320px; background: #ffd0b0; bottom: -140px; left: 40%; animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(.95); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .swap { display: inline-block; min-width: 4ch; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.search-box { position: relative; max-width: 520px; }
.search-box input {
  width: 100%; padding: 1.05em 1.2em 1.05em 3.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 500 1rem var(--sans); color: var(--ink); box-shadow: var(--shadow-sm); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255,93,115,.15); }
.search-box > svg { position: absolute; left: 1.15em; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px; max-height: 360px; overflow: auto; display: none;
}
.search-results.show { display: block; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.search-results a small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.search-results a:hover, .search-results a:focus { background: var(--blush); outline: none; }
.search-results .empty { padding: 10px 12px; color: var(--muted); font-size: .95rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-art { position: relative; aspect-ratio: 4 / 4.4; }
.hero-photo { position: absolute; inset: 0 0 0 8%; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s ease; }
.hero-art:hover .hero-photo img { transform: scale(1.12); }
.float-card {
  position: absolute; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600;
  animation: bob 6s ease-in-out infinite; text-decoration: none; max-width: 260px; line-height: 1.35;
}
.float-card .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.1rem; }
.float-card small { display: block; color: var(--muted); font-weight: 500; }
.float-card.f1 { top: 12%; left: -6%; }
.float-card.f2 { bottom: 10%; right: -4%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hearts { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.hearts i { position: absolute; bottom: -40px; color: var(--rose); opacity: 0; font-style: normal; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .5; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 24px 0; margin-top: -42px; position: relative; z-index: 2; }
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -30px; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font-family: var(--serif); font-size: 1.35rem; font-style: italic; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.marquee a::after { content: "♥"; color: var(--rose); font-style: normal; font-size: 1rem; }
.marquee a:hover { color: #ffb3bf; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-head p { color: var(--muted); max-width: 32em; margin: .6em 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rose); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blush); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover .thumb img { transform: scale(1.07); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--muted); display: flex; gap: 14px; }
.card.noimg .body { padding-top: 24px; }

.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 26px; }
.bento .card.big { grid-row: span 2; }
.bento .card.big .thumb { aspect-ratio: auto; flex: 1; min-height: 300px; }
.bento .card.big h3 { font-size: 1.65rem; }
.bento .card.big .body { flex: none; }

/* topics */
.topic {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; color: #fff; display: flex; align-items: flex-end;
  isolation: isolate; box-shadow: var(--shadow-sm);
}
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.topic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,20,48,0) 30%, rgba(29,20,48,.88) 100%); transition: background .4s; }
.topic:hover img { transform: scale(1.1); }
.topic:hover::before { background: linear-gradient(180deg, rgba(255,93,115,.15) 0%, rgba(29,20,48,.92) 100%); }
.topic .t-inner { padding: 22px; width: 100%; }
.topic h3 { margin: 0 0 4px; font-size: 1.45rem; }
.topic p { margin: 0; font-size: .9rem; opacity: .85; }
.topic .count { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: .3em .8em; font-size: .78rem; font-weight: 700; }

/* stage tabs */
.stage { background: var(--ink); color: #fff; border-radius: 32px; padding: 56px; position: relative; overflow: hidden; isolation: isolate; }
.stage::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(255,93,115,.45), transparent 65%); z-index: -1; }
.stage h2 { color: #fff; }
.stage .muted { color: #c9bdd8; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.tab { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; padding: .7em 1.2em; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.tab:hover { border-color: rgba(255,255,255,.5); }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; }
.tab-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tab-panel[hidden] { display: none; }
.tab-panel a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.06); text-decoration: none; font-weight: 600; transition: background .2s, transform .2s; }
.tab-panel a:hover { background: rgba(255,255,255,.14); transform: translateX(4px); }
.tab-panel a svg { flex: none; width: 18px; height: 18px; color: var(--coral); }
.fade-in { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* line of the day */
.lotd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lotd-card { position: relative; background: var(--grad-2); border-radius: 32px; padding: 48px 44px; color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); overflow: hidden; }
.lotd-card::before { content: "“"; position: absolute; top: -40px; right: 20px; font-family: var(--serif); font-size: 16rem; line-height: 1; opacity: .18; }
.lotd-card blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; transition: opacity .35s, transform .35s; }
.lotd-card blockquote.out { opacity: 0; transform: translateY(8px); }
.lotd-card .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.lotd-card .src { font-size: .9rem; opacity: .9; text-decoration: none; }
.lotd-card .btn { background: rgba(255,255,255,.2); color: #fff; padding: .7em 1.1em; backdrop-filter: blur(6px); }
.lotd-card .btn:hover { background: rgba(255,255,255,.32); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* CTA */
.cta { position: relative; border-radius: 32px; overflow: hidden; color: #fff; padding: 72px 56px; isolation: isolate; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(29,20,48,.92) 0%, rgba(59,29,74,.75) 55%, rgba(255,93,115,.35) 100%); }
.cta h2 { color: #fff; max-width: 15em; }
.cta p { max-width: 34em; color: #eadff2; }

/* ---------- page hero (inner) ---------- */
.page-hero { position: relative; padding: 56px 0 48px; overflow: hidden; isolation: isolate; }
.page-hero .blob { opacity: .4; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rose); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.cat-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cat-hero .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); transform: rotate(-2deg); }
.cat-hero .ph img { width: 100%; height: 100%; object-fit: cover; }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.filters .chip { cursor: pointer; border: 0; font-family: var(--sans); }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters input { flex: 1 1 240px; min-width: 0; padding: .75em 1.1em; border-radius: 999px; border: 1px solid var(--line); font: 500 .95rem var(--sans); outline: none; }
.filters input:focus { border-color: var(--rose); }
.no-results { display: none; color: var(--muted); padding: 30px 0; }

/* ---------- article ---------- */
.post-hero { padding: 48px 0 0; position: relative; overflow: hidden; isolation: isolate; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--muted); font-size: .9rem; margin: 18px 0 30px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 16px; height: 16px; }
.post-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; padding: 56px 0 80px; }
.prose { max-width: 720px; font-size: 1.08rem; }
.prose > .intro p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--rose); font-weight: 600; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 20px); position: relative; }
.prose h3 { margin-top: 1.5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose a { color: #d63852; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--rose); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--rose); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 1.2em 1.5em; border-left: 4px solid var(--rose); background: #fff; border-radius: 0 16px 16px 0; font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose .tip { margin: 1.6em 0; padding: 1.1em 1.3em 1.1em 3.4em; border-radius: 16px; background: linear-gradient(135deg, #fff1f3, #fff6ef); border: 1px solid #ffd9df; position: relative; font-size: 1rem; }
.prose .tip::before { content: "💡"; position: absolute; left: 1.1em; top: 1em; font-size: 1.25rem; }
.prose ol.lines { list-style: none; padding: 0; counter-reset: ln; display: grid; gap: 10px; }
.prose ol.lines li {
  counter-increment: ln; position: relative; margin: 0; padding: 14px 52px 14px 58px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s; line-height: 1.55;
}
.prose ol.lines li::before { content: counter(ln); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 9px; background: var(--blush); color: #c2304a; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.prose ol.lines li:hover { border-color: #ffc2cb; transform: translateX(3px); box-shadow: var(--shadow-sm); }
.copy-btn { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: .5; transition: opacity .2s, background .2s, color .2s; }
.copy-btn svg { width: 17px; height: 17px; }
li:hover > .copy-btn, .note-card:hover > .copy-btn, .copy-btn:focus { opacity: 1; }
.copy-btn:hover { background: var(--blush); color: var(--rose); }
.copy-btn.done { color: #1b9a5a; opacity: 1; }
.prose .note-card { position: relative; margin: 1.2em 0; padding: 1.4em 3.2em 1.4em 1.6em; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; box-shadow: var(--shadow-sm); }
.prose .note-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--grad); }
.prose .note-card p:last-child { margin: 0; }
.takeaways { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 0 0 2em; position: relative; overflow: hidden; }
.takeaways::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,93,115,.5), transparent 70%); }
.takeaways h2 { color: #fff; font-size: 1.25rem; margin: 0 0 .7em; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.takeaways li { padding-left: 30px; position: relative; margin: 0; font-size: 1rem; }
.takeaways li::before { content: "♥"; position: absolute; left: 4px; color: var(--coral); }
.faq { margin-top: 2.4em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--rose); display: grid; place-items: center; font-weight: 700; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s, color .2s; color: var(--ink); }
.share a:hover, .share button:hover { background: var(--rose); color: #fff; transform: translateY(-2px); }
.share svg { width: 18px; height: 18px; }
.aside { position: relative; }
.aside-inner { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.toc h2 { font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 52vh; overflow: auto; }
.toc a { display: block; padding: 7px 10px 7px 14px; border-left: 2px solid var(--line); text-decoration: none; font-size: .9rem; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--rose); border-color: var(--rose); background: #fff6f7; font-weight: 600; }
.aside-cta { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 24px; }
.aside-cta h3 { color: #fff; font-size: 1.25rem; }
.aside-cta p { font-size: .92rem; opacity: .95; }
.aside-cta .btn { background: #fff; color: var(--ink); }
.toc-mobile { display: none; margin: 0 0 1.8em; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.toc-mobile summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
.toc-mobile ol { margin: 0; padding: 0 18px 16px 38px; }
.toc-mobile a { text-decoration: none; font-size: .95rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .form select { width: 100%; padding: .9em 1.1em; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: 500 1rem var(--sans); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255,93,115,.12); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 14px; font-weight: 600; display: none; }
.alert.ok { display: block; background: #e8f8ef; color: #17784a; }
.alert.err { display: block; background: #fff0f1; color: #b4243c; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.info-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--blush); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.info-list a { font-weight: 700; text-decoration: none; color: var(--rose); }
.photo-rounded { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-rounded img { width: 100%; height: 100%; object-fit: cover; }

/* legal / plain */
.plain { max-width: 780px; }
.plain h2 { font-size: 1.5rem; margin-top: 1.6em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid .photo-rounded { aspect-ratio: 4 / 3.4; }
.sitemap-cols { columns: 3 260px; column-gap: 40px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 28px; }
.sitemap-cols h2 { font-size: 1.2rem; }
.sitemap-cols ul { padding-left: 1.1em; margin: 0; }
.sitemap-cols li { margin-bottom: 4px; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9cfe6; padding: 80px 0 30px; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(166,139,255,.25), transparent 65%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; position: relative; }
.site-footer .logo { color: #fff; }
.site-footer h2 { font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #d9cfe6; font-size: .95rem; transition: color .2s; }
.site-footer a:hover { color: #ffb3bf; }
.site-footer p { font-size: .95rem; color: #b8abc9; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 700; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #9d90b0; position: relative; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 300; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .aside { display: none; }
  .toc-mobile { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 70px; }
  .hero-grid, .lotd, .contact-grid, .about-grid, .cat-hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card.big { grid-column: span 2; grid-row: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .stage { padding: 36px 24px; border-radius: 24px; }
  .tab-panel { grid-template-columns: 1fr; }
  .cat-hero .ph { max-width: 520px; }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .bento { grid-template-columns: 1fr; }
  .bento .card.big { grid-column: auto; }
  .float-card { font-size: .8rem; padding: 10px 12px; max-width: 200px; }
  .float-card .ico { width: 32px; height: 32px; }
  .float-card.f1 { left: -2%; } .float-card.f2 { right: -2%; }
  .cta { padding: 48px 26px; border-radius: 24px; }
  .lotd-card { padding: 36px 26px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .post-cover { aspect-ratio: 16 / 10; }
  .prose ol.lines li { padding: 12px 44px 12px 52px; }
  .logo { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hearts { display: none; }
}
