/*
Theme Name: Bilens Bog
Description: Dansk, enkelt tema til Bilens Bog med understøttelse af WooCommerce.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Author: Jysk Autoteknik
Text Domain: bilens-bog
*/
:root {
    --bb-ink: #142c3c;
    --bb-text: #40596a;
    --bb-accent: #08674f;
    --bb-mint: #d9f0e5;
    --bb-border: #d7e2e6;
    --bb-paper: #f8faf9;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bb-paper);
    color: var(--bb-ink);
    font: 1rem/1.6 system-ui, sans-serif;
    overflow-wrap: anywhere;
}
body > main { min-height: 58vh; }
img { max-width: 100%; height: auto; }
a { color: var(--bb-accent); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid #198668;
    outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -.025em; }
p { max-width: 68ch; }
.bb-width { width: min(68rem, calc(100% - 2rem)); margin-inline: auto; }
.bb-header, .bb-footer { background: #fff; }
.bb-header { border-bottom: 1px solid var(--bb-border); }
.bb-footer { border-top: 1px solid var(--bb-border); margin-top: 3rem; }
.bb-header-inner, .bb-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 4.25rem;
    padding-block: .75rem;
}
.bb-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 760; color: var(--bb-ink); }
.bb-mark { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; background: var(--bb-mint); color: var(--bb-accent); border-radius: .65rem; font-weight: 800; }
.bb-link { font-weight: 700; }
.custom-logo { width: auto; max-height: 3rem; display: block; }
.bb-hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 2rem;
    margin-block: clamp(1.5rem, 6vw, 4rem);
    padding: clamp(1.3rem, 5vw, 4rem);
    border-radius: 1.5rem;
    background: #153447;
    color: #fff;
}
.bb-hero h1 { margin: 0; }
.bb-hero p { color: #e0ede8; margin-block: 1rem 1.4rem; }
.bb-button {
    display: inline-block;
    padding: .68rem 1rem;
    background: var(--bb-mint);
    color: #123e34;
    border-radius: .55rem;
    font-weight: 750;
    text-decoration: none;
}
.bb-button:hover { background: #f2fff9; }
.bb-illustration {
    display: flex;
    gap: .8rem;
    align-items: center;
    padding: 1rem;
    background: #fff;
    color: var(--bb-ink);
    border-radius: 1rem;
}
.bb-illustration strong, .bb-illustration div span { display: block; }
.bb-illustration div span { color: var(--bb-text); font-size: .9rem; }
.bb-for-workshops { padding: 0 0 1rem; }
.bb-page { padding-block: 1.2rem; }
.bb-page-content:empty { display: none; }
.bb-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: 0; margin: 0; }
.bb-commerce input, .bb-commerce select { max-width: 100%; }
.bb-page table, .bb-commerce table { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 100; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem; clip-path: none; background: #fff; }
@media (max-width: 43rem) {
    .bb-hero { grid-template-columns: 1fr; gap: 1.4rem; }
    .bb-header-inner { gap: .5rem; }
}
