/* Gram: the app's black gallery. Black canvas, white type, Ash for metadata, mono labels like the app's kickers. */
.gram-site {
    color-scheme: dark;
    --void: #000;
    --charcoal: #1f1f1f;
    --graphite: #333;
    --ash: #8f8f8f;
    --bone: #f0f0f0;
    --paper: var(--void);
    --ink: #fff;
    --onyx: #fff;
    --copy: #d4d4d4;
    --rust: #fff;
    --rule: var(--charcoal);
    --footer-background: var(--void);
    --display: Inter, system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--void);
    font: 400 1.0625rem/1.55 Inter, system-ui, sans-serif;
}

.gram-site .tailwind-plus {
    --color-white: #fff;
    --color-gray-900: var(--void);
    --color-gray-800: var(--charcoal);
    --color-gray-700: var(--graphite);
    --color-gray-400: var(--ash);
    --color-gray-300: #d4d4d4;
    --tailwind-indigo-400: #fff;
    --tailwind-indigo-500: #fff;
    --tailwind-indigo-600: #fff;
}
.gram-site .tailwind-plus > .dark\:bg-gray-900, .gram-site .page-title, .gram-site .product-not-found { background-color: var(--void); }
.gram-site [data-tailwind-block="tp-marketing-headers"] > header { background-color: var(--void); border-bottom: 1px solid var(--charcoal); }
.gram-site [data-tailwind-block="tp-marketing-footers"] > footer { background-color: var(--void); border-top: 1px solid var(--charcoal); }
.gram-site .tailwind-plus el-dialog-panel { background-color: var(--void); }

/* Primary actions are white pills, as in the app. */
.gram-site .tailwind-plus a.bg-indigo-600 { border-radius: 999px; padding-inline: 1.25rem; color: var(--void); }
.gram-site .tailwind-plus a.bg-indigo-600:hover { background-color: var(--bone); text-decoration: underline; text-underline-offset: .2em; }
.gram-site .tailwind-plus a.bg-indigo-600:active { background-color: #d4d4d4; }
.gram-site .tailwind-plus a:not(.bg-indigo-600):hover { text-decoration: underline; text-underline-offset: .25em; }
.gram-site :focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
.gram-site .ios-skip { background: #fff; color: var(--void); border-color: #fff; }

/* Mono kickers: the same label voice the app uses above every screen title. */
.gram-site .tailwind-plus :is(h2.text-base\/7, .rounded-full > span.font-semibold),
.gram-site .article-meta time,
.gram-site .tailwind-plus [data-tailwind-block="article-index"] time {
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.gram-site .tailwind-plus .rounded-full > span.font-semibold { color: #fff; }

/* Hero: drop the template grid pattern and dress the phone frame in the app's greys. */
.gram-site [data-tailwind-block="tp-marketing-heroes"] svg.absolute.inset-0 { display: none; }
.gram-site [data-tailwind-block="tp-marketing-heroes"] [role="img"] { --tw-drop-shadow: none; }
.gram-site [data-tailwind-block="tp-marketing-heroes"] [role="img"] > path:first-of-type { fill: var(--graphite); }
.gram-site [data-tailwind-block="tp-marketing-heroes"] [role="img"] > path:nth-of-type(2) { fill: var(--charcoal); }
.gram-site .tailwind-plus [role="img"] foreignObject img { width: 100%; aspect-ratio: 720 / 1566; }

/* Weegmoment: a portrait phone screenshot instead of the template's wide desktop shot. */
.gram-site .tailwind-plus .lg\:order-first { justify-content: center; }
.gram-site [data-tailwind-block="tp-marketing-feature-sections"] .relative.pl-9 { padding-left: 0; }
.gram-site [data-tailwind-block="tp-marketing-feature-sections"] .relative.pl-9 dt > svg { display: none; }
.gram-site .tailwind-plus .lg\:order-first img {
    width: min(100%, 20rem);
    height: auto;
    aspect-ratio: 720 / 1566;
    border-radius: 2rem;
    box-shadow: none;
    outline: 1px solid var(--graphite);
}

/* Feature list: hairline rules between items, like the app's rows. */
.gram-site [data-tailwind-block="tp-marketing-feature-sections"] dl.lg\:grid-cols-3 > div { border-top: 1px solid var(--graphite); padding-top: 1.25rem; }

.gram-site .product-not-found a > span[aria-hidden="true"] { display: none; }
.gram-site .marketing-back { color: var(--ash); font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.gram-site .marketing-back:hover { color: #fff; }
.gram-site .product-prose a, .gram-site .marketing-article :is(p, li) a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.gram-site .marketing-article > h2 { font: 600 clamp(1.5rem, 3vw, 2rem)/1.25 var(--display); letter-spacing: -.02em; }
.gram-site .marketing-article :is(code, .product-prose code) { color: #fff; font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.gram-site .marketing-article :is(code)::before, .gram-site .marketing-article :is(code)::after { content: none; }
.gram-site .marketing-article > :is(ul, ol) { padding-inline-start: calc(var(--gutter) + 1.25rem); }
.gram-site .marketing-article > :is(ul, ol) li { list-style-position: outside; }
.gram-site .marketing-article > :is(ul, ol) li::marker { color: var(--ash); }
.gram-site .marketing-article > ol li::marker { font-family: var(--mono); }

/* Screenshot galleries: phones side by side, also on small screens. */
.gram-site .marketing-article > figure:has(ul) { margin: 2.5rem auto; max-width: 40rem; padding-inline: var(--gutter); }
.gram-site .marketing-article > figure ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 18rem); justify-content: center; gap: clamp(.75rem, 3vw, 2rem); margin: 0; padding: 0; list-style: none; }
.gram-site .marketing-article > figure ul li { margin: 0; padding: 0; }
.gram-site .marketing-article > figure img { width: 100%; height: auto; aspect-ratio: 720 / 1566; margin: 0; border-radius: clamp(1rem, 4vw, 2rem); outline: 1px solid var(--graphite); }
.gram-site .marketing-article > figure figcaption { margin-top: 1rem; color: var(--ash); font-size: .9375rem; text-align: center; }
