/* Émail et Merveilles – enamelled lava workshop, Jenzat.
   Basalt and kiln heat, with the enamels of the logo plaque. Petrona (display) + Gantari (text).
   One light theme with dark basalt bands. */

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

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

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

:root {
    --night: #1d1a20;
    --basalt: #2a2630;
    --basalt-lit: #3a3541;
    --ash: #c9c2d1;
    --enamel: #f7f5f0;
    --sheet: #ffffff;
    --lavender: #f1e8fb;
    --lavender-2: #e6d4ff;
    --plum: #5a2a5a;
    --plum-deep: #3d1b3d;
    --ink: #241d27;
    --muted: #5b5160;
    --line: #ddd2e6;
    --turq: #1b6f6b;
    --turq-lit: #5cc6bf;
    --cobalt: #2c4fb0;
    --orange: #e0712a;
    --orange-text: #a8461a;
    --glow: #f39a3c;
    --white-hot: #ffe7b8;
    --radius: 18px;
    --radius-lg: 30px;
    --shadow: 0 18px 40px -18px rgba(29, 26, 32, 0.45);
    --display: "Petrona", Georgia, "Times New Roman", serif;
    --text: "Gantari", "Segoe UI", system-ui, sans-serif;
    --lava-grain: url("/img/grain.svg");
    --lb-bg: rgba(20, 17, 22, 0.96);
    --lb-accent: #f39a3c;
    --lb-accent-soft: rgba(243, 154, 60, 0.2);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--enamel);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.08rem;
    line-height: 1.6;
    font-weight: 400;
}

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

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

a:hover {
    color: var(--cobalt);
}

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

.dark :focus-visible,
.top :focus-visible,
.foot :focus-visible {
    outline-color: var(--glow);
}

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

h1 {
    font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.9rem);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(1180px, 100% - 32px);
    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(--sheet);
    color: var(--ink);
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

.kicker {
    font-family: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--turq);
}

.dark .kicker {
    color: var(--turq-lit);
}

.lead {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.42rem);
    line-height: 1.5;
    max-width: 44rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 48px;
    padding: 0.7em 1.35em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-glow {
    background: linear-gradient(135deg, var(--white-hot), var(--glow) 55%, var(--orange));
    color: var(--night);
    box-shadow: 0 10px 30px -10px rgba(243, 154, 60, 0.7);
}

.btn-glow:hover {
    color: var(--night);
    box-shadow: 0 14px 34px -10px rgba(243, 154, 60, 0.95);
}

.btn-line {
    border-color: currentColor;
    color: var(--plum);
    background: transparent;
}

.dark .btn-line {
    color: var(--enamel);
}

.dark .btn-line:hover {
    color: var(--white-hot);
}

.btn-plum {
    background: var(--plum);
    color: #fff;
}

.btn-plum:hover {
    background: var(--plum-deep);
    color: #fff;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(29, 26, 32, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    color: var(--enamel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand img {
    width: 76px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.brand:hover img {
    transform: rotate(-3deg) scale(1.04);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    order: 3;
    width: 100%;
    justify-content: space-between;
}

.nav a {
    color: var(--ash);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 8px 6px;
    border-radius: 8px;
    position: relative;
}

.nav a:hover {
    color: #fff;
}

.nav a[aria-current] {
    color: #fff;
}

.nav a[aria-current]::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--white-hot));
}

.top-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--white-hot), var(--glow));
    color: var(--night);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    color: var(--night);
    box-shadow: 0 0 0 4px rgba(243, 154, 60, 0.3);
}

.lang {
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.lang a,
.lang span {
    padding: 8px 10px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--ash);
    text-decoration: none;
}

.lang span[aria-current] {
    background: var(--enamel);
    color: var(--night);
}

.lang a:hover {
    color: #fff;
}

@media (min-width: 900px) {
    .nav {
        order: 0;
        width: auto;
        margin-left: 18px;
        gap: 4px 10px;
    }

    .brand img {
        width: 92px;
    }
}

