* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  --page: #0c1317;
  --header: #101b20;
  --panel: #142127;
  --panel-alt: #19292f;
  --text: #edf6f5;
  --muted: #a7babd;
  --line: #2b3b40;
  --accent: #c7fa72;
  --accent-text: #142009;
  --display: 'Segoe UI', system-ui, sans-serif;
  --body: 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font: 1rem/1.58 var(--body);
  min-width: 0;
}
.theme-apps {
  --page: #f7f3eb;
  --header: #fffcf5;
  --panel: #fffcf5;
  --panel-alt: #f0e7db;
  --text: #241e19;
  --muted: #605449;
  --line: #d8cbbd;
  --accent: #9f381b;
  --accent-text: #fff9f1;
  --display: Georgia, Cambria, serif;
  --radius: 3px;
}
.theme-hk {
  --page: #edf2fa;
  --header: #fbfdff;
  --panel: #fff;
  --panel-alt: #dfe8f9;
  --text: #132343;
  --muted: #4b5d7c;
  --line: #cbd7ec;
  --accent: #244ab2;
  --accent-text: #fff;
  --display: 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
}
.theme-loot {
  --page: #100d18;
  --header: #17121f;
  --panel: #1b1527;
  --panel-alt: #292038;
  --text: #f5f0fb;
  --muted: #bfb2cf;
  --line: #3b304b;
  --accent: #d0abff;
  --accent-text: #1b1030;
  --display: 'Segoe UI', system-ui, sans-serif;
  --radius: 9px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; }
p, h1, h2, h3 { overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 5; padding: .6rem 1rem; background: var(--panel); }
.container { max-width: 1320px; margin-inline: auto; width: calc(100% - 96px); }
.site-header { background: var(--header); border-bottom: 1px solid var(--line); }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 76px; }
.mast-brand { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }
.brand {
  display: inline-flex; align-items: center; gap: .63rem; text-decoration: none;
  font: 800 clamp(1.25rem, 2.6vw, 1.68rem)/1 var(--display);
  white-space: nowrap; letter-spacing: -.055em;
}
.brand:hover { color: var(--text); }
.brand-accent { color: var(--accent); }
.brand-icon {
  width: 36px; height: 36px; display: grid; place-content: center; grid-auto-flow: column; gap: 3px;
  align-items: center; color: var(--accent-text); background: var(--accent); border-radius: 9px;
}
.brand-icon i { display: block; width: 3px; height: 13px; background: currentColor; border-radius: 5px; transform: skew(-22deg); }
.brand-icon i:nth-child(2) { height: 19px; }
.brand-icon i:nth-child(3) { height: 9px; }
.edition-tag { padding-inline-start: 1.2rem; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.search {
  display: flex; align-items: center; width: min(100%, 260px);
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel);
}
.search:focus-within { border-color: var(--accent); }
.search input { min-width: 0; width: 100%; border: 0; padding: .5rem .75rem; background: transparent; font-size: .9rem; }
.search input::placeholder { opacity: 1; color: var(--muted); }
.search button { flex: 0 0 44px; height: 38px; display: grid; place-items: center; background: none; border: 0; }
.search button:hover { color: var(--accent); }
.search button i {
  position: relative; display: block; width: 13px; height: 13px;
  border: 2px solid currentColor; border-radius: 50%; transform: translate(-1px, -1px);
}
.search button i::after { content: ''; position: absolute; top: 9px; left: 9px; background: currentColor; width: 6px; height: 2px; transform: rotate(46deg); transform-origin: left; }
.nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); min-height: 52px; overflow-x: auto; }
.nav a { white-space: nowrap; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--muted); padding: .75rem .15rem; }
.nav a:first-child, .nav a:hover { color: var(--accent); }
.nav a:focus-visible { outline-offset: -2px; }
.theme-light .mast, .theme-loot .mast { border-bottom: 1px solid var(--line); }

