/* Fonts and type of the site (Fraunces, Figtree) and the shared form and text
   page styles. The palette and the page itself are in page.css, which is
   loaded after this file and overrides its colours. */

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 350 650;
    font-display: swap;
    src: url("fonts/fraunces/fraunces-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 350 600;
    font-display: swap;
    src: url("fonts/fraunces/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/figtree/figtree-latin.woff2") format("woff2");
}

:root {
    --bg: #f5e6d3;
    --surface: #fbf2e6;
    --ink: #2e1a12;
    --ink-2: #6a4636;
    --line: #e2c9ae;
    --line-strong: #9c7458;
    --tint: #f2dcc6;
    --tint-2: #efd0bb;
    --tint-3: #f2cdbf;
    --focus: #a8432a;
    --accent: #a8432a;
    --accent-strong: #7e2f1c;
    --accent-ink: #5a1f33;
    --button-bg: #5a1f33;
    --button-ink: #fbf2e6;
    --plum: #5a1f33;
    --rust: #a8432a;
    --orange: #d9762e;
    --mustard: #e6a92f;
    --rose: #e6a7a0;
    --error: #8f2a1c;
    --error-bg: #f7d9cc;
    --radius: 18px;
    --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Fraunces", ui-serif, Georgia, serif;
    --display-weight: 560;
    /* the period's stripe, used as a rule */
    --stripe: linear-gradient(var(--plum) 0 25%, var(--rust) 25% 50%, var(--orange) 50% 75%, var(--mustard) 75% 100%);
}

h1, h2, h3 { font-variation-settings: "SOFT" 100, "WONK" 1; }
h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 5.5rem); line-height: 0.98; letter-spacing: -0.025em; }
h1 em, h2 em { font-style: italic; color: var(--rust); }
h2 { font-weight: 520; }
h3 { font-family: var(--font-body); font-weight: 650; font-variation-settings: normal; letter-spacing: 0; }
::selection { background: var(--mustard); color: var(--ink); }

.mock-banner { background: var(--plum); color: var(--surface); }

/* Header */
.site-header { border-bottom: 0; position: relative; }
.site-header::after { content: ""; display: block; height: 12px; background: var(--stripe); }
.brand-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 560; font-size: 1.375rem; letter-spacing: -0.01em; }
.nav .nav-contact { background: var(--plum); color: var(--surface); }
.nav .nav-contact:hover, .nav .nav-contact[aria-current="page"] { background: var(--rust); color: var(--surface); }
.nav a[aria-current="page"]:not(.nav-contact) { color: var(--rust); }

.button:hover { box-shadow: 0 10px 22px -12px rgb(90 31 51 / 0.7); }


.facts { padding-top: 0; }
.facts-list { border-top: 0; padding-top: 0; position: relative; }
.facts-list::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: var(--stripe); grid-column: 1 / -1; }
.facts-list { padding-top: 2.25rem; }
.facts-list dt { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--rust); }

.about h2, .prose h2, .page-head h1 { font-variation-settings: "SOFT" 100, "WONK" 1; }

/* First contact: a plum velvet room */
.first-contact {
    background: radial-gradient(120% 90% at 30% 0%, #74304a 0%, var(--plum) 55%, #47172a 100%);
    border: 0;
    color: var(--surface);
}
.first-contact h2 { color: var(--surface); }
.first-contact h3 { color: #fff4e8; }
.first-contact .steps p { color: #ecd3c7; }
.first-contact .button { background: var(--mustard); color: var(--ink); }
.first-contact .button:hover { background: #f0bd55; color: var(--ink); }
.steps li::before {
    background: var(--mustard);
    color: var(--plum);
    box-shadow: none;
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: 1.25rem;
    font-weight: 600;
}
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li:nth-child(3)::before { background: var(--rose); }

.note-panel, .form-off { background: var(--surface); border: 0; border-radius: 28px 28px var(--radius) var(--radius); }
.phone-big { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 560; font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); }
.phone-big a { color: var(--plum); }

/* Form */
.request > fieldset > legend {
    font-family: var(--font-display);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-style: italic;
    font-weight: 480;
    font-size: 1.625rem;
    color: var(--plum);
    border-bottom: 2px solid var(--line);
}
input[type="text"], input[type="tel"], input[type="email"], textarea {
    border-radius: 14px;
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
}
input:focus-visible, textarea:focus-visible { border-color: var(--rust); box-shadow: 0 0 0 4px rgb(230 169 47 / 0.45); }
.check input { accent-color: var(--rust); }
.privacy-note { background: var(--tint); border: 0; }
.contact-aside { border-color: var(--line); }
.contact-aside h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-weight: 500; font-size: 1.125rem; color: var(--plum); }
.done .page-head h1 { color: var(--plum); }

/* Footer stands on the stripe */
.site-footer { border-top: 0; position: relative; padding-top: 3rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; background: var(--stripe); }
.footer-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.125rem; }
