/* Styles for the generated plot guide pages (landing/pages/build.py).
   Same palette and type as the inline styles in index.html. */
:root {
    --plotblue: #4aa3e0;
    --plotorange: #ff9d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #09090b;
    color: #e4e4e7;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60rem 30rem at 15% -10%, rgb(74 163 224 / 0.13), transparent 60%),
        radial-gradient(50rem 26rem at 90% -15%, rgb(255 157 77 / 0.09), transparent 60%);
}

::selection {
    background: rgb(74 163 224 / 0.35);
}

a {
    color: var(--plotblue);
}

a:hover {
    color: #7cc3ef;
}

a:focus-visible {
    outline: 2px solid var(--plotblue);
    outline-offset: 2px;
}

.font-display {
    font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif;
}

.font-mono,
code {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

.gradient-text {
    background: linear-gradient(to right, var(--plotblue), var(--plotorange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.brand {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.nav-links a {
    color: #d4d4d8;
    text-decoration: none;
}

.nav-cta {
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgb(255 255 255 / 0.1);
}

.nav-links a:hover,
.nav-cta:hover {
    color: #ffffff;
}

.crumbs {
    font-size: 0.8125rem;
    color: #71717a;
    margin-top: 1rem;
}

.crumbs a {
    color: #a1a1aa;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fafafa;
    margin-top: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: #f4f4f5;
    margin-top: 2.5rem;
}

p {
    margin-top: 0.75rem;
}

.lede {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #a1a1aa;
}

.muted {
    color: #a1a1aa;
}

.hero-small {
    padding: 2.5rem 0 0.5rem;
}

.plot {
    margin-top: 1.75rem;
}

.plot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    background: #ffffff;
}

.plot figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #71717a;
}

.when,
.related {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.when li+li,
.related li+li {
    margin-top: 0.375rem;
}

.avoid {
    margin-top: 1rem;
    background: rgb(255 157 77 / 0.08);
    border: 1px solid rgb(255 157 77 / 0.25);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

.avoid strong {
    color: var(--plotorange);
}

.chip {
    display: inline-block;
    font-size: 0.875rem;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    color: #e4e4e7;
}

code {
    font-size: 0.875em;
    color: #f4f4f5;
}

.code {
    margin-top: 1rem;
    background: #18181b;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.code code {
    font-size: inherit;
    color: #e4e4e7;
}

.cta-row {
    margin-top: 2rem;
    text-align: center;
}

.cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(to right, var(--plotblue), var(--plotorange));
    box-shadow: 0 10px 15px -3px rgb(74 163 224 / 0.3);
}

.cta:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.cta-note {
    text-align: center;
    font-size: 0.875rem;
    color: #71717a;
    margin-top: 0.5rem;
}

.section {
    margin-top: 1rem;
}

.guide-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.guide-list li {
    background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.guide-list a {
    font-weight: 600;
    text-decoration: none;
}

.guide-list span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #a1a1aa;
}

footer {
    margin: 3rem 0.625rem 2rem;
    font-size: 13px;
    color: #52525b;
    text-align: center;
}

footer .disclaimer {
    margin-top: 0.375rem;
    color: #3f3f46;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.75rem;
    }

    .guide-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* /compare/ price table (issue #94): scrolls sideways on phones. */
.table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.compare th,
.compare td {
    text-align: left;
    vertical-align: top;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.compare thead th {
    color: #a1a1aa;
    font-weight: 500;
}

.compare tbody th {
    color: #f4f4f5;
    white-space: nowrap;
}

.small {
    font-size: 0.8125rem;
}
