/*
 * Studio Junkies
 *
 * The original 2007 theme, rebuilt without tables: the black banner
 * with its striped band, the image-button menu, bevelled panels
 * drawn from the original border artwork, Verdana body text and
 * Arial headings in #AA9. Text is larger than the original 8pt so
 * long tutorials stay readable, and the layout stacks on a phone.
 */

:root {
    --bg: #333;
    --panel: #3a3a3a;
    --ink: #ccc;
    --ink-dim: #999;
    --ink-bright: #fff;
    --accent: #ff814f;
    --rule: #222;
    --line: #4a4a4a;
    --sans: verdana, arial, sans-serif;
    --heading: arial, helvetica, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg) url(/assets/bg.gif) repeat center center;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ink);
    font-weight: bold;
    text-decoration: underline;
}

a:hover,
a:focus-visible {
    color: var(--ink-bright);
}

:focus-visible {
    outline: 1px dotted var(--ink-bright);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading);
    font-weight: bold;
    color: var(--accent);
    line-height: 1.25;
    margin: 8px 0;
}

h1 {
    font-size: 20px;
    text-align: center;
    margin: 4px 0 16px;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 14px;
}

p {
    margin: 0 0 1em;
}

code {
    font-family: var(--mono);
    font-size: 0.92em;
    background: #2a2a2a;
    padding: 0 0.3em;
}

/* -- banner and menu --------------------------------------------- */

.site-header {
    height: 96px;
    background: #000 url(/assets/bannerBg.gif) repeat-x top left;
}

.logo {
    display: block;
    width: 453px;
    max-width: calc(100% - 10px);
    margin-left: 10px;
    line-height: 0;
}

.logo img {
    display: block;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: -40px;
    padding-left: 200px;
    padding-bottom: 4px;
}

.nav a {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100px;
    height: 50px;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
    background: url(/assets/bannerStaff1.gif) no-repeat center bottom;
}

.nav img {
    display: block;
    border: 0;
}

/* Drawn to match the white condensed lettering of the button GIFs. */
.nav__text {
    display: block;
    height: 20px;
    padding-top: 5px;
    line-height: 16px;
    color: #fff;
    font-family: "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", arial, sans-serif;
    font-stretch: condensed;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.03em;
}

/* -- breadcrumbs ---------------------------------------------- */

.crumbs {
    padding: 0 8px 4px 0;
    font-size: 11px;
}

.crumbs a,
.crumbs span[aria-current] {
    color: var(--ink);
}

.crumbs span[aria-current] {
    font-weight: bold;
}

.crumbs__sep {
    padding: 0 6px;
    color: var(--ink-dim);
}

/* -- page body ---------------------------------------------------- */

.layout {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0 8px 12px;
}

/*
 * Bevelled panels, drawn with the original border artwork. Corners
 * are listed first so they paint over the repeating edges, and the
 * padding matches the thickness of each edge image.
 */
.bevel {
    padding: 14px 16px 16px 17px;
    background:
        url(/assets/borders/pageMain/tl.jpg) left top no-repeat,
        url(/assets/borders/pageMain/tr.jpg) right top no-repeat,
        url(/assets/borders/pageMain/bl.jpg) left bottom no-repeat,
        url(/assets/borders/pageMain/br.jpg) right bottom no-repeat,
        url(/assets/borders/pageMain/t.jpg) left top repeat-x,
        url(/assets/borders/pageMain/b.jpg) left bottom repeat-x,
        url(/assets/borders/pageMain/l.jpg) left top repeat-y,
        url(/assets/borders/pageMain/r.jpg) right top repeat-y,
        url(/assets/borders/pageMain/bg.jpg) repeat;
    background-origin: border-box;
}

.bevel--left {
    background:
        url(/assets/borders/leftCol/tl.jpg) left top no-repeat,
        url(/assets/borders/leftCol/tr.jpg) right top no-repeat,
        url(/assets/borders/leftCol/bl.jpg) left bottom no-repeat,
        url(/assets/borders/leftCol/br.jpg) right bottom no-repeat,
        url(/assets/borders/leftCol/t.jpg) left top repeat-x,
        url(/assets/borders/leftCol/b.jpg) left bottom repeat-x,
        url(/assets/borders/leftCol/l.jpg) left top repeat-y,
        url(/assets/borders/leftCol/r.jpg) right top repeat-y,
        url(/assets/borders/leftCol/bg.jpg) repeat;
}

