:root {
  --ub-wt-yellow: #facf48;
  --ub-wt-violet: #dcc5ff;
  --ub-wt-ink: #363636;
  --ub-wt-muted: #6f747c;
  --ub-wt-paper: #f5f5f7;
  --ub-wt-white: #fff;
  --ub-wt-line: rgba(54, 54, 54, .16);
  --ub-wt-radius: 28px;
  --ub-wt-content: 760px;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.ub-wtstudio-theme { margin: 0; background: var(--ub-wt-paper); color: var(--ub-wt-ink); font-family: "Noto Sans Display", "Lexend", Arial, sans-serif; }
.ub-wtstudio-theme *, .ub-wtstudio-theme *::before, .ub-wtstudio-theme *::after { box-sizing: border-box; }
.ub-wtstudio-theme a { color: inherit; }

.ub-site-header, .ub-site-footer { width: min(100% - 48px, 1400px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.ub-site-header { min-height: 96px; border-bottom: 1px solid var(--ub-wt-line); }
.ub-site-brand { font-size: 1.25rem; font-weight: 750; text-decoration: none; letter-spacing: -.04em; }
.ub-site-back { display: inline-flex; gap: 12px; align-items: center; font-weight: 650; text-decoration: none; }
.ub-site-back span { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 50%; background: var(--ub-wt-yellow); transition: transform .2s ease; }
.ub-site-back:hover span { transform: rotate(45deg); }

.ub-editorial-article { width: min(100% - 48px, 1400px); margin-inline: auto; }
.ub-article-progress { position: fixed; z-index: 1100; inset: 0 auto auto 0; width: 0; height: 5px; background: var(--ub-wt-yellow); box-shadow: 0 0 18px rgba(250, 207, 72, .45); }

.ub-article-hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(54px, 8vw, 120px) 0; }
.ub-article-hero__copy { max-width: 720px; }
.ub-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(50px, 8vw, 110px); color: var(--ub-wt-muted); font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; }
.ub-breadcrumbs a { text-decoration: none; }
.ub-breadcrumbs a:hover { color: var(--ub-wt-ink); }
.ub-article-kicker, .ub-section-label { margin: 0 0 18px; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
.ub-article-kicker::before { content: ""; display: inline-block; width: 34px; height: 8px; margin-right: 12px; border-radius: 99px; background: var(--ub-wt-yellow); }
.ub-article-hero h1 { margin: 0; max-width: 16ch; font-size: clamp(3rem, 5.8vw, 6.3rem); line-height: .96; letter-spacing: -.065em; text-wrap: balance; }
.ub-article-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; color: var(--ub-wt-muted); font-size: .9rem; font-weight: 650; }
.ub-article-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 0; border-radius: 50%; background: var(--ub-wt-violet); }
.ub-cover-wrap { position: relative; overflow: hidden; margin: 0; min-height: 560px; height: min(70vh, 760px); border-radius: var(--ub-wt-radius); background: #ddd; }
.ub-cover-wrap::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.3); border-radius: inherit; pointer-events: none; }
.ub-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ub-cover-placeholder { min-height: 560px; display: grid; place-items: center; border-radius: var(--ub-wt-radius); overflow: hidden; background: linear-gradient(145deg, var(--ub-wt-violet), var(--ub-wt-yellow)); }
.ub-cover-placeholder span, .ub-card__placeholder span { font-family: "Syncopate", sans-serif; font-size: clamp(3rem, 8vw, 8rem); font-weight: 700; opacity: .22; }

