:root {
    --studio-bg: #f5f1ea;
    --studio-paper: #fbf8f3;
    --studio-cream: #efe5d8;
    --studio-line: rgba(51, 44, 37, 0.14);
    --studio-ink: #221c18;
    --studio-muted: #72665d;
    --studio-soft: #9f9186;
    --studio-accent: #a8825b;
    --studio-accent-strong: #8e6a46;
    --studio-sage: #6f8d7d;
    --studio-success: #2c7a58;
    --studio-danger: #a94d43;
    --studio-radius-sm: 12px;
    --studio-radius-md: 20px;
    --studio-radius-lg: 30px;
    --studio-shadow-sm: 0 14px 40px rgba(34, 28, 24, 0.08);
    --studio-shadow-lg: 0 36px 80px rgba(34, 28, 24, 0.12);
    --studio-content: min(1180px, calc(100vw - 28px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(168, 130, 91, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(111, 141, 125, 0.12), transparent 28%),
        var(--studio-bg);
    color: var(--studio-ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.studio-shell {
    min-height: 100vh;
}

.studio-wrap {
    width: var(--studio-content);
    margin: 0 auto;
}

.studio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.studio-wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.studio-wordmark strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

.studio-wordmark span {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--studio-soft);
}

.studio-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: rgba(245, 241, 234, 0.84);
    border-bottom: 1px solid rgba(34, 28, 24, 0.08);
}

.studio-topbar-inner {
    width: var(--studio-content);
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.studio-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-nav a,
.studio-pill-link,
.studio-button {
    border: 1px solid transparent;
    border-radius: 999px;
    transition: 180ms ease;
}

.studio-nav a {
    padding: 11px 14px;
    color: var(--studio-muted);
    font-size: 0.92rem;
}

.studio-nav a:hover,
.studio-nav a:focus-visible {
    color: var(--studio-ink);
    background: rgba(34, 28, 24, 0.05);
    outline: none;
}

.studio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px;
    background: var(--studio-accent);
    color: #fff;
    border-color: var(--studio-accent);
    cursor: pointer;
}

.studio-button:hover,
.studio-button:focus-visible {
    background: var(--studio-accent-strong);
    border-color: var(--studio-accent-strong);
    outline: none;
}

.studio-button.is-secondary {
    background: rgba(255,255,255,0.72);
    color: var(--studio-ink);
    border-color: rgba(34, 28, 24, 0.12);
}

.studio-button.is-ghost {
    background: transparent;
    color: var(--studio-ink);
    border-color: rgba(34, 28, 24, 0.12);
}

.studio-section {
    padding: 42px 0;
}

.studio-heading {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0;
}

.studio-field,
.studio-select,
.studio-textarea {
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(34, 28, 24, 0.12);
    background: rgba(255,255,255,0.84);
    padding: 0 16px;
    color: var(--studio-ink);
}

.studio-textarea {
    min-height: 120px;
    padding-top: 16px;
    padding-bottom: 16px;
    resize: vertical;
}

.studio-field:focus,
.studio-select:focus,
.studio-textarea:focus {
    outline: 2px solid rgba(168, 130, 91, 0.24);
    border-color: var(--studio-accent);
}

.studio-sheet {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 70;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.studio-sheet.is-open {
    display: flex;
}

.studio-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 18, 14, 0.48);
    backdrop-filter: blur(8px);
}

.studio-sheet-panel {
    position: relative;
    width: min(760px, 100vw);
    max-height: min(88vh, 860px);
    overflow: auto;
    margin: 0 auto;
    border-radius: 30px 30px 0 0;
    background: var(--studio-paper);
    box-shadow: var(--studio-shadow-lg);
    padding: 18px 18px 28px;
}

.studio-sheet-handle {
    width: 68px;
    height: 5px;
    border-radius: 999px;
    background: rgba(34, 28, 24, 0.12);
    margin: 2px auto 18px;
}

.studio-empty {
    padding: 28px 0;
    color: var(--studio-muted);
}

.studio-message {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(34, 28, 24, 0.08);
    color: var(--studio-muted);
}

.studio-message.is-error {
    color: var(--studio-danger);
    border-color: rgba(169, 77, 67, 0.2);
    background: rgba(255, 245, 244, 0.85);
}

.studio-message.is-success {
    color: var(--studio-success);
    border-color: rgba(44, 122, 88, 0.18);
    background: rgba(241, 251, 247, 0.85);
}

@media (max-width: 900px) {
    .studio-topbar-inner {
        min-height: 72px;
    }

    .studio-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .studio-topbar {
        padding-top: max(env(safe-area-inset-top), 0px);
    }

    .studio-wrap,
    .studio-topbar-inner {
        width: calc(100vw - 24px);
    }

    .studio-topbar-inner {
        min-height: 68px;
        gap: 10px;
    }

    .studio-wordmark {
        min-width: 0;
        flex: 1 1 auto;
    }

    .studio-wordmark strong {
        font-size: 1.3rem;
    }

    .studio-wordmark span {
        max-width: 100%;
        font-size: 0.62rem;
        letter-spacing: 0.16em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .studio-section {
        padding: 28px 0;
    }

    .studio-button {
        min-height: 48px;
        padding: 0 14px;
        font-size: 0.94rem;
    }

    .studio-sheet-panel {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 420px) {
    .studio-wordmark span {
        display: none;
    }
}
