:root {
  --violet: #6758ff;
  --violet-dark: #4f3ee8;
  --violet-soft: #ece9ff;
  --canvas: #f1f1f1;
  --card: #ffffff;
  --ink: #20202a;
  --muted: #696976;
  --line: #dedee7;
  --success: #087f5b;
  --shadow: 0 16px 45px rgba(44, 37, 112, .09);
  --radius: 18px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.wrap { width: min(calc(100% - 36px), var(--wrap)); margin-inline: auto; }
.wrap--article { max-width: 830px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: #fff; color: #111; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; line-height: 1; }
.brand__name { font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 29px; letter-spacing: -.05em; text-shadow: 0 2px 12px rgba(0,0,0,.16); }
.brand__name span { font-family: ui-sans-serif, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-left: 5px; padding: 3px 7px; color: #fff; background: #171722; border-radius: 20px; vertical-align: middle; }
.brand__tag { margin-top: 7px; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.site-nav ul { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 9px 12px; border-radius: 9px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255,255,255,.17); }
.menu-toggle { display: none; width: 43px; height: 43px; padding: 9px; border: 0; border-radius: 11px; color: #fff; background: rgba(255,255,255,.13); cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 3px; margin: 5px 0; background: #fff; border-radius: 4px; }

.archive-titlebar { padding: 24px 0 20px; background: #f7f7fb; border-bottom: 1px solid var(--line); }
.archive-titlebar h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.archive-description { max-width: 720px; margin-top: 7px; color: var(--muted); font-size: 15px; }
.archive-description p { margin: 0; }
.search-form { display: flex; align-items: center; width: min(100%, 700px); min-height: 62px; margin: 30px auto 0; padding: 6px 7px 6px 18px; background: #fff; border: 2px solid var(--violet); border-radius: 14px; box-shadow: 0 12px 30px rgba(77,61,205,.13); }
.search-form > span { color: var(--violet); font-size: 26px; line-height: 1; transform: rotate(-15deg); }
.search-form input { min-width: 0; flex: 1; padding: 9px 12px; border: 0; outline: 0; background: transparent; }
.search-form button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 19px; border: 0; border-radius: 10px; color: #fff; background: var(--violet); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.search-form button:hover, .button:hover { background: var(--violet-dark); }
.archive-section { padding-block: 28px 64px; }
.archive-section--home { padding-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.section-heading > span { color: var(--violet); font-size: 20px; white-space: nowrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.post-card { display: flex; overflow: hidden; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(35,30,75,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: #c8c0ff; box-shadow: var(--shadow); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 24px; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.post-card__meta a { color: var(--violet-dark); font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.post-card h2, .post-card h3 { margin: 0; font-size: 22px; line-height: 1.26; letter-spacing: -.025em; }
.post-card h3 { font-size: 20px; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--violet-dark); }
.post-card p { margin: 12px 0 17px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.post-card .text-link { margin-top: auto; }
.text-link { color: var(--violet-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(3px); }
.pagination .nav-links { display: flex; justify-content: center; gap: 7px; margin-top: 42px; }
.pagination .page-numbers { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 5px; border-radius: 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { color: #fff; background: var(--violet); border-color: var(--violet); }
.empty-state { padding: 50px; text-align: center; background: #fff; border-radius: var(--radius); }

.single-hero { padding: 20px 0 17px; background: #f7f7fb; border-bottom: 1px solid var(--line); text-align: left; }
.single-hero--page { padding-block: 28px; }
.single-hero h1 { max-width: 940px; margin: 0; font-size: clamp(31px, 3.7vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.single-deck { max-width: 820px; margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.article-layout { display: block; padding-block: 14px 60px; }
.article-content { min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.article-prose { width: min(100%, 880px); margin: 36px auto 0; padding: 36px 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(34,29,75,.04); }
.article-content--guide .article-prose { margin-top: 0; }
.article-prose > *:first-child { margin-top: 0; }
.article-content p, .article-content li { color: #42424d; }
.article-content h2 { margin: 40px 0 14px; font-size: clamp(27px, 4vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.article-content h3 { margin: 28px 0 10px; font-size: 22px; line-height: 1.3; }
.article-content a { color: var(--violet-dark); }
.article-content ul, .article-content ol { padding-left: 23px; }
.article-content li + li { margin-top: 7px; }
.live-generator { margin: 0 0 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(35,30,75,.04); }
.live-generator__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 2px 8px; }
.live-generator__heading label { font-size: 14px; font-weight: 850; line-height: 1.3; }
.live-generator__heading span { color: var(--muted); font-size: 12px; line-height: 1.3; }
.live-generator__field { display: flex; gap: 9px; }
.live-generator__input { width: 100%; min-width: 0; min-height: 54px; padding: 11px 15px; color: var(--ink); background: #fbfbff; border: 2px solid #bdb4ff; border-radius: 10px; outline: 0; font-size: 18px; line-height: 1.3; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.live-generator__input:focus { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(103,88,255,.13); }
.live-generator__clear { flex: none; min-width: 76px; min-height: 54px; padding: 10px 14px; color: var(--violet-dark); background: var(--violet-soft); border: 1px solid #d5ceff; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.live-generator__clear:hover, .live-generator__clear:focus-visible { color: #fff; background: var(--violet); border-color: var(--violet); }
.copy-section { margin: 0; }
.copy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.copy-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; min-height: 62px; padding: 9px 10px 9px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgba(35,30,75,.025); text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.copy-item:hover { border-color: #bdb4ff; box-shadow: 0 7px 18px rgba(44,37,112,.08); transform: translateY(-1px); }
.copy-item:focus-visible { outline: 3px solid rgba(103,88,255,.28); outline-offset: 2px; border-color: var(--violet); }
.copy-item__text { min-width: 0; overflow-x: auto; scrollbar-width: thin; color: #252333; font-family: Georgia, "Times New Roman", serif; font-size: 19px; white-space: nowrap; }
.copy-button { flex: none; min-width: 64px; padding: 7px 10px; border: 1px solid #d5ceff; border-radius: 8px; color: var(--violet-dark); background: #f0edff; font-size: 12px; font-weight: 800; text-align: center; pointer-events: none; }
.copy-item:hover .copy-button, .copy-button.is-copied { color: #fff; background: var(--violet); border-color: var(--violet); }
.copy-item.is-empty { opacity: .58; cursor: default; transform: none; }
.copy-section[data-live-mode="zalgo"] .copy-item { min-height: 72px; overflow: hidden; }
.copy-section[data-live-mode="zalgo"] .copy-item__text { padding-block: 6px; line-height: 1.75; }
.tip-box, .quick-answer { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--violet); border-radius: 0 12px 12px 0; background: var(--violet-soft); }
.tip-box strong, .quick-answer strong { display: block; margin-bottom: 5px; }
.quick-answer p { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 17px 3px; font-weight: 750; cursor: pointer; }
.faq-list details p { margin: -3px 3px 18px; }
.article-cta { display: flex; width: min(100%, 880px); align-items: center; justify-content: space-between; gap: 22px; margin: 28px auto 0; padding: 25px; color: #fff; background: var(--violet); border-radius: 15px; }
.article-cta span { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.article-cta h2, .article-content .article-cta h2 { margin: 6px 0; font-size: 25px; }
.article-cta p { margin: 0; color: rgba(255,255,255,.84); font-size: 14px; }
.button--light { flex: none; color: var(--violet-dark); background: #fff; }
.button--light:hover { color: #fff; background: #272331; }
.related { padding-bottom: 78px; }
.page-content { margin-block: 46px 70px; }

.site-footer { color: #eceaff; background: #252237; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 55px; padding-block: 54px 42px; }
.brand--footer { align-items: flex-start; }
.brand--footer .brand__name { font-size: 26px; }
.site-footer p { max-width: 490px; color: #bdb9d3; font-size: 14px; }
.site-footer h2 { margin: 0 0 13px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #d9d6e8; font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #aaa5c4; font-size: 12px; }
.copy-toast { position: fixed; z-index: 1000; right: 22px; bottom: 22px; padding: 11px 16px; color: #fff; background: var(--success); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px; font-weight: 800; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.copy-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .site-header__inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; color: #fff; background: var(--violet-dark); transition: max-height .25s ease; }
  .site-nav.is-open { max-height: 460px; box-shadow: 0 10px 20px rgba(0,0,0,.18); }
  .site-nav ul { display: block; width: min(calc(100% - 36px), var(--wrap)); margin: 10px auto; }
  .site-nav a { padding: 12px; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .copy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 24px), var(--wrap)); }
  .brand { align-items: flex-start; }
  .brand__name { font-size: 24px; }
  .brand__tag { font-size: 8px; }
  .search-form { min-height: 55px; padding-left: 14px; }
  .search-form button { padding-inline: 13px; }
  .archive-titlebar { padding-block: 18px 15px; }
  .archive-section { padding-block: 18px 48px; }
  .archive-section--home { padding-top: 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card__body { padding: 19px 18px 21px; }
  .site-header__inner { min-height: 66px; }
  .single-hero { padding-block: 15px 13px; }
  .single-hero h1 { font-size: clamp(29px, 9vw, 37px); }
  .single-deck { margin-top: 6px; font-size: 15px; }
  .article-layout { padding-block: 10px 46px; }
  .article-prose { margin-top: 26px; padding: 25px 19px; border-radius: 14px; }
  .live-generator { padding: 10px; border-radius: 12px; }
  .live-generator__heading { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 7px; }
  .live-generator__input { min-height: 52px; padding-inline: 12px; font-size: 16px; }
  .live-generator__clear { min-width: 68px; min-height: 52px; padding-inline: 10px; }
  .copy-grid { grid-template-columns: 1fr; }
  .copy-item { min-height: 58px; }
  .article-cta { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
}

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