:root {
    --ceramic-bg: #F7F4EF;
    --ceramic-text: #2D2D2D;
    --ceramic-accent: #B56E4A;
    --ceramic-sage: #8B9A7A;
    --ceramic-soft: #E7DDD0;
    --ceramic-border: rgba(45, 45, 45, 0.12);
    --ceramic-shadow: 0 24px 70px rgba(60, 49, 38, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--ceramic-text);
    background:
        radial-gradient(circle at top left, rgba(181, 110, 74, 0.10), transparent 24rem),
        radial-gradient(circle at top right, rgba(139, 154, 122, 0.08), transparent 28rem),
        var(--ceramic-bg);
}

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

h1, h2, h3, h4, .navbar-brand, .footer-heading {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.01em;
}

h1, h2, h3 {
    line-height: 0.95;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.75rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    color: rgba(45, 45, 45, 0.82);
    line-height: 1.75;
}

.mw-copy {
    max-width: 48rem;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.content {
    padding: 0 0 3rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.ceramic-navbar {
    margin: 0 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    background: rgba(247, 244, 239, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(51, 40, 27, 0.08);
}

.brand-mark {
    display: flex;
    flex-direction: column;
}

.brand-kicker,
.eyebrow,
.category-label,
.news-date,
.footer-title,
.admin-note {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-kicker,
.eyebrow,
.footer-title,
.news-date,
.admin-note {
    color: rgba(45, 45, 45, 0.58);
}

.brand-name {
    font-size: 2rem;
    line-height: 1;
}

.navbar .nav-link {
    font-size: 0.95rem;
    color: rgba(45, 45, 45, 0.74);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--ceramic-text);
    background: rgba(231, 221, 208, 0.8);
}

.nav-button-link {
    background: transparent;
    border: 0;
}

.ceramic-toggler {
    border-color: rgba(45, 45, 45, 0.15);
}

.ceramic-toggler .navbar-toggler-icon {
    filter: invert(0.2);
}

.section-space {
    padding: 2rem 1rem 4rem;
}

.section-space-sm {
    padding: 2rem 1rem 3rem;
}

.hero-section {
    padding-top: 2rem;
}

.lead-text {
    font-size: 1.08rem;
    max-width: 38rem;
}

.hero-image-frame,
.page-hero-image,
.detail-image,
.gallery-shot,
.card-image {
    border-radius: 1.5rem;
}

.hero-image-frame {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(231, 221, 208, 0.8), rgba(255, 255, 255, 0.55));
    box-shadow: var(--ceramic-shadow);
}

.hero-image {
    min-height: 36rem;
    width: 100%;
    object-fit: cover;
    border-radius: 1.1rem;
}

.soft-panel,
.highlight-card,
.process-card,
.info-card,
.product-card,
.news-card,
.gallery-card,
.cta-panel,
.table-panel {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--ceramic-border);
    border-radius: 1.5rem;
    box-shadow: var(--ceramic-shadow);
}

.soft-panel,
.process-card,
.info-card,
.highlight-card {
    padding: 2rem;
}

.muted-section {
    background: linear-gradient(180deg, rgba(231, 221, 208, 0.36), rgba(231, 221, 208, 0.12));
}

.highlight-card {
    min-height: 100%;
}

.highlight-number,
.process-index {
    color: var(--ceramic-accent);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.product-card,
.news-card,
.gallery-card {
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.news-image {
    height: 16rem;
}

.gallery-image {
    height: 22rem;
}

.gallery-image-wrap {
    position: relative;
}

.category-label {
    color: var(--ceramic-sage);
    margin-bottom: 0;
}

.price-label,
.detail-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ceramic-text);
}

.detail-price {
    margin-bottom: 1.5rem;
}

.text-link {
    color: var(--ceramic-accent);
    font-weight: 600;
}

.text-link:hover {
    color: #945337;
}

.btn {
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
}

.btn-ceramic-primary {
    color: #fff;
    background: var(--ceramic-accent);
    border: 1px solid var(--ceramic-accent);
}

.btn-ceramic-primary:hover,
.btn-ceramic-primary:focus {
    color: #fff;
    background: #9d5d3e;
    border-color: #9d5d3e;
}

.btn-ceramic-secondary {
    color: var(--ceramic-text);
    background: transparent;
    border: 1px solid rgba(45, 45, 45, 0.18);
}

.btn-ceramic-secondary:hover,
.btn-ceramic-secondary:focus {
    color: var(--ceramic-text);
    background: rgba(231, 221, 208, 0.65);
    border-color: rgba(45, 45, 45, 0.22);
}

.category-filter {
    border-radius: 999px;
    border: 1px solid rgba(45, 45, 45, 0.15);
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.category-filter.active {
    background: var(--ceramic-sage);
    border-color: var(--ceramic-sage);
    color: #fff;
}

.section-heading {
    margin-bottom: 2rem;
}

.process-card p:last-child,
.info-card p:last-child,
.highlight-card p:last-child,
.soft-panel p:last-child {
    margin-bottom: 0;
}

.cta-panel {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.sold-pill,
.sold-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(45, 45, 45, 0.08);
    color: rgba(45, 45, 45, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sold-flag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(247, 244, 239, 0.9);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 2rem 0 0;
}

.detail-grid dt {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(45, 45, 45, 0.56);
}

.detail-grid dd {
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ceramic-border);
}

.detail-image {
    width: 100%;
    height: 22rem;
    object-fit: cover;
}

.gallery-shot,
.page-hero-image {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
}

.story-text {
    max-width: 44rem;
}

.detail-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ceramic-border);
}