@media (max-width: 380px) {
    .brand img {
        width: 64px;
    }

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

/* ---- dark basalt bands ---- */

.dark {
    background-color: var(--night);
    background-image: var(--lava-grain), radial-gradient(120% 90% at 85% 110%, rgba(199, 70, 26, 0.38), transparent 60%), linear-gradient(180deg, var(--night), var(--basalt));
    color: var(--enamel);
}

.dark a:not(.btn) {
    color: var(--white-hot);
}

.dark a:not(.btn):hover {
    color: #fff;
}

.dark .muted,
.dark p {
    color: #e6e0ea;
}

/* ---- home hero ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 90px) 0 0;
}

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

.hero h1 {
    color: #fff;
    margin-bottom: 0.35em;
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(90deg, var(--white-hot), var(--glow) 50%, #ff8a5c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    color: #ece6ef;
}

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

.fan {
    position: relative;
    height: clamp(300px, 70vw, 470px);
    margin: 0 auto;
    width: min(100%, 520px);
}

.fan a {
    position: absolute;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease;
}

.fan img {
    width: 100%;
}

.fan a:nth-child(1) {
    width: 62%;
    left: 0;
    top: 6%;
    transform: rotate(-7deg);
    z-index: 1;
}

.fan a:nth-child(2) {
    width: 52%;
    right: 0;
    top: 0;
    transform: rotate(6deg);
    z-index: 2;
}

.fan a:nth-child(3) {
    width: 56%;
    left: 22%;
    bottom: 0;
    transform: rotate(-2deg);
    z-index: 3;
}

.fan a:hover {
    z-index: 5;
    transform: rotate(0) scale(1.04);
}

.puys {
    display: block;
    width: 100%;
    height: auto;
    margin-top: clamp(24px, 5vw, 50px);
}

.puys-label {
    position: absolute;
    right: 16px;
    bottom: 10px;
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d9d2de;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.08fr 0.92fr;
    }
}

/* firing: the tiles come out of the kiln when the page opens */
@media (prefers-reduced-motion: no-preference) {
    .fan a {
        animation: fire 1.6s cubic-bezier(.2, .7, .2, 1) both;
    }

    .fan a:nth-child(2) {
        animation-delay: 0.25s;
    }

    .fan a:nth-child(3) {
        animation-delay: 0.5s;
    }

    .hero h1 em {
        background-size: 200% 100%;
        animation: heat 3.2s ease-in-out 0.2s both;
    }
}

@keyframes fire {
    0% {
        opacity: 0;
        filter: grayscale(1) brightness(0.5) contrast(0.8);
        translate: 0 40px;
    }

    55% {
        opacity: 1;
        filter: grayscale(0.2) brightness(1.35) sepia(0.4);
    }

    100% {
        opacity: 1;
        filter: none;
        translate: 0 0;
    }
}

@keyframes heat {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0 0;
    }
}

/* ---- bands ---- */

.band {
    padding: clamp(52px, 8vw, 104px) 0;
}

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

.lav {
    background: var(--lavender);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(26px, 4vw, 44px);
}

/* the three ways in: a numbered trail */
.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    counter-reset: step;
}

.trail li {
    position: relative;
    background: var(--sheet);
    border-radius: var(--radius-lg);
    padding: 30px 26px 26px;
    box-shadow: var(--shadow);
    counter-increment: step;
}

.trail li::before {
    content: "0" counter(step);
    display: block;
    font-family: var(--display);
    font-style: italic;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--plum);
    margin-bottom: 10px;
}

.trail h3 {
    color: var(--plum-deep);
}

.trail p {
    color: var(--muted);
}

.trail p:last-child {
    margin: 0;
}

@media (min-width: 820px) {
    .trail {
        grid-template-columns: repeat(3, 1fr);
    }

    .trail li:nth-child(2) {
        translate: 0 28px;
    }
}

.label-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: center;
    margin-top: clamp(40px, 5vw, 64px);
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.label-row p {
    margin: 0;
    flex: 1 1 260px;
    color: var(--muted);
}

