/* haris.nyc */

@view-transition { navigation: auto; }

/* Themes. Cobalt is the light theme, Midnight the dark one. The <head> script
   sets data-theme on <html> before paint; theme.js draws the toggle. */
:root {
  --paper: #e9edf2;
  --surface: #ffffff;
  --ink: #0a1424;
  --ink-2: #2b384d;
  --muted: #56657c;
  --rule: #cfd6e0;
  --rule-strong: #9eabbd;

  --industry: #1d3fd6;
  --founding: #b06d0f;
  --oss: #08776a;
  --talks: #46536a;
  --apps: #b0302a;

  --on-accent: #ffffff;
  --foot-bg: #0a1424;
  --foot-ink: #c3cddb;
  --shadow: 10, 20, 36;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #09101e;
  --surface: #0f192d;
  --ink: #eef2f8;
  --ink-2: #c3ccda;
  --muted: #8b97ab;
  --rule: #1e2a41;
  --rule-strong: #34445f;

  --industry: #7090ff;
  --founding: #f3b94d;
  --oss: #3fd2b9;
  --talks: #a3aec0;
  --apps: #ff7b6b;

  --on-accent: #09101e;
  --foot-bg: #050a14;
  --foot-ink: #a9b4c5;
  --shadow: 0, 0, 0;
  color-scheme: dark;
}

