/* Kmetski: Troyan pottery of the Kmetski family.
   Oxblood glaze, manganese and slip cream, from the family's own glazed jugs; the slip lines in the hero
   are combed into the Troyan wave. Alegreya (display) + Lunasima (text). One light theme with dark glaze bands. */

@font-face {
    font-family: "Alegreya";
    src: url("/fonts/alegreya.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya";
    src: url("/fonts/alegreya-italic.woff2") format("woff2");
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lunasima";
    src: url("/fonts/lunasima-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lunasima";
    src: url("/fonts/lunasima-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --glaze: #6b1d10;
    --glaze-deep: #4e140b;
    --manganese: #24120c;
    --manganese-lit: #3a2017;
    --slip: #f3e8d0;
    --page: #f8f2e6;
    --sheet: #fffaf0;
    --line: #e4d6bb;
    --ink: #24120c;
    --ink-soft: #5a4335;
    --blue: #8db4dc;
    --blue-ink: #2c5a88;
    --honey: #e3a840;
    --honey-ink: #8a5a0c;
    --green: #3f6b3a;
    --on-dark: #f6ecd8;
    --on-dark-soft: #e2cfb3;
    --radius: 22px;
    --radius-s: 14px;
    --wrap: 1200px;
    --display: "Alegreya", "Georgia", serif;
    --text: "Lunasima", "Segoe UI", system-ui, sans-serif;
    --lb-bg: rgba(28, 13, 8, 0.96);
    --lb-text: #f6ecd8;
    --lb-accent: #e3a840;
    --lb-accent-soft: rgba(227, 168, 64, 0.22);
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-wrap: break-word;
}

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

a {
    color: var(--glaze);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--glaze-deep);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--blue-ink);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem);
}

h3,
.h3 {
    font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--manganese);
    color: var(--on-dark);
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
    color: var(--on-dark);
}

.eyebrow {
    font: 700 0.8rem/1.3 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--honey-ink);
    margin: 0 0 0.9rem;
}

.lead {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 62ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    min-height: 48px;
    padding: 0.7em 1.35em;
    border: 2px solid var(--glaze);
    border-radius: 999px;
    background: var(--glaze);
    color: var(--on-dark);
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--glaze-deep);
    border-color: var(--glaze-deep);
    color: var(--on-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--glaze);
}

.btn-ghost:hover {
    background: var(--glaze);
    color: var(--on-dark);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 242, 230, 0.9);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-block: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
    min-width: 0;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    flex: none;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-name {
    font: 900 1.45rem/1 var(--display);
    letter-spacing: -0.01em;
}

.brand-sub {
    font: 400 0.78rem/1.25 var(--text);
    color: var(--ink-soft);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--glaze);
    color: var(--on-dark);
    font: 700 1rem/1.1 var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--glaze-deep);
    color: var(--on-dark);
}

.call svg {
    width: 16px;
    height: 16px;
}

.lang {
    display: flex;
    gap: 2px;
    font: 700 0.85rem/1 var(--text);
}

.lang a,
.lang span {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
}

.lang span[aria-current] {
    background: var(--manganese);
    color: var(--on-dark);
}

.lang a:hover {
    background: var(--slip);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    width: 100%;
    margin-inline: -10px;
}

.nav a {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none;
}

.nav a:hover {
    background: var(--slip);
    color: var(--glaze);
}

.nav a[aria-current] {
    color: var(--glaze);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    text-decoration-color: var(--honey);
}

@media (min-width: 1080px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        width: auto;
        order: 2;
        margin: 0;
    }

    .brand {
        margin-right: 0;
    }

    .call {
        order: 3;
        margin-left: auto;
    }

    .lang {
        order: 4;
    }
}

@media (max-width: 480px) {
    .top-row {
        gap: 8px 10px;
    }

    .brand-sub {
        display: none;
    }

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

    .call {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .call svg {
        display: none;
    }

    .lang span[aria-current] {
        display: none;
    }
}

/* ---- the glaze: dark bands ---- */

.glaze {
    position: relative;
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(150, 52, 28, 0.55), transparent 60%),
        radial-gradient(90% 80% at 0% 100%, rgba(36, 18, 12, 0.85), transparent 70%),
        linear-gradient(160deg, var(--glaze) 0%, var(--glaze-deep) 55%, var(--manganese) 100%);
    color: var(--on-dark);
    overflow: hidden;
    isolation: isolate;
}

