:root {
  --paper: #fcfbf9;
  --blush: #f4e1dc;
  --sage: #dde7d9;
  --sky: #d9e7ee;
  --lilac: #e7e0ed;
  --butter: #f7eed5;
  --ink: #3e3743;
  --muted: #655d6a;
  --mauve: #85546a;
  --edge: rgb(62 55 67 / .14);
  --gutter: clamp(1rem, 4vw, 3rem);
  --display: "Bellefair", "Assistant", Georgia, serif;
  --body: "Assistant", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 11vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 8vw, 3.75rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.tint-blush { background-color: var(--blush); }
.tint-sage { background-color: var(--sage); }
.tint-sky { background-color: var(--sky); }
.tint-lilac { background-color: var(--lilac); }
.tint-butter { background-color: var(--butter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 3.75rem; padding: .25rem var(--gutter); background: var(--paper); border-block-end: 1px solid var(--edge); }
.logo { grid-column: 2; grid-row: 1; display: grid; justify-items: center; text-decoration: none; line-height: 1.05; }
.logo span { font-family: var(--display); font-size: 1.75rem; }
.logo small { color: var(--muted); font-size: .9rem; }
.language { grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; text-underline-offset: 4px; }
.main-nav { display: none; }
.menu { grid-column: 1; grid-row: 1; justify-self: start; }
.menu summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; list-style: none; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: fixed; inset: 3.8rem 0 0; display: grid; align-content: start; gap: .25rem; padding: 2rem var(--gutter); overflow-y: auto; background: var(--blush); }
.menu nav a { padding: .35rem 0; font-family: var(--display); font-size: 2.5rem; line-height: 1.2; text-decoration: none; }
[aria-current="page"] { color: var(--mauve); }

/* Buttons and links */
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .5rem 1.75rem; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--mauve); }
.text-link { display: inline-block; padding-block: .35rem; color: var(--mauve); font-weight: 600; text-underline-offset: 5px; }

/* Matted prints */
.print { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: rgb(255 255 255 / .55); }
.print img { width: 100%; height: 100%; object-fit: cover; }
.mat { display: block; padding: clamp(.875rem, 3.5vw, 2.25rem); }

/* Homepage opening */
.hero { padding: .75rem .75rem 0; background: var(--blush); }
.hero-print { overflow: hidden; height: min(62svh, 34rem); background: linear-gradient(165deg, #fff 0%, var(--sky) 55%, var(--sage) 100%); }
.hero-print img { width: 100%; height: 100%; object-fit: cover; }
.hero-label { position: relative; margin: -3.5rem 0 0; margin-inline-end: 4.5rem; padding: 1.25rem .5rem 1.75rem; padding-inline-end: 1rem; background: var(--blush); }
.hero-label h1 { margin-bottom: .5rem; font-size: clamp(2.75rem, 5vw, 4.5rem); }
.hero-label p { margin-bottom: 0; color: var(--muted); font-size: 1.25rem; }
.hero-label .button { display: none; }

/* Introduction */
.intro, .about { display: grid; gap: 2rem; width: min(100%, 72rem); margin: 0 auto; padding: 3.5rem var(--gutter); align-items: center; }
.prose { max-width: 34rem; }
.prose h1, .prose h2 { margin-bottom: 1rem; }
.prose p:last-of-type { margin-bottom: 1.25rem; }

/* Services */
.services-band { padding-block: 3.5rem; background: linear-gradient(var(--paper), var(--paper)); }
.services-band > h2, .services-band > p { padding-inline: var(--gutter); }
.services-band > h2 { margin-bottom: .5rem; }
.services-band > p { max-width: 38rem; margin-bottom: 1.75rem; color: var(--muted); }
.service-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 19rem); gap: .875rem; padding: .25rem var(--gutter) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.service-grid li { scroll-snap-align: start; }
.mat-card { display: block; height: 100%; padding: .875rem .875rem 0; text-decoration: none; }
.service-name { display: flex; align-items: center; min-height: 4rem; font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.mat-card:hover .service-name { color: var(--mauve); }

.page-head { padding: 3rem var(--gutter) 1rem; }
.page-head p { max-width: 38rem; margin: .75rem 0 0; color: var(--muted); }
.service-list { display: grid; gap: 3rem; width: min(100%, 72rem); margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.service-list article { display: grid; gap: 1.25rem; align-items: center; }
.service-list .print { aspect-ratio: 5 / 4; }
.service-list h2 a { text-decoration: none; }
.service-list p:last-of-type { margin-bottom: .5rem; }

/* Service page */
.service-head { display: grid; }
.service-cover { aspect-ratio: 4 / 5; max-height: 70svh; overflow: hidden; background: rgb(255 255 255 / .5); }
.service-cover img { width: 100%; height: 100%; object-fit: cover; }
.service-head .prose { padding: 2rem var(--gutter) 2.5rem; }
.service-head .button { display: none; }
.service-cover:empty { display: none; }

/* Gallery */
.gallery-section { padding: 1.5rem .75rem 3.5rem; }
.gallery { column-count: 2; column-gap: .5rem; width: min(100%, 80rem); margin: 0 auto; }
.gallery a { display: block; margin-bottom: .5rem; break-inside: avoid; }
.gallery-single { column-count: 1; width: min(100%, 44rem); }
.empty, .after-gallery { text-align: center; }
.after-gallery { margin: 1.5rem 0 0; }

/* Contact */
.contact-lead { padding: 3rem var(--gutter); }
.contact-lead p { max-width: 32rem; margin: 1rem 0 1.5rem; }
.contact-lead .button { width: 100%; }
.contact-form { width: min(100%, 38rem); margin: 0 auto; padding: 2.5rem var(--gutter) 3.5rem; }
.contact-form h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 7vw, 3rem); }
.contact-form form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .25rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 3rem; padding: .6rem .75rem; border: 1px solid #a39ca8; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; }
.contact-form .button { width: 100%; }
[dir="rtl"] .contact-form input[dir="ltr"] { text-align: right; }
.hint { margin: -.5rem 0 0; color: var(--muted); font-size: 1rem; }
.notice { padding: .75rem 1rem; background: var(--sage); }
.notice-error { background: var(--blush); }
.trap { position: absolute; inset-inline-start: -100vw; }

/* Footer and phone actions */
.site-footer { display: grid; gap: .75rem; justify-items: center; padding: 2.5rem var(--gutter) 6.5rem; background: var(--lilac); text-align: center; }
.footer-name { margin: 0; font-family: var(--display); font-size: 1.75rem; }
.footer-links { display: grid; gap: .25rem; justify-items: center; }
.footer-links a { padding: .3rem .5rem; text-underline-offset: 4px; }
.quick-bar { position: fixed; inset: auto 0 0; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--paper); border-block-start: 1px solid var(--edge); }
.quick-bar a { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; border: 1px solid var(--ink); font-weight: 600; text-decoration: none; }
.quick-bar .button { border-color: var(--ink); }
body:has(.menu[open]) .quick-bar { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-label { animation: label-settle .7s ease-out both; }
  @keyframes label-settle { from { opacity: 0; transform: translateY(1rem); } }
}

