์ขŒํŒŒ๊ฐ€ ์ธํ„ฐ๋„ท์„ ๋˜์ฐพ๊ณ  ๋ถ€ํ™œํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ• | ๋กœ๋ฒ„ํŠธ ํ† ํ•€์นด

์ขŒํŒŒ๊ฐ€ ์ธํ„ฐ๋„ท์„ ๋˜์ฐพ๊ณ  ๋ถ€ํ™œํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ• | ๋กœ๋ฒ„ํŠธ ํ† ํ•€์นด

์ด CSS ์ฝ”๋“œ๋Š” "Guardian Headline Full"์ด๋ผ๋Š” ์‚ฌ์šฉ์ž ์ •์˜ ๊ธ€๊ผด ํŒจ๋ฐ€๋ฆฌ๋ฅผ ์ •์˜ํ•˜๋ฉฐ, ๋ผ์ดํŠธ, ๋ ˆ๊ทค๋Ÿฌ, ๋ฏธ๋””์—„, ์„ธ๋ฏธ๋ณผ๋“œ ๋ฒ„์ „์„ ํฌํ•จํ•˜๊ณ  ๊ฐ๊ฐ ์ผ๋ฐ˜์ฒด์™€ ์ดํƒค๋ฆญ์ฒด ์Šคํƒ€์ผ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๊ธ€๊ผด ํŒŒ์ผ์€ ์˜จ๋ผ์ธ์— ํ˜ธ์ŠคํŒ…๋˜์–ด WOFF2, WOFF, TrueType ์„ธ ๊ฐ€์ง€ ํ˜•์‹์œผ๋กœ ์ œ๊ณต๋˜๋ฉฐ, ๋‹ค์–‘ํ•œ ๋ธŒ๋ผ์šฐ์ € ๊ฐ„ ํ˜ธํ™˜์„ฑ์„ ๋ณด์žฅํ•ฉ๋‹ˆ๋‹ค.

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.ttf) format("truetype");
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.ttf) format("truetype");
font-weight: 700;
font-style: italic;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.ttf) format("truetype");
font-weight: 900;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.ttf) format("truetype");
font-weight: 900;
font-style: italic;
}

@font-face {
font-family: Guardian Titlepiece;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.ttf) format("truetype");
font-weight: 700;
font-style: normal;
}

@media (min-width: 71.25em) {
.content__main-column--interactive {
margin-left: 160px;
}
}

@media (min-width: 81.25em) {
.content__main-column--interactive {
margin-left: 240px;
}
}

.content__main-column--interactive .element-atom {
max-width: 620px;
}

@media (max-width: 46.24em) {
.content__main-column--interactive .element-atom {
max-width: 100%;
}
}

.content__main-column--interactive .element-showcase {
margin-left: 0;
}

@media (min-width: 46.25em) {
.content__main-column--interactive .element-showcase {
max-width: 620px;
}
}

@media (min-width: 71.25em) {
.content__main-column--interactive .element-showcase {
max-width: 860px;
}
}

.content__main-column--interactive .element-immersive {
max-width: 1100px;
}

@media (max-width: 46.24em) {
.content__main-column--interactive .element-immersive {
width: calc(100vw - var(--scrollbar-width, 0px));
position: relative;
left: 50%;
right: 50%;
margin-left: calc(-50vw + var(--half-scrollbar-width, 0px)) !important;
margin-right: calc(-50vw + var(--half-scrollbar-width, 0px)) !important;
}
}

@media (min-width: 46.25em) {
.content__main-column--interactive .element-immersive {
transform: translate(-20px);
width: calc(100% + 60px);
}
}

@media (max-width: 71.24em) {
.content__main-column--interactive .element-immersive {
margin-left: 0;
margin-right: 0;
}
}

@media (min-width: 71.25em) {
.content__main-column--interactive .element-immersive {
transform: translate(0);
width: auto;
}
}

@media (min-width: 81.25em) {
.content__main-column--interactive .element-immersive {
max-width: 1260px;
}
}

.content__main-column--interactive p,
.content__main-column--interactive ul {
max-width: 620px;
}

