@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --ink: #161816;
    --muted: #4e5c57;
    --accent: #f2583e;
    --accent-dark: #c54430;
    --accent-2: #1f7a6e;
    --accent-3: #f0c45a;
    --surface: #fffdf7;
    --surface-2: #f2ede2;
    --stroke: rgba(22, 28, 26, 0.12);
    --shadow: 0 24px 60px rgba(22, 28, 26, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --page-bg: linear-gradient(180deg, #f7f3ea 0%, #f1ede4 100%);
    --font-display: 'Fraunces', serif;
    --font-body: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--page-bg);
    line-height: 1.6;
}

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

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

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.section {
    padding: 96px 0;
    position: relative;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0 0 0.75rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 640px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 16px 30px rgba(242, 88, 62, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
}

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

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 28, 26, 0.24);
}

.btn-outline {
    background: #fff;
    border-color: rgba(31, 122, 110, 0.3);
    color: var(--accent-2);
}

.btn-outline:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 122, 110, 0.6);
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(31, 122, 110, 0.25);
    padding: 8px 16px;
    background: #fff;
    color: var(--accent-2);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.pill[aria-pressed="true"] {
    background: var(--accent-2);
    color: #fff;
    border-color: var(--accent-2);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: var(--muted);
}

.form-row input,
.form-row textarea {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: #fff;
    font-size: 0.98rem;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: rgba(31, 122, 110, 0.5);
    box-shadow: 0 0 0 3px rgba(31, 122, 110, 0.15);
}

.status {
    font-size: 0.95rem;
    color: var(--accent-2);
    margin-top: 8px;
}

.status.is-success {
    color: var(--accent-2);
}

.status.is-error {
    color: var(--accent-dark);
}

.text-button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.text-button:hover {
    color: var(--ink);
}

.order-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.login-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 10px 0 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(247, 243, 234, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 28, 26, 0.08);
}

.nav-shell {
    width: min(1200px, 94%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-mark {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(31, 122, 110, 0.12);
    border: 1px solid rgba(31, 122, 110, 0.35);
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 700;
}

.profile-avatar {
    font-size: 0.9rem;
}

.nav-link {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
}

.nav-cta {
    margin-left: 12px;
}

.nav-login {
    min-width: 96px;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--stroke);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    margin-left: auto;
}

.site-footer {
    padding: 48px 0;
    border-top: 1px solid rgba(22, 28, 26, 0.08);
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.account-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 400;
}

.account-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 22, 0.45);
    backdrop-filter: blur(4px);
}

.account-panel {
    position: relative;
    width: min(520px, 92%);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    z-index: 1;
    display: grid;
    gap: 18px;
}

.account-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.account-header h2 {
    font-family: var(--font-display);
    margin: 8px 0 0;
}

.account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: rgba(22, 28, 26, 0.05);
    border-radius: 999px;
    padding: 6px;
}

.account-tab {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
}

.account-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(22, 28, 26, 0.12);
}

.account-body {
    display: grid;
    gap: 12px;
}

.account-pane {
    display: none;
    gap: 12px;
}

.account-pane.is-active {
    display: grid;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 4%;
        background: var(--surface);
        border: 1px solid var(--stroke);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 20px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav.is-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(8px);
    }

    .nav-actions {
        margin-left: 0;
    }

    .nav-shell {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 72px 0;
    }

    .card {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
