@font-face {
  font-family: Intel Display;
  src: url("/assets/headline.woff") format("woff");
  font-display: swap;
  font-weight: 700;
  font-style: italic;
}

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 100%;
  color: #f7f3ee;
  background: #101018;
  --surface: #191822;
  --surface-raised: #20202c;
  --line: #302d3a;
  --text: #f7f3ee;
  --muted: #b4adbf;
  --accent: #ffa473;
  --mint: #a1e6c3;
  --display: "Intel Display", Impact, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.4rem; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #ffb588;
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
p { line-height: 1.5; }
time { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.shell { width: min(1160px, calc(100% - 4.5rem)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 3; top: .5rem; left: .5rem; background: var(--surface); padding: .75rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font: italic 700 1.9rem/.9 var(--display); letter-spacing: .018em; white-space: nowrap; padding-right: .2rem; }
.accent { color: var(--accent); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 28rem;
  isolation: isolate;
  overflow: hidden;
  margin-top: 1.75rem;
  border: 1px solid #52404c;
  border-radius: .82rem;
  background-color: #271c2d;
  background-image: linear-gradient(90deg, #151222 1%, #171222ea 22%, #1c1429bc 42%, #19112438 70%, #2115230c), linear-gradient(0deg, #121018b5, transparent 53%), url("/assets/coast.webp");
  background-position: center, center, center 55%;
  background-size: cover;
}
.hero-content { padding: 2.45rem clamp(1.5rem, 4.3vw, 3.5rem); width: min(100%, 37rem); }
.hero-meta { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.05rem; font-size: .73rem; font-weight: 700; letter-spacing: .13em; white-space: nowrap; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .75rem; letter-spacing: .12em; }
.hero-meta .eyebrow { display: inline-flex; align-items: center; gap: .47rem; background: #462736; color: #ffb08e; border: 1px solid #744257; border-radius: .26rem; padding: .45rem .57rem; }
.signal { width: .42rem; height: .42rem; border-radius: 50%; background: #ffa27a; box-shadow: 0 0 .55rem #ff784895; }
.hero-meta time { color: #eee3ea; }
.hero h1 { font: italic 700 clamp(4.35rem, 8.7vw, 7.55rem)/.85 var(--display); letter-spacing: -.028em; margin: 0 0 1rem -.3rem; }
.hero h1 span { display: inline-block; white-space: nowrap; padding: 0 .17em .07em 0; color: #ff9b66; background: linear-gradient(100deg, #ff746d, #ffc477 92%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { max-width: 25rem; color: #e6deeb; font-size: 1rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.76rem; border: 1px solid transparent; border-radius: .4rem; padding: .65rem .96rem; font-size: .9rem; font-weight: 700; }
.button.primary { color: #20101a; background: #ffa575; border-color: #ffa575; }
.button.primary:hover { background: #ffc19e; }
.button.muted { background: #20182cbd; color: #fff6fa; border-color: #69516c; }
.button.muted:hover { background: #392742; }
.art-caption { position: absolute; right: 1rem; bottom: .85rem; color: #e7dce7; background: #171320c4; border-radius: .22rem; padding: .32rem .45rem; font-size: .75rem; }

.platforms {
  display: grid;
  grid-template-columns: minmax(10rem, .78fr) minmax(0, 3fr);
  background: #181722;
  border: 1px solid var(--line);
  border-radius: .62rem;
  margin: 1.12rem 0 2.6rem;
}
.platform-heading { align-self: center; padding: 1rem 1.15rem; }
.platform-heading h2 { font-size: 1rem; margin-bottom: .24rem; }
.platform-heading p { font-size: .81rem; color: var(--muted); }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform { display: flex; align-items: center; min-width: 0; gap: .7rem; padding: 1rem; border-left: 1px solid var(--line); }
.platform:hover { background: #211e2c; }
.platform:last-child { border-radius: 0 .62rem .62rem 0; }
.platform-icon { width: 2.28rem; height: 2.28rem; flex: none; display: grid; place-items: center; background: #252332; border: 1px solid #373244; border-radius: .43rem; color: #d1c7e0; }
.platform strong { font-size: .95rem; display: block; margin-bottom: .25rem; }
.platform small { font-size: .83rem; display: block; line-height: 1.3; }
.available { color: var(--mint); }
.pending { color: #ffcc91; }
.external { width: .91rem; height: .91rem; margin-left: auto; color: #aaa0b7; }
.platform:hover .external { color: var(--accent); }

.news-layout { display: grid; grid-template-columns: minmax(0, 2.17fr) minmax(17rem, 1fr); align-items: start; gap: 1.55rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.15rem; }
.section-heading h2 { font-size: 2.03rem; line-height: 1.13; letter-spacing: -.04em; margin-bottom: .32rem; }
.section-heading p, .timeline-header p, .footer p { color: var(--muted); }
.feed-label { color: var(--mint); font-size: .79rem; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.feed-label .icon { width: .97rem; height: .97rem; }
.feed-controls { display: flex; flex-direction: column; gap: .75rem; }
.search-wrap { display: flex; align-items: center; gap: .62rem; background: var(--surface); border: 1px solid #393545; border-radius: .43rem; padding: .1rem .75rem; color: #a39bb0; }
.search-wrap:focus-within { border-color: #e48f71; box-shadow: 0 0 0 1px #e48f71; }
.search-wrap input { flex: 1; min-width: 0; width: 100%; border: 0; height: 2.65rem; background: transparent; color: var(--text); outline: none; font-size: 1rem; }
.search-wrap input::placeholder { color: #a8a0b3; opacity: 1; }
.search-shortcut { background: #232230; color: #b6adc4; border: 1px solid #3b374a; border-radius: .25rem; font: .84rem/1.2 monospace; padding: .13rem .34rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button { min-height: 2.2rem; border: 1px solid #3c3748; border-radius: .36rem; padding: .38rem .73rem; color: #d2cbdc; font-size: .86rem; background: #191823; }
.filters button[aria-pressed="true"] { background: #422938; color: #ffbc9b; border-color: #8b5363; font-weight: 700; }
.filters button:hover { border-color: var(--accent); }
.feed-meta { margin: .9rem 0 .55rem; display: flex; align-items: center; justify-content: space-between; min-height: 1.65rem; color: var(--muted); font-size: .83rem; }
.sort-label { position: relative; }
.sort-label::after { content: ""; width: .35rem; height: .35rem; position: absolute; right: .17rem; top: .37rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.sort-label select { appearance: none; cursor: pointer; border: 0; background: transparent; font-size: .83rem; padding: .1rem .95rem .1rem .15rem; }
.sort-label option { background: var(--surface); color: var(--text); }

.stories { display: grid; gap: .7rem; }
.story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .9rem;
  padding: .99rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: .56rem;
}
.story-icon, .timeline-icon { display: grid; place-items: center; width: 2.47rem; height: 2.47rem; border: 1px solid #59404c; border-radius: .43rem; color: #ffb48e; background: #382737; }
.story[data-topic="music"] .story-icon { color: #f493b3; background: #3b2538; border-color: #583b50; }
.story[data-topic="media"] .story-icon { color: #cab1ff; background: #2e2843; border-color: #49405e; }
.story[data-topic="world"] .story-icon { color: #a6e3cb; background: #233a39; border-color: #355150; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .57rem; font-size: .76rem; line-height: 1.35; color: var(--muted); margin-bottom: .27rem; }
.story-topic { font-weight: 700; color: #ffb493; }
.story h3 { font-size: 1.11rem; margin-bottom: .36rem; line-height: 1.22; }
.story p { color: #c7bfce; font-size: .96rem; }
.story-actions { align-self: center; }
.story-button { border: 1px solid #474050; border-radius: .37rem; color: #f2e5ed; background: #231f2c; padding: .5rem .67rem; font-size: .83rem; white-space: nowrap; }
.story-button:hover { color: var(--accent); border-color: var(--accent); }
.empty { padding: 1.25rem; border: 1px dashed #54455a; border-radius: .54rem; background: var(--surface); }
.empty p { margin: .35rem 0 .85rem; color: var(--muted); }

.timeline { background: #1a1823; border: 1px solid #353040; border-radius: .66rem; padding: 1.2rem; }
.timeline-header { display: flex; align-items: center; gap: .73rem; padding-bottom: .95rem; border-bottom: 1px solid #34303f; }
.timeline-header h2 { font-size: 1.33rem; letter-spacing: -.035em; margin: 0 0 .27rem; }
.timeline-header p { font-size: .88rem; }
.timeline ol { list-style: none; margin: 1.05rem 0 0 .29rem; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.04rem 1.05rem; border-left: 1px solid #494051; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; width: .45rem; height: .45rem; left: -.26rem; top: .29rem; border-radius: 50%; background: #a794b2; box-shadow: 0 0 0 .23rem #1a1823; }
.timeline li:first-child::before { background: #ff946e; }
.timeline summary { cursor: pointer; list-style-position: outside; display: grid; gap: .25rem; position: relative; padding-right: 1.1rem; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: "+"; position: absolute; right: .04rem; top: .2rem; font-weight: 700; color: var(--muted); }
.timeline details[open] summary::after { content: "−"; }
.timeline summary:hover strong { color: var(--accent); }
.timeline time { font-size: .77rem; color: #bbafc6; line-height: 1.28; }
.timeline li:first-child time { color: #ffb08a; }
.timeline strong { font-size: .96rem; line-height: 1.28; }
.timeline li p { font-size: .88rem; color: var(--muted); margin: .44rem 0 .45rem; }
.source-link { color: #ffb892; font-size: .88rem; font-weight: 700; display: inline-flex; align-items: center; gap: .37rem; text-decoration: underline; text-underline-offset: .18em; }
.source-link .icon { width: .9rem; height: .9rem; }
.source-link:hover { color: #ffe0cb; }

.footer { border-top: 1px solid #282533; margin-top: 3.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.9rem; }
.footer p { font-size: .87rem; margin-top: .5rem; max-width: 38rem; }

dialog { color: var(--text); width: min(35rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid #645368; border-radius: .7rem; background: #1c1925; padding: clamp(1.1rem, 4vw, 1.9rem); box-shadow: 0 1.3rem 5rem #08050ac0; }
dialog::backdrop { background: #0b0911b9; backdrop-filter: blur(3px); }
.brief-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .65rem; }
.icon-button { display: grid; place-items: center; border: 1px solid #4e4458; background: #292233; border-radius: .38rem; width: 2.25rem; height: 2.25rem; }
.icon-button:hover { border-color: var(--accent); }
dialog h2 { font-size: clamp(1.65rem, 5vw, 2.12rem); letter-spacing: -.035em; line-height: 1.13; margin-bottom: .75rem; }
dialog p { color: #d8cfdf; }
.brief-detail { margin: 1.05rem 0; padding: .9rem 1rem; border: 1px solid #4a384b; border-radius: .47rem; background: #2a2130; }
.brief-detail h3 { color: var(--accent); margin-bottom: .3rem; font-size: .96rem; }
.brief-sources { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }

@media (max-width: 950px) {
  .shell { width: calc(100% - 3rem); }
  .platform { gap: .5rem; padding-inline: .75rem; }
  .platforms { grid-template-columns: 9rem minmax(0, 1fr); }
  .platform .external { display: none; }
  .news-layout { gap: 1rem; }
}
@media (max-width: 780px) {
  .hero { min-height: 25rem; }
  .platforms { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .platform-heading { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
  .platform-heading h2 { margin-bottom: 0; }
  .platform-grid { border-top: 1px solid var(--line); }
  .platform:first-child { border-left: 0; }
  .news-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 535px) {
  .shell { width: calc(100% - 1.65rem); }
  .brand { font-size: 1.7rem; gap: .45rem; }
  .hero { margin-top: .84rem; min-height: 25rem; background-position: center, center, 64% center; background-image: linear-gradient(90deg, #151222f2 2%, #1c1429c4 46%, #1c142970), linear-gradient(0deg, #151222bd, transparent 55%), url("/assets/coast.webp"); }
  .hero-content { padding: 1.5rem 1.15rem 2.4rem; }
  .hero h1 { font-size: clamp(3.65rem, 14.5vw, 5.15rem); margin-left: -.13rem; }
  .hero p { font-size: .96rem; }
  .art-caption { bottom: .53rem; right: .55rem; }
  .platform-heading { padding: .72rem .7rem; }
  .platform { flex-direction: column; align-items: flex-start; padding: .65rem .49rem; }
  .platform strong { font-size: .83rem; }
  .platform small { font-size: .77rem; }
  .platform-icon { width: 1.8rem; height: 1.8rem; }
  .platform-icon .icon { width: 1rem; height: 1rem; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 1.75rem; }
  .section-heading p { font-size: .94rem; }
  .feed-label { display: none; }
  .search-shortcut { display: none; }
  .story { grid-template-columns: auto minmax(0, 1fr); gap: .55rem .65rem; padding: .78rem; }
  .story-icon { width: 2.05rem; height: 2.05rem; }
  .story-icon .icon { width: 1rem; height: 1rem; }
  .story-actions { grid-column: 2; }
  .footer-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
