@font-face {
    font-family: Montserrat;
    src: url('fonts/Montserrat.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brutăria Demetra: Pantone 647 C and Pantone 1395 C. */
    --brand-primary: #236093;
    --brand-accent: #9c6018;
    --ink: #172f42;
    --muted-text: #5d6b75;
    --line: #d9e0e4;
    --paper: #fffdf8;
    --background: #f5f3ed;
    --shop-control-size: 3rem;
    --shop-control-radius: .75rem;
    --shop-card-radius: 1.2rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main h1, main h2, main h3 { color: var(--brand-primary); text-wrap: balance; }
main p { text-wrap: pretty; }
button, input, select, textarea { font-family: inherit; }

.account-panel { max-width: 32rem; padding-block: 2.5rem; }
.account-panel h1 { overflow-wrap: anywhere; }
.account-panel form { display: grid; gap: .75rem; margin-block: 1.5rem; }
.account-panel input { min-width: 0; width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; font-size: 1rem; }
.account-panel button { min-height: 3rem; padding: .8rem; background: var(--brand-primary); color: white; border: 0; border-radius: .5rem; font: inherit; cursor: pointer; }
.account-panel button:disabled { opacity: .6; cursor: not-allowed; }
.account-panel :is(input, button, a):focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.account-error { color: #8a2626; }

a {
    color: var(--brand-primary);
}

.shell {
    width: min(100% - 2.5rem, 76rem);
    margin-inline: auto;
}

.button {
    min-height: 3rem;
    padding: .8rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    color: white;
    background: var(--brand-primary);
    box-shadow: 0 .65rem 1.5rem rgba(35, 96, 147, .2);
}

.button-primary:hover {
    color: white;
    background: #1b4c74;
}

:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 3px;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #b32121;
}

.validation-message {
    color: #b32121;
}

.blazor-error-boundary {
    padding: 1rem;
    color: white;
    background: #b32121;
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    display: none;
    max-width: 32rem;
    padding: 1rem 3rem 1rem 1rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: var(--paper);
    box-shadow: 0 1rem 3rem rgba(47, 38, 34, .2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .8rem;
    right: .8rem;
    cursor: pointer;
}

@media (max-width: 500px) {
    .shell { width: min(100% - 1.5rem, 76rem); }
}

/* iOS Safari zooms the whole page when a focused form control renders below 16px. */
@media (max-width: 800px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Fixed, optically centered disclosure icon shared by summary controls. */
.disclosure-chevron {
    display: block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    align-self: center;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 50% 50%;
    transition: transform .18s ease;
}
details[open] > summary .disclosure-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
    .disclosure-chevron { transition: none; }
}