.glaze a {
    color: var(--on-dark);
}

.glaze a:hover {
    color: #ffffff;
}

.glaze .eyebrow {
    color: var(--honey);
}

.glaze .lead,
.glaze p {
    color: var(--on-dark-soft);
}

.glaze h1,
.glaze h2,
.glaze h3 {
    color: var(--on-dark);
}

.glaze .btn {
    background: var(--honey);
    border-color: var(--honey);
    color: var(--manganese);
}

.glaze .btn:hover {
    background: var(--slip);
    border-color: var(--slip);
    color: var(--manganese);
}

.glaze .btn-ghost {
    background: transparent;
    border-color: var(--on-dark-soft);
    color: var(--on-dark);
}

.glaze .btn-ghost:hover {
    background: var(--on-dark);
    color: var(--manganese);
}

.glaze :focus-visible {
    outline-color: var(--honey);
}

/* ---- home hero with the combed slip ---- */

.hero {
    padding-block: clamp(36px, 4vw, 56px) 0;
}

.hero-grid {
    display: grid;
    gap: 32px;
    align-items: end;
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(2.5rem, 1.3rem + 3.7vw, 4.6rem);
    margin-bottom: 0.35em;
}

.hero h1 em {
    font-style: italic;
    font-weight: 700;
    color: var(--honey);
}

.hero .lead {
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.hero-photo {
    position: relative;
    justify-self: center;
    width: min(100%, 400px);
}

.hero-photo a {
    display: block;
    border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    border: 6px solid rgba(246, 236, 216, 0.14);
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-photo figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--on-dark-soft);
    text-align: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.25fr 0.75fr;
        gap: 56px;
    }
}

.comb {
    display: block;
    width: 100%;
    height: clamp(100px, 11vw, 150px);
    margin-top: clamp(24px, 3vw, 36px);
}

.comb path,
.page-hero-comb path,
.foot-comb path {
    fill: none;
    stroke-linecap: round;
}

.s-cream {
    stroke: var(--slip);
    stroke-width: 7;
}

.s-blue {
    stroke: var(--blue);
    stroke-width: 5;
}

.s-honey {
    stroke: var(--honey);
    stroke-width: 5;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (d: path("M0 0")) {
        .comb path {
            animation: comb 2.6s cubic-bezier(0.6, 0, 0.2, 1) 0.5s both;
        }

        .comb path:nth-child(2) { animation-delay: 0.62s; }
        .comb path:nth-child(3) { animation-delay: 0.74s; }
        .comb path:nth-child(4) { animation-delay: 0.86s; }
        .comb path:nth-child(5) { animation-delay: 0.98s; }
        .comb path:nth-child(6) { animation-delay: 1.1s; }
        .comb path:nth-child(7) { animation-delay: 1.22s; }
    }

    .comb {
        animation: trail 1s ease-out both;
    }
}

@keyframes trail {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes comb {
    from {
        d: var(--flat);
    }
}

/* ---- sections ---- */

.band {
    padding-block: clamp(56px, 8vw, 110px);
}

.band-tight {
    padding-block: clamp(36px, 5vw, 64px);
}

.band-sheet {
    background: var(--sheet);
    border-block: 1px solid var(--line);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 12px 32px;
    margin-bottom: clamp(24px, 4vw, 44px);
}

.section-head h2 {
    margin: 0;
    max-width: 18ch;
}

.section-head p {
    margin: 0;
    max-width: 52ch;
    color: var(--ink-soft);
}

/* ---- the product shelf: a bento grid ---- */

.shelf {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shelf > li {
    display: flex;
}

@media (min-width: 720px) {
    .shelf {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .shelf .wide {
        grid-column: span 2;
    }

    .shelf .tall {
        grid-row: span 2;
    }
}

.shelf a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    min-height: 210px;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--on-dark);
    text-decoration: none;
    background: var(--manganese);
    isolation: isolate;
}

.shelf img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.shelf a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(36, 18, 12, 0) 15%, rgba(36, 18, 12, 0.55) 45%, rgba(36, 18, 12, 0.94) 100%);
}

