/* Base styles of the public pages served by the backend (shared card, documents, account deletion).
   Palette and fonts follow the Slowtico design system; no inline styles anywhere (CSP). */

@font-face {
    font-family: "Playwrite DK Loopet";
    src: url("../assets/fonts/playwrite_dk_loopet_regular.bf009d5e329d.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../assets/fonts/cormorant_garamond_semibold.2d7577e89ba8.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("../assets/fonts/figtree_regular.ea693a00326d.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("../assets/fonts/figtree_semibold.84fb0b438912.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

:root {
    --paper: #fbefe4;
    --paper-deep: #f5e3d2;
    --ink: #3a2f28;
    --ink-soft: #6b5d52;
    --terracotta: #b5561e;
    --sage: #8fa98b;
    --line: #e6d5c3;
    --radius: 18px;
    --measure: 40rem;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

a {
    color: var(--terracotta);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header,
.site-main,
.site-footer {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.site-main {
    flex: 1;
}

.site-footer {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    border-top: 1px solid var(--line);
}

/* The registry data of the company: small, quiet, but on every page (a legal duty). */
.site-footer__registry {
    margin: 0.75rem 0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.site-footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    justify-content: space-between;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.site-footer__nav a {
    color: inherit;
}

.notice {
    padding: 3rem 0;
    text-align: center;
}

.question {
    font-family: "Playwrite DK Loopet", "Figtree", cursive;
    color: var(--terracotta);
}

.button {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--terracotta);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button--quiet {
    background: transparent;
    color: var(--terracotta);
    box-shadow: inset 0 0 0 2px var(--terracotta);
}

.field {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.form-error {
    color: #9b2c1c;
}