.workshop-panel {
    padding: 1rem;
}

.contact-stack {
    display: grid;
    gap: 1.5rem;
}

.map-placeholder {
    min-height: 16rem;
    display: grid;
    place-items: center;
    border-radius: 1.5rem;
    border: 1px dashed rgba(45, 45, 45, 0.22);
    background: linear-gradient(135deg, rgba(231, 221, 208, 0.4), rgba(255, 255, 255, 0.6));
    color: rgba(45, 45, 45, 0.56);
}

.category-selection-list {
    max-height: 16rem;
    overflow: auto;
    padding-right: 0.5rem;
}

.image-admin-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--ceramic-border);
    border-radius: 1rem;
}

.admin-image-preview {
    width: 100%;
    max-height: 16rem;
    object-fit: cover;
    border-radius: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(45, 45, 45, 0.48);
    border-radius: 999px;
    background-size: 55%;
}

.form-control,
.form-select {
    border-radius: 1rem;
    border-color: rgba(45, 45, 45, 0.15);
    padding: 0.9rem 1rem;
    background-color: rgba(255, 255, 255, 0.88);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(181, 110, 74, 0.18);
    border-color: rgba(181, 110, 74, 0.45);
}

.table-panel {
    padding: 1rem 1.5rem;
}

.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(45, 45, 45, 0.08);
    color: var(--ceramic-text);
}

.ceramic-pills .nav-link {
    border-radius: 999px;
    color: var(--ceramic-text);
    border: 1px solid rgba(45, 45, 45, 0.12);
    background: rgba(255, 255, 255, 0.48);
}

.ceramic-pills .nav-link.active {
    background: var(--ceramic-accent);
    border-color: var(--ceramic-accent);
}

.site-footer {
    margin: 0 1rem 1rem;
    border: 1px solid var(--ceramic-border);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(231, 221, 208, 0.32), rgba(255, 255, 255, 0.72));
}

.ceramic-modal {
    background: var(--ceramic-bg);
    border: 1px solid var(--ceramic-border);
    border-radius: 1.5rem;
}

.ceramic-modal .modal-header,
.ceramic-modal .modal-footer {
    border-color: var(--ceramic-border);
}

.footer-heading {
    font-size: 2.2rem;
}

.footer-links {
    display: grid;
    gap: 0.65rem;
}

.footer-links a {
    color: rgba(45, 45, 45, 0.74);
}

.footer-links a:hover {
    color: var(--ceramic-accent);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 991.98px) {
    .site-header {
        position: static;
    }

    .ceramic-navbar {
        margin: 0 0.75rem;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        min-height: 24rem;
    }
}

@media (max-width: 767.98px) {
    .section-space,
    .section-space-sm {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.35rem;
    }

    .card-image,
    .gallery-image,
    .detail-image,
    .hero-image {
        height: 18rem;
        min-height: 18rem;
    }
}