.label-row img {
    border-radius: 8px;
}

/* ---- creations: a bento of the albums ---- */

.bento {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.bento a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    background: var(--sheet);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.bento .pic {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 18px;
    background: var(--lavender) var(--lava-grain);
}

.bento .pic img {
    max-height: 230px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 12px 24px -12px rgba(29, 26, 32, 0.55);
}

.bento .big .pic {
    padding: 0;
}

.bento .big .pic img {
    width: 100%;
    max-height: none;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.bento .txt {
    padding: 18px 22px 22px;
}

.bento h3 {
    color: var(--plum-deep);
    margin-bottom: 0.3em;
}

.bento p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.bento .go {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--plum);
}

@media (min-width: 640px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento .big {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento .big .pic {
        min-height: 360px;
    }
}

/* ---- the kiln gauge (signature) ---- */

.kiln {
    position: relative;
}

.gauge {
    position: relative;
    margin: clamp(36px, 6vw, 70px) 0 10px;
    padding-top: 6px;
}

.gauge-bar {
    position: relative;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #3a1410 0%, #8f1d12 22%, #d2401a 45%, #f08a2a 68%, #ffd27a 88%, #fff6e0 100%);
    box-shadow: 0 0 40px rgba(240, 138, 42, 0.5);
    transform-origin: left center;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .gauge-fill {
            animation: kiln-up linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
        }

        .marks li {
            animation: mark-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 100%;
        }
    }
}

@keyframes kiln-up {
    from {
        transform: scaleX(0.04);
        filter: saturate(0.4) brightness(0.6);
    }

    to {
        transform: scaleX(1);
        filter: none;
    }
}

@keyframes mark-in {
    from {
        opacity: 0;
        translate: 0 16px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.axis {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #d6cfdb;
    font-variant-numeric: tabular-nums;
}

.marks {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.marks li {
    border-left: 3px solid var(--glow);
    padding: 4px 0 4px 18px;
}

.marks .deg {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.3rem, 1.8rem + 2vw, 3.6rem);
    font-weight: 600;
    line-height: 1;
    color: var(--white-hot);
    font-variant-numeric: lining-nums;
}

.marks strong {
    display: block;
    color: #fff;
    margin: 6px 0 2px;
    font-size: 1.08rem;
}

.marks p {
    margin: 0;
    font-size: 0.98rem;
}

.pin {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 34px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (min-width: 820px) {
    .marks {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- lava stones ---- */

.stones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stones li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--plum-deep);
}

.stones li::before {
    content: "";
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 46% 54% 50% 50% / 52% 44% 56% 48%;
    background: var(--lava-grain), radial-gradient(circle at 35% 30%, #8a8590, #4c4752 60%, #2b272f);
    box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.35);
}

.stones li:nth-child(2)::before {
    background: var(--lava-grain), radial-gradient(circle at 35% 30%, #a49a8c, #6a6156 60%, #3d3731);
}

.stones li:nth-child(3)::before {
    background: var(--lava-grain), radial-gradient(circle at 35% 30%, #9a9aa4, #5a5b66 60%, #33343c);
}

/* ---- split sections (craft, workshop) ---- */

.split {
    display: grid;
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
}

@media (min-width: 880px) {
    .split {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .split.flip > :first-child {
        order: 2;
    }
}

.prose {
    max-width: 46rem;
}

.prose p {
    font-size: 1.1rem;
}

.photo-pair {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.framed {
    margin: 0;
}

.framed a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.framed img {
    width: 100%;
}

.framed figcaption,
.note {
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 8px;
}

.dark .framed figcaption {
    color: #d6cfdb;
}

/* ---- page heads ---- */

.page-hero {
    background-color: var(--night);
    background-image: var(--lava-grain), radial-gradient(90% 120% at 100% 0%, rgba(44, 79, 176, 0.35), transparent 60%), radial-gradient(80% 120% at 0% 120%, rgba(199, 70, 26, 0.35), transparent 60%);
    color: #fff;
    padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
}

.page-hero h1 {
    max-width: 18ch;
}

.page-hero .lead {
    color: #ece6ef;
}

.page-hero a {
    color: var(--white-hot);
}

.crumbs {
    font-size: 0.92rem;
    margin-bottom: 18px;
    color: #d6cfdb;
}

.crumbs a {
    color: var(--white-hot);
}

.crumbs [aria-current] {
    color: #fff;
}

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

.chips a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.chips a span {
    font-size: 0.78rem;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero .chips a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chips-cards a {
    border-color: var(--line);
    color: var(--plum-deep);
    background: var(--sheet);
}

.chips-cards a:hover {
    border-color: var(--plum);
    color: var(--plum);
}

.chips-cards a[aria-current] {
    background: var(--plum);
    border-color: var(--plum);
    color: #fff;
}

/* ---- albums ---- */

.intro-band {
    padding: clamp(30px, 4vw, 48px) 0 0;
}

.album {
    padding: clamp(36px, 5vw, 60px) 0 0;
}

.album h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    color: var(--plum-deep);
    display: flex;
    align-items: center;
    gap: 14px;
}

.album h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--line), transparent);
}

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

.tiles-big {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tiles figure {
    margin: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.tiles a {
    display: grid;
    place-items: center;
    padding: 14px;
    background: var(--lavender) var(--lava-grain);
}

.tiles-big a {
    padding: 0;
}

.tiles img {
    max-height: 240px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.tiles-big img {
    width: 100%;
    max-height: none;
    border-radius: 0;
}

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

.tiles figcaption {
    padding: 10px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--muted);
}

.order-band {
    margin-top: clamp(50px, 7vw, 90px);
    background: var(--plum-deep);
    background-image: var(--lava-grain), radial-gradient(70% 120% at 100% 100%, rgba(224, 113, 42, 0.35), transparent 60%);
    color: #fff;
}

.order-band p {
    color: #efe6f0;
}

.order-grid {
    display: grid;
    gap: 26px;
    align-items: center;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.order-band .btn-line {
    color: #fff;
}

.order-band .btn-line:hover {
    color: var(--white-hot);
}

@media (min-width: 880px) {
    .order-grid {
        grid-template-columns: 1.2fr 1fr;
    }

    .order-actions {
        justify-content: flex-end;
    }
}

.others h2 {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
    color: var(--plum-deep);
}

/* ---- history: a timeline ---- */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--cobalt), var(--turq), var(--orange));
}

.timeline > li {
    position: relative;
    padding: 0 0 clamp(34px, 5vw, 56px) 52px;
}

.timeline > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--enamel);
    border: 5px solid var(--plum);
}

.timeline .year {
    display: block;
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
    line-height: 1;
    color: var(--plum);
    margin-bottom: 8px;
}

.timeline h2 {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
    color: var(--plum-deep);
}

.timeline .photo-pair {
    margin-top: 16px;
    max-width: 640px;
}

.timeline .mine::before {
    border-color: var(--orange);
}

/* ---- workshop & contact ---- */

.cards {
    display: grid;
    gap: 18px;
}

@media (min-width: 820px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card h2,
.card h3 {
    color: var(--plum-deep);
}

.price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--lavender);
    font-weight: 600;
    color: var(--plum-deep);
}

.price strong {
    font-family: var(--display);
    font-size: 2.2rem;
    line-height: 1;
}

.events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.events li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--lavender);
}

