/* Shared visual system for the NOREVIA marketplace. */
:root {
    --norevia-ink: #26241f;
    --norevia-muted: #77736b;
    --norevia-paper: #f7f5ef;
    --norevia-line: #e6e1d7;
    --norevia-accent: #9a7048;
    --norevia-white: #fffefa;
}

html { scroll-behavior: smooth; }
body {
    color: var(--norevia-ink);
    background: var(--norevia-paper);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

header {
    min-height: 78px;
    height: auto;
    padding: 16px clamp(20px, 5vw, 72px);
    background: rgba(255, 254, 250, .96);
    border-bottom: 1px solid var(--norevia-line);
    box-shadow: 0 6px 24px rgba(50, 42, 30, .035);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    color: var(--norevia-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: .22em;
    white-space: nowrap;
    text-decoration: none;
}
.logo:link, .logo:visited, .logo:hover, .logo:focus, .logo:active { text-decoration: none; }
header nav { gap: clamp(13px, 2.2vw, 30px); }
header nav a {
    color: var(--norevia-ink);
    font-size: 13px;
    letter-spacing: .025em;
    transition: color .2s ease, opacity .2s ease;
}
header nav a:hover { color: var(--norevia-accent); opacity: 1; }
.norevia-language button { border-radius: 999px; }
.norevia-language button[aria-pressed="true"] { background: var(--norevia-ink); color: white; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 570px;
    padding: 58px clamp(24px, 7vw, 110px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
    align-items: center;
    justify-items: center;
    gap: clamp(24px, 4vw, 64px);
    background:
        radial-gradient(ellipse at 75% 100%, rgba(211, 187, 151, .24), transparent 46%),
        linear-gradient(135deg, #f5f0e6, #fbfaf6 56%, #eeebe3);
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}
.hero::before {
    width: min(28vw, 380px);
    aspect-ratio: 1;
    right: 8%;
    top: 17%;
    background: rgba(213, 193, 164, .13);
    filter: blur(3px);
    animation: norevia-glow 9s ease-in-out infinite;
}
.hero::after {
    display: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0; text-align: left; }
.hero-inner { animation: norevia-content-in .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-art { animation: norevia-art-in .95s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero-art svg { transform-origin: 50% 90%; animation: norevia-art-float 7s 1.1s ease-in-out infinite; }
@keyframes norevia-content-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes norevia-art-in {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes norevia-art-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-7px) rotate(.35deg); }
}
@keyframes norevia-glow {
    0%, 100% { transform: scale(.96); opacity: .72; }
    50% { transform: scale(1.04); opacity: 1; }
}
.hero-label, .section-label {
    color: var(--norevia-accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .28em;
}
.hero h1 {
    margin: 0 0 24px;
    color: var(--norevia-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(70px, 7.4vw, 104px);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.02;
}
.hero h1 span { color: #806e56; font-weight: 400; letter-spacing: -.025em; }
.hero p, .section-description { color: var(--norevia-muted); }
.hero p { max-width: 470px; margin: 0 0 30px; font-size: clamp(15px, 1.5vw, 17px); }
.hero-art { position: relative; z-index: 1; width: min(100%, 470px); justify-self: center; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art-caption { display: block; margin-top: -3px; color: #8a8174; font-size: 9px; letter-spacing: .24em; text-align: center; }
.hero-button, .button, .buy-button, .order-button, .publish, .login-button {
    border-radius: 999px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-button {
    padding: 16px 27px;
    background: var(--norevia-ink);
    box-shadow: 0 8px 22px rgba(38, 36, 31, .12);
}
.hero-button:hover, .button:hover, .buy-button:hover, .order-button:hover, .publish:hover, .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 36, 31, .13);
}
.intro-strip { background: var(--norevia-white); border-color: var(--norevia-line); }
.intro-item { border-color: var(--norevia-line); }
.intro-item strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.intro-item span { color: var(--norevia-muted); letter-spacing: .16em; }
.artworks-section { padding-top: clamp(72px, 9vw, 112px); }
.section-heading h2, .page-title, .container h1, .product-info h1 {
    color: var(--norevia-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}
.section-heading h2 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.055em; }
.catalog-filter select, .field input, .field textarea, .field select, .form-group input, .form-group textarea, .form-group select, .seller-settings select {
    border: 1px solid #d9d2c5;
    border-radius: 8px;
    background-color: var(--norevia-white);
}
.catalog-filter input, .catalog-filter select {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d9d2c5;
    border-radius: 8px;
    background: var(--norevia-white);
    color: var(--norevia-ink);
    font: inherit;
}
.catalog-filter select { padding-right: 34px; }
.catalog-filter input::placeholder { color: #77736b; opacity: 1; }
.catalog-filter .favorite-toggle { height: 46px; min-height: 46px; }
.artwork-grid { gap: clamp(16px, 2.2vw, 27px); }
.artwork-card {
    border: 1px solid var(--norevia-line);
    border-radius: 10px;
    background: var(--norevia-white);
    box-shadow: 0 3px 12px rgba(45, 39, 30, .025);
}
.artwork-card.available:hover { box-shadow: 0 18px 38px rgba(45, 39, 30, .11); }
.artwork-image { background: #ebe7de; }
.artwork-image img { transition: transform .55s cubic-bezier(.2,.7,.25,1); }
.norevia-image-fallback { display: grid; width: 100%; height: 100%; min-height: 180px; place-items: center; padding: 18px; background: #ebe7de; color: #77736b; font-size: 13px; text-align: center; }
.category-label { color: var(--norevia-accent); letter-spacing: .13em; }
.artwork-title { font-family: Georgia, "Times New Roman", serif; }
.artwork-price { color: #574b3c; }

.container, .page, .profile-page, .sell-page, .login-page, .checkout-page, .payment-page, .order-page, .success-page { color: var(--norevia-ink); }
.form-box, .login-box, .profile-card, .seller-settings, .payment-card, .card, .order-card {
    border: 1px solid var(--norevia-line);
    border-radius: 12px;
    background: var(--norevia-white);
    box-shadow: 0 12px 34px rgba(50, 42, 30, .045);
}
.field input:focus, .field textarea:focus, .field select:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus, input:focus, textarea:focus, select:focus {
    border-color: var(--norevia-accent);
    box-shadow: 0 0 0 3px rgba(154, 112, 72, .12);
    outline: none;
}
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(154, 112, 72, .4);
    outline-offset: 3px;
}
footer { background: #27241f; }

@media (max-width: 700px) {
    header { min-height: 70px; padding: 13px 18px; flex-wrap: wrap; gap: 12px; }
    header:not(:has(.menu-toggle)) nav { display: flex; width: 100%; justify-content: center; flex-wrap: wrap; gap: 12px 18px; }
    header:has(.menu-toggle) { position: sticky; }
    .hero { min-height: auto; padding: 64px 24px 38px; grid-template-columns: 1fr; gap: 22px; }
    .hero::before { width: 52vw; right: -8%; top: 43%; }
    .hero-inner { max-width: 580px; text-align: center; }
    .hero h1 { font-size: clamp(58px, 13vw, 78px); letter-spacing: -.04em; }
    .hero-label { letter-spacing: .2em; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-art { width: min(82vw, 350px); }
    .section-heading { gap: 18px; }
    .artworks-section { padding-left: 20px; padding-right: 20px; }
    .artwork-image { height: auto; aspect-ratio: 4 / 5; }
    .form-box, .login-box, .payment-card { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}

/* Mobile finishing touches across product, seller, profile, checkout, and order pages. */
@media (max-width: 700px) {
    input, select, textarea { font-size: 16px; }
    .page, .container, .profile-page, .sell-page, .login-page, .checkout-page, .payment-page, .order-page, .success-page {
        min-width: 0;
        max-width: 100%;
    }
    .profile-card, .seller-settings, .order-card, .payment-card, .form-box, .artwork-box, .summary {
        min-width: 0;
        padding-left: clamp(16px, 5vw, 24px);
        padding-right: clamp(16px, 5vw, 24px);
    }
    .order-number, .sale-order-number, .profile-email, .order-artwork {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .order-top { gap: 14px; padding-top: 22px; padding-bottom: 22px; }
    .norevia-image-fallback { min-height: 150px; }
    .art-actions > *, .actions > *, .view-order, .art-action {
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    .checkout .artwork-image, .order-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .checkout .artwork-image img, .order-card .product-image img { object-fit: contain; }
}

@media (max-width: 520px) {
    .art-actions, .actions { grid-template-columns: 1fr; }
    .product-info .details p { align-items: flex-start; gap: 4px; }
    .product-info .details p span:last-child { min-width: 0; overflow-wrap: anywhere; text-align: left; }
    .seller-settings form > *, .seller-settings select { width: 100%; }
}
