:root {
    --bg-primary: #1b2238;
    --bg-card: rgba(24, 34, 64, 0.95);
    --text-primary: #fbf6eb;
    --text-muted: #e6dfd0;
    --accent-gold: #f0be32;
    --mf-terracotta: #d94e28;
    --mf-cobalt: #1b56c4;
    --mf-meadow: #2ca05a;
    --mf-turquoise: #129aa6;
    --mf-shape-1: 36px 14px 40px 16px / 16px 38px 14px 34px;
    --mf-shape-2: 16px 38px 14px 36px / 34px 14px 38px 16px;
    --mf-pill: 24px 8px 26px 10px / 10px 24px 9px 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Trebuchet MS", "Segoe UI", Optima, sans-serif;
    line-height: 1.72;
    background-image:
        radial-gradient(ellipse 75% 55% at 18% 18%, rgba(217, 78, 40, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse 75% 55% at 85% 28%, rgba(240, 190, 50, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 75% 60% at 35% 82%, rgba(44, 160, 90, 0.24) 0%, transparent 68%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cpath d='M0,130 C55,105 105,150 160,125 C205,105 235,135 260,125' fill='none' stroke='%230d101c' stroke-width='5'/%3E%3Cpath d='M0,130 C55,105 105,150 160,125 C205,105 235,135 260,125' fill='none' stroke='%23f0be32' stroke-opacity='0.5' stroke-width='2' stroke-dasharray='12 8'/%3E%3Cpath d='M135,0 C115,65 155,115 130,185 C118,218 140,242 135,260' fill='none' stroke='%230d101c' stroke-width='5'/%3E%3Crect x='30' y='112' width='15' height='11' rx='3' fill='%23d94e28' stroke='%230d101c' stroke-width='1.4'/%3E%3Crect x='50' y='110' width='13' height='11' rx='3' fill='%23f0be32' stroke='%230d101c' stroke-width='1.4'/%3E%3Crect x='68' y='116' width='15' height='10' rx='3' fill='%231b56c4' stroke='%230d101c' stroke-width='1.4'/%3E%3Crect x='178' y='110' width='14' height='11' rx='3' fill='%232ca05a' stroke='%230d101c' stroke-width='1.4'/%3E%3Cpath d='M205,54 m0,0 a5,5 0 1,0 10,0 a10,10 0 1,0 -20,0 a16,16 0 1,0 32,0' fill='none' stroke='%23f0be32' stroke-opacity='0.4' stroke-width='2'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(95deg, rgba(158, 47, 20, 0.94), rgba(22, 34, 68, 0.96), rgba(23, 105, 56, 0.94));
    border-bottom: 4px solid #0d101c;
    outline: 2.5px solid var(--accent-gold);
    padding: 1.1rem 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: "Palatino Linotype", Georgia, serif;
    font-size: 1.28rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
    color: #fff8e3;
    text-decoration: none;
    text-shadow: 2px 2px 0px #0d101c;
}

.brand span { color: #ffe57f; }

nav a {
    color: #fffaf0;
    text-decoration: none;
    margin-left: 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 13px;
    border-radius: var(--mf-pill);
    background: rgba(13, 16, 28, 0.72);
    border: 2px solid #0d101c;
    outline: 1px solid rgba(255, 229, 127, 0.65);
    display: inline-block;
    transition: all 0.2s ease;
}

nav a:hover {
    background: linear-gradient(135deg, #f5c842, #fff4b8);
    color: #1a1205;
    transform: translateY(-2px) rotate(-1deg);
}

.hero { padding: 5.5rem 5% 4rem; max-width: 1100px; margin: 0 auto; text-align: center; }
.eyebrow { color: #ffe57f; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.84rem; font-weight: 900; margin-bottom: 1rem; display: block; }
.hero h1 { font-family: "Palatino Linotype", Georgia, serif; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.2; margin-bottom: 1.4rem; color: #fff8e3; text-shadow: 3px 3px 0px #0d101c, 5px 5px 0px var(--mf-terracotta); }
.hero p { color: var(--text-muted); font-size: 1.12rem; max-width: 740px; margin: 0 auto 2.3rem; }
.cta-group { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.9rem 1.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 900;
    border-radius: var(--mf-pill);
    border: 3px solid #0d101c;
    transition: all 0.22s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #a6760e 0%, #f5c842 35%, #fff4b8 65%, #c99318 100%);
    color: #1a1205;
    outline: 1.5px solid #fff6cc;
    box-shadow: 4px 5px 0px #0d101c, 7px 8px 0px var(--mf-terracotta);
}

.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); }

.btn-outline {
    background: linear-gradient(135deg, #1b56c4, #129aa6);
    color: #fffaf0;
    outline: 1.5px solid var(--accent-gold);
    box-shadow: 4px 5px 0px #0d101c;
}

.btn-outline:hover { background: linear-gradient(135deg, #2ca05a, #176938); transform: translateY(-3px); }

.section { padding: 4.2rem 5%; max-width: 1200px; margin: 0 auto; border-top: 3px dashed rgba(240, 190, 50, 0.45); }
.section-title { font-family: "Palatino Linotype", Georgia, serif; font-size: 2rem; font-weight: 900; margin-bottom: 0.8rem; text-align: center; color: #fff8e3; text-shadow: 2px 3px 0px #0d101c; }
.section-subtitle { color: var(--text-muted); text-align: center; max-width: 700px; margin: 0 auto 2.8rem; }
.grid, .artwork-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }

.card, .artwork-card {
    background: var(--bg-card);
    border: 4px solid #0d101c;
    outline: 2.5px solid var(--accent-gold);
    border-top: 11px solid var(--mf-terracotta);
    border-radius: var(--mf-shape-1);
    padding: 2rem;
    box-shadow: 8px 9px 0px #0d101c, 12px 13px 0px rgba(240, 190, 50, 0.55);
    transition: all 0.26s ease;
    text-decoration: none;
    color: var(--text-primary);
    transform: rotate(-0.5deg);
}

.artwork-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card:nth-child(2n), .artwork-card:nth-child(2n) { border-radius: var(--mf-shape-2); border-top-color: var(--mf-meadow); transform: rotate(0.6deg); }
.card:nth-child(3n), .artwork-card:nth-child(3n) { border-top-color: var(--mf-cobalt); }
.card:hover, .artwork-card:hover { transform: translateY(-5px) rotate(0deg); outline-color: #ffe57f; }
.card h3 { font-family: "Palatino Linotype", Georgia, serif; font-size: 1.38rem; font-weight: 800; margin-bottom: 0.8rem; color: #ffe57f; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 1.5rem; }

.artwork-img-wrap { width: 100%; aspect-ratio: 3 / 4; background: #101629; display: flex; align-items: center; justify-content: center; padding: 14px; border-bottom: 3px solid #0d101c; }
.artwork-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px 6px 16px 6px; border: 2px solid var(--accent-gold); }
.artwork-info { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.artwork-badge { font-size: 0.74rem; font-weight: 900; text-transform: uppercase; color: #6ef2eb; margin-bottom: 0.4rem; }
.artwork-title { font-family: "Palatino Linotype", Georgia, serif; font-size: 1.18rem; font-weight: 800; margin-bottom: 1rem; color: #fff9eb; }
.artwork-buy { font-size: 0.84rem; font-weight: 900; text-transform: uppercase; color: #ffe57f; border-top: 2px dashed rgba(240, 190, 50, 0.4); padding-top: 0.8rem; display: flex; justify-content: space-between; }

footer {
    background: linear-gradient(95deg, rgba(158, 47, 20, 0.88), rgba(19, 32, 66, 0.96), rgba(23, 105, 56, 0.88));
    border-top: 5px solid #0d101c;
    outline: 2.5px solid var(--accent-gold);
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
footer a { color: #ffe57f; font-weight: 800; text-decoration: none; margin: 0 0.6rem; }