/* Instrument Sans, self-hosted (SIL Open Font License). One variable file, weights 400 to 600. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* majidalee.dev: the portfolio as an App Store listing.
   One stylesheet, light and dark. Ink plus one accent: jade, from the wordmark's dots. */

:root {
  --bg: #FFFFFF;
  --bg-2: #F6F7F8;
  --bg-3: #EEF0F2;
  --text: #0E1116;
  --text-2: #545B67;
  --text-3: #646B77;
  --hair: rgba(14, 17, 22, .09);
  --hair-2: rgba(14, 17, 22, .14);
  --jade: #12A170;
  --link: #0B7A55;
  --btn: #0E1116;
  --btn-text: #FFFFFF;
  --shadow: 0 1px 1px rgba(14,17,22,.04), 0 6px 20px -4px rgba(14,17,22,.12);
  --shadow-lift: 0 2px 2px rgba(14,17,22,.05), 0 22px 44px -10px rgba(14,17,22,.28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shell: 1080px;
  --gutter: max(20px, calc((100vw - var(--shell)) / 2));
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --bg-2: #15181D;
    --bg-3: #1D2127;
    --text: #F1F3F5;
    --text-2: #A7AEB9;
    --text-3: #838B97;
    --hair: rgba(255, 255, 255, .09);
    --hair-2: rgba(255, 255, 255, .15);
    --jade: #3DD6A0;
    --link: #4FDCAA;
    --btn: #F1F3F5;
    --btn-text: #0B0D10;
    --shadow: 0 1px 1px rgba(0,0,0,.4), 0 6px 20px -4px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 2px rgba(0,0,0,.5), 0 22px 44px -10px rgba(0,0,0,.8);
  }
}

*, *::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(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: color-mix(in srgb, var(--jade) 28%, transparent); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }

.shell { max-width: calc(var(--shell) + 40px); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 12px; z-index: 10; background: var(--bg); padding: 6px 12px; border-radius: 8px; }

/* wordmark: strokes follow text colour, dots stay jade */
.wm { color: var(--text); }
.wm .dot { fill: var(--jade); }

/* ------------------------------------------------------------------ bar */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.bar .shell { display: flex; align-items: center; gap: 26px; height: 56px; font-size: 14.5px; }
.bar .home { margin-right: auto; display: flex; align-items: center; }
.bar .home svg { width: 62px; height: auto; }
.bar nav { display: flex; gap: 24px; }
.bar nav a { color: var(--text-2); transition: color .2s var(--ease); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .bar nav .opt { display: none; } .bar .shell { gap: 18px; } }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 18px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font: 600 14.5px/1 var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--btn) 70%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { background: var(--bg-3); color: var(--text); }
.btn.ghost:hover { box-shadow: none; background: color-mix(in srgb, var(--bg-3) 85%, var(--text)); }
.btn svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------------- tile */
.tile {
  position: relative; flex: none; display: grid; place-items: center;
  width: 168px; aspect-ratio: 1; border-radius: 23%;
  background: radial-gradient(130% 100% at 30% 0%, #262B34 0%, #111419 55%, #07080A 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.1), 0 18px 40px -12px rgba(8,10,14,.45);
}
.tile svg { width: 66%; height: auto; color: #F4F6F8; }
.tile .dot { fill: #3DD6A0; }

/* ----------------------------------------------------------------- hero */
.hero { display: flex; gap: 40px; align-items: center; padding: 56px 0 36px; }
.hero h1 { font-size: clamp(32px, 2.4vw + 18px, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 0; }
.hero .sub { display: block; font-size: clamp(18px, .5vw + 15px, 22px); line-height: 1.3; font-weight: 400; color: var(--text-2); margin: 10px 0 8px; letter-spacing: -.02em; }
.hero .dev { font-size: 14.5px; color: var(--text-3); margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hero .live { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.hero .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 22%, transparent); }
.cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { gap: 20px; align-items: flex-start; padding-top: 30px; }
  .hero .tile { width: 104px; }
}

/* ------------------------------------------------------------ info strip */
.info {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr);
  overflow-x: auto; scrollbar-width: none; margin: 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 16px 0;
}
.info::-webkit-scrollbar { display: none; }
.info > div { text-align: center; padding: 4px 14px; border-left: 1px solid var(--hair); }
.info > div:first-child { border-left: 0; }
.info dt { font-size: 12px; color: var(--text-3); letter-spacing: 0; margin-bottom: 4px; }
.info dd { margin: 3px 0 0; font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.info dd { display: grid; justify-items: center; gap: 6px; }
.info .v { font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.info .mv { width: 76px; height: 12px; color: var(--text); }
.info dd small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); letter-spacing: 0; line-height: 1.3; }

/* ------------------------------------------------------------- sections */
section { padding: 44px 0 8px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.head a { font-size: 14.5px; font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 40px 0 0; }

/* ----------------------------------------------------------- rails */
.rail {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 28px; margin: 0; list-style: none; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; flex: none; margin: 0; }

.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair-2); background: var(--bg); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease), opacity .2s, transform .2s var(--ease);
}
.rail-nav button:hover { background: var(--bg-2); }
.rail-nav button:active { transform: scale(.94); }
.rail-nav button:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .rail-nav { display: none; } }

