/* Gabriele Staake - site styles */

:root {
    --cream: #fbf6ee;
    --sand: #f3e9db;
    --paper: #fffdf9;
    --ink: #2f2a25;
    --ink-soft: #62594f;
    --line: #e4d7c5;
    --clay: #a84f2d;
    --clay-dark: #8a3f22;
    --clay-soft: #f4dccf;
    --sage: #74866a;
    --sage-soft: #dfe6d6;
    --radius: 20px;
    --shadow: 0 18px 40px -22px rgba(74, 52, 30, 0.35);
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h1 em {
    font-style: italic;
    color: var(--clay);
}

p {
    margin: 0 0 1em;
}

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

a:hover {
    color: var(--clay-dark);
}

:focus-visible {
    outline: 3px solid var(--sage);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.9rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    background: var(--clay);
    color: #fff;
}

.btn--primary:hover {
    background: var(--clay-dark);
    color: #fff;
}

.btn--ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--clay);
    color: var(--clay-dark);
}

.btn--wide {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--clay);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    display: block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: var(--sand);
}

.nav a.nav__cta {
    background: var(--clay);
    color: #fff;
    margin-left: 0.35rem;
}

.nav a.nav__cta:hover {
    background: var(--clay-dark);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -140px;
    background: var(--clay-soft);
}

.hero::after {
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -180px;
    background: var(--sage-soft);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero__text p {
    max-width: 34em;
    color: var(--ink-soft);
}

.hero__text .lead {
    color: var(--ink);
}

.hero__text .eyebrow {
    color: var(--sage);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero__portrait {
    display: flex;
    justify-content: center;
}

.portrait {
    position: relative;
    width: min(280px, 70vw);
}

.portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sage-soft);
    border-radius: 50%;
    transform: translate(14px, 14px);
}

.portrait img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
    border: 6px solid var(--paper);
    box-shadow: var(--shadow);
}

/* Sections */

.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tint {
    background: var(--sand);
}

.section__head {
    max-width: 38em;
    margin-bottom: 2.5rem;
}

.section__head p:last-child {
    color: var(--ink-soft);
    margin-bottom: 0;
}

/* Gallery */

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.piece {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
}

.piece__frame {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sand);
    cursor: zoom-in;
}

.piece__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.piece__frame:hover img {
    transform: scale(1.04);
}

.piece__frame--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: default;
    color: #8d7f6e;
    font-size: 0.875rem;
    font-weight: 600;
    background: repeating-linear-gradient(135deg, #f6eee2 0 14px, #f1e7d8 14px 28px);
}

.piece__frame--empty svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piece__info {
    padding: 0.9rem 0.5rem 0.4rem;
}

.piece__info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.piece__info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.piece__info .piece__size {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--sage);
}

/* Contact */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact__intro p {
    color: var(--ink-soft);
}

.contact__intro .contact__hint {
    border-left: 3px solid var(--sage);
    padding-left: 1rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 1.1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.optional {
    font-weight: 400;
    color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 9rem;
}

::placeholder {
    color: #94887a;
}

input:focus,
textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--sage);
    box-shadow: 0 0 0 4px var(--sage-soft);
}

.is-invalid,
.is-invalid:focus {
    border-color: #b3261e;
    box-shadow: 0 0 0 4px #f9dedc;
}

.cf-turnstile {
    margin: 0.25rem 0 1.25rem;
    min-height: 65px;
}

.form-message {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.form-message[hidden] {
    display: none;
}

.form-message--error {
    background: #f9dedc;
    color: #7a1c16;
}

.form-message--success {
    background: var(--sage-soft);
    color: #2f3b28;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 1.15rem;
}

.form-message--success button {
    display: inline-block;
    margin-top: 0.75rem;
    font: inherit;
    font-size: 1rem;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: inherit;
}

/* Lightbox */

.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(33, 26, 20, 0.92);
}

.lightbox figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 1rem 1.5rem;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
    color: #f3e9db;
    text-align: center;
    max-width: 44em;
}

.lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Back to top (shown on phones and tablets only, see Responsive) */

.to-top {
    display: none;
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--clay);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(74, 52, 30, 0.55);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover,
.to-top:active {
    background: var(--clay-dark);
}

.to-top:focus-visible {
    border-radius: 50%;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 404 */

.notfound {
    padding: clamp(4rem, 12vw, 8rem) 0;
    text-align: center;
}

.notfound .lead {
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

/* Responsive */

@media (max-width: 820px) {
    .hero__grid,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero__portrait {
        order: -1;
        justify-content: flex-start;
    }

    .portrait {
        width: 200px;
    }

    .to-top:not([hidden]) {
        display: flex;
    }
}

@media (max-width: 540px) {
    .site-header__inner {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .nav {
        justify-content: center;
    }

    .nav a {
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 1rem;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