.content__main-column--interactive:before {
position: absolute;
top: 0;
height: calc(100% + 15px);
min-height: 100px;
content: "";
}

@media (min-width: 71.25em) {
}.content__main-column--interactive:before {
border-left: 1px solid #dcdcdc;
z-index: -1;
left: -10px;
}

@media (min-width: 81.25em) {
.content__main-column--interactive:before {
border-left: 1px solid #dcdcdc;
left: -11px;
}
}

.content__main-column--interactive .element-atom {
margin-top: 0;
margin-bottom: 0;
padding-bottom: 12px;
padding-top: 12px;
}

.content__main-column--interactive p + .element-atom {
padding-top: 0;
padding-bottom: 0;
margin-top: 12px;
margin-bottom: 12px;
}

.content__main-column--interactive .element-inline {
max-width: 620px;
}

@media (min-width: 61.25em) {
figure[data-spacefinder-role="inline"].element {
max-width: 620px;
}
}

:root {
--dateline: #606060;
--headerBorder: #dcdcdc;
--captionText: #999;
--captionBackground: hsla(0, 0%, 7%, 0.72);
--feature: #c70000;
--new-pillar-colour: var(--primary-pillar, var(--feature));
}

:root:root {
--subheading-text: var(--secondary-pillar);
--pullquote-text: var(--secondary-pillar);
--pullquote-icon: var(--secondary-pillar);
--block-quote-text: var(--article-text);
}

:root:root blockquote {
--block-quote-fill: var(--secondary-pillar);
}

@media (prefers-color-scheme: dark) {
:root:root:not([data-color-scheme="light"]) {
--subheading-text: var(--darkmode-pillar);
--pullquote-text: var(--darkmode-pillar);
--pullquote-icon: var(--darkmode-pillar);
}

:root:root:not([data-color-scheme="light"]) blockquote {
--block-quote-fill: var(--darkmode-pillar);
}
}

.content__main-column--interactive .element.element-atom,
.element.element-atom {
padding: 0;
}

#article-body > div .element-atom:first-of-type + p:first-of-type,
#article-body > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type,
#article-body > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type,
#article-body > div hr:not(.last-horizontal-rule) + p,
.content--interactive > div .element-atom:first-of-type + p:first-of-type,
.content--interactive > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type,
.content--interactive > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type,
.content--interactive > div hr:not(.last-horizontal-rule) + p,
#comment-body .element-atom:first-of-type + p:first-of-type,
#comment-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type,
#comment-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type,
#comment-body hr:not(.last-horizontal-rule) + p,
[data-gu-name="body"] .element-atom:first-of-type + p:first-of-type,
[data-gu-name="body"] .element-atom:first-of-type + .sign-in-gate + p:first-of-type,
[data-gu-name="body"] .element-atom:first-of-type + #sign-in-gate + p:first-of-type,
[data-gu-name="body"] hr:not(.last-horizontal-rule) + p,
#feature-body .element-atom:first-of-type + p:first-of-type,
#feature-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type,
#feature-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type,
#feature-body hr:not(.last-horizontal-rule) + p {
padding-top: 14px;
}

#article-body > div .element-atom:first-of-type + p:first-of-type:first-letter,
#article-body > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter,
#article-body > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter,
#article-body > div hr:not(.last-horizontal-rule) + p:first-letter,
.content--interactive > div .element-atom:first-of-type + p:first-of-type:first-letter,
.content--interactive > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter,
.content--interactive > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter,
.content--interactive > div hr:not(.last-horizontal-rule) + p:first-letter,
#comment-body .element-atom:first-of-type + p:first-of-type:first-letter,
#comment-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter,
#comment-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter,
#comment-body hr:not(.last-horizontal-rule) + p:first-letter,
[data-gu-name="body"] .element-atom:first-of-type + p:first-of-type:first-letter,
[data-gu-name="body"] .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter,
[data-gu-name="body"] .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter,
[data-gu-name="body"] hr:not(.last-horizontal-rule) + p:first-letter,
#feature-body .element-atom:first-of-type + p:first-of-type:first-letter,๊ธฐ์‚ฌ ๋ณธ๋ฌธ์˜ ์ฒซ ๋ฒˆ์งธ ๋‹จ๋ฝ ์ฒซ ๊ธ€์ž๋Š” ํŠน์ • ํ—ค๋“œ๋ผ์ธ ๊ธ€๊ผด์„ ์‚ฌ์šฉํ•˜๋ฉฐ, ๋ณผ๋“œ์ฒด, ๋Œ€๋ฌธ์ž, ํฐ ํฌ๊ธฐ์™€ ๋“œ๋กญ ์บก ์Šคํƒ€์ผ๋กœ ์„ค์ •๋ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž ์ •์˜ ์†์„ฑ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ƒ‰์ƒ์ด ์ง€์ •๋ฉ๋‹ˆ๋‹ค.