.shelf a:hover img {
    transform: scale(1.06);
}

.shelf-text {
    display: grid;
    gap: 4px;
    padding: 16px;
}

.shelf-text strong {
    font: 800 clamp(1.15rem, 1rem + 0.7vw, 1.6rem)/1.05 var(--display);
    text-shadow: 0 1px 12px rgba(36, 18, 12, 0.7);
}

.shelf-text span {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--on-dark-soft);
}

.shelf a:hover .shelf-text strong {
    text-decoration: underline;
    text-decoration-color: var(--honey);
    text-underline-offset: 5px;
}

@media (max-width: 480px) {
    .shelf-text span {
        display: none;
    }

    .shelf a {
        min-height: 170px;
    }
}

/* ---- restaurants band ---- */

.duo {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 860px) {
    .duo {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.duo-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.duo-photos li:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.duo-photos a {
    display: block;
    height: 100%;
    border-radius: var(--radius-s);
    overflow: hidden;
}

.duo-photos img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s;
}

.duo-photos a:hover img {
    transform: scale(1.05);
}

.ticks {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticks li {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(246, 236, 216, 0.3);
    font-size: 0.95rem;
}

.band-sheet .ticks li,
.page-body .ticks li {
    border-color: var(--line);
    background: var(--sheet);
}

/* ---- generations: a numbered trail ---- */

.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    counter-reset: gen;
}

@media (min-width: 860px) {
    .trail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.trail li {
    position: relative;
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.trail .num {
    display: block;
    font: 900 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--display);
    color: var(--glaze);
    margin-bottom: 10px;
}

.trail h3 {
    margin-bottom: 0.35em;
}

.trail p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .trail li,
        .shelf li,
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---- certificates: a sideways strip ---- */

.strip {
    list-style: none;
    margin: 0;
    padding: 4px 0 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--glaze) var(--line);
}

.strip li {
    scroll-snap-align: start;
}

.strip figure,
.docs figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-s);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.strip a,
.docs a {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.strip img,
.docs img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.strip figcaption,
.docs figcaption {
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

.docs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 16px;
}

/* ---- call band ---- */

.callband {
    padding-block: clamp(44px, 6vw, 80px);
}

.callband-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

@media (min-width: 860px) {
    .callband-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

.callband h2 {
    margin-bottom: 0.3em;
}

.phones {
    display: grid;
    gap: 10px;
}

.phones a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-s);
    background: rgba(246, 236, 216, 0.08);
    border: 1px solid rgba(246, 236, 216, 0.22);
    font: 800 clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem)/1.1 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

.phones a:hover {
    background: rgba(246, 236, 216, 0.16);
}

.phones svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--honey);
}

/* ---- inner pages ---- */

.page-hero {
    padding-block: clamp(40px, 6vw, 84px) clamp(36px, 5vw, 64px);
}

.page-hero h1 {
    font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem);
    max-width: 18ch;
}

.page-hero .lead {
    margin: 0;
}

.page-hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 860px) {
    .page-hero-grid {
        grid-template-columns: 1.3fr 0.7fr;
    }
}

.page-hero-photo a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 5px solid rgba(246, 236, 216, 0.14);
}

.page-hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.crumbs {
    margin: 0 0 18px;
    font-size: 0.92rem;
}

.crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.6;
}

.crumbs [aria-current] {
    opacity: 0.85;
}

.page-hero-comb {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 36px;
    margin-bottom: calc(-1 * clamp(36px, 5vw, 64px) + 18px);
}

.page-hero-comb .s-cream,
.foot-comb .s-cream {
    stroke-width: 3;
}

.page-hero-comb .s-blue,
.page-hero-comb .s-honey,
.foot-comb .s-blue,
.foot-comb .s-honey {
    stroke-width: 2.5;
}

.foot-comb {
    opacity: 0.55;
}

.prose {
    max-width: 68ch;
}

.prose p,
.prose li {
    font-size: 1.08rem;
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 0.35em;
}