/* ------------------------------------------------------ featured stories */
.hint { font-size: 14px; color: var(--text-3); }
.stories { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stories li { margin: 0; }
@media (max-width: 960px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .stories { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 24px; scrollbar-width: none; }
  .stories::-webkit-scrollbar { display: none; }
  .stories li { flex: none; width: 82vw; scroll-snap-align: center; }
}

.story {
  --a: #4B3BE0; --b: #130E4A;
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; width: 100%; height: 440px; padding: 24px 24px 20px; border-radius: 26px;
  color: #fff; background: linear-gradient(160deg, var(--a) 0%, var(--b) 100%);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.story::before { /* top light */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 55% at 15% 0%, rgba(255,255,255,.26), transparent 70%);
}
.story::after { /* hairline edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); pointer-events: none;
}
.story:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lift); }
.story:active { transform: scale(.99); }
.story:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }
.eyebrow { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.86); letter-spacing: 0; }
.story .title { display: block; margin-top: 6px; font-size: 27px; line-height: 1.08; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.story .art { display: block; margin: auto 0 18px; }
.story .art svg, .sheet-art svg { width: 100%; height: auto; overflow: visible; }
.story .by { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13.5px; color: rgba(255,255,255,.8); }
.story .open { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: 13px; transition: background .2s var(--ease); }
.story:hover .open { background: #fff; color: var(--b); }

/* the story sheet */
.sheet {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 28px;
  background: var(--bg); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); overflow: auto;
}
.sheet::backdrop { background: rgba(8, 10, 14, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: sheet-in .5s var(--ease); }
.sheet[open]::backdrop { animation: fade .4s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .sheet[open]::backdrop { animation: none; } }
.sheet-art { position: relative; isolation: isolate; padding: 32px 36px 28px; color: #fff; background: linear-gradient(160deg, var(--a), var(--b)); }
.sheet-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 10% 0%, rgba(255,255,255,.24), transparent 70%); }
.sheet-art h3 { font-size: clamp(28px, 3vw + 12px, 38px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin: 6px 0 24px; max-width: 16ch; }
.sheet-art svg { max-width: 420px; }
.sheet-body { padding: 28px 36px 36px; font-size: 16.5px; line-height: 1.6; }
.sheet-body p { color: var(--text); }
.sheet-body p:last-child { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 22px; }
.facts div { padding: 10px 0; border-top: 1px solid var(--hair); }
.facts dt { font-size: 12.5px; color: var(--text-3); }
.facts dd { margin: 2px 0 0; font-size: 14.5px; }
.close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 14px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s var(--ease);
}
.close:hover { background: rgba(255,255,255,.34); }
.sheet form { margin: 0; }
@media (max-width: 560px) { .sheet-art { padding: 26px 22px 22px; } .sheet-body { padding: 22px 22px 28px; } .facts { grid-template-columns: 1fr; } }

/* -------------------------------------------------- what's new / description */
.meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
.prose { max-width: 62ch; color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--jade) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%2312A170' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }


/* ------------------------------------------------------ developer's notes */
.notes .rail > li { width: min(330px, 82vw); }
.note {
  height: 100%; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-2); border-radius: 20px; padding: 22px 22px 20px;
  border: 1px solid var(--hair);
}
.note .n { font-size: 12.5px; font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.note h3 { font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.note p { font-size: 15px; line-height: 1.5; color: var(--text-2); margin: 0; }

/* --------------------------------------------------------- more projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 36px; list-style: none; margin: 0; padding: 0; }
.projects li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--hair); margin: 0; }
.hook {
  --h: #0E1116;
  width: 76px; height: 76px; border-radius: 18px; display: grid; place-content: center; text-align: center;
  background: color-mix(in srgb, var(--h) 11%, var(--bg)); color: color-mix(in srgb, var(--h) 62%, #000);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 16%, transparent);
}
.hook b { font-size: 21px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hook small { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1; font-weight: 500; }
@media (prefers-color-scheme: dark) { .hook { background: color-mix(in srgb, var(--h) 18%, var(--bg)); color: color-mix(in srgb, var(--h) 45%, #fff); } }
.projects h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 2px; }
.projects p { font-size: 14px; line-height: 1.42; color: var(--text-2); margin: 0; }
.projects .role { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------ information */
.table { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 36px; margin: 0; }
.table div { padding: 13px 0; border-top: 1px solid var(--hair); }
.table dt { font-size: 13px; color: var(--text-3); }
.table dd { margin: 3px 0 0; font-size: 15px; }

/* ------------------------------------------------------------- contact */
.contact { display: grid; gap: 28px; padding: 40px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--hair); }
@media (min-width: 860px) { .contact { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.contact h2 { font-size: clamp(28px, 2vw + 16px, 40px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 12px; }
.contact p { color: var(--text-2); margin: 0; max-width: 48ch; }
.contact .links { display: grid; gap: 2px; font-size: 15px; }
.contact .links a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair); color: var(--text); }
.contact .links a span { color: var(--text-3); }
.contact .links a:hover { text-decoration: none; color: var(--link); }
@media (max-width: 560px) { .contact { padding: 26px 22px; } }

/* -------------------------------------------------------------- footer */
.foot { margin-top: 64px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--text-3); }
.foot .shell { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.foot a { color: var(--text-2); }
.foot .grow { margin-right: auto; display: flex; align-items: center; gap: 12px; }
.foot .grow svg { width: 48px; height: auto; }

/* ---------------------------------------------- one entrance, played once */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .8s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .07s; }
  .info { animation: rise .8s var(--ease) .14s both; }
  .stories li { animation: rise .9s var(--ease) both; }
  .stories li:nth-child(2) { animation-delay: .05s; }
  .stories li:nth-child(3) { animation-delay: .1s; }
  .stories li:nth-child(n+4) { animation-delay: .15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------ version history */
.versions { list-style: none; margin: 0; padding: 0; }
.versions > li, .also { display: grid; grid-template-columns: 180px 1fr; gap: 6px 32px; padding: 22px 0; border-top: 1px solid var(--hair); margin: 0; }
.versions > li:first-child { border-top: 0; padding-top: 4px; }
.when { display: grid; gap: 2px; align-content: start; font-size: 14px; color: var(--text-3); }
.when b { color: var(--text); font-size: 14.5px; }
.versions h3, .also h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.org { margin: 2px 0 10px; font-size: 14.5px; color: var(--text-2); }
.versions ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.versions ul li { position: relative; padding-left: 16px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.versions ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.also { margin-top: 8px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 20px; background: var(--bg-2); }
.also p:last-child { margin: 0; font-size: 15.5px; }
@media (max-width: 640px) { .versions > li, .also { grid-template-columns: 1fr; } .when { grid-auto-flow: column; justify-content: space-between; } }

/* ------------------------------------------------------------ skills */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; }
.skills > div { padding: 18px 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--hair); }
.skills dt { font-size: 15px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 4px; }
.skills dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
section[id] { scroll-margin-top: 64px; }

/* ---------------------------------------------------------- kickers, faq */
.kicker { margin: 4px 0 0; font-size: 14px; color: var(--text-3); }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 7v8M7 11h8' stroke='%237A818D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; max-width: 70ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.faq + * { margin-top: 0; }
#faq { padding-bottom: 36px; }

/* ------------------------------------------------------- ways to work */
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ways li { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; border: 1px solid var(--hair); background: var(--bg-2); }
.ways h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.ways p { font-size: 15px; line-height: 1.5; color: var(--text-2); margin: 0 0 8px; }
.ways a { margin-top: auto; font-weight: 600; font-size: 14.5px; }
a.plain { color: inherit; }

/* =========================================================== inner pages */
.page { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-3); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hair-2); }
.crumbs a { color: var(--text-2); }
.page-hero { padding: 18px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 3.2vw + 16px, 54px); line-height: 1.03; letter-spacing: -.045em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.page-hero .lede { font-size: clamp(18px, .6vw + 15px, 21px); line-height: 1.5; color: var(--text-2); letter-spacing: -.015em; margin: 0 0 24px; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--text-3); margin: -6px 0 24px; }
.byline b { color: var(--text); font-weight: 600; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 32px 0 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust div { padding: 16px 14px 14px 0; }
.trust dt { font-size: 12.5px; color: var(--text-3); }
.trust dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }

