@import url(
    "https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap"
);

@font-face {
    font-family: "Canterbury";
    src: url("../fonts/Canterbury.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --ink: #111111;
    --muted: #68717c;
    --line: #dfe3e7;
    --teal: #007b86;
    --paper: #ffffff;
}

html {
    background: #eceff1;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);

    font-family:
        "Noto Serif KR",
        "Nanum Myeongjo",
        Batang,
        serif;

    border-top: 5px solid #000;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    width: 100%;
}

.container {
    width: min(1455px, calc(100% - 64px));
    margin: 0 auto;
}


/* =========================================================
   Utility bar
   ========================================================= */

.utility-bar {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #3f4750;

    font-family:
        "Noto Sans KR",
        Arial,
        sans-serif;

    font-size: 12px;

    border-bottom: 0;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.utility-right a {
    font-weight: 500;
}

.subscribe {
    background: var(--teal);
    color: #fff !important;

    padding: 7px 18px;

    font-weight: 700 !important;
}

.icon-button {
    border: 0;
    padding: 0;

    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   Masthead
   ========================================================= */

.masthead {
    min-height: 160px;

    display: grid;
    place-content: center;

    padding: 0;

    text-align: center;
}

.masthead h1 {
    margin: 0;

    font-family:
        "Canterbury",
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(58px, 5.1vw, 76px);
    line-height: .95;
    letter-spacing: -.045em;
    font-weight: 700;
}

.masthead p {
    margin: 13px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;
    letter-spacing: .28em;

    color: #7b838c;
}


/* =========================================================
   Navigation
   ========================================================= */

.main-nav {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.nav-inner {
    min-height: 49px;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 43px;

    overflow-x: auto;
    white-space: nowrap;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-inner a {
    position: relative;

    height: auto;

    display: block;

    font-family:
        "Noto Sans KR",
        sans-serif;

    font-size: 15px;
    font-weight: 700;
}

.nav-inner a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -15px;

    height: 2px;

    background: var(--teal);
}


/* =========================================================
   Breaking news
   ========================================================= */

.breaking {
    background: #fafafa;

    border-bottom: 1px solid var(--line);
}

.breaking-inner {
    min-height: 33px;

    display: flex;
    align-items: center;

    gap: 11px;

    overflow: hidden;

    font-family:
        "Noto Sans KR",
        sans-serif;

    font-size: 11px;

    color: #46505a;
}

.breaking-inner strong {
    flex: 0 0 auto;

    color: #e11d24;

    font-size: 10px;
}

.breaking-inner span {
    flex: 0 0 auto;

    font-weight: 700;
}

.breaking-inner p {
    margin: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   Homepage grid
   ========================================================= */

.page-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.62fr)
        minmax(330px, .98fr)
        minmax(300px, .8fr);

    gap: 31px;

    padding-top: 32px;
    padding-bottom: 60px;
}


/* =========================================================
   Lead story
   ========================================================= */

.lead-image {
    aspect-ratio: 1.60 / 1;

    overflow: hidden;

    background: #d2dce7;
}

.lead-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.lead-placeholder {
    display: grid;
    place-items: center;

    color: #96abc2;
}

.image-placeholder {
    font-family: Arial, sans-serif;

    font-size: 57px;
}

.eyebrow,
.category {
    margin-top: 14px;

    color: var(--teal);

    font-family:
        "Noto Sans KR",
        sans-serif;

    font-weight: 700;
    font-size: 12px;
}

.lead-story h2 {
    margin: 11px 0 0;

    max-width: 95%;

    font-family:
        "Noto Serif KR",
        "Nanum Myeongjo",
        Batang,
        serif;

    font-size: clamp(31px, 2.55vw, 42px);
    line-height: 1.32;
    letter-spacing: -.055em;
    font-weight: 700;

    word-break: keep-all;
}

.lead-story h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}


/* =========================================================
   Story stack
   ========================================================= */

.story-stack {
    display: flex;
    flex-direction: column;
}

.stack-item {
    padding: 0 0 24px;
    margin-bottom: 22px;

    border-bottom: 1px solid var(--line);
}

.stack-item:last-child {
    margin-bottom: 0;
}

.stack-item .category {
    margin-top: 0;
}

.stack-item h3 {
    margin: 10px 0 9px;

    font-family:
        "Noto Serif KR",
        "Nanum Myeongjo",
        Batang,
        serif;

    font-size: 21px;
    line-height: 1.43;
    letter-spacing: -.035em;
    font-weight: 700;

    word-break: keep-all;
}

.stack-item h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stack-item p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -.02em;

    word-break: keep-all;
}


/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {
    padding-left: 1px;
}

.tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border-bottom: 1px solid var(--line);
}

