:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #261e18;
  --dark: #241e18;
  --muted: #64574c;
  --sand: #e6d2b6;
  --accent: #b87848;
  --line: #ded3c4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #bc6e35; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .card h3 { font: 400 1em/1.01 var(--serif); }
.shell { width: min(100% - 3.5rem, 78rem); margin-inline: auto; }
.skip { position: fixed; top: .6rem; left: .7rem; transform: translateY(-150%); padding: .7rem 1rem; background: white; z-index: 5; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top { background: var(--dark); color: var(--paper); border-bottom: 1px solid #4a3c30; }
.header-inner { min-height: 5.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex-direction: column; width: fit-content; color: inherit; text-decoration: none; }
.brand strong { font: 400 2rem/.9 var(--serif); letter-spacing: .13em; }
.brand span { margin-top: .42rem; font-size: .875rem; line-height: 1.3; }
nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
nav a, .top-cta { text-decoration: none; font-size: .9375rem; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.top-cta { border: 1px solid #8e7259; color: var(--sand); padding: .55rem 1rem; text-align: center; }
.top-cta:hover, .outline:hover { background: #4b382a; }
.hero { background: var(--dark); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #824721; line-height: 1.45; }
.eyebrow span { display: block; flex: 0 0 1.55rem; height: 1px; background: currentColor; }
.hero .eyebrow, .workshop .eyebrow { color: #dfb38b; }
h1 { font-size: clamp(3.65rem, 6.7vw, 6.65rem); letter-spacing: -.027em; margin-block: 1.1rem 1.25rem; }
h1 em { color: #d9af88; }
.hero-description { max-width: 34ch; color: #e2d9ce; margin-bottom: 1.55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; text-align: center; width: fit-content; min-height: 2.95rem; padding: .63rem 1.15rem; border: 1px solid transparent; text-decoration: none; font-size: .9375rem; font-weight: 700; transition: background-color .18s ease; }
.light { background: var(--sand); color: var(--ink); }
.light:hover { background: #f3e0c5; }
.dark { color: white; background: #31241b; }
.dark:hover { background: #58402d; }
.outline { color: var(--sand); border-color: #a7896c; }
.outline-dark { border-color: #8b735f; color: var(--ink); background: transparent; }
.outline-dark:hover { background: #e8dccd; }
.hero-figure { background: #332920; border: 1px solid #604d3e; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: cover; }
.hero-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding: .8rem 1rem; color: #f0e8df; font-size: .875rem; }
.hero-figure figcaption span:last-child { color: #ddba98; }
.catalog { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-heading { display: grid; grid-template-columns: 1fr .55fr; align-items: end; gap: 1rem 3rem; margin-bottom: 1.7rem; }
h2 { font-size: clamp(2.8rem, 5vw, 4.75rem); letter-spacing: -.023em; }
.section-heading h2, .contact h2, .workshop h2 { margin-top: .45rem; }
.section-heading > p, .contact p:not(.eyebrow) { color: var(--muted); max-width: 39ch; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.filters button { padding: .46rem .85rem; border: 1px solid #bbae9f; background: transparent; color: var(--ink); font-size: .9rem; min-height: 2.6rem; }
.filters button:hover { background: #eee4d6; }
.filters button[aria-pressed="true"] { background: var(--dark); color: white; border-color: var(--dark); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card { border: 1px solid var(--line); background: #fffcf6; }
.card-link { display: block; text-decoration: none; }
.card-image { overflow: hidden; background: #e1d5c5; }
.card img { width: 100%; aspect-ratio: 1.4; height: auto; object-fit: cover; transition: transform .22s ease; }
.card-link:hover img { transform: scale(1.04); }
.image-poster img { object-position: 50% 52%; }
.image-liturgico img { object-position: 50% 30%; }
.card-copy { padding: 1.15rem 1.25rem 1.25rem; }
.card-kind { color: #85512c; font-size: .875rem; font-weight: 700; }
.card h3 { font-size: clamp(1.85rem, 3vw, 2.45rem); margin-block: .24rem .35rem; }
.material { color: var(--muted); }
.card-action { display: inline-block; margin-top: .8rem; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .28em; }
.workshop { background: #31271e; color: var(--paper); padding-block: clamp(3rem, 6vw, 5rem); }
.workshop-inner { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.workshop img { width: 100%; height: auto; aspect-ratio: 1.27; object-fit: cover; object-position: center 45%; }
.workshop h2 { margin-bottom: 1rem; }
.workshop p:not(.eyebrow) { color: #e6dbcf; margin-bottom: .85rem; max-width: 52ch; }
.workshop .button { margin-top: .45rem; }
.contact { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 7vw, 6rem); align-items: start; }
.contact h2 { margin-bottom: .85rem; }
.contact .contact-link { margin-top: 1.3rem; margin-right: .75rem; }
.profile-link { display: inline-block; margin-top: .7rem; text-underline-offset: .2em; font-size: .9375rem; }
#quote-form { background: #eee5d8; padding: 1.5rem; border: 1px solid var(--line); }
#quote-form h3 { font-family: var(--serif); font-size: 2.05rem; font-weight: 400; margin-bottom: .55rem; }
#quote-form label { display: block; font-weight: 700; margin-bottom: .25rem; }
#quote-form label span { font-size: .875rem; font-weight: 400; }
#quote-form input, #quote-form textarea { width: 100%; border: 1px solid #a89581; color: var(--ink); background: #fffcf6; padding: .53rem .65rem; border-radius: 0; }
#quote-form input { margin-bottom: .75rem; }
.quote-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
#draft-instagram { margin-top: .4rem; }
#draft { margin-top: .85rem; }
#quote-status:not(:empty) { margin-top: .45rem; }
footer { background: var(--dark); color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.7rem; }
.footer-details, .footer-links { font-size: .9rem; }
.footer-details p + p { margin-top: .2rem; color: var(--sand); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; text-underline-offset: .2em; }
dialog { width: min(38rem, 100% - 1.5rem); max-height: 92dvh; border: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(31 23 17 / .72); }
.dialog-inner { position: relative; }
.dialog-close { position: absolute; top: .65rem; right: .65rem; width: 2.65rem; height: 2.65rem; font-size: 1.7rem; line-height: 1; border: 1px solid #c9b8a6; background: #fffaf3; color: var(--ink); }
.dialog-image { width: 100%; height: min(40dvh, 23rem); object-fit: contain; background: #e7ded3; }
.dialog-copy { padding: 1.25rem 1.5rem; }
.dialog-copy h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-block: .25rem; }
#dialog-description { margin-block: .65rem 1rem; }
.dialog-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
@media (max-width: 58rem) {
  .hero-inner { gap: 1.75rem; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-figure img { aspect-ratio: 1.1; }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 0; padding-block: .9rem .65rem; flex-wrap: wrap; gap: .65rem; }
  nav { order: 3; flex-basis: 100%; padding-top: .55rem; border-top: 1px solid #4a3c30; }
  .hero-inner, .section-heading, .workshop-inner, .contact { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.7rem; }
  .hero-figure img { aspect-ratio: 1.6; }
  .projects { gap: .8rem; }
  .card-copy { padding: .7rem .75rem .85rem; }
  .card h3 { font-size: 1.75rem; }
  .material { font-size: .9375rem; }
}
@media (max-width: 25rem) {
  .projects { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.9rem, 13vw, 3.65rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