์ˆ˜ํ‰์„  ๋ฐ”๋กœ ๋’ค์— ์˜ค๋Š” ๋‹จ๋ฝ์€ ์ƒ๋‹จ ํŒจ๋”ฉ์ด ์—†์Šต๋‹ˆ๋‹ค. ๊ธฐ์‚ฌ ๋ณธ๋ฌธ ๋‚ด ํ’€์ฟผํŠธ๋Š” ์ตœ๋Œ€ ๋„ˆ๋น„๊ฐ€ 620ํ”ฝ์…€์ž…๋‹ˆ๋‹ค.

์‡ผ์ผ€์ด์Šค ์š”์†Œ์˜ ์บก์…˜์€ ์ •์ ์œผ๋กœ ์œ„์น˜ํ•˜๋ฉฐ, ์ตœ๋Œ€ 620px๊นŒ์ง€ ์ „์ฒด ๋„ˆ๋น„๋ฅผ ์ฐจ์ง€ํ•ฉ๋‹ˆ๋‹ค. ๋ชฐ์ž…ํ˜• ์š”์†Œ๋Š” ์Šคํฌ๋กค๋ฐ”๋ฅผ ๊ณ ๋ คํ•˜์—ฌ ์กฐ์ •๋˜๋ฉฐ ์ „์ฒด ๋ทฐํฌํŠธ ๋„ˆ๋น„๋ฅผ ์ฐจ์ง€ํ•ฉ๋‹ˆ๋‹ค. ํฐ ํ™”๋ฉด์—์„œ๋Š” ์ตœ๋Œ€ ๋„ˆ๋น„๋กœ ์ œํ•œ๋˜๊ณ , ์ž‘์€ ํ™”๋ฉด์—์„œ๋Š” ์กฐ์ •๋œ ๋งˆ์ง„์œผ๋กœ ๊ฐ€์žฅ์ž๋ฆฌ๊นŒ์ง€ ํ™•์žฅ๋ฉ๋‹ˆ๋‹ค. ๋ชฐ์ž…ํ˜• ์š”์†Œ์˜ ์บก์…˜์€ ๋ฐ˜์‘ํ˜• ์ˆ˜ํ‰ ํŒจ๋”ฉ์„ ๊ฐ€์ง‘๋‹ˆ๋‹ค.

