/* frame.css: tokens, type, page layout. Components live in parts.css. */
:root {
    --ink: #1d1f22;
    --ink-2: #2b2e33;
    --ink-3: #50555c;
    --amber: #f0a202;
    --amber-deep: #b87900;
    --amber-wash: #fff3d6;
    --paper: #faf7f0;
    --white: #ffffff;
    --rule: #ddd6c6;
    --alarm: #b3261e;
    --r: 4px;
    --measure: 68ch;
    --wrap: 1120px;
    --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-top: 1.6em;
}

h3 {
    font-size: 1.35rem;
    margin-top: 1.3em;
}

p,
ul,
ol,
dl,
table {
    margin: 0 0 1em;
}

a {
    color: var(--ink);
    text-decoration-color: var(--amber-deep);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
    background: var(--amber-wash);
}

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

.bay {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

.bay--narrow {
    max-width: calc(var(--measure) + 32px);
}

.leaf {
    padding: 28px 0 56px;
}

.leaf__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.leaf__main {
    min-width: 0;
}

.leaf__main > * {
    max-width: var(--measure);
}

.leaf__main > figure,
.leaf__main > .pricegrid,
.leaf__main > .tablewrap {
    max-width: none;
}

@media (min-width: 900px) {
    .leaf__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 48px;
    }

    .leaf__side {
        position: sticky;
        top: 16px;
        align-self: start;
    }
}

.jumplink {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--amber);
    color: var(--ink);
    padding: 8px 12px;
    z-index: 9;
}

.jumplink:focus {
    left: 8px;
}
