@font-face {
  font-family: Barlow Condensed;
  src: url(/assets/barlow-condensed.woff2) format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url(/assets/dm-sans.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101319;
  --surface: #171c24;
  --text: #f8f4e8;
  --muted: #bac1cb;
  --line: #303742;
  --orange: #ff6b35;
  --mint: #79e0cb;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--body); }
main { min-height: 65vh; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--mint); }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 800; line-height: .98; text-wrap: balance; }
.shell { width: min(100% - 5rem, 1240px); margin-inline: auto; }
.skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 2; padding: .55rem .8rem; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; min-height: 73px; gap: 1.2rem; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; font: 800 1.65rem/1 var(--heading); text-transform: uppercase; text-decoration: none; letter-spacing: .015em; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-accent { color: var(--orange); margin-left: .12em; }
.brand img { width: 2.05rem; height: 2.05rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.5rem); }
.site-header nav a { position: relative; padding-block: 1.55rem; text-decoration: none; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.site-header nav a[aria-current="page"] { color: var(--mint); }
.site-header nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; right: 0; left: 0; height: 2px; background: var(--mint); }
.header-watch { justify-self: end; display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); padding: .5rem .85rem; text-decoration: none; font-weight: 700; font-size: .82rem; }
.play-icon { width: 0; height: 0; border: .29rem solid transparent; border-left: .46rem solid var(--orange); border-right: 0; }