๋„“์€ ํ™”๋ฉด์—์„œ๋Š” ๊ธฐ์‚ฌ ํ—ค๋”๊ฐ€ CSS ๊ทธ๋ฆฌ๋“œ ๋ ˆ์ด์•„์›ƒ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ํ—ค๋“œ๋ผ์ธ์—๋Š” ์ƒ๋‹จ ํ…Œ๋‘๋ฆฌ๊ฐ€ ์žˆ์œผ๋ฉฐ, ๋ฉ”ํƒ€ ์ •๋ณด๋Š” ์ƒ๋Œ€์ ์œผ๋กœ ์œ„์น˜ํ•ฉ๋‹ˆ๋‹ค. ์Šคํƒ ๋“œํผ์ŠคํŠธ ๋‚ด ๋งํฌ๋Š” ์‚ฌ์šฉ์ž ์ •์˜ ์ƒ‰์ƒ์œผ๋กœ ๋ฐ‘์ค„์ด ๊ทธ์–ด์ง€๊ณ , ํ˜ธ๋ฒ„ ์‹œ ์ƒ‰์ƒ์ด ๋ณ€๊ฒฝ๋ฉ๋‹ˆ๋‹ค. ์ฒซ ๋ฒˆ์งธ ๋‹จ๋ฝ์—๋Š” ์ƒ๋‹จ ํ…Œ๋‘๋ฆฌ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.์ œ๊ณต๋œ ํ…์ŠคํŠธ๋Š” ์›นํŽ˜์ด์ง€ ๋ ˆ์ด์•„์›ƒ, ํŠนํžˆ "furniture-wrapper"๋ผ๋Š” ๊ตฌ์„ฑ ์š”์†Œ๋‚˜ ๋ž˜ํผ์˜ ์Šคํƒ€์ผ์„ ์ง€์ •ํ•˜๋Š” CSS ์ฝ”๋“œ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค. ์ด ์ฝ”๋“œ๋Š” ๊ทธ๋ฆฌ๋“œ ๋ ˆ์ด์•„์›ƒ, ํ…Œ๋‘๋ฆฌ, ๊ธ€๊ผด ๋ฐ ์š”์†Œ์˜ ๊ฐ€์‹œ์„ฑ ์กฐ์ •์„ ํฌํ•จํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํ™”๋ฉด ํฌ๊ธฐ์— ๋Œ€ํ•œ ์Šคํƒ€์ผ์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ ํ—ค๋“œ๋ผ์ธ, ๋ฉ”ํƒ€ ์ •๋ณด, ์Šคํƒ ๋“œํผ์ŠคํŠธ ํ…์ŠคํŠธ ๋ฐ ๋ฏธ๋””์–ด ์š”์†Œ์˜ ์™ธ๊ด€์„ ์ œ์–ดํ•˜์—ฌ ๋‹ค์–‘ํ•œ ๊ธฐ๊ธฐ์—์„œ์˜ ํ‘œ์‹œ๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.[data-gu-name=media] div div {
width: 100%;
margin-inline: 0;
}

@media (min-width: 61.25em) {
.furniture-wrapper #main-media,
.furniture-wrapper [data-gu-name=media] {
margin-bottom: 0;
}
}

@media (max-width: 46.24em) {
.furniture-wrapper #main-media,
.furniture-wrapper [data-gu-name=media] {
width: calc(100vw - var(--scrollbar-width, 0px));
margin-left: -10px;
}
}

@media (max-width: 46.24em) and (min-width: 30em) {
.furniture-wrapper #main-media,
.furniture-wrapper [data-gu-name=media] {
margin-left: -20px;
}
}

.furniture-wrapper figcaption {
position: absolute;
bottom: 0;
padding: 4px 10px 12px;
background-color: var(--captionBackground);
color: var(--captionText);
max-width: unset;
width: 100%;
margin-bottom: 0;
min-height: 46px;
}

.furniture-wrapper figcaption span {
color: var(--headerBorder);
}

.furniture-wrapper figcaption span svg {
fill: var(--headerBorder);
}

.furniture-wrapper figcaption span:nth-of-type(1) {
display: none;
}

.furniture-wrapper figcaption span:nth-of-type(2) {
display: block;
max-width: 90%;
}

@media (min-width: 30em) {
.furniture-wrapper figcaption {
padding: 4px 20px 12px;
}
}

.furniture-wrapper figcaption.hidden {
opacity: 0;
}

.furniture-wrapper #caption-button {
display: block;
position: absolute;
bottom: 10px;
right: 8px;
z-index: 30;
background-color: var(--captionBackground);
border: none;
border-radius: 50%;
padding: 6px 5px 5px;
}

.furniture-wrapper #caption-button svg {
transform: scale(.85);
}

@media (min-width: 30em) {
.furniture-wrapper #caption-button {
right: 10px;
}
}

@media (min-width: 71.25em) {
.content__main-column--interactive:before {
top: -12px !important;
height: calc(100% + 24px) !important;
}
}

.content__main-column--interactive h2 {
max-width: 620px;
}

:root:has(.ios, .android) {
--darkBackground: #1a1a1a;
--feature: #c70000;
--darkmodeFeature: #ff