/* The Imaging Warehouse: temporary maintenance site */

@font-face {
    font-family: "Libre Franklin";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/assets/libre-franklin.woff2") format("woff2");
}

:root {
    --colour-background: #000;
    --colour-text: #fff;
    --colour-muted: #a6a6a6;
    --colour-rule: #3a3a3a;
    --colour-button: #e00000;
    --colour-button-hover: #b80000;
    --colour-cyan: #00a6e0;
    --colour-magenta: #e5007e;
    --colour-yellow: #ffe600;
}

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

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--colour-background);
    color: var(--colour-text);
    font-family: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(2rem, 6vh, 5rem) 16px 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    display: block;
    width: clamp(140px, 22vw, 238px);
    height: auto;
    margin: 0 auto clamp(1.5rem, 4vh, 2.5rem);
}

.page-home .logo {
    width: clamp(130px, 16vw, 180px);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 4.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.page-home h1 {
    font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.lede {
    margin: 1rem 0 0;
    color: var(--colour-muted);
    font-size: clamp(1.15rem, 1.9vw, 2rem);
    font-weight: 300;
    text-wrap: balance;
}

.page-home .lede {
    font-size: clamp(1.1rem, 1.6vw, 1.65rem);
}

/* CMYK + white rule under the lede */
.cmyk-rule {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: clamp(2rem, 5vh, 4rem) 0;
}

.cmyk-rule span {
    width: 56px;
    height: 5px;
}

.cmyk-rule span:nth-child(1) { background: var(--colour-cyan); }
.cmyk-rule span:nth-child(2) { background: var(--colour-magenta); }
.cmyk-rule span:nth-child(3) { background: var(--colour-yellow); }
.cmyk-rule span:nth-child(4) { border: 1px solid var(--colour-text); }

.contact {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    margin: 0;
}

.contact > div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact > div + div {
    border-left: 1px solid var(--colour-rule);
    padding-left: clamp(1.5rem, 3.5vw, 3.5rem);
}

.contact dt {
    color: var(--colour-muted);
    font-size: clamp(1rem, 1.3vw, 1.4rem);
}

.contact dd {
    margin: 0;
    font-size: clamp(1.4rem, 2.9vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.page-home .contact dd {
    font-size: clamp(1.4rem, 2.4vw, 2.6rem);
}

.contact a {
    text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.brands-intro {
    margin: clamp(2.5rem, 6vh, 4.5rem) 0 1.5rem;
    color: var(--colour-muted);
    font-size: clamp(1.05rem, 1.4vw, 1.6rem);
    font-weight: 300;
}

.brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 340px));
    gap: 40px;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brands li {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 1.5rem;
    border: 1px solid var(--colour-rule);
    border-radius: 4px;
    transition: border-color 0.15s;
}

.brand-card:hover {
    border-color: var(--colour-muted);
}

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

.button {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    background: var(--colour-button);
    color: var(--colour-text);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.button:hover,
.button:focus-visible {
    background: var(--colour-button-hover);
}

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

.site-footer {
    padding: 1.5rem 16px 2rem;
    color: var(--colour-muted);
    font-size: 0.875rem;
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--colour-text);
    text-decoration: underline;
}

/* Legal pages: long-form reading */
.page-legal main {
    justify-content: flex-start;
}

.page-legal .logo {
    width: 120px;
}

.legal {
    max-width: 46rem;
    text-align: left;
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.6;
}

.legal h1 {
    margin-bottom: 1.5rem;
    color: var(--colour-text);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    text-align: center;
}

.legal h2,
.legal h3 {
    margin: 2rem 0 0.75rem;
    color: var(--colour-text);
    line-height: 1.25;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.legal td,
.legal th {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--colour-rule);
    vertical-align: top;
}

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

@media (max-width: 900px) {
    .brands {
        grid-template-columns: minmax(0, 340px);
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .contact {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact > div + div {
        border-left: 0;
        border-top: 1px solid var(--colour-rule);
        padding-left: 0;
        padding-top: 1.5rem;
    }
}
