/* Coreteam — static site styles */

:root {
    --orange: #f96601;
    --orange-dark: #d55500;
    --ink: #222;
    --muted: #5d5d5d;
    --line: #e6e6e6;
    --bg-alt: #f8f8f8;
    --wrap: 1100px;
    --display: "Lobster", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--orange-dark);
    text-decoration: underline;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 0.4em;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 20;
    background: #fff;
    padding: 10px 16px;
    border: 2px solid var(--orange);
}

/* ---------- header / nav ---------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 84px;
}

.brand img {
    display: block;
    width: 168px;
}

.nav-toggle {
    display: none;
    font: inherit;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--muted);
    cursor: pointer;
}

.site-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 12px 18px;
    color: var(--muted);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--orange);
    text-decoration: none;
    background: var(--bg-alt);
}

.site-nav a[aria-current="page"] {
    background: var(--orange);
    color: #fff;
}

/* ---------- page title band ---------- */

.page-title {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.page-title h1 {
    font-size: 2.4rem;
    color: var(--muted);
    margin: 0;
}

.page-title p {
    margin: 0;
    color: #999;
    font-style: italic;
}

/* ---------- hero (home) ---------- */

.hero {
    background: var(--orange);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 0.15em;
}

.hero p {
    margin: 0;
    font-size: 1.15rem;
    opacity: 0.95;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 48px 0;
    text-align: center;
}

.facts h2 {
    font-size: 1.5rem;
    color: #444;
    margin: 0;
}

/* ---------- work items ---------- */

.work {
    padding: 8px 0 24px;
}

.work-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.work-item:last-child {
    border-bottom: 0;
}

.work-item > .wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
}

.work-item h2 {
    font-size: 1.9rem;
    color: var(--orange);
    margin-bottom: 0.1em;
}

.work-tasks {
    display: block;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1em;
}

.work-logo {
    max-width: 220px;
    margin-bottom: 16px;
}

.work-media h3 {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 10px;
}

.work-media h3 + .embed,
.work-media h3 + .gallery {
    margin-bottom: 28px;
}

.work-media > :last-child {
    margin-bottom: 0;
}

.inline-logo {
    float: left;
    max-width: 90px;
    margin: 4px 16px 8px 0;
}

ul.plain {
    list-style: none;
    padding: 0;
}

/* ---------- embeds ---------- */

.embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-audio {
    aspect-ratio: auto;
    height: 166px;
    background: none;
    border-radius: 0;
}

/* ---------- galleries ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 3px;
}

/* ---------- sound page grid ---------- */

.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    padding: 48px 0;
}

.sound-item h2 {
    font-size: 1.5rem;
    color: var(--orange);
    margin-bottom: 0.1em;
}

.sound-item .embed + .embed {
    margin-top: 16px;
}

/* ---------- about ---------- */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 48px 0 24px;
}

.about-grid h2 {
    font-size: 1.6rem;
    color: #444;
}

.clients {
    padding: 24px 0 56px;
}

.clients h2 {
    font-size: 1.6rem;
    color: #444;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Tiles are anchors for partners whose site is still up, plain spans for the
   ones whose domain has since gone dead. Both get the same box. */
.client-grid > li > * {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.client-grid a:hover {
    border-color: var(--orange);
}

/* ---------- contact ---------- */

.contact {
    padding: 56px 0;
}

.contact ul {
    list-style: none;
    padding: 0;
    font-size: 1.15rem;
}

.contact li {
    margin-bottom: 10px;
}

/* ---------- next page ---------- */

.next-page {
    padding: 8px 0 40px;
    text-align: right;
}

.next-page a {
    font-size: 1.05rem;
}

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

.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: 32px 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.site-footer p {
    margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
    .work-item > .wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    .site-header .wrap {
        flex-wrap: wrap;
        min-height: 0;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* Both of these apply only once JS has flagged itself as running: with no
       JS the toggle would do nothing, so the nav stays open instead. */
    .js .nav-toggle {
        display: block;
    }

    .js .site-nav:not(.is-open) {
        display: none;
    }

    .site-nav {
        flex-basis: 100%;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }
}
