.ed { --ed-ink: #14161c; --ed-serif: "Playfair Display", Georgia, "Times New Roman", serif; --ed-paper: #fbf7f4; background: #fff; }
.ed img { display: block; }

.ed-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 1060; pointer-events: none; }
.ed-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #ffb199); box-shadow: 0 0 12px rgba(248, 89, 52, .6); }

.ed-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; padding: clamp(48px, 7vw, 104px) 0 clamp(90px, 10vw, 140px);
   background: radial-gradient(60% 90% at 100% 0%, rgba(248, 89, 52, .38), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(255, 177, 153, .16), transparent 70%), var(--ed-ink); }
.ed-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
   background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
   background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.ed-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ed-hero-copy { display: grid; gap: 22px; animation: ed-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.ed-kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ed-kicker a { padding: 7px 14px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; box-shadow: 0 10px 24px -10px var(--brand); transition: transform .2s; }
.ed-kicker a:hover { color: #fff; transform: translateY(-2px); }
.ed-kicker span::before { content: ""; display: inline-block; width: 24px; height: 1px; background: rgba(255, 255, 255, .4); vertical-align: middle; margin-right: 14px; }
.ed-hero h1 { margin: 0; font-family: var(--ed-serif); font-weight: 800; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.ed-lead { margin: 0; max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: rgba(255, 255, 255, .74); }
.ed-byline { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ed-byline-txt { display: grid; line-height: 1.35; }
.ed-byline-txt strong { font-size: 16px; color: #fff; }
.ed-byline-txt small { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.ed-avatar { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-family: var(--ed-serif); font-size: 22px; font-weight: 800; color: #fff;
   background: conic-gradient(from 210deg, var(--brand), #ffb199, var(--brand)); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.ed-avatar.is-lg { flex-basis: 88px; width: 88px; height: 88px; font-size: 36px; box-shadow: 0 0 0 6px #fff, 0 16px 30px -12px rgba(248, 89, 52, .6); }
.ed-hero-media { position: relative; margin: 0; justify-self: center; width: min(100%, 520px); aspect-ratio: 4 / 5; animation: ed-in 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.ed-hero-frame { position: absolute; inset: 0; transform: translate(22px, 22px) rotate(3deg); border-radius: 32px; border: 1.5px solid rgba(255, 255, 255, .25); }
.ed-hero-media img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 32px; transform: rotate(-2deg);
   background: linear-gradient(150deg, #f8efe9, #ead9cf); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .06); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ed-hero-media:hover img { transform: rotate(0) scale(1.02); }
.ed-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); fill: #fff; }
@keyframes ed-up { from { transform: translateY(18px); } to { transform: none; } }
@keyframes ed-in { from { transform: translateY(24px) scale(.97); } to { transform: none; } }

.ed-body { display: grid; grid-template-columns: 56px minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.ed-share { position: sticky; top: 110px; display: grid; gap: 10px; }
.ed-share a, .ed-share button { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 17px; transition: all .25s cubic-bezier(.2, .7, .2, 1); }
.ed-share a:hover, .ed-share button:hover { background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; transform: translateX(4px); }
.ed-share [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-6px, -50%); padding: 5px 10px; border-radius: 8px; background: var(--ed-ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ed-share [data-tip]:hover::after { opacity: 1; transform: translate(0, -50%); }
.ed-main { min-width: 0; max-width: 740px; }

.ed-content { counter-reset: ed-h; font-size: 18.5px; line-height: 1.85; color: #30384a; }
.ed-content > :first-child { margin-top: 0; }
.ed-content > p:first-of-type { font-size: 1.12em; color: var(--ink); }
.ed-content p { margin: 0 0 1.35em; }
.ed-content h2 { counter-increment: ed-h; position: relative; display: flex; align-items: baseline; gap: 16px; margin: 2.2em 0 .7em; font-family: var(--ed-serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); scroll-margin-top: 100px; }
.ed-content h2::before { content: counter(ed-h, decimal-leading-zero); flex: 0 0 auto; font-family: var(--font); font-size: .5em; font-weight: 800; letter-spacing: .06em; color: var(--brand); padding: 6px 10px; border-radius: 10px; background: var(--brand-50); transform: translateY(-.35em); }
.ed-content h2:first-child { margin-top: 0; }
.ed-content h3 { font-family: var(--ed-serif); font-size: 24px; font-weight: 700; margin: 1.8em 0 .5em; color: var(--ink); }
.ed-content a { color: var(--brand-600); text-decoration: none; background: linear-gradient(var(--brand-100), var(--brand-100)) no-repeat 0 100% / 100% 35%; transition: background-size .3s; }
.ed-content a:hover { background-size: 100% 100%; }
.ed-content img { width: 100%; height: auto; margin: 2em 0; border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(16, 24, 40, .5); }
.ed-content blockquote { position: relative; margin: 2.4em 0; padding: 34px 36px 30px 40px; border: 0; border-radius: 24px; background: var(--ed-paper); font-family: var(--ed-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; color: var(--ink); overflow: hidden; }
.ed-content blockquote::before { content: "\201C"; position: absolute; right: 18px; top: -26px; font-size: 180px; line-height: 1; color: var(--brand); opacity: .18; font-style: normal; }
.ed-content blockquote::after { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 5px; border-radius: 0 5px 5px 0; background: linear-gradient(var(--brand), #ffb199); }
.ed-content blockquote p { margin: 0; }
.ed-content ul, .ed-content ol { padding-left: 0; margin: 0 0 1.4em; list-style: none; display: grid; gap: 10px; }
.ed-content ul li { position: relative; padding-left: 30px; }
.ed-content ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); transform: rotate(45deg); }
.ed-content ol { counter-reset: ed-li; }
.ed-content ol li { counter-increment: ed-li; position: relative; padding-left: 42px; }
.ed-content ol li::before { content: counter(ed-li); position: absolute; left: 0; top: .15em; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ed-ink); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.ed-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; }
.ed-content th, .ed-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.ed-content th { background: var(--ed-paper); }
.ed-endmark { display: flex; align-items: center; gap: 16px; margin: clamp(36px, 5vw, 56px) 0; color: var(--brand); font-size: 20px; }
.ed-endmark span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.ed-author { position: relative; display: flex; gap: 26px; align-items: flex-start; padding: 32px; border-radius: 28px; background: var(--ed-paper); overflow: hidden; }
.ed-author::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 89, 52, .14), transparent 70%); }
.ed-author small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.ed-author h2 { margin: 4px 0 8px; font-family: var(--ed-serif); font-size: 28px; font-weight: 700; color: var(--ink); }
.ed-author p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.ed-author-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ed-author-share a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: background .2s, color .2s, transform .2s; }
.ed-author-share a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.ed-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.ed-pn a { position: relative; display: flex; align-items: flex-end; min-height: 170px; padding: 22px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--ed-ink); }
.ed-pn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.ed-pn a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 28, .1), rgba(20, 22, 28, .9)); }
.ed-pn a:hover img { transform: scale(1.08); opacity: .7; }
.ed-pn span { display: grid; gap: 6px; }
.ed-pn small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffb199; }
.ed-pn strong { font-family: var(--ed-serif); font-size: 19px; line-height: 1.3; }
.ed-pn-next { justify-content: flex-end; text-align: right; }
.ed-pn a:hover { color: #fff; }

.ed-aside { min-width: 0; align-self: stretch; }
.ed-sticky { position: sticky; top: 110px; display: grid; gap: 20px; }
.ed-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -32px rgba(16, 24, 40, .35); }
.ed-card h3 { margin: 0 0 16px; font-family: var(--ed-serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.ed-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 4px; }
.ed-toc li { counter-increment: toc; }
.ed-toc a { display: flex; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; text-decoration: none; transition: background .2s, color .2s; }
.ed-toc a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--brand); padding-top: 2px; }
.ed-toc a:hover { background: var(--brand-50); color: var(--ink); }
.ed-shop { display: grid; gap: 4px; }
.ed-shop a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; text-decoration: none; transition: background .2s; }
.ed-shop a:hover { background: var(--ed-paper); }
.ed-shop img { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: linear-gradient(150deg, #f8efe9, #ead9cf); }
.ed-shop span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ed-shop strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-shop em { font-style: normal; font-weight: 800; color: var(--brand); font-size: 14.5px; }
.ed-shop i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ed-ink); color: #fff; font-size: 15px; transition: background .2s; }
.ed-shop a:hover i { background: var(--brand); }

.ed-more { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); background: var(--ed-paper); }
.ed-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.ed-more-head small { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.ed-more-head h2 { margin: 4px 0 0; font-family: var(--ed-serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; color: var(--ink); }
.ed-more-head a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.ed-more-head a:hover { color: var(--brand); }
.ed-more-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 360px; gap: 20px; }
.ed-tile { position: relative; display: flex; align-items: flex-end; padding: 24px; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: linear-gradient(150deg, #f8efe9, #ead9cf); box-shadow: 0 30px 50px -36px rgba(16, 24, 40, .6); }
.ed-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.ed-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(20, 22, 28, .88)); transition: opacity .3s; }
.ed-tile:hover { color: #fff; }
.ed-tile:hover img { transform: scale(1.07); }
.ed-tile-body { display: grid; gap: 8px; transform: translateY(6px); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.ed-tile:hover .ed-tile-body { transform: none; }
.ed-tile small { justify-self: start; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ed-tile strong { font-family: var(--ed-serif); font-size: 22px; line-height: 1.25; }
.ed-tile.is-big strong { font-size: clamp(24px, 2.4vw, 32px); }
.ed-tile em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .7); }

@media (max-width: 1199.98px) { .ed-body { grid-template-columns: 56px minmax(0, 1fr) 260px; } }
@media (max-width: 991.98px) {
   .ed-hero-grid { grid-template-columns: minmax(0, 1fr); }
   .ed-hero-media { width: min(100%, 420px); aspect-ratio: 4 / 3.4; order: -1; }
   .ed-body { grid-template-columns: minmax(0, 1fr); }
   .ed-share { position: static; display: flex; flex-wrap: wrap; order: 2; }
   .ed-share [data-tip]::after { display: none; }
   .ed-aside { order: 3; }
   .ed-sticky { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .ed-main { max-width: none; }
   .ed-more-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
   .ed-tile.is-big { grid-column: span 2; }
}
@media (max-width: 575.98px) {
   .ed-content { font-size: 17px; }
   .ed-sticky, .ed-pn, .ed-more-grid { grid-template-columns: minmax(0, 1fr); }
   .ed-tile.is-big { grid-column: auto; }
   .ed-author { flex-direction: column; padding: 24px; }
   .ed-more-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ed *, .ed *::before, .ed *::after { animation: none !important; transition: none !important; } }
