* { box-sizing: border-box; }
:root {
    color-scheme: light;
    --ink: #171c2b;
    --muted: #546070;
    --red: #a91c38;
    --paper: #f7f8fb;
    --line: #dce1e9;
    font-family: system-ui, "Nirmala UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ef962a; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .7rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { background: #101827; color: white; border-top: .3rem solid #da3553; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; }
.brand { text-decoration: none; font-weight: 950; font-size: clamp(1.6rem, 5vw, 2.75rem); letter-spacing: -.08em; line-height: 1; }
.brand span { font-weight: 650; }
.brand b { color: #ff627d; }
.languages, .sections, .filterbar, .filterbar form, .actions, .pagination { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.languages a, .sections a { text-decoration: none; padding: .4rem .55rem; font-size: .9rem; }
.languages a[aria-current], .sections a[aria-current], .languages a:hover, .sections a:hover { background: #364154; border-radius: .25rem; }
.sections { border-top: 1px solid #354052; min-height: 3rem; padding-block: .45rem; }
.main { flex: 1; padding-block: 1.5rem 4rem; }
.filterbar { justify-content: space-between; padding: .75rem 1rem; background: white; border: 1px solid var(--line); border-radius: .45rem; }
.filterbar select { width: auto; max-width: 100%; }
.breaking, .button, button { display: inline-block; font: inherit; font-weight: 700; padding: .55rem .85rem; border: 0; border-radius: .3rem; color: white; background: var(--red); cursor: pointer; text-decoration: none; }
button:hover, .button:hover, .breaking:hover { background: #85122a; }
.section-head { margin-block: 2rem 1.25rem; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 .55rem; line-height: 1.25; }
h2 { line-height: 1.35; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.story, .panel, .read, .empty { background: white; border: 1px solid var(--line); border-radius: .55rem; padding: clamp(1rem, 3vw, 1.75rem); }
.story:first-child { grid-column: span 2; color: white; background: radial-gradient(ellipse at 100% 0%, #33466c, transparent 65%), linear-gradient(135deg, #263448, #131d31); border-color: #273857; min-height: 17rem; display: flex; flex-direction: column; justify-content: end; }
.story:first-child .kicker { color: #ffa9bb; }
.story:first-child h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); }
.story h2 { margin: .5rem 0; overflow-wrap: anywhere; }
.story h2 a { text-decoration: none; }
.story h2 a:hover { text-decoration: underline; }
.story p { line-height: 1.6; margin: .55rem 0 1rem; }
.kicker { color: var(--red); font-size: .875rem; font-weight: 800; }
time, .byline { font-size: .875rem; }
.empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.read { max-width: 52rem; margin-inline: auto; }
.read h1 { margin-top: .6rem; overflow-wrap: anywhere; }
.standfirst { color: var(--muted); font-size: 1.23rem; }
.article-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
.article-photo { margin: 1rem 0; }
.article-photo img { display: block; width: 100%; max-height: 34rem; object-fit: contain; background: var(--paper); border-radius: .35rem; }
.article-photo figcaption { margin-top: .45rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.sponsored { margin-top: 1.25rem; }
.sponsored p { margin-bottom: 0; overflow-wrap: anywhere; }
.byline { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.pagination { padding-top: 1rem; }
footer { background: #101827; color: white; }
.foot { display: flex; justify-content: space-between; padding-block: 1.5rem; }
.desk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .65rem; }
.desk-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.panel h2 { margin-top: 0; }
.login { max-width: 32rem; margin: 2rem auto; }
.story-form, .login { display: grid; gap: .8rem; }
.story-form label, .login label { display: grid; gap: .25rem; }
input, select, textarea { width: 100%; min-width: 0; font: inherit; color: inherit; border: 1px solid #aeb9c9; border-radius: .3rem; background: white; padding: .45rem; }
.story-form .check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; }
.desk-item { border-block-start: 1px solid var(--line); padding-block: 1rem; overflow-wrap: anywhere; }
.desk-item h3 { margin: 0; }
.desk-item summary { cursor: pointer; margin-bottom: .6rem; }
@media (max-width: 48rem) {
    .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 32rem) {
    .stories { grid-template-columns: 1fr; }
    .story:first-child { grid-column: auto; min-height: 13rem; }
    .filterbar form { width: 100%; }
}