.prose li::marker {
    color: var(--glaze);
}

.notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.notes li {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--line);
    font-size: 0.97rem;
}

.notes strong {
    color: var(--glaze);
}

/* ---- a product page: sections of photos with their measurements ---- */

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.jump a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--sheet);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.jump a:hover {
    border-color: var(--glaze);
    color: var(--glaze);
}

.group + .group {
    margin-top: clamp(40px, 6vw, 72px);
}

.group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

.group-head h2 {
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
    margin: 0;
}

.group-head p {
    margin: 0;
    color: var(--ink-soft);
}

.pieces {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 12px;
}

@media (min-width: 720px) {
    .pieces {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 16px;
    }
}

.pieces figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-s);
    background: var(--sheet);
    border: 1px solid var(--line);
    overflow: hidden;
}

.pieces a {
    display: block;
    overflow: hidden;
    background: #ece4d6;
}

.pieces img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s;
}

.pieces a:hover img {
    transform: scale(1.05);
}

.pieces figcaption {
    padding: 10px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.pieces figcaption strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 2px;
}

.others {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.others a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--sheet);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.others a:hover,
.others a[aria-current] {
    background: var(--glaze);
    border-color: var(--glaze);
    color: var(--on-dark);
}

/* ---- product overview cards ---- */

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 18px;
}

.cards a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.cards a:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -24px rgba(36, 18, 12, 0.5);
    color: var(--ink);
}

.cards img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cards .card-text {
    display: grid;
    gap: 6px;
    padding: 16px 18px 20px;
}

.cards strong {
    font: 800 1.45rem/1.1 var(--display);
    color: var(--glaze);
}

.cards span {
    font-size: 0.97rem;
    color: var(--ink-soft);
}

/* ---- price list ---- */

.pricelist {
    columns: 2 300px;
    column-gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: item;
}

.pricelist li {
    break-inside: avoid;
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}

.pricelist .n {
    flex: none;
    width: 2.2em;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--honey-ink);
    font-weight: 700;
}

.price-note {
    padding: 20px 24px;
    border-radius: var(--radius-s);
    background: var(--sheet);
    border: 1px solid var(--line);
    border-left: 6px solid var(--honey);
    margin-bottom: 32px;
}

.price-note p:last-child {
    margin: 0;
}

/* ---- contact ---- */

.contact-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.panel {
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.contact-list {
    margin: 0;
    display: grid;
    gap: 18px;
}

.contact-list dt {
    font: 700 0.8rem/1.3 var(--text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--honey-ink);
    margin-bottom: 4px;
}

.contact-list dd {
    margin: 0;
    font-size: 1.08rem;
}

.big-phone {
    font: 800 clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem)/1.2 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--glaze);
    outline: none;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--blue-ink);
    outline-offset: 2px;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 1.1em;
    color: #8f1d0c;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: 0;
}

.contact-sent {
    padding: 16px 18px;
    border-radius: 12px;
    background: #e5efdc;
    border: 1px solid #b9d1a6;
    margin-bottom: 18px;
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    background: var(--manganese);
    color: var(--on-dark-soft);
    padding-top: clamp(48px, 6vw, 80px);
    font-size: 0.98rem;
}

.foot a {
    color: var(--on-dark);
}

.foot a:hover {
    color: #ffffff;
}

.foot :focus-visible {
    outline-color: var(--honey);
}

.foot h2 {
    font: 700 0.8rem/1.3 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--honey);
    margin-bottom: 14px;
}

.foot-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 860px) {
    .foot-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
    }
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--on-dark);
}

.foot-brand svg {
    width: 46px;
    height: 46px;
    flex: none;
}

.foot-brand strong {
    font: 900 1.6rem/1 var(--display);
}

.foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.foot address {
    font-style: normal;
}

.foot-comb {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 40px;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px 28px;
    font-size: 0.88rem;
}

.foot-bottom p {
    margin: 0;
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found .nf-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

.not-found .nf-name {
    font: 900 1.6rem/1.1 var(--display);
    margin-bottom: 24px;
}

.not-found h1 {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
}

.not-found [lang="en"] {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