:root {
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --wide: 120rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --rowh: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--industry); }
:focus-visible { outline: 2px solid var(--industry); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--ink); color: var(--paper); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Top bar */
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: 1.5rem;
}
.top__home { font: 700 1.0625rem/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.top__nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.top__nav a { text-decoration: none; color: var(--ink-2); font-size: .9375rem; white-space: nowrap; }
.top__nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding-top: clamp(3rem, 9vw, 7.5rem); }
.hero__name {
  font-size: clamp(4rem, 15.5vw, 13.5rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .86;
  margin-left: -.04em;
  white-space: nowrap;
}
.hero__name .ch { display: inline-block; white-space: pre; text-align: center; }
.hero__name .ch.is-set { text-align: left; }
.hero__name .ch:not(.is-set) { color: var(--industry); opacity: .55; }
.hero__name .ch.is-set { animation: settle .5s var(--ease); }
@keyframes settle { from { color: var(--industry); transform: translateY(-.04em); } }

.hero__intro {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.hero__statement { font: 600 clamp(1.375rem, 2.3vw, 1.875rem)/1.25 var(--display); letter-spacing: -.015em; max-width: 30ch; }
.hero__lede { color: var(--ink-2); max-width: 44ch; padding-top: .3rem; }

/* Hero intro arrives once the name has collapsed */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__intro, .js .circuit-wrap { animation: arrive .9s var(--ease) both; }
  .js .hero__intro { animation-delay: .9s; }
  .js .circuit-wrap { animation-delay: 1.1s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }

/* Circuit */
.circuit-wrap { padding-top: clamp(4rem, 8vw, 6.5rem); }
.circuit-bleed { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.circuit-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.circuit-head__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 800; }
.circuit-head__note { color: var(--muted); font-size: .9375rem; max-width: 52ch; justify-self: end; }
.circuit-hint { display: none; color: var(--muted); font-size: .875rem; margin-top: .75rem; }

.circuit-scroll {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.circuit {
  --field-h: calc(var(--rowh) * 5);
  position: relative;
  display: grid; grid-template-columns: 8rem minmax(0, 1fr);
  min-width: 900px;
  padding: 2.25rem 0 0;
}
.circuit__fallback { grid-column: 1 / -1; padding: 0 1.5rem 2rem; color: var(--muted); }

.circuit__labels {
  position: sticky; left: 0; z-index: 4;
  display: grid; grid-template-rows: repeat(5, var(--rowh)); align-items: center;
  padding-left: 1.25rem;
  background: linear-gradient(to right, var(--surface) 85%, transparent);
}
.circuit__wirelabel { font: 600 .8125rem/1.1 var(--body); color: var(--ink-2); display: flex; align-items: center; gap: .5rem; }
.circuit__wirelabel::before { content: ""; width: 7px; height: 7px; background: var(--c); border-radius: 50%; flex: none; }

.circuit__field { position: relative; height: calc(var(--field-h) + 3rem); margin-right: 4.5rem; }

/* Wires */
.wire { position: absolute; left: 0; right: -2.5rem; top: calc(var(--row) * var(--rowh) + var(--rowh) / 2); height: 0; }
.wire__line { position: absolute; inset: -.75px 0 auto; height: 2px; background: var(--c); opacity: .5; }
.wire__meter {
  position: absolute; right: -.25rem; top: 0; transform: translate(50%, -50%);
  width: 34px; height: 26px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 3px;
}
.wire__meter svg { width: 22px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.wire__pulse { display: none; }

/* Gates */
.gate {
  position: absolute; z-index: 2;
  top: calc(var(--row) * var(--rowh) + var(--rowh) / 2);
  left: var(--x);
  padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer;
}
.gate__box {
  position: relative;
  display: block;
  background: var(--surface);
  border: 2px solid var(--c);
  transition: background-color .25s var(--ease), border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.gate__label { font: 600 .8125rem/1 var(--body); white-space: nowrap; transition: color .2s; }

.gate--span { width: max(var(--w), 6px); height: 36px; transform: translateY(-50%); }
.gate--span .gate__box { position: absolute; inset: 0; border-radius: 3px; }
.gate--span .gate__label { position: relative; display: flex; height: 100%; padding: 0 .5rem; line-height: 1; overflow: hidden; text-align: left; }
.gate--span .gate__label > span { overflow: hidden; text-overflow: clip; }
.gate.is-tight .gate__logo { display: none; }
.gate__mark { position: absolute; top: 50%; left: var(--m); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c); }
.gate[aria-pressed="true"] .gate__mark { background: var(--on-accent); }
.gate--narrow .gate__label { position: absolute; bottom: calc(100% + .45rem); left: 0; height: auto; padding: 0; line-height: 1; overflow: visible; }

.gate--point { width: 16px; height: 16px; transform: translate(-50%, -50%); }
.gate--point .gate__box { width: 16px; height: 16px; border-radius: 50%; }
.gate--point .gate__label { position: absolute; left: 50%; transform: translateX(-50%); }
.gate--up .gate__label { bottom: calc(100% + .5rem); }
.gate--down .gate__label { top: calc(100% + .5rem); }
/* A bigger hit area than the 16px dot */
.gate--point::after { content: ""; position: absolute; inset: -12px; }

/* Tinted fill: a layer of the wire color over the surface */
.gate__box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c); opacity: .13; transition: opacity .25s var(--ease); }
[data-theme="dark"] .gate__box::before { opacity: .22; }
.gate:hover .gate__box::before { opacity: .26; }
[data-theme="dark"] .gate:hover .gate__box::before { opacity: .36; }
.gate:hover .gate__label { color: var(--c); }
.gate[aria-pressed="true"] .gate__box { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.gate--span[aria-pressed="true"] .gate__label { color: var(--on-accent); }
.gate--narrow[aria-pressed="true"] .gate__label,
.gate--point[aria-pressed="true"] .gate__label { color: var(--c); }
.gate:focus-visible { outline: none; }
.gate:focus-visible .gate__box { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The live edge of the current role */
.gate--live .gate__box::after {
  content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--c);
}

/* Control links */
.link {
  position: absolute; z-index: 1;
  left: var(--x);
  top: calc(var(--a) * var(--rowh) + var(--rowh) / 2);
  height: calc((var(--b) - var(--a)) * var(--rowh));
  width: 0; border-left: 1.5px solid var(--ink);
  transform-origin: top;
}
.link__dot { position: absolute; left: -5.25px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.link__target {
  position: absolute; left: -9.75px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink); background:
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
    var(--surface);
}
.link--ongate .link__target { display: none; }

/* Now and axis */
.now { position: absolute; left: var(--x); top: -1.5rem; height: calc(var(--field-h) + 1.5rem); border-left: 1px dashed var(--rule-strong); }
.now span { position: absolute; top: -.35rem; left: .4rem; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.axis { position: absolute; left: 0; right: 0; top: var(--field-h); height: 3rem; border-top: 1px solid var(--rule); }
.axis span { position: absolute; left: var(--x); top: .7rem; transform: translateX(-50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.axis span::before { content: ""; position: absolute; left: 50%; top: -.7rem; height: 5px; border-left: 1px solid var(--rule-strong); }

/* Load sequence: a pulse runs each wire, gates register as it passes */
@media (prefers-reduced-motion: no-preference) {
  .circuit-ready .wire__pulse {
    display: block; position: absolute; top: -1px; left: 0; width: 120px; height: 2px;
    background: linear-gradient(to right, transparent, var(--c));
    box-shadow: 0 0 10px 1px color-mix(in srgb, var(--c) 55%, transparent);
    opacity: 0;
    animation: pulse 2.6s cubic-bezier(.45, .05, .35, 1) calc(1.35s + var(--d)) both;
  }
  .circuit-ready .wire__line { animation: wire-in 1s var(--ease) calc(1.2s + var(--row) * 90ms) both; transform-origin: left; }
  .circuit-ready .gate { animation: gate-in .7s var(--ease) calc(1.35s + var(--d)) both; }
  .circuit-ready .gate .gate__box { animation: gate-flash 1s ease-out calc(1.35s + var(--d)) both; }
  .circuit-ready .link { animation: link-in .5s var(--ease) calc(1.55s + var(--d)) both; }
  .circuit-ready .wire__meter { animation: gate-in .6s var(--ease) calc(3.9s + var(--row) * 90ms) both; }
  .circuit-ready .gate--live .gate__box::after { animation: live 2.4s ease-in-out 4.2s infinite; }
}
@keyframes pulse {
  0% { opacity: 0; left: -120px; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; left: 100%; }
}
@keyframes wire-in { from { transform: scaleX(0); } }
@keyframes gate-in { from { opacity: 0; scale: .7; } }
@keyframes gate-flash { 0%, 20% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 28%, transparent); } }
@keyframes link-in { from { transform: scaleY(0); } }
@keyframes live { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 0%, transparent); transform: scale(1.35); } 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } }

/* Detail for the selected gate */
.detail { margin-top: 1rem; min-height: 11rem; view-transition-name: detail; }
.detail__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem 3rem;
  padding: 1.75rem 0 0;
  border-top: 3px solid var(--c);
}
.detail__wire { font-size: .875rem; color: var(--c); font-weight: 600; }
.detail__name { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-top: .35rem; }
.detail__meta { color: var(--muted); margin-top: .6rem; font-size: .9375rem; }
.detail__body { max-width: 62ch; font-size: 1.125rem; line-height: 1.55; }
.detail__more { display: inline-block; margin-top: 1rem; font-size: .9375rem; font-weight: 600; color: var(--c); }

