@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&family=Petit+Formal+Script&display=swap');

:root {
  --bg: #ffffff;
  --pink: #f8f1ee;
  --blush: #e7cec7;
  --ink: #111111;
  --body: #666666;
  --line: #e1e3e1;
  --rose: #c72e58;
  --rose-dark: #a82348;
  --dark: #0f1217;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Petit Formal Script', cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); font-weight: 500; line-height: 1.2; }
strong { color: #2b2b2b; font-weight: 600; }
.shell { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.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;
}

/* top strip */
.topbar { background: var(--blush); color: #2a1d19; }
.topbar-in {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 10px; min-height: 28px; padding: 4px 16px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-align: center;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 18, 23, .84);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header { background: rgba(15, 18, 23, .97); }
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 64px; padding: 0 24px;
}
.brand { font-family: var(--font-script); font-size: 23px; line-height: 1; color: #fff; white-space: nowrap; }
.brand span { color: #ecd2c9; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a, .dd-btn {
  font-family: var(--font-body); font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: #e8e6e3;
  background: none; border: 0; cursor: pointer; transition: color .2s;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-links > a:hover, .dd-btn:hover { color: #ecd2c9; }
.btn-rose {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rose); color: #fff; min-height: 40px; padding: 0 20px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  border: 0; cursor: pointer; transition: background .2s;
}
.btn-rose:hover { background: var(--rose-dark); }
.nav-cta { min-height: 38px; }

/* dropdown */
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  width: 560px; padding: 10px; display: none;
  background: rgba(15, 18, 23, .97); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); z-index: 60;
}
.dd-panel.open { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-panel a {
  display: block; padding: 9px 12px; border: 1px solid transparent;
  font-size: 12px; color: #f4f1ef; transition: background .2s, border-color .2s;
}
.dd-panel a span { display: block; font-size: 10px; color: #b9b5b0; }
.dd-panel a:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.dd-note {
  grid-column: 1 / -1; padding: 4px 12px 8px; color: #b9b5b0;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}

/* breadcrumb + article head */
.crumbs { padding: 18px 0 0; font-size: 11px; letter-spacing: .08em; color: #8a8a8a; }
.crumbs a { color: #8a8a8a; }
.crumbs a:hover { color: var(--rose); }
.crumbs span { margin: 0 6px; color: #c4c4c4; }

.article-head { max-width: 780px; padding: 18px 0 0; }
.tag {
  display: inline-block; background: var(--pink); color: #8f2540;
  padding: 5px 10px; font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
}
.article-head h1 {
  margin-top: 14px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.01em;
}
.meta {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a;
}
.lead { margin-top: 16px; font-size: 17px; line-height: 1.8; color: #4d4d4d; }

.article-hero { margin: 24px 0 0; }
.article-hero img { width: 100%; aspect-ratio: 2.15 / 1; object-fit: cover; object-position: top; }
.article-hero figcaption { margin-top: 8px; font-size: 11px; color: #8a8a8a; }

/* article body */
.article-body { max-width: 760px; padding: 8px 0 40px; }
.article-body > p { margin-top: 16px; font-size: 16px; line-height: 1.85; }
.article-body h2 {
  margin: 34px 0 0; font-size: 27px; line-height: 1.25; padding-top: 18px;
  border-top: 1px solid var(--line); scroll-margin-top: 100px;
}
.article-body h3 { margin: 22px 0 0; font-size: 20px; }
.article-body p + p { margin-top: 14px; }
.article-body ul, .article-body ol { margin: 14px 0 0 0; padding-left: 0; list-style: none; }
.article-body li {
  position: relative; padding-left: 22px; margin-top: 8px;
  font-size: 15px; line-height: 1.8;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; background: var(--rose); border-radius: 50%;
}
.article-body ol { counter-reset: step; }
.article-body ol li { counter-increment: step; }
.article-body ol li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--font-heading); font-size: 14px; color: var(--rose);
}
.article-body a {
  color: #a82348; font-weight: 500;
  border-bottom: 1px solid rgba(199, 46, 88, .3); transition: border-color .2s, color .2s;
}
.article-body a:hover { color: var(--rose-dark); border-color: var(--rose-dark); }

.callout {
  margin-top: 22px; padding: 16px 18px; background: var(--pink);
  border-left: 2px solid var(--rose); font-size: 14px; line-height: 1.8; color: #4d4d4d;
}
.callout strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
.example {
  margin-top: 22px; border: 1px solid var(--line); padding: 16px 18px; background: #fff;
}
.example h3 { margin: 0 0 6px; font-size: 18px; }
.example p { font-size: 14px; line-height: 1.8; }
.example .sum { display: block; margin-top: 8px; font-weight: 600; color: #a82348; }

.table-wrap { margin-top: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
caption { text-align: left; font-size: 11px; color: #8a8a8a; padding-bottom: 6px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { color: var(--ink); font-weight: 500; }
td:last-child, th:last-child { text-align: right; }

/* faq block */
.article-faq { max-width: 760px; margin-top: 8px; padding-top: 8px; }
.article-faq h2 { border-top: 1px solid var(--line); padding-top: 18px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--rose); font-size: 18px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 16px; font-size: 14px; line-height: 1.85; }

/* related + back */
.related { border-top: 1px solid var(--line); margin-top: 12px; padding: 26px 0 0; }
.related h2 { font-size: 24px; }
.related ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin-top: 14px; list-style: none; }
.related li { border-bottom: 1px solid var(--pink); }
.related a { display: flex; gap: 10px; padding: 11px 0; font-size: 13px; line-height: 1.6; color: #3a3a3a; }
.related a:hover { color: var(--rose); }
.related a i { color: var(--rose); font-size: 13px; margin-top: 3px; }

.next-cta {
  margin: 32px 0 0; border: 1px solid var(--line); background: var(--pink);
  padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.next-cta h2 { font-size: 22px; max-width: 420px; }
.next-cta p { font-size: 12px; color: #6a6a6a; margin-top: 4px; }
.next-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ghost-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px;
  border: 1px solid #bdb3ad; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #2f2f2f;
  transition: border-color .2s, color .2s;
}
.ghost-link:hover { border-color: var(--rose); color: var(--rose); }

/* footer */
.site-footer { background: var(--dark); color: #c9c7c4; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 30px; }
.site-footer h2 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.site-footer a { font-size: 13px; color: #c9c7c4; transition: color .2s; }
.site-footer a:hover { color: #ecd2c9; }
.site-footer ul { list-style: none; display: grid; gap: 7px; }
.footer-brand { font-family: var(--font-script); font-size: 24px; color: #fff; }
.footer-brand span { color: #ecd2c9; }
.footer-about { margin-top: 12px; font-size: 13px; line-height: 1.8; color: #b6b3af; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 22px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 11px; color: #94918d;
}

/* mobile bottom bar */
.mobilebar {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  background: rgba(15, 18, 23, .94); border-top: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobilebar .rows { display: grid; grid-template-columns: repeat(4, 1fr); }
.mobilebar a, .mobilebar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; padding: 6px 2px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 10px; font-weight: 500; color: #dcd9d6;
}
.mobilebar a:active, .mobilebar button:active { color: #ecd2c9; }
.mobilebar i { font-size: 19px; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15, 18, 23, .6); cursor: pointer; }
.sheet-panel {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column;
  max-height: 80vh; background: #fff; border-top: 2px solid var(--rose);
  padding-bottom: env(safe-area-inset-bottom); animation: sheetUp .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head .kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #a82348; font-weight: 600; }
.sheet-head h2 { font-size: 24px; margin-top: 2px; }
.sheet-close {
  width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border: 1px solid #cfcfcf; background: #fff; cursor: pointer; font-size: 20px; color: #333;
}
.sheet-close:hover { border-color: var(--rose); color: var(--rose); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; }
.sheet-body ul { list-style: none; }
.sheet-body li { border-bottom: 1px solid #f0ece9; }
.sheet-body a { display: flex; gap: 10px; align-items: flex-start; min-height: 50px; padding: 12px 0; font-size: 14px; color: #2f2f2f; line-height: 1.5; }
.sheet-body a small { display: block; font-size: 11px; color: #8a8a8a; }
.sheet-body a .num { font-family: var(--font-heading); color: var(--rose); font-size: 13px; }
body.locked { overflow: hidden; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .mobilebar { display: block; }
  body { padding-bottom: 74px; }
  .brand { font-size: 21px; }
  .nav-inner { padding: 0 16px; }
  .nav-cta { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .article-head h1 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .article-body > p { font-size: 15.5px; }
  .article-body h2 { font-size: 23px; margin-top: 28px; }
  .article-hero img { aspect-ratio: 1.5 / 1; }
  .related ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0 22px; }
  .next-cta { padding: 18px; }
  .related { margin-top: 8px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .crumbs { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}