/* AIM Studio blog. Shared stylesheet for /blog/ (tokens loosely follow /assets/site/pages.css) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/outfit-latin.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dmserif-latin.woff2) format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/dmserif-italic-latin.woff2) format("woff2"); }

:root {
  --ink: #050409;
  --acc: #8fe9ff;
  --violet: #8b5cf6;
  --lav: #b9a8ff;
  --text: #f3f1ff;
  --body: rgba(243, 241, 255, .84);
  --muted: rgba(226, 222, 255, .62);
  --line: rgba(255, 255, 255, .1);
  --card: rgba(255, 255, 255, .04);
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --col: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 40% at 12% 0%, rgba(90, 60, 220, .16), transparent 70%), radial-gradient(40% 30% at 95% 20%, rgba(143, 233, 255, .05), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--acc); text-underline-offset: 3px; text-decoration-color: rgba(143, 233, 255, .4); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 36px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--ink); }
.skip:focus { left: 8px; }

/* header (no JS: links wrap on small screens) */
.hd { border-bottom: 1px solid var(--line); background: rgba(5, 4, 9, .8); }
.hd .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; font-size: 15px; }
.nav a { color: rgba(243, 241, 255, .8); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* article column */
.post, .listing { max-width: var(--col); margin: 0 auto; padding: 36px 18px 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

h1 { font-size: clamp(30px, 6.4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.post h2 { margin: 40px 0 12px; font-size: clamp(22px, 4.2vw, 27px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.post h3 { margin: 26px 0 8px; font-size: 18.5px; font-weight: 600; line-height: 1.35; }
.post p, .post li { color: var(--body); }
.post p { margin-top: 14px; }
.post h2 + p, .post h3 + p { margin-top: 0; }
.post ul, .post ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.post li::marker { color: var(--lav); }
.post strong { color: #fff; font-weight: 600; }
.byline { margin-top: 14px; font-size: 14px; color: var(--muted); }
.lede { font-size: 19px; color: rgba(243, 241, 255, .9) !important; }

.disclose { margin: 22px 0 6px; padding: 14px 16px; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: rgba(139, 92, 246, .1); font-size: 15px; color: #fff !important; }
.formula { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(143, 233, 255, .2); background: rgba(143, 233, 255, .05); font-weight: 500; color: #fff !important; }

/* tables scroll sideways on phones */
.tbl { margin: 18px 0 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
caption { padding: 12px 14px 0; text-align: left; font-size: 13.5px; color: var(--muted); caption-side: top; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: #fff; background: rgba(255, 255, 255, .05); }
td { color: var(--body); }
tr:last-child td { border-bottom: 0; }
tr.ours td { background: rgba(139, 92, 246, .1); }

/* FAQ */
.faq { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
.faq h3 { margin-top: 22px; }

/* call to action */
.cta { margin-top: 44px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(143, 233, 255, .05)); }
.cta h2 { margin: 0 0 6px !important; font-size: 24px !important; }
.cta p { margin-top: 0; }
.cta .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #1d1934; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #241f40; box-shadow: 0 0 24px rgba(130, 110, 255, .28); }
.btn.ghost { background: transparent; }

/* related posts */
.related { margin-top: 40px; }
.related h2 { margin: 0 0 10px !important; font-size: 15px !important; font-weight: 500 !important; color: var(--muted); }
.related ul { list-style: none; padding: 0 !important; margin: 0 !important; }
.related a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; }
.related a:hover { border-color: rgba(185, 168, 255, .5); }

/* blog index */
.listing .intro { margin-top: 14px; color: var(--muted); font-size: 18px; }
.listing h2 { margin: 40px 0 6px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.cards { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
.card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--lav); }
.card p { margin-top: 6px; color: var(--body); font-size: 15.5px; }
.card time { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* footer */
.ft { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.ft .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.ft a { color: rgba(243, 241, 255, .8); text-decoration: none; }
.ft a:hover { color: #fff; }
.ft p { margin-right: auto; }

@media (min-width: 760px) {
  .post, .listing { padding-top: 56px; }
  .cta { padding: 30px; }
}