.hero { display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); align-items: center; gap: clamp(1.7rem, 4vw, 4.5rem); padding-block: clamp(2.5rem, 6vw, 5.35rem); }
.hero .eyebrow, .article-header .eyebrow { margin-bottom: .85rem; }
.eyebrow { color: var(--mint); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.status-dot { vertical-align: .07em; display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; margin-right: .6rem; background: var(--orange); }
.hero h1 { font-size: clamp(3.35rem, 5.5vw, 5.6rem); }
.hero-intro { max-width: 39ch; margin-top: 1.15rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.19rem); line-height: 1.58; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.15rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 2.8rem; padding: .68rem .95rem; border: 1px solid transparent; font-size: .86rem; font-weight: 700; text-decoration: none; }
.button span { font-size: 1.07em; }
.primary { background: var(--orange); color: #1c100b; }
.primary:hover { background: #ff894f; color: #1c100b; }
.outline { border-color: var(--line); }
.outline:hover { border-color: var(--mint); }
.quiet-link { color: var(--text); display: inline-flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 700; text-decoration: none; }
.hero-art { position: relative; padding-bottom: .85rem; }
.hero-art > a { overflow: hidden; display: block; border: 1px solid #424048; }
.hero-art > a > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 17% center; }
.hero-art::after { content: ""; display: block; position: absolute; pointer-events: none; top: -5px; right: 0; width: 3rem; height: 3px; background: var(--orange); }
.hero-art figcaption { position: absolute; bottom: 0; left: 1.15rem; display: flex; align-items: center; gap: .55rem; padding: .5rem .68rem; background: var(--surface); border: 1px solid var(--line); font-size: .73rem; color: var(--muted); }
.hero-art figcaption strong { color: var(--text); }

.latest { padding-bottom: clamp(3rem, 6vw, 5.2rem); }
.section-divider { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .9rem; margin-bottom: 1.1rem; border-top: 1px solid var(--line); }
.section-divider h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.section-divider a { font-size: .83rem; font-weight: 700; color: var(--mint); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.story-card { border: 1px solid var(--line); background: var(--surface); }
.story-card a { display: grid; grid-template-columns: 40% 1fr; align-items: stretch; height: 100%; text-decoration: none; }
.story-card a:hover { color: inherit; }
.story-card a:hover h3, .story-card a:hover h2 { color: var(--mint); }
.story-image { overflow: hidden; background: #222a37; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { position: relative; padding: .95rem 1.05rem 1.25rem; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.story-meta time { font-size: .72rem; color: var(--muted); }
.story-card h3, .story-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.3rem); }
.story-copy p { max-width: 38ch; margin: .55rem 0 .5rem; font-size: .85rem; color: var(--muted); }
.story-arrow { position: absolute; bottom: .3rem; right: .65rem; color: var(--orange); }

.section-page { padding-block: clamp(2.4rem, 6vw, 5rem); }
.section-page h1 { margin-bottom: .65rem; font-size: clamp(3.25rem, 6vw, 5.8rem); }
.section-intro { max-width: 55ch; margin-bottom: 1.8rem; color: var(--muted); font-size: 1.12rem; }
.crumbs { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.45rem; font-size: .84rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-page { width: min(100% - 5rem, 1040px); padding-top: 1.6rem; }
.article-header { max-width: 850px; }
.article-header h1 { font-size: clamp(3rem, 6.4vw, 6.1rem); text-wrap: pretty; }
.article-deck { max-width: 62ch; margin-top: 1rem; font-size: clamp(1rem, 1.85vw, 1.32rem); color: var(--muted); line-height: 1.52; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; margin: 1.2rem 0 1.6rem; font-size: .84rem; color: var(--muted); }
.byline strong { color: var(--text); }
.byline a { color: var(--text); font-weight: 700; }
.byline > :not(:first-child)::before { content: "·"; margin-right: .9rem; color: var(--orange); }
.article-cover > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.device-hero { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #121b20; isolation: isolate; container-type: inline-size; }
.device-hero > img { width: 100%; height: 100%; object-fit: cover; }
.device-hero::after { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, transparent 18%, #10212c30 45%, #0c152c91 100%); }
.hero .device-hero { aspect-ratio: 4 / 3; }
.hero-phone, .hero-watch { position: absolute; z-index: 1; display: grid; padding: 1.05cqw; background: linear-gradient(145deg,#545360,#181723 57%,#0b0b0e); box-shadow: 0 .8rem 2.1rem #070a12b0; }
.hero-phone { right: 29%; bottom: 7%; width: 22.8%; min-width: 0; border-radius: 3.5cqw; transform: rotate(-7deg); }
.hero-phone img { width: 100%; border-radius: 2.5cqw; }
.hero-watch { z-index: 2; right: 12%; bottom: 14%; width: 21%; border-radius: 50%; transform: rotate(10deg); }
.hero-watch img { border-radius: 50%; width: 100%; position: relative; }
.hero-watch::before { content: ""; position: absolute; z-index: -1; inset: -27% 19%; background: linear-gradient(110deg,#211e30,#45434e,#181820); border-radius: 14%; box-shadow: 0 .25rem .8rem #080912a1; }
.article-cover figcaption, .inline-image figcaption { margin-top: .5rem; color: var(--muted); font-size: .81rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 26%); grid-template-areas: "body facts"; align-items: start; gap: clamp(1.55rem, 5vw, 4.25rem); margin-top: 2rem; }
.article-aside { grid-area: facts; }
.factbox { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 1.05rem; }
.factbox h2 { font-size: 1.9rem; }
.factbox dl { margin: .85rem 0 0; }
.factbox dl > div { border-top: 1px solid var(--line); padding-block: .6rem; }
.factbox dt { color: var(--muted); font-size: .78rem; }
.factbox dd { margin: .05rem 0 0; font-size: .94rem; font-weight: 700; }
.fact-actions { display: grid; gap: .5rem; margin-top: .85rem; }
.prose { grid-area: body; min-width: 0; color: #e6e5e1; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.75; }
.prose h2 { margin: 1.85rem 0 .55rem; color: var(--text); font-size: clamp(1.9rem, 3.2vw, 2.65rem); text-wrap: pretty; }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--mint); }
.prose a:hover { color: var(--text); }
.inline-image { margin: 1.3rem 0; }
.watch { margin-top: 2rem; scroll-margin-top: 1.2rem; }
.watch iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #07090d; }
.watch p { margin-top: .5rem; font-size: .9rem; }
.video-cover { aspect-ratio: 16 / 9; background: #080a0f; }
.video-cover > a { display: grid; place-items: center; position: relative; width: 100%; height: 100%; }
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.video-cover .button { position: relative; }
.video-cover .play-icon { border-left-color: currentColor; font-size: 0; }
.video-links { margin-top: 1.7rem; }
.video-links li time { margin-left: .55rem; font-size: .86em; color: var(--muted); }
.image-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-block: 1.3rem; }
.image-pair img, .portrait-media img { width: 100%; height: auto; }
.image-pair figcaption { margin-top: .4rem; font-size: .8rem; color: var(--muted); }
.portrait-media { max-width: min(100%, 300px); }
.reader-tools { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 2rem; }
.reader-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.reader-actions [data-count] { color: var(--muted); font-size: .9rem; }
.reader-status { color: var(--mint); font-size: .85rem; overflow-wrap: anywhere; }
.button { font-family: var(--body); cursor: pointer; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.button:disabled { opacity: .65; cursor: progress; }
.button[aria-pressed="true"] { color: var(--mint); border-color: var(--mint); }
.comment-form, .archive-search { display: grid; gap: .75rem; margin-top: 1.1rem; max-width: 38rem; }
.comment-form label { display: grid; gap: .25rem; font-weight: 700; }
.comment-form input, .comment-form select, .comment-form textarea, .archive-search input { width: 100%; padding: .65rem .7rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); font: inherit; }
.comment-form textarea { resize: vertical; }
.comment-form button { justify-self: start; }
.comment-form p, .reader-comment > p:first-child { font-size: .86rem; color: var(--muted); }
.reader-comment { margin-block: .75rem; padding: .85rem; border: 1px solid var(--line); overflow-wrap: anywhere; }
.reader-comment p + p { margin-top: .35rem; white-space: pre-wrap; }
.reader-comment button { margin: .75rem .5rem 0 0; }
#archive-results { margin-top: 1rem; }
.info-page { max-width: 830px; }
.info-page .prose { margin-top: 1.2rem; }
.sources { padding-top: .55rem; margin: 2rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.sources h2 { margin-top: .5rem; font-size: 1.65rem; }
.sources ul { margin-top: .4rem; padding-left: 1.15rem; }
.more { width: min(100% - 5rem, 1040px); padding-top: 1rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.65rem; }
.footer-inner p, .footer-links { color: var(--muted); font-size: .81rem; }
.footer-inner p { margin-top: .45rem; }
.footer-links { display: flex; align-items: center; gap: .4rem 1.05rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .shell, .article-page, .more { width: calc(100% - 3rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .6rem; padding-top: .55rem; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 1.4rem; overflow-x: auto; }
  .site-header nav a { padding-block: .7rem; }
  .site-header nav a[aria-current="page"]::after { bottom: 0; }
  .hero { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
  .hero h1 { font-size: clamp(2.8rem, 6.2vw, 4.2rem); }
  .story-card a { grid-template-columns: 1fr; }
  .story-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .shell, .article-page, .more { width: calc(100% - 2rem); }
  .site-header nav { gap: clamp(.8rem, 4vw, 1.4rem); }
  .header-watch { padding: .33rem .6rem; }
  .hero { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.35rem 2.25rem; }
  .hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.65rem); text-wrap: pretty; }
  .hero-intro { margin-top: .8rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-art > a > img, .hero .device-hero { aspect-ratio: 16 / 10; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card a { grid-template-columns: minmax(0, 38%) 1fr; }
  .story-image { aspect-ratio: auto; }
  .story-copy { padding-inline: .75rem; }
  .story-card h3, .story-card h2 { text-wrap: pretty; }
  .article-grid { grid-template-columns: 1fr; grid-template-areas: "facts" "body"; margin-top: 1.25rem; }
  .article-page { padding-top: 1rem; }
  .article-header h1 { font-size: clamp(2.9rem, 10.8vw, 4.65rem); }
  .byline { gap: .45rem .55rem; margin-bottom: 1.2rem; }
  .byline > :not(:first-child)::before { margin-right: .55rem; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 365px) {
  .brand { font-size: 1.43rem; }
  .brand img { width: 1.72rem; height: 1.72rem; }
  .story-card a { grid-template-columns: 1fr; }
  .story-image { aspect-ratio: 16 / 9; }
}