@media (min-width: 800px) {
  .site-header { min-height: 4.5rem; }
  .menu { display: none; }
  .main-nav { grid-column: 1; grid-row: 1; display: flex; gap: 1.25rem; font-size: 1rem; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
  .main-nav a:hover { color: var(--mauve); }
  .logo span { font-size: 2rem; }

  .hero { position: relative; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) 0; }
  .hero-print { height: min(82svh, 46rem); }
  .hero-label { position: absolute; inset-block-end: 0; inset-inline-start: clamp(1.25rem, 3vw, 2.5rem); width: min(48%, 38rem); margin: 0; padding: 2.25rem 2.75rem 2.5rem; }
  .hero-label p { margin-bottom: 1.25rem; }
  .hero-label .button { display: inline-flex; }

  .intro, .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 6rem); padding-block: 6rem; }
  .services-band { padding-block: 2rem 6rem; }
  .services-band > h2, .services-band > p { width: min(100%, 80rem); max-width: none; margin-inline: auto; }
  .service-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; width: min(100%, 80rem); margin: 0 auto; padding-block: 0; overflow: visible; }
  .mat-card { padding: 1.125rem 1.125rem 0; }

  .page-head { width: min(100%, 72rem); margin: 0 auto; padding-top: 4.5rem; }
  .service-list { gap: 5rem; padding-block: 3rem 6rem; }
  .service-list article { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .service-list article:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .service-list article:nth-child(even) .mat { order: 2; }

  .service-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .service-cover { aspect-ratio: auto; height: min(82svh, 46rem); max-height: none; }
  .service-head .prose { padding: 3rem clamp(2rem, 5vw, 4.5rem); }
  .service-head .button { display: inline-flex; }

  .gallery-section { padding: 3rem var(--gutter) 5rem; }
  .gallery { column-count: 3; column-gap: 1rem; }
  .gallery-pair { column-count: 2; width: min(100%, 60rem); }
  .gallery-single { column-count: 1; }
  .gallery a { margin-bottom: 1rem; }

  .contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100svh - 4.5rem); }
  .contact-layout:not(:has(.contact-form)) { grid-template-columns: 1fr; min-height: 60svh; }
  .contact-lead { display: grid; align-content: center; justify-items: start; padding: 4rem clamp(2rem, 6vw, 5rem); }
  .contact-lead .button { width: auto; }
  .contact-form { align-self: center; padding: 4rem var(--gutter); }

  .site-footer { padding-bottom: 2.5rem; }
  .quick-bar { display: none; }
}
