
/* ==========================================================================
   Ground State Devices
   Stylesheet
   ========================================================================== */


/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --text: #222;
    --background: #fff;
    --accent: #008B9A;
    --rule: #ddd;
    --muted: #666;
}


/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family: "IBM Plex Sans", sans-serif;
    font-size: 18px;
    line-height: 1.7;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3 {
    margin-top: 0;

    font-family: "Special Elite", monospace;
    font-weight: normal;
    line-height: 1.3;

    color: #111;

    text-transform: uppercase;
}

h1 {
    margin-bottom: .5rem;
    font-size: 2.6rem;
}

h2 {
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

small {
    color: #999;
}

.tagline {
    color: var(--muted);
    font-style: regular;
}


/* ==========================================================================
   Layout
   ========================================================================== */

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

section {
    margin: 5rem 0;
}

hr {
    margin: 2rem 0;

    border: 0;
    border-top: 1px solid var(--rule);
}


/* ==========================================================================
   Header
   ========================================================================== */

header {
    margin-bottom: 0rem;
}


/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
    margin: 2rem 0 0;
    letter-spacing: .03em;
}

nav a {
    margin-right: 1.5rem;

    color: var(--text);

    font-family: "Special Elite", monospace;
    text-transform: uppercase;
	font-size: 1.5rem;
}

nav a:last-child {
    margin-right: 0;
}

nav a:hover,
nav a:focus {
    color: var(--accent);
}


/* ==========================================================================
   Images
   ========================================================================== */

img {
    display: block;

    width: 100%;
    height: auto;
}

figure {
    margin: 2rem 0;
}

figcaption {
    margin-top: .75rem;

    color: var(--muted);
    font-size: .9rem;
}


/* ==========================================================================
   Video Embed
   ========================================================================== */

.video {
    position: relative;

    margin: 2rem 0;

    height: 0;
    overflow: hidden;

    padding-bottom: 56.25%;
}

.video iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==========================================================================
   Blockquotes
   ========================================================================== */

blockquote {
    margin: 2rem 0;
    padding-left: 1rem;

    border-left: 3px solid var(--accent);

    color: #555;
}


/* ==========================================================================
   Build Specification Sheet
   ========================================================================== */

.build-sheet {
    margin: 3rem 0;
    padding: 1.5rem 0;

    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.build-spec {
    display: grid;

    grid-template-columns: 140px 1fr;
    gap: .5rem 1.5rem;

    font-size: .95rem;
}

.build-label {
    font-weight: 600;
    color: var(--muted);
}

.build-value {
    color: var(--text);
}

.build-status {
    color: var(--accent);
}


/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
    display: grid;

    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;

    margin: 3rem 0;
}

.gallery-item {
    display: block;

    color: inherit;
    text-decoration: none;
}

.gallery-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: opacity .2s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
    opacity: .8;
}

.gallery-caption {
    margin-top: .75rem;

    color: var(--muted);
    font-size: .9rem;
}


/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    margin-top: 2rem;

    color: var(--muted);
    font-size: .95rem;
}

footer p {
    margin: .5rem 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {

    body {
        font-size: 17px;
    }

    h1 {
        font-size: 2rem;
    }

    nav a {
        display: inline-block;
        margin-bottom: .5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .build-spec {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .build-label {
        margin-top: .75rem;
    }

}

