/* base */
:root { color-scheme: dark; font-family: var(--sh-font); color: #f1f0f5; background: #030304; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 70% 45% at 50% 0%, #2a1b3f66, transparent 70%), radial-gradient(ellipse at 45% 30%, #21152e40, transparent 60%); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--sh-heading); }
.mono { font-family: var(--sh-mono); }
#starfield { position: fixed; inset: 0; width: 100%; height: calc(100lvh + 160px); pointer-events: none; translate: 0 calc(var(--depth, 0) * -1px); }
.page { position: relative; z-index: 1; max-width: 1180px; margin: auto; padding: 22px 28px 0; }
a, button { transition: color .2s, background-color .2s, border-color .2s; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #ceb0ed; outline-offset: 4px; border-radius: 6px; }

/* topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 6px; font: 500 14px/1.4 var(--sh-font); color: #c3bdcc; }
.topbar a:hover { color: #fff; }
.topbar-brand { font-family: var(--sh-heading); font-weight: 600; color: #e9e3f2; }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 88px 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid #d8c4ff33; border-radius: 6px; overflow: hidden; background: #d8c4ff0d; font: 500 13.5px/1.2 var(--sh-font); color: #ece4f8; box-shadow: 0 0 24px #9b6fe41a; }
.pill:hover { border-color: #d8c4ff66; background: #d8c4ff1a; color: #fff; }
.pill-dot { align-self: stretch; width: 5px; margin: -7px 0 -7px -12px; background: #c9b4e3; }
.pill-sep { width: 1px; height: 14px; background: #ffffff26; }
.pill-muted { color: #b8adc9; }
.hero h1 { margin: 30px 0 22px; font-size: clamp(54px, 9vw, 112px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
.hero h1 br { display: none; }
.hero h1 span { display: inline-block; padding-right: .06em; padding-bottom: .16em; margin-bottom: -.16em; background: linear-gradient(100deg, #c9b4e3 0%, #ece3ff 28%, #ab92da 62%, #c9b4e3 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: headline-drift 18s ease-in-out infinite alternate; }
@keyframes headline-drift { to { background-position: 100% 50%; } }
.lead { margin: 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: #dcd6e4; }
.hero-body { max-width: 520px; margin: 12px 0 0; font-size: 16.5px; line-height: 1.65; color: #a8a1b3; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 18px; }
.actions a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 15px/1 var(--sh-font); }
.actions .primary { background: #f2eef7; color: #17121d; box-shadow: 0 0 34px #d8c4ff2e; }
.actions .primary:hover { background: #fff; color: #17121d; }
.actions .secondary { border: 1px solid #ffffff24; background: #ffffff0a; color: #ece7f2; }
.actions .secondary:hover { border-color: #ffffff47; background: #ffffff14; color: #fff; }
.hero-meta { margin: 0; font-size: 14px; color: #8f889b; }
.store-links { margin-bottom: 6px; color: #b8b1c4; }
.store-links a { color: #ece7f2; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 3px; }
.store-links a:hover { color: #fff; text-decoration-color: #ffffffa0; }

/* showcase */
.showcase-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; }
.showcase-stage::before { content: ''; position: absolute; left: 8%; right: 8%; top: 4%; height: 70%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at center, #8a5fd955, #5b3e9d22 45%, transparent 72%); filter: blur(40px); pointer-events: none; }
.screen { position: relative; width: min(1196px, calc(100vw - 32px)); max-width: none; padding: 8px; border: 1px solid #ffffff1f; border-radius: 22px; background: linear-gradient(180deg, #ffffff12, #ffffff05); box-shadow: 0 40px 120px #000a, 0 0 0 1px #00000040 inset; transform: perspective(1600px) rotateX(calc(var(--tilt, 0) * 9deg)) scale(calc(1 - var(--tilt, 0) * .04)); transform-origin: 50% 100%; }
@media (max-width: 1260px) { .screen { width: 100%; } }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; border-radius: 15px; object-fit: contain; background: #121018; }
.screen > a { position: absolute; right: 20px; bottom: 20px; padding: 7px 11px; border-radius: 9px; background: #111b; font-size: 13px; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: 2px; margin-top: 26px; padding: 4px; border: 1px solid #ffffff1a; border-radius: 13px; background: #ffffff08; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabs button { min-height: 38px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: #a49bad; }
.tabs button:hover { color: #f1ebf8; background: #ffffff08; }
.tabs button[aria-pressed=true] { border-color: #ffffff12; background: #ffffff17; color: #fff; box-shadow: 0 1px 6px #0004; }

@media (max-width: 560px) { .tabs button { padding: 0 11px; font-size: 13px; } }

.shot-caption { margin: 12px 0 0; font-size: 13px; color: #8f889b; }

/* sections */
.section { padding: 96px 0 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker { margin: 0 0 10px; font: 600 14px/1.4 var(--sh-font); color: #c9b4e3; }
.section h2 { margin: 0; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
.section-lead { margin: 16px 0 0; font-size: 18px; color: #b3acbe; }

/* glass */
.apple-glass { position: relative; isolation: isolate; min-width: 0; border: 1px solid #ffffff10; border-radius: 26px; background: #ffffff06; backdrop-filter: blur(4px); box-shadow: 0 16px 48px #0005; }
.apple-glass.glass-ready { backdrop-filter: none; }
.glass-scene { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; border-radius: inherit; filter: blur(1px); pointer-events: none; }
.apple-glass::before { content: ''; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; background: radial-gradient(760px circle at var(--lx, -2000px) var(--ly, -2000px), #ffffffb0, #dcc8ff55 28%, transparent 64%), linear-gradient(90deg, #ffffff30 0%, #ffffff0a 35%, transparent 70%); background-size: 100% 100%, var(--light-span, 1100px) 100%; background-position: 0 0, var(--light-offset, 0px) 0; background-repeat: no-repeat; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
.apple-glass::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(900px circle at var(--lx, -2000px) var(--ly, -2000px), #d8c4ff1c, #d8c4ff08 35%, transparent 65%), linear-gradient(90deg, #ffffff16 0%, #ffffff05 35%, transparent 70%); background-size: 100% 100%, var(--light-span, 1100px) 100%; background-position: 0 0, var(--light-offset, 0px) 0; background-repeat: no-repeat; mask-image: linear-gradient(to bottom, #fff, #ffffff70); }
.apple-glass { --sh-tilt: 0; }
.apple-glass.tile-small, .apple-glass.tile-wide { --sh-tilt: .6; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile { padding: 30px; }
.tile h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.tile p { margin: 0; font-size: 16px; line-height: 1.6; color: #aea7b9; }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d8c4ff2e; border-radius: 13px; background: #d8c4ff0f; color: #d6c3f0; }
.tile-icon svg { width: 22px; height: 22px; }
.tile-history { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; padding: 36px; }
.tile-history h3 { font-size: 30px; }
.tile-history > p:not(.subline) { max-width: 520px; font-size: 17px; }
.tile-small { grid-column: span 2; }
.tile-wide { grid-column: span 3; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: auto 0 18px; padding-top: 36px; }
.stats strong { display: block; font: 600 clamp(44px, 5.4vw, 64px)/1 var(--sh-heading); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; font-size: 14px; color: #a8a0b1; }
.subline { margin: 0; font-size: 14px; line-height: 1.6; color: #9d97a8; }
.tile .subline { font-size: 14px; color: #9d97a8; }
#history-since { min-height: 22px; }
.stats-updated { margin-top: 4px; font-size: 13px; opacity: .85; }

/* releases */
.releases { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.release { padding: 34px; }
.release-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.release-tag { display: inline-flex; align-items: center; gap: 9px; height: 28px; padding: 0 11px 0 0; overflow: hidden; border: 1px solid #c9b4e355; border-radius: 5px; background: #c9b4e31a; font-size: 13px; font-weight: 600; color: #e4d6f6; }
.release-tag::before { content: ''; align-self: stretch; width: 5px; background: #c9b4e3; }
.release-tag.is-quiet { border-color: #ffffff1f; background: #ffffff0a; color: #bdb6c8; }
.release-tag.is-quiet::before { background: #8d8598; }
.release-meta { font-size: 14px; color: #9d97a8; }
.release h3 { margin: 18px 0 14px; font-size: 28px; letter-spacing: -.03em; font-weight: 600; }
.release ul { margin: 0; padding: 0; list-style: none; }
.release-group { margin: 18px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a49bad; }
.release h3 + .release-group { margin-top: 0; }
.release li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid #ffffff0c; font-size: 16px; line-height: 1.55; color: #bbb4c6; }
.release li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 3px; height: 14px; border-radius: 1px; background: #c9b4e3aa; }
.release-highlights li { padding: 12px 0 12px 22px; }
.release-highlights li::before { top: 18px; }
.release-highlights b { display: block; margin-bottom: 2px; font-weight: 600; color: #ece6f6; }
.release-stores { margin: 12px 0 0; font: 500 13.5px/1.4 var(--sh-mono); color: #b7aec4; }
.release-note { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #8f889b; }
.release:not(.release-current) li { font-size: 15px; color: #a59eb0; }
.text-link { display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 500; color: #d6c3f0; }
.text-link:hover { color: #fff; }

/* about */
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid #ffffff12; border-bottom: 1px solid #ffffff12; }
.project-facts strong { display: block; font: 600 clamp(32px, 4vw, 44px)/1 var(--sh-heading); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.project-facts span { display: block; margin-top: 10px; font-size: 14px; color: #a99fb5; }
.facts-updated { margin: 12px 0 40px; }
.project-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.project-story-grid h3 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.025em; font-weight: 600; color: #ece4f5; }
.project-build { padding: 34px; }
.project-build > p { margin: 0; color: #aea7b9; }
.language-bar { display: flex; gap: 2px; height: 8px; margin: 26px 0 12px; overflow: hidden; border-radius: 8px; background: #ffffff06; }
.language-bar[hidden] { display: none; }
.language-js { width: 64.8%; background: #cbb3e4; }
.language-css { width: 33.7%; background: #8c7b9f; }
.language-html { width: 1.5%; background: #5b5565; }
.language-labels { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; color: #ada1ba; }
.language-labels b { font-weight: 500; color: #e4d5ef; font-variant-numeric: tabular-nums; }
details { margin-top: 22px; border-top: 1px solid #ffffff10; }
summary { display: flex; justify-content: space-between; padding-top: 16px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; color: #e0d4eb; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: #fff; }
.build-details dl { margin: 12px 0 0; }
.build-details dt { margin-top: 16px; font-size: 15px; font-weight: 500; color: #dfd1ec; }
.build-details dd { margin: 4px 0 0; font-size: 15px; line-height: 1.65; color: #a99cb7; }
.count-details p { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: #a99cb7; }
.count-details a { color: #d6c3f0; }
.project-story { padding-top: 8px; }
.project-story ol { margin: 6px 0 0; padding: 0; list-style: none; }
.project-story li { position: relative; padding: 0 0 26px 26px; border-left: 1px solid #d1b5ed2e; }
.project-story li::before { content: ''; position: absolute; left: -4px; top: 5px; width: 8px; height: 8px; border-radius: 2px; background: #3b2f4a; box-shadow: 0 0 0 1px #d1b5ed55; }
.project-story li.is-current::before { background: #c9b4e3; box-shadow: none; }
.project-story li:last-child { padding-bottom: 0; }
.project-story time { display: block; margin-bottom: 4px; font: 500 13px/1.4 var(--sh-mono); color: #b19dc4; }
.project-story h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: #e6dcef; }
.project-story p { margin: 0; font-size: 15px; line-height: 1.6; color: #a79cae; }
.project-next { margin-top: 72px; padding: 48px 0 8px; border-top: 1px solid #ffffff12; text-align: center; }
.project-motto { margin: 0; font: 600 clamp(28px, 4vw, 44px)/1.15 var(--sh-heading); letter-spacing: -.035em; color: #f0e8f7; }
.project-next p:last-child { margin: 14px auto 0; max-width: 560px; color: #aea7b9; }

/* footer */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 88px; padding: 28px 6px 40px; border-top: 1px solid #ffffff0e; font-size: 14px; line-height: 1.6; color: #9790a3; }
footer a:hover { color: #fff; }

/* scroll reveal */
.reveal-ready .apple-glass, .reveal-ready .reveal { opacity: 0; translate: 0 36px; scale: .985; transition: opacity .9s cubic-bezier(.16,1,.3,1), translate 1.1s cubic-bezier(.16,1,.3,1), scale 1.1s cubic-bezier(.16,1,.3,1), color .2s, background-color .2s, border-color .2s; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready .apple-glass.is-in, .reveal-ready .reveal.is-in { opacity: 1; translate: none; scale: none; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-history { grid-column: 1 / -1; grid-row: auto; }
  .tile-small, .tile-wide { grid-column: span 1; }
  .releases, .project-story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 14px 16px 0; }
  .topbar-brand { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 58px; }
  .hero h1 br { display: block; }
  .actions { width: 100%; }
  .actions a { flex: 1 1 100%; justify-content: center; }
  .screen { padding: 5px; border-radius: 16px; }
  .screen img { border-radius: 12px; }
  .screen > a { right: 12px; bottom: 12px; }
  .section { padding-top: 72px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile, .tile-history, .release, .project-build { padding: 24px; }
  .tile-history h3 { font-size: 26px; }
  .stats { gap: 20px 36px; padding-top: 28px; }
  .project-facts { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .project-next { margin-top: 56px; }
  footer { flex-direction: column; margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  a, button { transition: none; }
  .hero h1 span { animation: none; }
  .screen, #starfield { transform: none; translate: none; }
  .reveal-ready .apple-glass, .reveal-ready .reveal { opacity: 1; translate: none; scale: none; transition: none; }
}