.events time {
    display: grid;
    place-items: center;
    min-width: 76px;
    padding: 8px 6px;
    border-radius: 12px;
    background: var(--plum);
    color: #fff;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    font-size: 0.85rem;
}

.events time b {
    font-family: var(--display);
    font-size: 1.7rem;
}

.events p {
    margin: 0;
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
    line-height: 1.1;
    color: var(--plum);
    text-decoration: none;
}

.big-phone:hover {
    color: var(--cobalt);
}

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

.contact-list dt {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--turq);
}

.contact-list dd {
    margin: 2px 0 0;
}

.nearby {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

@media (min-width: 820px) {
    .nearby {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nearby li {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.nearby h3 {
    font-size: 1.15rem;
    color: var(--plum-deep);
}

.nearby p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

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

.call-band .wrap {
    display: grid;
    gap: 26px;
    align-items: center;
}

.call-band h2 {
    color: #fff;
}

.call-band .phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 880px) {
    .call-band .wrap {
        grid-template-columns: 1.2fr 1fr;
    }

    .call-band .phones {
        justify-content: flex-end;
    }
}

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

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

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--plum-deep);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--plum);
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 42, 90, 0.25);
}

.contact-form .btn {
    justify-self: start;
    background: var(--plum);
    color: #fff;
    border: 0;
    cursor: pointer;
}