.tab {
    border: 0;

    padding: 11px 4px 12px;

    background: transparent;

    color: #a2a8b0;

    font-family:
        "Noto Sans KR",
        sans-serif;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.tab.active {
    color: var(--ink);

    border-bottom: 2px solid var(--ink);
}


/* =========================================================
   Ranking
   ========================================================= */

.ranking-list {
    list-style: none;

    padding: 8px 0 24px;
    margin: 0;
}

.ranking-list li {
    display: grid;

    grid-template-columns: 36px 1fr;

    gap: 2px;

    align-items: start;

    padding: 10px 0;
}

.rank {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #d3d8dd;

    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
}

.ranking-list a {
    font-family:
        "Noto Serif KR",
        "Nanum Myeongjo",
        serif;

    font-size: 13px;
    line-height: 1.48;
    letter-spacing: -.03em;
    font-weight: 600;

    word-break: keep-all;
}

.ranking-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   Opinion
   ========================================================= */

.opinion {
    margin-top: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0;
    margin: 0;

    border-top: 0;
    border-bottom: 2px solid #181818;
}

.section-heading h3 {
    margin: 0;
    padding: 0 0 8px;

    font-family:
        "Noto Serif KR",
        "Nanum Myeongjo",
        serif;

    font-size: 21px;
    font-weight: 700;
}

.section-heading button {
    border: 0;

    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 22px;

    cursor: pointer;
}

.opinion-author {
    display: flex;
    align-items: center;

    gap: 13px;

    padding-top: 20px;
}

.avatar {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e1e5e9;
    color: #9ca4ae;

    font-family: Arial, sans-serif;
    font-weight: 700;
}

.opinion-author strong,
.opinion-author small {
    display: block;
}

.opinion-author strong {
    font-family:
        "Noto Serif KR",
        serif;

    font-size: 12px;
}

.opinion-author small {
    margin-top: 2px;

    color: var(--muted);

    font-family: Arial, sans-serif;
    font-size: 8px;
}

.opinion h4 {
    margin: 13px 0 0;

    font-family:
        "Noto Serif KR",
        "Nanum Myeongjo",
        serif;

    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -.035em;
    font-weight: 700;

    word-break: keep-all;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .page-grid {
        grid-template-columns:
            1.35fr
            1fr;
    }

    .sidebar {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            1.4fr
            1fr;

        gap: 34px;
    }

    .opinion {
        margin-top: 0;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {

    .container {
        width: min(calc(100% - 28px), 1455px);
    }

    .utility-right {
        gap: 9px;
    }

    .utility-right > a:first-child {
        display: none;
    }

    .subscribe {
        padding: 7px 12px;
    }

    .masthead {
        min-height: 116px;
    }

    .masthead h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .masthead p {
        font-size: 8px;

        letter-spacing: .18em;
    }

    .nav-inner {
        justify-content: flex-start;

        gap: 23px;
    }

    .page-grid {
        grid-template-columns: 1fr;

        padding-top: 22px;
    }

    .lead-story h2 {
        font-size: 31px;
    }

    .story-stack {
        padding-top: 20px;

        border-top: 1px solid var(--line);
    }

    .sidebar {
        grid-column: auto;

        display: block;
    }

    .opinion {
        margin-top: 18px;
    }
}