/* The site's one stylesheet. Every colour and font is a variable, so the company palette changes in :root only. */
:root {
    --brand: #13284a; /* headings, logo, nav text */
    --bar: var(--brand); /* top bar */
    --strong: var(--brand); /* thick rules */
    --btn: var(--brand); /* primary button */
    --btn-ink: #fff;
    --bullet: var(--brand);
    --link: #1b55a3;
    --rule: #cdd5df;
    --rule-soft: #e5e9ee;
    --band: #eaeef3; /* nav band, the blue box, footer */
    --text: #1d2228;
    --muted: #5a6470;
    --bg: #fff;
    --tile: #f4f6f8; /* photo tiles */
    --util-ink: #b9c5d8;
    --plot: var(--brand); /* graph line */
    --block: #e3e8f0; /* the box in the drawing */
    --font: 'Source Sans 3', Arial, sans-serif;
    --font-part: var(--font);
    --part-weight: 300;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font: 16px/1.55 var(--font);
    color: var(--text);
    background: var(--bg);
}
a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.util {
    background: var(--bar);
    color: var(--util-ink);
    font-size: 13.5px;
}
.util .wrap {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    padding-top: 5px;
    padding-bottom: 5px;
}
.util a {
    color: #fff;
}

header .wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 16px;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--brand);
}
.logo:hover {
    text-decoration: none;
}
.logo b {
    font-weight: 400;
}
.strap {
    color: var(--muted);
    font-size: 15px;
}

nav {
    background: var(--band);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
nav .wrap {
    display: flex;
    flex-wrap: wrap;
}
nav a {
    padding: 9px 18px;
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid var(--rule);
}
nav a:first-child {
    border-left: 1px solid var(--rule);
}
nav a.on {
    background: var(--bg);
    margin-bottom: -1px;
}
nav a:hover {
    background: var(--bg);
    text-decoration: none;
}

.single {
    padding-top: 30px;
    padding-bottom: 56px;
}

.head {
    border-bottom: 5px solid var(--strong);
    padding-bottom: 6px;
}
.part {
    font-family: var(--font-part);
    font-size: 46px;
    font-weight: var(--part-weight);
    line-height: 1;
    letter-spacing: -0.01em;
}
.title {
    font-size: 27px;
    font-weight: 300;
    line-height: 1.15;
    margin: 10px 0 24px;
}

.sec {
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}
.blk {
    margin-top: 34px;
}
.blk.rule {
    border-top: 5px solid var(--strong);
    padding-top: 12px;
}

.product {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    border: 1px solid var(--rule);
    padding: 24px;
}
.product .panel {
    width: 100%;
    display: block;
    margin: 0 0 16px;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
}
td {
    padding: 5px 0;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
}
td:first-child {
    color: var(--muted);
    width: 46%;
    padding-right: 12px;
}
.order {
    background: var(--band);
    border: 1px solid var(--rule);
    padding: 16px;
    align-self: start;
}
.price {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand);
}
.vat {
    font-size: 13px;
    color: var(--muted);
}
.lead {
    font-size: 14px;
    margin: 10px 0 14px;
}
.btn {
    display: block;
    text-align: center;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--btn);
    color: var(--btn);
    margin-top: 8px;
}
.btn.primary {
    background: var(--btn);
    color: var(--btn-ink);
}
.btn:hover {
    text-decoration: none;
    filter: brightness(1.15);
}
.order h3 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 20px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--rule);
}
.order ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14.5px;
}
.order li {
    padding: 3px 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.order li span {
    color: var(--muted);
    font-size: 13px;
}

.sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}
ul.sq {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    font-size: 15.5px;
    line-height: 1.35;
}
ul.sq li {
    position: relative;
    padding-left: 17px;
    margin-bottom: 5px;
}
ul.sq li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 0.42em;
    width: 7px;
    height: 7px;
    background: var(--bullet);
}
ul.sq li.k {
    font-weight: 600;
}
.desc p {
    margin: 0 0 12px;
    font-size: 15.5px;
    line-height: 1.5;
    text-align: justify;
    hyphens: auto;
}

.photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.photo {
    margin: 0;
}
.photo .img {
    border: 1px solid var(--rule);
    background: var(--tile);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.photo img {
    width: 100%;
    display: block;
}
.photo .none {
    color: var(--muted);
    font-size: 14px;
}
.photo figcaption {
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.4;
}
.photo figcaption b {
    color: var(--brand);
}

.figs {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}
.fig h4 {
    margin: 4px 0 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
.fig svg {
    width: 100%;
    height: auto;
    display: block;
}
.note {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 14px;
}

footer {
    background: var(--band);
    border-top: 1px solid var(--rule);
    font-size: 13.5px;
    color: var(--muted);
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 18px;
}
footer a {
    margin-left: 16px;
}

@media (max-width: 820px) {
    nav a {
        padding: 8px 12px;
    }
    footer a {
        margin: 0 16px 0 0;
    }
    .part {
        font-size: 38px;
    }
    .title {
        font-size: 22px;
    }
    .product {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .sheet,
    .figs,
    .photos {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* islands: the marker the build wraps them in takes no space of its own */
.island {
    display: contents;
}

/* buttons as well as links can be .btn */
button.btn {
    width: 100%;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    background: none;
    cursor: pointer;
}
button.btn.primary {
    background: var(--btn);
}
button.btn:disabled {
    opacity: 0.45;
    cursor: default;
    filter: none;
}
.btn.added {
    filter: brightness(1.25);
}

/* quantity: minus, number box, plus (and remove in the basket) */
.buy .qty {
    margin-bottom: 2px;
}
.qty {
    display: flex;
    align-items: stretch;
    gap: 2px;
}
.qbtn {
    font: inherit;
    font-size: 15px;
    min-width: 34px;
    padding: 4px 8px;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--brand);
    cursor: pointer;
}
.qbtn:disabled {
    color: var(--muted);
    opacity: 0.5;
    cursor: default;
}
.qbtn.remove {
    margin-right: 8px;
    font-size: 13.5px;
    color: var(--link);
}
.qty input {
    width: 56px;
    text-align: center;
    font: inherit;
    font-size: 15px;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--text);
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.order .qty input {
    flex: 1;
}

/* the basket page */
.basket {
    margin-top: 18px;
    min-height: 120px;
}
.basket.empty {
    padding: 40px 0;
    color: var(--muted);
}
.line {
    display: grid;
    grid-template-columns: 150px 1fr auto 110px;
    gap: 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-soft);
}
.line .thumb img {
    width: 100%;
    display: block;
}
.line .name {
    font-weight: 700;
    font-size: 17px;
    color: var(--brand);
}
.line .each {
    color: var(--muted);
    font-size: 14px;
}
.line .sum {
    text-align: right;
    font-weight: 700;
}
.checkout {
    display: grid;
    grid-template-columns: 1fr 200px 200px;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
    padding: 16px;
    background: var(--band);
    border: 1px solid var(--rule);
}
.checkout .btn {
    margin: 0;
}
.checkout .total {
    font-size: 24px;
    color: var(--brand);
}
.checkout .vat {
    font-size: 13.5px;
    color: var(--muted);
}
.quote {
    margin-top: 30px;
    border-top: 5px solid var(--strong);
    padding-top: 12px;
    max-width: 620px;
}
.quote label {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    align-items: start;
    margin: 8px 0;
    font-size: 15px;
}
.quote input,
.quote textarea {
    font: inherit;
    font-size: 15px;
    padding: 5px 7px;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--text);
}
.quote .btn {
    width: auto;
    display: inline-block;
    padding: 8px 22px;
    margin-top: 10px;
}

@media (max-width: 820px) {
    .line {
        grid-template-columns: 90px 1fr;
    }
    .line .qty,
    .line .sum {
        grid-column: 2;
    }
    .line .sum {
        text-align: left;
    }
    .checkout {
        grid-template-columns: 1fr;
    }
    .quote label {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