.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: clamp(24px, 1.2vw + 18px, 30px); line-height: 1.15; letter-spacing: -.035em; margin: 56px 0 14px; }
.prose h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--text-3); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: .18em; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 28px 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--jade); font-size: 19px; line-height: 1.5; letter-spacing: -.015em; }
.prose .answer { margin: 0 0 28px; padding: 20px 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--hair); font-size: 16.5px; }
.prose .answer strong:first-child { display: block; font-size: 13px; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair); }
.prose th { font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.prose code { font: 500 .88em/1.4 ui-monospace, "SF Mono", Menlo, monospace; padding: .12em .35em; border-radius: 6px; background: var(--bg-3); }
.prose pre { margin: 18px 0 24px; padding: 18px 20px; border-radius: 16px; overflow-x: auto; background: #0E1116; color: #E6EDF3; font: 13.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; border: 1px solid var(--hair); }
.prose pre code { padding: 0; background: none; font: inherit; color: inherit; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; }
.prose .steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; }
.prose .steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-text); font-size: 13px; font-weight: 600; }
.prose .steps > li > b:first-child { display: block; margin-bottom: 2px; }

.price { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 12px 0 18px; }
.price > div { padding: 22px; border-radius: 20px; border: 1px solid var(--hair); background: var(--bg-2); }
.price b { display: block; font-size: 14px; color: var(--text-2); font-weight: 500; }
.price strong { display: block; margin: 4px 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.price p { margin: 0; font-size: 15px; color: var(--text-2); }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 12px 0 18px; }
.cards li { margin: 0; padding: 20px; border-radius: 18px; border: 1px solid var(--hair); }
.cards h3 { margin: 0 0 4px; font-size: 16.5px; }
.cards p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.cards small { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.cta-band { margin: 64px 0 0; padding: 34px; border-radius: 26px; background: #0E1116; color: #F1F3F5; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 1.4vw + 16px, 32px); letter-spacing: -.035em; color: #fff; }
.cta-band p { margin: 0 0 20px; color: #A7AEB9; max-width: 56ch; }
.cta-band .btn { background: #fff; color: #0E1116; }
.cta-band a:not(.btn) { color: #4FDCAA; }
@media (prefers-color-scheme: dark) { .cta-band { background: var(--bg-2); border: 1px solid var(--hair); } }
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair); }
.related h2 { font-size: 20px; margin: 0 0 12px; }
.postlist { list-style: none; padding: 0; margin: 24px 0 0; }
.postlist li { margin: 0; padding: 22px 0; border-top: 1px solid var(--hair); }
.postlist h2 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 6px; }
.postlist h2 a { color: var(--text); }
.postlist p { margin: 0 0 6px; color: var(--text-2); }
.postlist small { color: var(--text-3); font-size: 13.5px; }

/* code highlighting, generated at build time (Pygments classes, GitHub dark palette) */
.hl { color: #E6EDF3; }
.hl .k, .hl .kd, .hl .kr, .hl .kn, .hl .kc, .hl .ow, .hl .o, .hl .si { color: #FF7B72; }
.hl .kt, .hl .nb, .hl .bp, .hl .nc { color: #FFA657; }
.hl .s, .hl .s1, .hl .s2, .hl .sb, .hl .sa, .hl .se, .hl .sr, .hl .dl { color: #A5D6FF; }
.hl .c, .hl .c1, .hl .cm, .hl .cs { color: #8B949E; font-style: italic; }
.hl .nf, .hl .fm { color: #D2A8FF; }
.hl .m, .hl .mi, .hl .mf, .hl .mh { color: #79C0FF; }
.hl .p { color: #C9D1D9; }

/* what's new + about layouts */
.new { display: grid; gap: 18px 56px; align-items: start; }
.new .prose { margin: 0; font-size: 17px; line-height: 1.6; }
@media (min-width: 860px) { .new { grid-template-columns: 1fr 1fr; } }
.about { display: grid; gap: 24px 56px; align-items: start; }
.about .prose { font-size: 17px; line-height: 1.65; }
.about .prose p:last-child { margin-bottom: 0; }
@media (min-width: 860px) { .about { grid-template-columns: 1.6fr 1fr; } }
.facts-side { margin: 0; padding: 6px 22px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--hair); }
.facts-side div { padding: 14px 0; border-top: 1px solid var(--hair); }
.facts-side div:first-child { border-top: 0; }
.facts-side dt { font-size: 12.5px; color: var(--text-3); }
.facts-side dd { margin: 3px 0 0; font-size: 15px; line-height: 1.45; }
.prose h2 code, .prose h3 code { font-size: .8em; padding: .08em .3em; }