.contact-form .btn:hover {
    background: var(--plum-deep);
}

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

.contact-sent {
    padding: 16px;
    border-radius: 12px;
    background: #e4f4f2;
    color: #10433f;
    margin-bottom: 16px;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: #9b1c1c;
}

/* ---- legal ---- */

.legal dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.legal dt {
    font-weight: 800;
    color: var(--plum-deep);
}

.legal dd {
    margin: 0;
}

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

.foot {
    background-color: var(--night);
    background-image: var(--lava-grain);
    color: #e6e0ea;
    padding: clamp(48px, 6vw, 80px) 0 24px;
}

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

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    }
}

.foot h2 {
    font-family: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--turq-lit);
    margin-bottom: 12px;
}

.foot a {
    color: var(--white-hot);
}

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

.foot address {
    font-style: normal;
}

.foot-logo {
    width: 130px;
    margin-bottom: 16px;
}

.foot-phones a {
    font-weight: 700;
    font-size: 1.12rem;
}

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

.foot-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: #cfc8d4;
}

.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: 36rem;
}

.not-found img {
    margin: 0 auto 24px;
    width: 180px;
}

.not-found h1 {
    color: #fff;
    font-size: clamp(2rem, 1.5rem + 3vw, 3.4rem);
}

.not-found h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-top: 2rem;
}

@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;
    }
}

/* ---- home: the custom-order card at the end of the bento ---- */

.bento .bento-cta a {
    background: var(--plum);
    background-image: var(--lava-grain), radial-gradient(90% 120% at 100% 100%, rgba(224, 113, 42, 0.45), transparent 60%);
    border-color: var(--plum);
    color: #fff;
    grid-template-rows: 1fr;
    align-items: end;
}

.bento .bento-cta a:hover {
    color: #fff;
}

.bento .bento-cta h3 {
    color: #fff;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.bento .bento-cta p {
    color: #f1e8f1;
}

.bento .bento-cta .go {
    color: var(--white-hot);
}

@media (min-width: 640px) {
    .bento .bento-cta {
        grid-column: 1 / -1;
    }
}

@media (min-width: 980px) {
    .bento .bento-cta {
        grid-column: span 2;
    }
}

@media (min-width: 640px) and (max-width: 979px) {
    .bento .big {
        grid-column: 1 / -1;
    }

    .bento .big .pic img {
        max-height: 420px;
    }
}

/* ---- fixes after the first look ---- */

.bento .big a {
    grid-template-rows: 1fr auto;
}

.bento .big .pic {
    position: relative;
    min-height: 260px;
}

.bento .big .pic img {
    position: absolute;
    inset: 0;
}

.hero h1 {
    font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.3rem);
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 430px) {
    .nav a {
        padding: 8px 4px;
        font-size: 0.93rem;
    }
}

.bento .txt .kicker {
    font-size: 0.74rem;
    margin-bottom: 6px;
}

@media (min-width: 980px) {
    .bento-even {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* small photos of the original are shown at their own size, never enlarged */
.framed a {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.framed img {
    width: auto;
}

.framed figcaption {
    max-width: 30rem;
}