.ub-article-layout { display: grid; grid-template-columns: minmax(0, var(--ub-wt-content)) minmax(260px, 350px); justify-content: center; align-items: start; gap: clamp(48px, 8vw, 130px); padding: clamp(70px, 10vw, 150px) 0; border-top: 1px solid var(--ub-wt-line); }
.ub-content { width: 100%; max-width: var(--ub-wt-content); min-width: 0; overflow: hidden; font-size: clamp(1.08rem, 1.15vw, 1.22rem); line-height: 1.8; }
.ub-content > * { max-width: 100%; }
.ub-content p, .ub-content li, .ub-content blockquote, .ub-content p span, .ub-content li span { white-space: normal !important; overflow-wrap: anywhere; word-break: normal; }
.ub-content pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.ub-content table { display: block; max-width: 100%; overflow-x: auto; }
.ub-content > p:first-child { margin-top: 0; font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.45; letter-spacing: -.025em; }
.ub-content p { margin: 0 0 1.55em; }
.ub-content h2, .ub-content h3, .ub-content h4 { scroll-margin-top: 110px; text-wrap: balance; letter-spacing: -.045em; }
.ub-content h2 { margin: 2.7em 0 .8em; font-size: clamp(2.1rem, 3.8vw, 3.8rem); line-height: 1.08; }
.ub-content h3 { margin: 2.25em 0 .7em; font-size: clamp(1.55rem, 2.5vw, 2.45rem); line-height: 1.15; }
.ub-content h4 { margin: 2em 0 .65em; font-size: 1.35rem; }
.ub-content h2::before { content: ""; display: block; width: 56px; height: 10px; margin-bottom: 24px; border-radius: 99px; background: var(--ub-wt-yellow); }
.ub-content img { max-width: 100%; height: auto; border-radius: 18px; }
.ub-content figure { margin: 3em 0; }
.ub-content figcaption { margin-top: 10px; color: var(--ub-wt-muted); font-size: .8rem; }
.ub-content a { text-decoration-color: var(--ub-wt-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ub-content blockquote { margin: 2.6em 0; padding: clamp(28px, 5vw, 52px); border: 0; border-radius: 22px; background: var(--ub-wt-violet); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.4; font-weight: 650; letter-spacing: -.025em; }
.ub-content ul, .ub-content ol { padding-left: 1.25em; margin: 0 0 1.8em; }
.ub-content li { margin-bottom: .7em; padding-left: .35em; }
.ub-content hr { margin: 4em 0; border: 0; border-top: 1px solid var(--ub-wt-line); }

.ub-toc { position: sticky; top: 34px; padding: 26px; border: 1px solid var(--ub-wt-line); border-radius: 22px; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); }
.ub-toc .ub-section-label { padding-bottom: 18px; border-bottom: 1px solid var(--ub-wt-line); }
#ub-toc-nav { max-height: min(48vh, 460px); overflow: auto; scrollbar-width: thin; }
#ub-toc-nav a { position: relative; display: block; padding: 8px 8px 8px 18px; color: var(--ub-wt-muted); font-size: .82rem; line-height: 1.35; text-decoration: none; transition: color .2s ease, transform .2s ease; }
#ub-toc-nav a::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--ub-wt-line); }
#ub-toc-nav a:hover, #ub-toc-nav a.active, #ub-toc-nav a[aria-current="true"] { color: var(--ub-wt-ink); transform: translateX(3px); }
#ub-toc-nav a.active::before, #ub-toc-nav a[aria-current="true"]::before { background: var(--ub-wt-yellow); }
.ub-toc-cta { margin-top: 24px; padding: 24px; border-radius: 17px; background: var(--ub-wt-ink); color: #fff; }
.ub-toc-cta > span { display: block; color: #bfc1c5; font-size: .78rem; }
.ub-toc-cta strong { display: block; margin: 8px 0 20px; font-size: 1.2rem; line-height: 1.25; }
.ub-toc-cta a { display: flex; justify-content: space-between; align-items: center; color: var(--ub-wt-yellow); font-size: .88rem; font-weight: 750; text-decoration: none; }

.ub-article-footer { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--ub-wt-line); }
.ub-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ub-tags span { padding: 9px 14px; border-radius: 99px; background: #fff; font-size: .78rem; font-weight: 650; }
.ub-author { display: flex; gap: 18px; align-items: center; margin-top: 42px; padding: 24px; border-radius: 20px; background: var(--ub-wt-yellow); }
.ub-author img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.ub-author small, .ub-author strong { display: block; }
.ub-author small { margin-bottom: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.ub-author strong { font-size: 1.12rem; }

.ub-related { padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--ub-wt-line); }
.ub-related__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.ub-related__head h2 { max-width: 9ch; margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.ub-related__track { display: grid; grid-auto-columns: minmax(300px, 420px); grid-auto-flow: column; gap: 20px; overflow-x: auto; padding-bottom: 18px; scroll-snap-type: x proximity; }
.ub-related__track > div { scroll-snap-align: start; }

.ub-card--editorial { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; border: 0; border-radius: 24px; background: var(--ub-wt-ink); color: #fff; }
.ub-card--editorial.ub-card--large { min-height: 570px; }
.ub-card--editorial .ub-card__image, .ub-card--editorial .ub-card__placeholder { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.ub-card--editorial .ub-card__placeholder { display: grid; place-items: center; background: linear-gradient(145deg, var(--ub-wt-violet), var(--ub-wt-yellow)); color: var(--ub-wt-ink); }
.ub-card--editorial .ub-card__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.08) 15%, rgba(20,20,20,.88) 100%); }
.ub-card--editorial .ub-card__content { min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 40px); }
.ub-card--editorial .ub-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ub-card--editorial .ub-card__title { max-width: 15ch; margin: 0 0 26px; font-size: clamp(1.65rem, 2.8vw, 2.75rem); line-height: 1.05; letter-spacing: -.04em; }
.ub-card--editorial .ub-card__link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.ub-card--editorial .ub-card__link::after { content: ""; position: absolute; inset: 0; }
.ub-card--editorial:hover .ub-card__image { transform: scale(1.045); }
.ub-card--editorial:hover .ub-card__link > span:last-child { color: var(--ub-wt-yellow); }

.ub-site-footer { min-height: 150px; border-top: 1px solid var(--ub-wt-line); font-weight: 700; }
.ub-site-footer a { text-decoration-color: var(--ub-wt-yellow); text-underline-offset: 4px; }

@media (max-width: 1020px) {
  .ub-article-hero { min-height: auto; grid-template-columns: 1fr; }
  .ub-article-hero__copy { max-width: 900px; }
  .ub-breadcrumbs { margin-bottom: 56px; }
  .ub-cover-wrap, .ub-cover-placeholder { min-height: 0; height: min(68vw, 680px); }
  .ub-article-layout { grid-template-columns: minmax(0, var(--ub-wt-content)); }
  .ub-toc { grid-row: 1; position: static; }
  #ub-toc-nav { max-height: 310px; }
  .ub-toc-cta { display: none; }
}

@media (max-width: 640px) {
  .ub-site-header, .ub-site-footer, .ub-editorial-article { width: min(100% - 28px, 1400px); }
  .ub-site-header { min-height: 74px; }
  .ub-site-back { font-size: 0; gap: 0; }
  .ub-site-back span { font-size: 1rem; }
  .ub-article-hero { gap: 36px; padding: 46px 0 64px; }
  .ub-breadcrumbs { margin-bottom: 38px; }
  .ub-article-hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .ub-cover-wrap, .ub-cover-placeholder { height: 115vw; max-height: 620px; border-radius: 20px; }
  .ub-article-layout { gap: 44px; padding: 64px 0 88px; }
  .ub-toc { padding: 21px; }
  .ub-content { font-size: 1.05rem; }
  .ub-content blockquote { margin-inline: 0; }
  .ub-related__head { display: block; }
  .ub-related__head .ub-section-label { margin-bottom: 18px; }
  .ub-related__track { grid-auto-columns: 86%; }
  .ub-card--editorial, .ub-card--editorial.ub-card--large { min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ub-card--editorial .ub-card__image, .ub-site-back span, #ub-toc-nav a { transition: none; }
}
