@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ivory: #faf7f1;
  --ink: #1d1915;
  --muted: #5f5448;
  --line: #dbd1c3;
  --bronze: #805a28;
  --gold: #e7c584;
  --pale-gold: #f1d9a9;
  --coffee: #1c1815;
  --footer: #171412;
  --on-dark: #e1d8cd;
  --gutter: clamp(18px, 4vw, 48px);
  font-family: Manrope, "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  font-weight: 500;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ol { margin: 0; }
body { font-size: 14px; line-height: 1.55; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.055em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
:where(section, footer, main)[id] { scroll-margin-top: 12px; }
.wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 18px;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--ink);
}
/* Frame the artwork to its visible bounds, omitting the transparent margins. */
.brand-mark {
  --brand-canvas: 106px;
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--brand-canvas) * .804);
  height: calc(var(--brand-canvas) * .6602);
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  inset-block-start: calc(var(--brand-canvas) * -.1387);
  inset-inline-start: calc(var(--brand-canvas) * -.1182);
  width: var(--brand-canvas);
  max-width: none;
  height: auto;
}

@media (max-width: 767px) {
  .brand-mark { --brand-canvas: 90px; }
}

.eyebrow { color: var(--bronze); font-size: 12px; font-weight: 800; line-height: 1.45; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.button span { line-height: 1; }
.dark { background: #211b16; color: #fffaf1; }
.gold { background: var(--gold); color: #21190e; }
.button.dark:hover { background: #433428; }
.button.gold:hover { background: var(--pale-gold); }
.button.whatsapp { background: #25d366; color: #102418; }
.button.whatsapp:hover { background: #3de179; }
.button.whatsapp:focus-visible { outline-color: var(--pale-gold); }

.case-header { background: var(--coffee); color: #fffaf1; }
.case-header .wrap, .case-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.case-header .wrap { min-height: 58px; padding-block: 5px; }
.case-header a, .case-footer a, .case-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.case-header a:hover, .case-footer a:hover, .case-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-brand { font-size: 16px; font-weight: 800; }
.case-page { padding-block: 16px 56px; }
.case-back { color: var(--bronze); font-weight: 800; }
.case-intro { display: grid; grid-template-columns: minmax(0, .71fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 5vw, 62px); padding-top: 18px; }
.case-intro h1 { margin-block: 9px 17px; font-size: clamp(34px, 4.2vw, 63px); }
.case-intro p:not(.eyebrow), .case-action p { max-width: 48ch; color: var(--muted); }
.case-cover { width: 100%; height: auto; aspect-ratio: 1.45; border-radius: 16px; object-fit: cover; }
.case-gallery { margin-block: 40px; }
.case-gallery h2, .case-action h2 { font-size: clamp(26px, 2.8vw, 38px); }
.case-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 15px; }
.case-photos img { width: 100%; height: auto; aspect-ratio: 1.28; border-radius: 13px; object-fit: cover; }
.case-photos figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; }
.case-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: #f6eee0; }
.case-action p { margin-top: 8px; }
.case-action .whatsapp:focus-visible { outline-color: var(--ink); }
.case-footer { background: var(--footer); padding-block: 16px; color: var(--on-dark); font-size: 13px; }

@media (max-width: 720px) {
  .case-header, .case-page { font-size: .9375rem; overflow-wrap: anywhere; }
  .case-page { padding-block: 12px 36px; }
  .case-intro { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .case-intro h1 { margin-bottom: 12px; }
  .case-gallery { margin-block: 30px; }
}

@media (max-width: 520px) {
  .case-photos { grid-template-columns: minmax(0, 1fr); }
}