.left-col {
    flex: 0 0 200px;
    width: 200px;
    font-size: 11px;
    line-height: 1.45;
}

.left-col h2 {
    font-size: 13px;
    margin: 4px 0 6px;
}

.left-col ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.left-col li {
    margin: 0 0 5px;
}

.left-col a[aria-current="page"] {
    color: var(--accent);
}

.site-main {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 22px;
    padding-right: 22px;
}

/* -- home page ---------------------------------------------------- */

.hero {
    margin: 0 0 24px;
}

.hero h1 {
    text-align: left;
}

.hero__actions {
    margin-top: 16px;
}

.btn {
    display: inline-block;
    margin: 0 8px 6px 0;
    padding: 5px 14px;
    border: 1px solid;
    border-color: #555 #1a1a1a #1a1a1a #555;
    background: #444;
    color: var(--ink);
    text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
    background: #4c4c4c;
    color: var(--ink-bright);
}

.btn--primary {
    color: var(--accent);
}

.section {
    margin: 0 0 28px;
}

.section h2,
.site-main > h2 {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--rule);
}

.section__more {
    margin: 12px 0 0;
}

.section--about p {
    max-width: 74ch;
    color: var(--ink-dim);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.card {
    background: var(--panel);
    border: 1px solid;
    border-color: #4a4a4a #222 #222 #4a4a4a;
    padding: 12px 14px;
}

.card h3 {
    margin: 0 0 6px;
}

.card p {
    margin-bottom: 6px;
}

.card__eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 4px;
}

.card__meta {
    font-size: 11px;
    color: var(--ink-dim);
    margin: 0;
}

/* -- tutorial list ------------------------------------------------ */

.tutorial-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tutorial-list__item {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
}

.tutorial-list__item h3 {
    margin: 0 0 4px;
}

.tutorial-list__item p {
    margin: 0 0 4px;
}

/* -- articles ------------------------------------------------------ */

.prose {
    max-width: 74ch;
}

.prose h1 {
    text-align: left;
}

.prose h2 {
    margin-top: 1.8em;
}

.prose h3 {
    margin-top: 1.5em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 2em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.4em 0 1.4em 2em;
    padding: 8px 14px;
    border-left: 2px solid var(--accent);
    color: var(--ink);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

pre.code {
    background: #2a2a2a;
    border: 1px solid var(--rule);
    padding: 10px 12px;
    overflow-x: auto;
    margin: 1.2em 0;
}

pre.code code {
    background: none;
    padding: 0;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 12px;
    display: block;
    overflow-x: auto;
}

th,
td {
    border: 1px solid var(--rule);
    padding: 6px 9px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #2e2e2e;
    color: var(--accent);
    font-family: var(--heading);
}

hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 2em 0;
}

.article__eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin: 0;
}

.article__meta {
    color: var(--ink-dim);
    font-size: 11px;
    margin: -8px 0 20px;
}

.lede {
    max-width: 74ch;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li {
    padding: 6px 0;
    margin: 0;
    border-bottom: 1px solid var(--rule);
}

.link-list__meta {
    color: var(--ink-dim);
    font-size: 11px;
}

/* -- footer ------------------------------------------------------- */

.site-footer {
    text-align: center;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 2px 0;
    font-size: 11px;
}

/* -- narrow screens ----------------------------------------------- */

@media (max-width: 760px) {
    .site-header {
        height: 96px;
    }

    .nav {
        margin-top: 0;
        padding-left: 4px;
    }

    .nav a {
        width: auto;
        min-width: 80px;
        height: 34px;
        padding: 0 4px;
    }

    .layout {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 0 4px 10px;
    }

    .left-col {
        flex-basis: auto;
        width: auto;
    }

    .site-main {
        padding-left: 18px;
        padding-right: 17px;
    }
}

/* -- printing ------------------------------------------------------ */

@media print {
    body {
        background: #fff;
        color: #111;
        font-size: 11pt;
    }

    .site-header,
    .nav,
    .crumbs,
    .left-col,
    .site-footer,
    .section--more,
    .hero__actions {
        display: none;
    }

    .bevel {
        background: none;
        padding: 0;
    }

    h1,
    h2,
    h3,
    th {
        color: #111;
    }

    a {
        color: #111;
    }
}
