@font-face {
    font-family: "Volvo Centum";
    src: url("../fonts/VolvoCentum_DisplayLt.ttf") format("truetype");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Volvo Centum";
    src: url("../fonts/VolvoCentum_DisplayMd.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Volvo Centum";
    src: url("../fonts/VolvoCentum_DisplaySBd.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

:root {
    --ink: #000;
    --muted: #000;
    --line: #000;
    --canvas: #ededed;
    --accent: #000;
    --on-accent: #fff;
    --radius: 0px;
    --fast: 160ms;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #000 transparent;
}

body {
    margin: 0px;
    background: var(--canvas);
    color: var(--ink);
    font: 300 16px / 1.5 "Volvo Centum", Arial, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    cursor: pointer;
    color: inherit;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: #000 solid 2px;
    outline-offset: 4px;
}

::selection {
    background: #ff5a00;
    color: #000;
}

input,
textarea {
    caret-color: var(--ink);
}

[hidden] {
    display: none !important;
}

svg {
    width: 24px;
    height: 24px;
    stroke: currentcolor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

h1,
h2,
h3,
p {
    margin-top: 0px;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

button {
    transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}

.primary,
.secondary {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-decoration: none;
}

.primary {
    background: var(--accent);
    color: var(--on-accent);

    font-weight: 500;
    font-size: 20px;    
}

.primary:hover:not(:disabled) {
    filter: brightness(1.15);
}

.secondary {
    background: #EDEDED;
    border: 2px solid #000;
    border-radius: 0;

    color: #000;
    font-weight: 300;
    font-family: "Volvo Centum", sans-serif;
    font-size: 16px;
}

.secondary:hover:not(:disabled) {
    background: #EDEDED;
}

.text-button {
    border: 0px;
    background: transparent;
    font-size: 12px;
    padding: 8px 0px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-button:hover {
    color: var(--ink);
}

dialog {
    color: var(--ink);
    border: 2px solid #000;
    border-radius: 0;
    padding: 28px;
    background: #ededed url('../img/bg.png') center / cover;
    max-width: calc(-32px + 100vw);
    max-height: calc(100dvh - 40px);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}
body:has(dialog[open]) { overflow: hidden; }

.dialog-heading {
    padding: 28px 32px 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
    font: 500 34px / 1.05 "Volvo Centum", sans-serif;
    margin: 0px;
}

.dialog-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0px 0px;
}

.icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    background: none;
    border: 0px;
    font-size: 28px;
    line-height: 1;
    padding: 0px;
    border-radius: 0;
}

.icon-button:hover {
    background: #dedede;
}

.setting-field {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 20px 0px 14px;
}

.setting-field input:not([type="file"]),
.setting-field select,
.setting-field textarea {
    display: block;
    margin-top: 8px;
    width: 100%;
    border: 1px solid #000;
    border-radius: 0;
    background: rgb(255, 255, 255);
    color: var(--ink);
    min-height: 44px;
    padding: 10px 12px;
    font-weight: 400;
}

.setting-field textarea {
    resize: vertical;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--ink);
    flex: 0 0 auto;
}

input[type="color"] {
    width: 48px;
    height: 36px;
    border: 1px solid var(--line);
    background: white;
    padding: 2px;
}

.settings-hint {
    color: var(--muted);
    line-height: 1.6;
    margin: 20px 0px 12px;
    overflow-wrap: anywhere;
    font-size: 12px !important;
}

.form-message {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    min-height: 18px;
    margin: 12px 0px;
}

.form-message.error {
    color: rgb(160, 61, 38);
}

.form-message.success {
    color: rgb(40, 98, 70);
}

@media (max-width: 640px) {
    .dialog-heading {
        padding: 24px 20px 18px;
    }

    .dialog-heading h2 {
        font-size: 30px;
    }
}

a {
    color: inherit;
}

.primary:disabled {
    opacity: 1;
    background: #d6d6d6;
    color: #4d4d4d;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0px;
}

.redirect-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 40px;
    background: #ededed url('../img/bg.png') center / cover;
}
.redirect-page::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: min(38vw, 293px);
    background: url('../img/linhas.png') right top / contain no-repeat;
    pointer-events: none;
}
.redirect-page p { margin: 0; }
.redirect-page a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation: auto ease 0s 1 normal none running none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
