/* Base typography, controls and shared surfaces. Colours come from the Customizer palette. */
:root {
    --radius: 4px;
    --gutter: 20px;
    --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 13px/1.45 var(--font);
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--primary);
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
}
img {
    max-width: 100%;
    height: auto;
}
svg {
    width: 18px;
    height: 18px;
    flex: none;
    vertical-align: middle;
}
h1,
h2,
h3,
p {
    margin: 0 0 10px;
}
h1 {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.7px;
}
h2 {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
h3 {
    font-size: 13px;
}
.wrap {
    width: min(1600px, calc(100% - 40px));
    margin-inline: auto;
}
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.skip-link {
    position: fixed;
    left: 12px;
    top: -90px;
    padding: 10px;
    background: var(--ink);
    color: var(--on-fill);
    z-index: 500;
}
.skip-link:focus {
    top: 8px;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
[hidden] {
    display: none !important;
}
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--on-fill);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wpcf7-submit:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-fill);
}
.button.outline {
    background: var(--surface);
    color: var(--primary);
}
button:disabled {
    cursor: not-allowed;
    opacity: 1;
    background: var(--canvas);
    border-color: var(--line);
    color: var(--muted);
}
::placeholder {
    color: var(--muted);
    opacity: 1;
}
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
}
textarea {
    width: 100%;
    min-height: 110px;
}
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.chip small {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
}
.chip.active,
.chip[aria-current="page"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-fill);
}
.chip.active small {
    color: var(--on-fill);
}
.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.section-heading h2 {
    margin: 0;
}
.section-heading a {
    font-size: 11px;
    color: var(--accent);
}
.page-main,
.store-main {
    min-height: 50vh;
    padding-block: 20px 28px;
}
.reading-page {
    max-width: 940px;
}
.page-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.page-content h2 {
    margin-top: 20px;
}
.page-content p {
    margin-bottom: 12px;
}
.page-content a:not(.button) {
    color: var(--accent);
    text-decoration: underline;
}
.empty-store {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.empty-store h2 {
    margin-top: 8px;
    font-size: 24px;
}
.empty-store p {
    color: var(--muted);
    max-width: 650px;
}
.empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.empty-actions > a:last-child {
    color: var(--accent);
    font-size: 12px;
}
@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 24px);
    }
    h1 {
        font-size: 22px;
    }
    .page-main,
    .store-main {
        padding-top: 14px;
    }
    .page-content,
    .empty-store {
        padding: 16px;
    }
}
