/* =========================================================
   Trionexiumix — Beauty & Skincare
   Light theme (default) + Dark theme via [data-theme="dark"]
   ========================================================= */
:root {
  --bg: #FBF6F3;
  --bg-2: #F5ECE8;
  --surface: #FFFFFF;
  --surface-2: #FFF9F6;
  --ink: #2B1A24;
  --ink-2: #4A3842;
  --muted: #76636D;
  --line: #EBDDD8;
  --line-2: #F2E7E3;
  --accent: #B4536A;
  --accent-ink: #FFFFFF;
  --accent-2: #6E3456;
  --accent-soft: #F7E1E3;
  --gold: #C79A5B;
  --sage: #7E9B7A;
  --tip-bg: #F3F7F1;
  --tip-line: #9DBB97;
  --shadow-sm: 0 1px 2px rgba(74, 34, 52, .06), 0 2px 8px rgba(74, 34, 52, .05);
  --shadow: 0 2px 6px rgba(74, 34, 52, .05), 0 14px 34px -12px rgba(74, 34, 52, .18);
  --shadow-lg: 0 30px 60px -24px rgba(90, 40, 60, .32);
  --orb-1: rgba(240, 186, 192, .55);
  --orb-2: rgba(214, 196, 236, .45);
  --orb-3: rgba(250, 222, 196, .5);
  --header-bg: rgba(251, 246, 243, .78);
  --radius: 20px;
  --radius-sm: 12px;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #150F15;
  --bg-2: #1C141C;
  --surface: #221923;
  --surface-2: #281D29;
  --ink: #F6ECF0;
  --ink-2: #E2D2DA;
  --muted: #B4A1AC;
  --line: #3A2B38;
  --line-2: #2F232E;
  --accent: #EC94A6;
  --accent-ink: #2A0F1A;
  --accent-2: #F3B7C4;
  --accent-soft: #3A2030;
  --gold: #E0B77C;
  --sage: #A4C19F;
  --tip-bg: #1E2620;
  --tip-line: #6E8F69;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .75);
  --orb-1: rgba(180, 83, 106, .22);
  --orb-2: rgba(110, 72, 160, .2);
  --orb-3: rgba(160, 100, 60, .14);
  --header-bg: rgba(21, 15, 21, .78);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.container.narrow-wide { max-width: 980px; }
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* decorative background */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(70px); }
.bg-orbs span:nth-child(1) { width: 560px; height: 560px; background: var(--orb-1); top: -180px; left: -160px; }
.bg-orbs span:nth-child(2) { width: 520px; height: 520px; background: var(--orb-2); top: 10%; right: -200px; }
.bg-orbs span:nth-child(3) { width: 600px; height: 600px; background: var(--orb-3); bottom: -260px; left: 30%; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(150, 100, 120, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.45em; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.1;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn .ico { width: 1.05em; height: 1.05em; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(180, 83, 106, .7); }
:root[data-theme="dark"] .btn-primary { color: var(--accent-ink); background: linear-gradient(135deg, #F3B0BF, var(--accent)); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(180, 83, 106, .75); }
:root[data-theme="dark"] .btn-primary:hover { color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.42rem; letter-spacing: -.01em; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 5px; }
.logo-mark { flex: none; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(180, 83, 106, .8); }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a, .drop-btn {
  position: relative; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem;
  background: none; border: 0; display: inline-flex; align-items: center; gap: 4px; transition: color .2s, background .2s;
}
.main-nav > a:hover, .drop-btn:hover, .main-nav > a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.drop-btn .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-drop.open .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 961px) { .nav-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); } .nav-drop:hover .drop-btn .ico { transform: rotate(180deg); } }
.drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.drop-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); text-decoration: none; transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn .ico { width: 20px; height: 20px; }
.theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: none; }
.menu-toggle { display: none; }
.menu-toggle .m-close { display: none; }
.menu-open .menu-toggle .m-close { display: inline-flex; }
.menu-open .menu-toggle .m-open { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.eyebrow { padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); }
.eyebrow .ico { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 600; background: linear-gradient(transparent 70%, color-mix(in srgb, var(--accent) 22%, transparent) 70%); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-cta.center { justify-content: center; }
.hero-stats { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-serif); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.hero-stats span { font-size: .88rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-frame { border-radius: 36px 36px 220px 36px; overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid var(--surface); transform: rotate(1deg); }
.hero-frame img { width: 100%; aspect-ratio: 10/9; object-fit: cover; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 18px; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); animation: floaty 6s ease-in-out infinite;
}
.float-chip strong { display: block; color: var(--ink); font-size: .98rem; }
.float-chip .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.chip-a { left: -28px; bottom: 18%; }
.chip-b { right: -10px; top: 8%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.pt-0 { padding-top: 8px; }
.section-tint { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 85%, transparent) 18%, color-mix(in srgb, var(--bg-2) 85%, transparent) 82%, transparent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.cat-card:first-child { grid-column: span 2; grid-row: span 2; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); color: var(--ink); }
.cat-img { display: block; overflow: hidden; aspect-ratio: 16/10; }
.cat-card:first-child .cat-img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-info { display: flex; flex-direction: column; padding: 16px 18px 18px; border-top: 3px solid var(--c); }
.cat-info strong { font-family: var(--font-serif); font-size: 1.15rem; }
.cat-card:first-child .cat-info strong { font-size: 1.5rem; }
.cat-info small { color: var(--c); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.cat-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: 6px; display: none; }
.cat-card:first-child .cat-desc { display: block; }
.cat-card:nth-child(6), .cat-card:nth-child(7) { grid-column: span 2; flex-direction: row; }
.cat-card:nth-child(6) .cat-img, .cat-card:nth-child(7) .cat-img { width: 52%; flex: none; }
.cat-card:nth-child(6) .cat-info, .cat-card:nth-child(7) .cat-info { border-top: 0; border-left: 3px solid var(--c); justify-content: center; }
.cat-card:nth-child(6) .cat-desc, .cat-card:nth-child(7) .cat-desc { display: block; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card-title { font-size: 1.22rem; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease; }
.card-title a:hover { background-size: 100% 1.5px; color: var(--ink); }
.card-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .ico { width: 15px; height: 15px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
:root[data-theme="dark"] .pill { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
.pill:hover { color: var(--c); background: color-mix(in srgb, var(--c) 22%, var(--surface)); }

.featured-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
.card-lg .card-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.card-lg .card-excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
.card-lg .card-body { padding: 26px 28px 28px; }
.side-list { display: grid; gap: 16px; }
.card-row { flex-direction: row; }
.card-row .card-media { width: 40%; flex: none; aspect-ratio: auto; }
.card-row .card-media img { object-position: 78% 50%; }
.card-row .card-body { padding: 14px 18px; gap: 6px; }
.card-row .card-title { font-size: 1.05rem; }
.card-row .card-excerpt { display: none; }

/* start here */
.start-box {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 44px; border-radius: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%, color-mix(in srgb, var(--gold) 14%, var(--surface)));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.start-copy p:last-child { color: var(--muted); margin: 0; }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.start-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.start-list a:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: var(--shadow-sm); color: var(--ink); }
.start-list .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-family: var(--font-serif); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.start-list strong { display: block; font-weight: 600; line-height: 1.35; }
.start-list small { color: var(--muted); }
.start-list > li > a > .ico { margin-left: auto; color: var(--accent); }

/* values */
.values { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px; align-items: stretch; }
.values-head p { color: var(--muted); }
.value { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- page hero / listing ---------- */
.page-hero { padding: 42px 0 34px; }
.page-hero.center { text-align: center; }
.page-hero .lead { margin-bottom: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.search-box { position: relative; max-width: 560px; margin: 26px 0 18px; }
.search-box > .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search-box input {
  width: 100%; padding: 16px 20px 16px 52px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --c: var(--accent); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: .9rem; font-weight: 500; text-decoration: none; transition: all .2s;
}
.chip:hover { border-color: var(--c); color: var(--c); }
.chip.is-active { background: var(--c); border-color: var(--c); color: #fff; }
:root[data-theme="dark"] .chip.is-active { color: #1a1015; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.cat-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cat-hero h1 { position: relative; }
.cat-hero .kicker { color: var(--c); }
.cat-hero-img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--surface); }
.other-cats { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.other-cats h2 { font-size: 1.4rem; }
.big-404 { font-family: var(--font-serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--accent); }

/* ---------- article ---------- */
.post-header { padding: 34px 0 8px; }
.post-header h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin: 16px 0 14px; line-height: 1.14; }
.post-dek { font-size: 1.18rem; color: var(--muted); max-width: 65ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .9rem; color: var(--muted); padding: 16px 0 6px; border-top: 1px solid var(--line); }
.post-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-meta a:hover { color: var(--accent); }
.avatar { display: inline-flex; border-radius: 50%; overflow: hidden; }
.avatar svg { border-radius: 50%; }
.post-figure { margin: 22px 0 6px; }
.post-figure img { width: 100%; border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }
.post-figure figcaption, .prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.post-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; max-width: 1120px; padding-top: 34px; }
.post-aside { position: relative; }
.post-aside > * { position: sticky; top: 100px; }
.post-aside > * + * { position: static; margin-top: 18px; }
.toc, .aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.toc-title { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: 60vh; overflow: auto; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.4; transition: background .2s, color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .75rem; color: var(--accent); font-weight: 700; padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--accent-soft); color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share .ico { width: 14px; height: 14px; }
.post-main { min-width: 0; max-width: 740px; }

.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose > p:first-of-type::first-letter { font-family: var(--font-serif); float: left; font-size: 3.6em; line-height: .9; padding: 6px 12px 0 0; color: var(--accent); font-weight: 700; }
.legal > p:first-of-type::first-letter { all: unset; }
.prose h2 { margin: 2em 0 .6em; padding-top: .2em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); position: relative; }
.prose h2::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.28rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .35em 0; padding-left: .25em; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; }
.prose img { border-radius: 18px; margin: 0 auto; }
.prose figure { margin: 1.8em 0; }
.prose blockquote { margin: 1.8em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 16px 16px 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote.tip { border-left-color: var(--tip-line); background: var(--tip-bg); position: relative; padding-left: 62px; }
.prose blockquote.tip::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tip-line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.prose blockquote.tip strong { color: var(--sage); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.prose table, .legal table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink); font-weight: 600; font-family: var(--font-sans); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--surface-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

.medical-note { display: flex; gap: 14px; padding: 18px 20px; margin: 40px 0 26px; border-radius: 18px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); font-size: .92rem; color: var(--muted); }
.medical-note p { margin: 0; }
.medical-note > .ico { width: 26px; height: 26px; color: var(--accent); }
.author-box { display: flex; gap: 18px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.author-box p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.author-box .ab-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.author-box .ab-date { font-size: .85rem; margin: 6px 0 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.pn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.pn small { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.pn span { font-family: var(--font-serif); font-weight: 600; line-height: 1.35; }
.pn.next { text-align: right; }

/* ---------- contact / legal ---------- */
.legal h2 { font-size: 1.5rem; }
.legal h2::after { width: 34px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.contact-grid h2 { margin-top: 0; }
.contact-side { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); align-self: start; font-size: .98rem; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; font-weight: 500; }
.form-alert.success { background: var(--tip-bg); border: 1px solid var(--tip-line); color: var(--ink); }
.form-alert.error { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); }
.contact-form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 64px 0 28px; background: var(--surface); border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), var(--gold), transparent); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin: 16px 0; max-width: 36ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.footer-h { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* cookie + to top */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; width: min(760px, calc(100% - 28px));
  display: flex; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); font-size: .9rem;
}
.cookie-banner p { margin: 0; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.to-top .ico { transform: rotate(-90deg); width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card:first-child { grid-column: span 3; grid-row: auto; flex-direction: row; }
  .cat-card:first-child .cat-img { width: 50%; min-height: 0; aspect-ratio: 16/10; flex: none; }
  .cat-card:first-child .cat-info { border-top: 0; border-left: 3px solid var(--c); justify-content: center; padding: 24px; }
  .cat-card:nth-child(6), .cat-card:nth-child(7) { grid-column: auto; flex-direction: column; }
  .cat-card:nth-child(6) .cat-img, .cat-card:nth-child(7) .cat-img { width: 100%; }
  .cat-card:nth-child(6) .cat-info, .cat-card:nth-child(7) .cat-info { border-left: 0; border-top: 3px solid var(--c); justify-content: flex-start; }
  .cat-card:nth-child(6) .cat-desc, .cat-card:nth-child(7) .cat-desc { display: none; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .values-head { grid-column: 1 / -1; }
  .post-layout { grid-template-columns: 1fr; gap: 24px; }
  .post-aside { order: 2; }
  .post-aside > * { position: static; }
  .post-main { max-width: none; }
  .toc ol { max-height: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 24px 40px;
    background: var(--bg); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; margin: 0;
  }
  .menu-open .main-nav { transform: none; visibility: visible; }
  .main-nav > a, .drop-btn { font-size: 1.1rem; padding: 14px 16px; border-radius: 14px; justify-content: space-between; width: 100%; }
  .drop-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 10px; display: none; min-width: 0; }
  .nav-drop.open .drop-menu { display: block; transform: none; }
  .nav-drop.open .drop-btn .ico { transform: rotate(180deg); }
  .hero-grid, .featured-grid, .start-box, .cat-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .start-box { padding: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { height: 68px; gap: 10px; }
  .main-nav { top: 68px; }
  .brand-text { font-size: 1.2rem; }
  .brand-text small { display: none; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .header-actions > a.icon-btn { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card:first-child { grid-column: span 2; flex-direction: column; }
  .cat-card:first-child .cat-img { width: 100%; }
  .cat-card:first-child .cat-info { border-left: 0; border-top: 3px solid var(--c); padding: 16px 18px; }
  .cat-info { padding: 12px 14px 14px; }
  .cat-info strong { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card-row .card-media { width: 36%; }
  .values { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .chip-a { left: 6px; bottom: 6%; }
  .chip-b { right: 6px; top: 4%; }
  .float-chip { padding: 9px 12px; font-size: .78rem; }
  .float-chip .ico { width: 32px; height: 32px; padding: 7px; }
  .hero-stats { gap: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .pn.next { text-align: left; }
  .author-box { flex-direction: column; }
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 10px; }
  .cookie-actions .btn { flex: 1; }
  .start-box { padding: 22px; border-radius: 24px; }
  .prose { font-size: 1.03rem; }
  .prose blockquote.tip { padding-left: 54px; }
  .prose blockquote.tip::before { left: 14px; }
  .footer-grid { gap: 28px; }
  .crumbs [aria-current] { max-width: 28ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .post-aside, .cookie-banner, .to-top, .bg-orbs, .post-nav, .section-tint { display: none !important; }
  body { background: #fff; color: #000; }
}
