:root {
    color-scheme: light;
    --paper: #fcfaf8;
    --white: #fff;
    --ink: #29232d;
    --muted: #5d535f;
    --purple: #652384;
    --pink: #e5257a;
    --accent: #dd1f74;
    --accent-ink: var(--purple);
    --wash: #f4edf5;
    --line: #e4dbe4;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
main { flex: 1; }
a { color: inherit; text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 5.4vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(2.05rem, 3.7vw, 3.35rem); line-height: 1.08; }
h3 { font-size: 1.15rem; line-height: 1.3; }
em { color: var(--accent-ink); font-weight: 400; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 6.5vw, 5.5rem); }
.narrow { max-width: 53rem; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--white); z-index: 2; transform: translateY(-180%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.bar { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; text-decoration: none; }
.brand-mark { position: relative; width: 2.65rem; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.brand-mark img { position: absolute; top: 0; left: -69%; width: 470%; max-width: none; height: auto; }
.brand-name { font-size: .96rem; font-weight: 750; line-height: 1.15; }
.brand-name small { display: block; margin-top: .22rem; color: var(--purple); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem clamp(.8rem, 2.8vw, 2.5rem); font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, nav [aria-current] { text-decoration: underline; }
.header nav [aria-current] { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.nav-contact { display: inline-flex; align-items: center; color: var(--purple); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: .55rem; }
.nav-contact:hover, .nav-contact[aria-current] { background: var(--wash); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.8rem, 4.7vw, 4rem); padding-block: clamp(2.35rem, 5.8vw, 5.2rem); }
.hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.35rem); }
.hero h1 em { display: block; text-wrap: balance; }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 38ch; margin-top: 1.2rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.35rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-height: 2.8rem; border: 1px solid transparent; border-radius: .65rem; padding: .65rem 1.1rem; background: var(--accent); color: #fff; font-weight: 680; text-align: center; text-decoration: none; }
.button:hover { box-shadow: inset 0 0 0 2px rgb(255 255 255 / 45%); }
.text-link { border: 0; background: transparent; padding: .25rem 0; color: var(--accent-ink); font-weight: 680; text-decoration: underline; }
.hero-art {
    position: relative;
    isolation: isolate;
    justify-self: center;
    width: min(75%, 18.75rem);
    aspect-ratio: 1152 / 1503;
    overflow: hidden;
    background: var(--paper);
}
.hero-art-matte {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
}
.hero-art img {
    position: absolute;
    inset: 0 auto auto 0;
    width: 177.778%;
    max-width: none;
    height: auto;
    filter: brightness(1.035);
    /* Follow the white edge around the slogan so the entire oval stays visible. */
    clip-path: polygon(
        0.00% 0.00%, 49.32% 0.00%, 49.32% 58.08%, 50.05% 58.55%,
        51.61% 59.88%, 53.08% 61.54%, 54.15% 63.21%, 54.93% 64.87%,
        55.47% 66.53%, 55.81% 68.20%, 55.91% 69.86%, 55.86% 71.52%,
        55.66% 73.19%, 55.32% 74.85%, 54.74% 76.51%, 54.00% 78.18%,
        53.13% 79.84%, 52.05% 81.50%, 50.78% 83.17%, 49.56% 84.50%,
        49.32% 84.83%, 49.32% 100.00%, 0.00% 100.00%
    );
}
.services { background: var(--white); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-grid article, .panel { border: 1px solid var(--line); border-radius: .9rem; background: var(--white); padding: clamp(1.1rem, 2.6vw, 1.8rem); min-width: 0; }
.service-grid article { display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); }
.service-grid p { margin-top: .55rem; color: var(--muted); }
.service-link { margin-top: auto; padding-top: .85rem; }
.service-page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.service-page h1 { font-size: clamp(2.6rem, 4.8vw, 4.35rem); text-wrap: balance; }
.service-back { display: inline-block; margin-bottom: .8rem; }
.service-description { max-width: 58ch; margin-top: 1.4rem; }
.service-description h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: normal; line-height: 1.3; }
.service-description p { margin-top: .45rem; color: var(--muted); }
.service-steps ol { margin: 1rem 0 0; padding-left: 1.3rem; color: var(--muted); }
.service-steps li + li { margin-top: .85rem; }
.service-steps li::marker { color: var(--purple); font-weight: 700; }
.service-symbol { display: grid; place-content: center; height: 2.5rem; width: 2.5rem; margin-bottom: .85rem; border-radius: .65rem; background: var(--wash); color: var(--purple); }
.service-symbol svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pgb-note { margin-top: 1.45rem; font-size: .9rem; line-height: 1.55; }
.pgb-note h3 { font-size: 1rem; }
.pgb-note p { max-width: 72ch; margin-top: .25rem; color: var(--muted); }
.business-block { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.35rem 2rem; padding: clamp(1.35rem, 4vw, 3rem); background: var(--wash); border-radius: 1rem; }
.business-block h2 { max-width: 23ch; color: var(--purple); }
.business-block p { max-width: 54ch; margin-top: .9rem; color: var(--muted); }
.footer { background: var(--accent); color: var(--white); padding-block: .65rem; font-size: .75rem; text-align: center; }
.footer a { white-space: nowrap; }
.footer a:focus-visible { outline-color: var(--white); }
.contact-details a { display: block; width: fit-content; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(1.8rem, 6vw, 5rem); align-items: start; }
.contact-layout h1 { font-size: clamp(3rem, 6vw, 5.3rem); }
.contact-details { font-style: normal; margin-top: 1.5rem; }
.contact-details a { color: var(--accent-ink); font-weight: 650; }
.contact-details p { margin-top: .75rem; }
.panel h2 { font-size: clamp(1.85rem, 3.8vw, 2.8rem); }
.stack { display: grid; gap: 1rem; margin-top: 1.1rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; background: var(--paper); color: var(--ink); border: 1px solid #a98ca8; border-radius: .55rem; padding: .62rem .7rem; }
textarea { resize: vertical; }
.small, small { color: var(--muted); font-size: .87rem; }
.notice { margin-top: .9rem; padding: .7rem .9rem; background: var(--wash); border-radius: .45rem; }
.error { background: #f8e8e0; color: #782717; }
.price-table { width: 100%; border-collapse: collapse; margin: 2rem 0 2.4rem; text-align: left; }
.price-table caption { text-align: left; color: var(--accent-ink); font-size: 1.3rem; font-weight: 700; margin-bottom: .3rem; }
.price-table th, .price-table td { border-bottom: 1px solid var(--line); padding: .7rem .45rem; }
.price-table th { overflow-wrap: anywhere; }
.price-table thead { color: var(--muted); font-size: .875rem; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table small { display: block; font-weight: 400; }
.price-table td small { white-space: normal; overflow-wrap: anywhere; }
.admin { max-width: 64rem; padding-top: clamp(2.4rem, 5vw, 4rem); }
.admin h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; font-size: clamp(2rem, 4vw, 3.15rem); }
.admin h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.4rem, 3vw, 2rem); }
.admin .login { max-width: 27rem; }
.admin section { margin-top: 2.25rem; }
.admin .panel { margin-top: .8rem; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.admin-tabs { justify-content: flex-start; gap: 0 .25rem; }
.admin-tabs a { padding: .65rem .8rem; border-bottom: 3px solid transparent; }
.admin-tabs a[aria-current] { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.admin-toolbar, .publish-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.admin-toolbar { justify-content: space-between; }
.publish-bar strong { margin-right: auto; }
.catalog-filter, .row-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem 1rem; }
.catalog-filter { margin-top: 1rem; }
.catalog-filter label { min-width: min(100%, 15rem); }
.catalog-filter button { margin-bottom: .55rem; }
.admin-hint { margin-top: 1rem; }
.admin .catalog-list { padding: 0; overflow-wrap: anywhere; }
.article-list { list-style: none; }
.sort-row + .sort-row, .catalog-list form + form { border-top: 1px solid var(--line); }
.sort-row { display: flex; align-items: center; }
.sort-row > a, .sort-row > form { flex: 1; min-width: 0; }
.sort-controls { display: flex; align-items: center; gap: .2rem; padding-left: .65rem; flex-shrink: 0; }
.sort-controls[hidden] { display: none; }
.sort-controls button, .sort-handle { display: grid; place-items: center; min-width: 1.7rem; min-height: 2rem; border: 0; border-radius: .35rem; background: transparent; color: var(--accent-ink); }
.sort-controls button:hover, .sort-handle:hover { background: var(--wash); }
.sort-controls button[aria-disabled="true"] { opacity: .35; cursor: default; }
.sort-handle { cursor: grab; font-size: 1.25rem; }
.sort-handle:active { cursor: grabbing; }
.is-dragging { opacity: .5; }
.drop-before { box-shadow: inset 0 3px var(--accent); }
.drop-after { box-shadow: inset 0 -3px var(--accent); }
.article-group { margin-top: 1.5rem; }
.order-form { margin-top: .65rem; }
.order-form button:disabled { opacity: .5; cursor: default; }
.article-list a { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1.25rem; padding: .8rem 1.2rem; text-decoration: none; }
.article-list a:hover { background: var(--wash); border-radius: .55rem; }
.article-list a:focus-visible { outline-offset: -4px; }
.article-list small { display: block; }
.article-list a > span:last-child { text-align: right; flex-shrink: 0; }
.category-row, .editor-grid { display: grid; align-items: end; gap: .85rem 1rem; }
.category-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.category-row > .small { align-self: center; }
.catalog-list form { padding: 1rem 1.2rem; }
.editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-grid .row-actions { grid-column: 1 / -1; }
.price-row { grid-template-columns: minmax(6rem, .55fr) repeat(2, minmax(0, 1fr)); }
.price-row label small { font-weight: 400; }
.price-row label:first-of-type input { margin-top: auto; }
.admin summary { font-weight: 700; }
.admin summary small { margin-left: .6rem; font-weight: 400; }
.danger { background: transparent; border: 1px solid #ad7669; color: #862f21; border-radius: 2rem; padding: .6rem .9rem; font-weight: 650; }
.danger:hover { background: #f8e8e0; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: .8rem; }
.message-body ~ form { margin-top: .75rem; }
.narrow > h1 + p { margin-top: 1rem; }
.legal h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.legal section { margin-top: 2rem; }
.legal p, .legal address { margin-top: .65rem; color: var(--muted); }
.legal address { font-style: normal; }
.legal a { color: var(--purple); }

@media (max-width: 860px) {
    .hero { gap: 1.8rem; }
    .hero .actions { align-items: start; flex-direction: column; }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .hero, .contact-layout, .service-grid, .service-page { grid-template-columns: 1fr; }
    .hero-art { width: min(75%, 15rem); }
    .hero .actions { flex-direction: column; align-items: flex-start; gap: .65rem; }
    .hero .actions .button { min-height: 2.75rem; }
    .bar { gap: .75rem; }
    .brand { gap: .45rem; }
    .brand-mark { width: 2.5rem; }
    .brand-name { font-size: .85rem; }
    nav { font-size: .89rem; }
    .category-row, .editor-grid, .price-row { grid-template-columns: 1fr; }
    .admin-tabs a { padding-inline: .5rem; }
    .sort-controls { gap: 0; padding-left: .35rem; }
    .sort-controls button { min-width: 2rem; min-height: 2.75rem; }
}
@media (max-width: 440px) {
    .bar { align-items: flex-start; flex-direction: column; gap: .35rem; padding-block: .65rem .4rem; }
    .header nav { justify-content: flex-start; width: 100%; gap: .35rem 1rem; }
    .header nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
    .nav-contact { border-color: transparent; padding-inline: 0; }
    .service-grid article { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .85rem; }
    .service-symbol { grid-row: span 3; margin: 0; }
    .service-grid p { margin-top: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
