:root {
    --navy: #183966;
    --navy-deep: #102a4b;
    --ink: #253044;
    --muted: #73777d;
    --cream: #f5eee2;
    --cream-deep: #eee2d0;
    --paper: #fffdfa;
    --gold: #b3905d;
    --line: #e6dfd4;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.65;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 7%;
    background: rgba(255, 253, 250, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

.brand > span {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.05;
}

.brand small {
    display: block;
    margin-top: 5px;
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.3em;
}

.main-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
}

.main-nav a,
.footer-links a {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--gold);
}

.instagram-link {
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.hero {
    position: relative;
    display: grid;
    min-height: 590px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4%;
    overflow: hidden;
    padding: 72px 10%;
    background:
        radial-gradient(ellipse at 80% 47%, rgba(255, 255, 255, 0.72) 0 23%, transparent 23.2%),
        var(--cream);
}

.hero::before {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(24, 57, 102, 0.11);
    border-radius: 50%;
    content: '';
}

.hero-copy,
.hero-logo-wrap {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
}

h1 {
    max-width: 650px;
    margin-bottom: 22px;
    color: var(--navy-deep);
    font-size: clamp(3rem, 6.4vw, 5.8rem);
    letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 500px;
    margin-bottom: 30px;
    color: #555d68;
    font-size: 1.05rem;
}

.hero-logo-wrap {
    display: grid;
    min-height: 355px;
    place-items: center;
}

.hero-logo {
    width: min(100%, 390px);
    border-radius: 50%;
    box-shadow: 0 24px 70px rgba(24, 57, 102, 0.08);
}

.hero-note {
    position: absolute;
    right: 7%;
    bottom: 24px;
    color: rgba(24, 57, 102, 0.55);
    font-size: 0.64rem;
    letter-spacing: 0.17em;
}

.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-blue {
    color: white;
    background: var(--navy);
}

.button-blue:hover {
    background: var(--navy-deep);
}

.button-light {
    color: var(--navy);
    background: white;
    border-color: var(--line);
}

.button-light:hover {
    background: var(--cream);
}

.section-shell {
    width: min(1160px, 86%);
    margin: 0 auto;
}

.collection {
    padding-top: 100px;
    padding-bottom: 110px;
}

.section-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 35px;
}

.section-topline h2,
.atelier h2,
.order-intro h2 {
    margin-bottom: 0;
    color: var(--navy-deep);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    letter-spacing: -0.035em;
}

.catalog-note {
    max-width: 310px;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: right;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    min-width: 0;
}

.product-visual {
    display: grid;
    min-height: 335px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f3eadc, #e8dfd1);
}