.edition-intro { margin-block: 2.4rem 1.55rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.edition-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.65rem); letter-spacing: -.065em; font-weight: 780; }
.edition-intro p { color: var(--muted); margin-bottom: .18rem; text-align: right; }
.top-stories { display: grid; grid-template-columns: minmax(0, 2.32fr) minmax(0, 1fr); gap: 1rem; }
.spotlight { background: var(--panel); position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; }
.slide { min-height: 440px; position: relative; display: flex; justify-content: end; flex-direction: column; }
.slide-picture { position: absolute; inset: 0; overflow: hidden; }
.slide-picture img { height: 100%; width: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #061114 4%, #061114e8 15%, #061114a3 46%, #06111400 83%); pointer-events: none; }
.slide-copy { position: relative; z-index: 1; padding: 1.6rem 2rem 1.9rem; max-width: 660px; color: #f4faf9; }
.eyebrow { display: block; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .095em; color: var(--accent); }
.slide-copy h2 { font-size: clamp(2rem, 4.25vw, 4rem); font-weight: 770; letter-spacing: -.052em; margin-top: .5rem; text-wrap: balance; }
.slide-copy h2 a { text-decoration: none; }
.slide-copy h2 a:hover { text-decoration: underline; }
.slide-copy p { margin: .7rem 0 .7rem; max-width: 50ch; color: #d0dedf; }
.story-meta { display: inline-block; font-size: .82rem; color: var(--muted); font-weight: 550; }
.slide-copy .story-meta { color: #c8d5d6; }
.read-link { display: inline-flex; vertical-align: middle; margin-inline-start: 1rem; font-weight: 750; font-size: .87rem; text-decoration-thickness: 1px; }
.slide-controls {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  position: absolute; z-index: 2; top: .95rem; right: .95rem;
  color: #fff; background: #111926db; border: 1px solid #ffffff38; padding: 2px .25rem; border-radius: 40px;
}
.slide-controls button { width: 35px; height: 35px; border: 0; border-radius: 50%; background: transparent; font-size: 1.55rem; line-height: 1; }
.slide-controls button:hover { background: #ffffff27; }
.slide-controls span { font-size: .78rem; font-variant-numeric: tabular-nums; }
.briefs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.briefs > h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: .2rem; }
.brief + .brief { border-top: 1px solid var(--line); }
.brief a { display: grid; grid-template-columns: clamp(55px, 6.4vw, 94px) minmax(0, 1fr); gap: .85rem; padding: 1.05rem 0; text-decoration: none; align-items: start; }
.brief:last-child a { padding-bottom: 0; }
.brief a:hover h3, .card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.brief img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .5); }
.brief h3 { font-weight: 700; font-size: 1.12rem; line-height: 1.18; margin-block: .27rem .22rem; }

.archive { margin-block: 3.2rem 4.6rem; scroll-margin-top: 1rem; }
.archive.is-filtered { margin-top: 2rem; min-height: 50vh; }
.archive-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .95rem; }
.archive h2, .related h2 { font-size: clamp(1.85rem, 4vw, 3.05rem); letter-spacing: -.05em; font-weight: 750; }
.count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.filters { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.filters a { padding: .35rem .82rem; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .875rem; font-weight: 650; }
.filters [aria-current] { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.empty { color: var(--muted); padding-block: 1rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.story-card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius); }
.card-image { overflow: hidden; aspect-ratio: 2 / 1; background: var(--panel-alt); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-text { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 1.05rem 1.25rem 1.25rem; }
.card-text h3 { font-size: clamp(1.23rem, 2.2vw, 1.68rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.15; margin: .3rem 0 .5rem; }
.card-text p { color: var(--muted); margin-bottom: .7rem; }
.card-text .story-meta { margin-top: auto; }
.feed-end { padding: 1.4rem 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.feature-links { padding: .65rem 2rem; }
.ad-placement { max-width: 100%; text-align: center; }
.ad-caption { display: none; color: var(--muted); font-size: .75rem; }
.ad-box { max-width: 100%; margin-inline: auto; }
.ad-placement.ad-visible { margin-block: 1.25rem; }
.ad-visible .ad-caption { display: block; margin-bottom: .25rem; }
.ad-preview .ad-visible .ad-box {
  display: grid; place-items: center; width: 970px; min-height: 90px;
  border: 1px dashed var(--line); background: var(--panel); color: var(--muted); font-size: .85rem;
}
.ad-preview .ad-visible.ad-square .ad-box { width: 300px; min-height: 250px; }
@media (max-width: 1079px) { .ad-preview .ad-visible .ad-box { width: 728px; } }
@media (max-width: 799px) { .ad-preview .ad-visible .ad-box { width: 320px; min-height: 100px; } }
@media (max-width: 355px) { .ad-preview .ad-visible .ad-box { width: 300px; min-height: 250px; } }
@media (max-width: 335px) { .ad-preview .ad-placement.ad-visible { display: none; } }

.theme-apps .mast { min-height: 85px; }
.theme-apps .nav { border-top: 1px solid var(--line); }
.theme-apps .brand-icon { border-radius: 2px; transform: rotate(-4deg); }
.theme-apps .brand-icon i { transform: none; width: 4px; }
.theme-apps .edition-intro { display: block; margin-top: 2.1rem; }
.theme-apps .edition-intro h1 { font-weight: 550; }
.theme-apps .edition-intro p { margin-top: .38rem; text-align: left; }
.theme-apps .slide { min-height: 475px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 235px auto; }
.theme-apps .slide-picture { position: relative; }
.theme-apps .slide::after { display: none; }
.theme-apps .slide-copy { color: var(--text); padding: 1.15rem 1.55rem 1.3rem; align-self: center; }
.theme-apps .slide-copy h2 { font-size: clamp(2rem, 3.65vw, 3.5rem); font-weight: 500; }
.theme-apps .slide-copy p, .theme-apps .slide-copy .story-meta { color: var(--muted); }
.theme-apps .briefs { border-top: 3px solid var(--accent); }
.theme-apps .brief a { grid-template-columns: 1fr; }
.theme-apps .brief img { display: none; }
.theme-apps .brief h3 { font-size: 1.29rem; }
.theme-apps .archive-header { border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.theme-apps .story-grid { column-gap: 1.6rem; row-gap: 1.8rem; }
.theme-apps .card-link { border: 0; background: transparent; border-top: 1px solid var(--line); padding-top: .7rem; }
.theme-apps .card-text { padding-inline: 0; }
.theme-apps .filters a { border-radius: 3px; }

.theme-hk .mast { min-height: 82px; }
.theme-hk .brand-icon { border-radius: 50%; }
.theme-hk .brand-icon i { transform: rotate(38deg); }
.theme-hk .site-header { border-top: 4px solid var(--accent); }
.theme-hk .nav { border-top: 1px solid var(--line); }
.theme-hk .edition-intro { display: block; margin-block: 2.15rem 1.4rem; }
.theme-hk .edition-intro h1 { font-weight: 650; letter-spacing: -.05em; }
.theme-hk .edition-intro p { text-align: left; margin-top: .5rem; }
.theme-hk .top-stories { grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); }
.theme-hk .slide { display: grid; grid-template-columns: 1fr 1fr; min-height: 415px; }
.theme-hk .slide-picture { position: relative; grid-column: 2; grid-row: 1; }
.theme-hk .slide::after { display: none; }
.theme-hk .slide-copy { grid-column: 1; grid-row: 1; align-self: center; color: var(--text); padding: 1.25rem; }
.theme-hk .slide-copy h2 { font-size: clamp(1.75rem, 3.15vw, 3.2rem); letter-spacing: -.045em; }
.theme-hk .slide-copy p, .theme-hk .slide-copy .story-meta { color: var(--muted); }
.theme-hk .read-link { display: block; margin: .45rem 0 0; }
.theme-hk .briefs { background: #162c55; color: #f6f8ff; --muted: #c0cee9; --accent: #bcd1ff; --line: #40587f; border-color: #162c55; }
.theme-hk .card-link { display: grid; grid-template-columns: 5fr 6fr; }
.theme-hk .card-image { height: 100%; aspect-ratio: auto; }
.theme-hk .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.theme-loot .brand-icon { border-radius: 3px; }
.theme-loot .brand-icon i { transform: none; border-radius: 1px; }
.theme-loot .edition-tag, .theme-loot .eyebrow, .theme-loot .slide-controls span { font-family: 'Cascadia Code', Consolas, monospace; }
.theme-loot .top-stories { grid-template-columns: minmax(0, 2fr) minmax(0, 1.04fr); gap: .75rem; }
.theme-loot .slide { min-height: 415px; justify-content: center; }
.theme-loot .slide::after { background: linear-gradient(90deg, #100d18 5%, #100d18ee 20%, #100d18aa 59%, #100d1850 100%); }
.theme-loot .slide-copy { padding: 3rem 1.65rem 2.2rem; max-width: 535px; }
.theme-loot .slide-copy h2 { font-size: clamp(2.125rem, 4.1vw, 3.75rem); }
.theme-loot .briefs { border-left: 3px solid #a576e6; }
.theme-loot .card-link { display: grid; grid-template-columns: 9rem minmax(0, 1fr); }
.theme-loot .card-image { height: 100%; aspect-ratio: auto; }
.theme-loot .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.article-page { margin-block: 1.8rem 4.5rem; }
.breadcrumb { display: flex; gap: .6rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.65rem; }
.article { max-width: 880px; margin-inline: auto; }
.article-heading h1 { font-size: clamp(2.35rem, 6.2vw, 5rem); letter-spacing: -.056em; line-height: 1.04; margin: .4rem 0 .75rem; }
.article-summary { font-size: clamp(1.1rem, 2.2vw, 1.32rem); color: var(--muted); margin-bottom: .6rem; }
.article-image { margin-block: 1.5rem 1.8rem; }
.article-image img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }
.article-image figcaption { color: var(--muted); font-size: .8rem; margin-top: .4rem; }
.article-body { max-width: 68ch; margin-inline: auto; font-size: 1.08rem; line-height: 1.8; }
.article-body section + section { margin-top: 1.65rem; }
.article-body p + p { margin-top: 1.1rem; }
.article-body h2 { font-size: clamp(1.35rem, 2.8vw, 1.95rem); margin-bottom: .55rem; letter-spacing: -.025em; }
.article-body .source { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: .85rem; color: var(--accent); }
.related { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.related h2 { margin-bottom: 1rem; }
.about { max-width: 850px; margin-block: 3rem 4rem; }
.about h1 { font-size: clamp(2rem, 6vw, 3.8rem); letter-spacing: -.05em; margin-bottom: .8rem; }
.about h2 { margin-top: 1.65rem; }
.about p, .about li { margin-top: .6rem; }

.site-footer { background: var(--header); border-top: 1px solid var(--line); }
.footer-content { display: flex; justify-content: space-between; align-items: start; gap: 1.2rem; padding-block: 1.65rem; }
.footer-content p { color: var(--muted); margin-top: .45rem; }
.footer-content nav { display: flex; gap: 1.2rem; font-size: .9rem; }
.footer-bottom { color: var(--muted); display: flex; justify-content: space-between; gap: .8rem; padding-block: .85rem; border-top: 1px solid var(--line); font-size: .82rem; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 56px); }
  .top-stories, .theme-hk .top-stories, .theme-loot .top-stories { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .theme-hk .slide { grid-template-columns: 1.1fr .9fr; }
  .theme-hk .card-link, .theme-loot .card-link { grid-template-columns: 1fr; }
  .theme-hk .card-image, .theme-loot .card-image { aspect-ratio: 2 / 1; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .mast, .theme-apps .mast, .theme-hk .mast { min-height: 65px; gap: .65rem; }
  .brand-icon { width: 32px; height: 32px; }
  .edition-tag { display: none; }
  .search { width: min(46%, 240px); }
  .search input { padding-inline: .49rem; }
  .search button { flex-basis: 34px; }
  .nav { min-height: 42px; gap: 1.15rem; width: 100%; padding-inline: 18px; }
  .nav a { padding-block: .5rem; }
  .edition-intro, .theme-hk .edition-intro, .theme-apps .edition-intro { display: block; margin: 1.65rem 0 1rem; }
  .edition-intro p { margin-top: .35rem; text-align: start; }
  .top-stories, .theme-hk .top-stories, .theme-loot .top-stories { grid-template-columns: 1fr; }
  .slide { min-height: 375px; }
  .slide-copy { padding: 3.1rem 1rem 1.15rem; }
  .theme-loot .slide { min-height: 335px; }
  .theme-loot .slide-copy { padding: 3.3rem 1rem 1.35rem; }
  .theme-apps .slide { grid-template-rows: 175px auto; min-height: 0; }
  .theme-apps .slide-copy { padding: .95rem 1rem 1.2rem; }
  .theme-hk .slide { grid-template-columns: .95fr 1.05fr; min-height: 320px; }
  .theme-hk .slide-copy { padding: .85rem; }
  .briefs { padding: .9rem 1rem; }
  .brief a, .theme-apps .brief a { grid-template-columns: 60px minmax(0, 1fr); gap: .7rem; padding-block: .7rem; }
  .theme-apps .brief img { display: block; }
  .brief h3 { font-size: 1.05rem; }
  .archive { margin-block: 2.15rem 3rem; }
  .story-grid, .theme-hk .story-grid, .theme-loot .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card-text { padding: .7rem .7rem .85rem; }
  .footer-content { flex-direction: column; }
}

@media (max-width: 450px) {
  .theme-hk .slide { grid-template-columns: 1fr; grid-template-rows: 160px auto; }
  .theme-hk .slide-picture { grid-area: 1 / 1; }
  .theme-hk .slide-copy { grid-area: 2 / 1; }
  .story-grid, .theme-hk .story-grid, .theme-loot .story-grid { grid-template-columns: 1fr; }
  .card-link, .theme-hk .card-link, .theme-loot .card-link { display: grid; grid-template-columns: 106px minmax(0, 1fr); }
  .card-image, .theme-hk .card-image, .theme-loot .card-image { height: 100%; aspect-ratio: auto; }
  .theme-apps .card-link { gap: .65rem; }
  .archive-header { align-items: start; }
  .count { margin-top: .35rem; }
}