::view-transition-old(detail) { animation: detail-out .22s ease-in both; }
::view-transition-new(detail) { animation: detail-in .42s var(--ease) both; }
@keyframes detail-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes detail-in { from { opacity: 0; transform: translateY(10px); } }

/* Sections */
.section { padding-top: clamp(5rem, 10vw, 8rem); }
.h2 {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -.045em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.h2::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); margin-top: .12em; }
.h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.muted { color: var(--muted); margin-top: 1.5rem; }

/* Roles */
.role {
  display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule-strong);
}
.role:first-of-type { border-top: 0; padding-top: .5rem; }
.role__side { position: sticky; top: 1.5rem; align-self: start; }
.role__company { display: flex; align-items: center; gap: .9rem; font-size: clamp(2rem, 3.4vw, 2.75rem); }

/* Company logos, with a lettered badge where no logo survives */
.logo {
  width: 44px; height: 44px; flex: none; border-radius: 11px; object-fit: cover;
  background: #fff; box-shadow: 0 0 0 1px rgba(var(--shadow), .12), 0 4px 12px -4px rgba(var(--shadow), .3);
}
.logo--mark, .gate__logo--mark {
  display: grid; place-items: center;
  background: var(--c); color: var(--on-accent);
  font: 800 1.125rem/1 var(--display); letter-spacing: -.03em;
}
.logo--glimpse { background: linear-gradient(160deg, #f59a52, #e8628f); color: #fff; }
.gate__label { display: flex; align-items: center; gap: .45rem; }
.gate__logo { width: 20px; height: 20px; flex: none; border-radius: 5px; background: #fff; object-fit: cover; box-shadow: 0 0 0 1px rgba(var(--shadow), .12); }
.gate__logo.gate__logo--mark { background: var(--c); color: var(--on-accent); font-size: .6875rem; letter-spacing: 0; }
.gate__logo.logo--glimpse { background: linear-gradient(160deg, #f59a52, #e8628f); color: #fff; }
.detail__name { display: flex; align-items: center; gap: .8rem; }
.detail__logo { width: 40px; height: 40px; border-radius: 10px; }
.detail__logo.gate__logo--mark { font-size: 1rem; }
.role__when { margin-top: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.role__title { margin-top: .2rem; color: var(--muted); font-size: .9375rem; max-width: 26ch; }
.role__body { max-width: 66ch; }
.role__summary { font-size: 1.125rem; line-height: 1.55; }
.role__summary + .points, .points + .role__summary, .stats + .role__summary { margin-top: 1.25rem; }
.points li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.points li + li { margin-top: .7rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1.5px; background: var(--c); }

.stats { display: flex; gap: 2.5rem; margin: 1.75rem 0 0; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: .875rem; }
.stats dd { margin: 0; font: 800 2.25rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem clamp(2rem, 6vw, 5rem); padding-top: 3rem; border-top: 1px solid var(--rule-strong); }
.ledger li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.ledger__when { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.ledger p { color: var(--ink-2); font-size: .9375rem; margin-top: .25rem; }

/* Lists: open source, talks, writing */
.list__item { padding: 1.4rem 0; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .5rem 3rem; }
.list__item:last-child { border-bottom: 1px solid var(--rule-strong); }
.list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.list__title { font: 700 1.3125rem/1.25 var(--display); letter-spacing: -.015em; text-decoration: none; }
.list__title:hover { text-decoration: underline; color: var(--industry); }
.list__aside { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.list__item p { color: var(--ink-2); max-width: 60ch; }
.list__item--lead .list__title { font-size: 2rem; }
.list__item--lead .list__title::after { content: ""; display: inline-block; width: .3em; height: .3em; margin-left: .35em; background: var(--c); border-radius: 50%; vertical-align: .2em; }
.list__item--lead p { font-size: 1.125rem; color: var(--ink); }

/* Apps */
.after__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.after__text { font-size: 1.125rem; max-width: 40ch; }
.shelf { display: flex; flex-wrap: wrap; gap: 1.5rem 1.75rem; grid-row: span 2; }
.shelf a { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-decoration: none; font-size: .8125rem; color: var(--ink-2); }
.shelf img { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 1px 2px rgba(var(--shadow), .15), 0 6px 16px -6px rgba(var(--shadow), .3); transition: transform .3s var(--ease); }
.shelf__mac img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 4px 8px rgba(var(--shadow), .22)); }
.shelf__wide img { width: 133px; border-radius: 10px; }
.shelf a:hover img { transform: translateY(-4px); }
.button {
  justify-self: start; display: inline-block; padding: .8rem 1.4rem; background: var(--ink); color: var(--paper);
  border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .9375rem; transition: background-color .2s;
}
.button:hover { background: var(--industry); color: var(--on-accent); }

/* Footer */
.foot { margin-top: clamp(5rem, 10vw, 8rem); background: var(--foot-bg); color: var(--foot-ink); }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 2.25rem; }
.foot__name { font: 700 1.0625rem/1 var(--display); color: #fff; }
.foot__links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.foot a { color: var(--foot-ink); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot :focus-visible { outline-color: #fff; }

/* Narrow screens */
@media (max-width: 56rem) {
  .hero__intro, .circuit-head, .role, .pair, .list__item, .after__grid, .detail__inner { grid-template-columns: minmax(0, 1fr); }
  .circuit-head__note { justify-self: start; }
  .role__side { position: static; }
  .role__title { max-width: none; }
  .shelf { grid-row: auto; }
}
@media (max-width: 36rem) {
  :root { --rowh: 68px; }
  .hero__name { font-size: clamp(3rem, 16.5vw, 5.5rem); letter-spacing: -.05em; }
  .circuit { min-width: 1000px; }
  .circuit-hint { display: block; }
  .circuit-bleed { padding-inline: 0; }
  .circuit-scroll { border-radius: 0; border-inline: 0; }
  .top__nav { gap: 1.25rem; }
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .stats { gap: 1.75rem; }
  .shelf { gap: 1.25rem; }
}

/* Apps page */
.apps-hero { padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.apps-hero__title { font-size: clamp(4rem, 14vw, 11rem); font-weight: 900; letter-spacing: -.055em; line-height: .86; margin-left: -.04em; }
.apps-hero__lede { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 34ch; font: 600 clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--display); letter-spacing: -.015em; }

.apps { counter-reset: none; }
.app {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem);
  padding: 2.75rem 0; border-top: 1px solid var(--rule-strong);
}
.app:last-child { border-bottom: 1px solid var(--rule-strong); }
.app__icon { width: 9rem; height: 9rem; border-radius: 22.5%; box-shadow: 0 1px 2px rgba(var(--shadow), .12), 0 14px 30px -10px rgba(var(--shadow), .4); }
.app__icon--mac { border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(var(--shadow), .3)); }
.app__icon--wide { height: auto; aspect-ratio: 5 / 3; border-radius: 1rem; object-fit: cover; margin-top: 1.5rem; }
.app__name { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; letter-spacing: -.035em; }
.app__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .6rem; color: var(--muted); font-size: .9375rem; }
.app__desc { margin-top: 1rem; max-width: 60ch; font-size: 1.125rem; line-height: 1.55; }
.app__features { margin: 1rem 0 1.5rem; max-width: 60ch; }
.app__features li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.app__features li + li { margin-top: .35rem; }
.app__features li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 2px; background: var(--apps); }
.tag { display: inline-block; padding: .2rem .55rem; border-radius: 3px; background: var(--apps); color: var(--on-accent); font-size: .8125rem; font-weight: 600; }
.button--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button--quiet:hover { background: var(--ink); color: var(--paper); }
.top__nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 36rem) {
  .app { grid-template-columns: 5rem minmax(0, 1fr); gap: 1.25rem; }
  .app__icon { width: 5rem; height: 5rem; }
  .app__icon--wide { margin-top: .5rem; border-radius: .6rem; }
}

/* Theme toggle */
.top__end { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.theme-toggle {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-block: -.6rem;
  padding: 0; border: 1px solid var(--rule-strong); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .35s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:active { transform: rotate(-25deg); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .moon { fill: currentColor; stroke: none; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