.product-card:nth-child(2) .product-visual {
    background: linear-gradient(145deg, #e4e9ef, #cdd7e3);
}

.product-card:nth-child(3) .product-visual {
    background: linear-gradient(145deg, #eee1df, #e3d2ce);
}

.visual-label {
    width: 78%;
    padding: 26px 18px;
    color: rgba(24, 57, 102, 0.64);
    border: 1px solid rgba(24, 57, 102, 0.2);
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 17px 2px 0;
}

.product-category {
    grid-column: 1 / -1;
    color: var(--gold);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.product-name {
    margin: 2px 0 0;
    color: var(--navy-deep);
    font-size: 1.35rem;
}

.product-price {
    align-self: center;
    color: var(--navy);
    font-size: 0.91rem;
    font-weight: 700;
}

.product-description {
    grid-column: 1 / -1;
    margin: 2px 0 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.product-info .button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
}

.loading-note,
.empty-state {
    color: var(--muted);
}

.atelier {
    padding: 82px 0 88px;
    color: white;
    background: var(--navy);
}

.atelier-inner {
    max-width: 750px;
    text-align: center;
}

.atelier .eyebrow {
    color: #dfc79e;
}

.atelier h2 {
    margin: 0 0 17px;
    color: white;
}

.atelier-inner > p:not(.eyebrow) {
    max-width: 590px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, 0.78);
}

.text-link {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.order-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10%;
    align-items: start;
    padding-top: 110px;
    padding-bottom: 120px;
}

.order-intro {
    position: sticky;
    top: 115px;
}

.order-intro > p:not(.eyebrow) {
    margin-top: 22px;
    color: var(--muted);
}

.order-summary {
    display: grid;
    gap: 4px;
    margin-top: 35px;
    padding: 20px;
    background: var(--cream);
}

.order-summary span:first-child {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.order-summary strong {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
}

.order-summary span:last-child {
    color: var(--muted);
    font-size: 0.85rem;
}

.order-form {
    padding: clamp(22px, 4vw, 42px);
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 18px 55px rgba(40, 45, 50, 0.05);
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.form-heading span {
    color: var(--gold);
    font-size: 0.73rem;
    font-weight: 700;
}

.form-heading h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.45rem;
}

.form-heading-spaced {
    margin-top: 34px;
}

.order-form > label,
.form-grid > label {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.order-form input:not([type="checkbox"]),
.order-form select,
.order-form textarea,
.admin-form input {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    outline: none;
}

.order-form textarea {
    resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus,
.admin-form input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(24, 57, 102, 0.1);
}

.order-form select:disabled {
    color: #9a9ca0;
    background: #f3f1ed;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.consent-label input {
    margin-top: 4px;
    accent-color: var(--navy);
}

.privacy-note {
    color: var(--muted);
    font-size: 0.75rem;
}

.submit-button {
    width: 100%;
    margin-top: 8px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-status {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: var(--navy);
    font-size: 0.85rem;
}

.form-status[data-state="error"] {
    color: #a22d2d;
}

.form-status[data-state="success"] {
    color: #246242;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 35px;
    align-items: center;
    padding: 32px 7%;
    color: rgba(255, 255, 255, 0.76);
    background: var(--navy-deep);
}

.footer-brand {
    color: white;
}

.footer-brand img {
    width: 48px;
    height: 48px;
}

.site-footer > p {
    justify-self: end;
    margin: 0;
    font-family: var(--serif);
}

.footer-links {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer > small {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.72rem;
}

.admin-page {
    min-height: 100vh;
    background: var(--cream);
}

.admin-shell {
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 60px 0 100px;
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.admin-panel {
    padding: clamp(22px, 4vw, 42px);
    background: var(--paper);
    border: 1px solid var(--line);
}

.admin-panel h2 {
    color: var(--navy);
    font-size: 1.6rem;
}

.admin-form {
    display: grid;
    max-width: 420px;
    gap: 14px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-message {
    min-height: 1.5em;
    color: #8d2929;
    font-size: 0.85rem;
}

.order-list {
    display: grid;
    gap: 14px;
}

.admin-order {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 20px;
    padding: 20px;
    border: 1px solid var(--line);
}

.admin-order h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.2rem;
}

.admin-order p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.admin-order .order-meta {
    color: var(--ink);
}

.admin-order .order-price {
    align-self: start;
    color: var(--navy);
    font-weight: 700;
}

[hidden] {
    display: none !important;
}

@media (max-width: 800px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px 18px;
        padding: 8px 6%;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .main-nav {
        order: 4;
        width: 100%;
        justify-content: space-around;
        padding-top: 9px;
        border-top: 1px solid var(--line);
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .instagram-link {
        margin-left: auto;
        font-size: 0.8rem;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 68px 8% 78px;
    }

    .hero-logo-wrap {
        min-height: 230px;
    }

    .hero-logo {
        width: min(65vw, 280px);
    }

    .hero-note {
        right: 8%;
        bottom: 18px;
    }

    .collection {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .section-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-note {
        text-align: left;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-visual {
        min-height: 290px;
    }

    .order-section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 78px;
        padding-bottom: 82px;
    }

    .order-intro {
        position: static;
    }

    .order-summary {
        margin-top: 22px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding-right: 6%;
        padding-left: 6%;
    }

    .site-footer > p {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-shell {
        width: 88%;
    }

    .hero {
        padding-right: 7%;
        padding-left: 7%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-order {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
