@font-face {
  font-family: Inter;
  src: url(inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #192f35;
  --secondary: #475955;
  --rule: #d7d9cc;
  --accent: #935a36;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 Inter, Arial, sans-serif; }
h1, h2, h3, p { margin: 0; }
a, button { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .47; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { display: block; width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1280px, calc(100% - 92px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 13px; padding-block: 8px; text-decoration: none; font-size: 22px; font-weight: 680; letter-spacing: -.055em; }
.brand img { height: auto; }
.brand span { border-left: 1px solid var(--rule); padding-left: 13px; line-height: 1; }
.client-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.client-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.introduction { padding: 48px 0 31px; }
h1 { font-size: clamp(41px, 5.2vw, 75px); font-weight: 675; line-height: 1; letter-spacing: -.065em; }
.introduction p { margin-top: 17px; font-size: 19px; color: var(--secondary); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sample { text-decoration: none; position: relative; display: grid; align-content: start; gap: 17px; min-width: 0; padding: 0 0 19px; border: 0; border-bottom: 1px solid var(--rule); text-align: left; background: transparent; }
.stage { min-width: 0; aspect-ratio: 1.33; display: grid; place-items: center; overflow: hidden; background: var(--stage); }
.cover { position: relative; isolation: isolate; overflow: hidden; width: 48%; aspect-ratio: .72; display: flex; flex-direction: column; gap: 8%; padding: 8% 6% 0; box-shadow: -2px 2px 3px #271c171a, 5px 14px 21px #2e221d3b; background: var(--cover); color: var(--cover-ink); container-type: inline-size; transform: rotate(var(--tilt)); transition: transform 180ms ease; }
.sample:hover .cover { transform: rotate(0) translateY(-3px); }
.cover-mark { position: relative; z-index: 1; font-size: max(8px, 7cqw); font-weight: 620; letter-spacing: .09em; line-height: 1.2; }
.cover-title { position: relative; z-index: 1; font-size: 22cqw; font-weight: 650; letter-spacing: -.07em; line-height: .99; }
.cover-art { position: absolute; inset: auto 0 0; height: 40%; }
.profile { --stage: #e4e7e3; --cover: #f4eedc; --cover-ink: #23364f; --tilt: -6deg; }
.profile .cover-art { background: repeating-linear-gradient(125deg, #253d56 0 7%, #47627c 7% 11%, #314b65 11% 17%); clip-path: polygon(0 46%, 35% 0, 100% 42%, 100% 100%, 0 100%); }
.products { --stage: #efe1d8; --cover: #cb6849; --cover-ink: #241b19; --tilt: 5deg; }
.products .cover-art { height: 43%; background: radial-gradient(circle at 28% 100%, #efb895 0 56%, transparent 57%), radial-gradient(circle at 80% 50%, #a94e39 0 46%, transparent 47%), #be5d43; }
.services { --stage: #e2e8db; --cover: #2e5042; --cover-ink: #f4efde; --tilt: -5deg; }
.services .cover-art { background: repeating-radial-gradient(ellipse at 115% 115%, transparent 0 8px, #aacc9b 9px 10px, transparent 11px 17px); }
.caption { display: flex; flex-direction: column; gap: 3px; padding-right: 33px; }
.sample-title { font-size: 21px; line-height: 1.2; font-weight: 680; letter-spacing: -.035em; }
.sample:hover .sample-title { text-decoration: underline; text-underline-offset: 4px; }
.sample-description { font-size: 15px; line-height: 1.45; color: var(--secondary); }
.book-icon { position: absolute; bottom: 42px; right: 3px; }

.client-review { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.2fr) auto; gap: 27px; align-items: center; margin-top: 32px; padding: 22px 25px; background: #eeeee4; border: 1px solid var(--rule); }
.review-heading { display: flex; align-items: center; gap: 11px; }
.review-heading h2 { font-size: 19px; line-height: 1.25; font-weight: 680; letter-spacing: -.025em; }
.client-review p { color: var(--secondary); }
.client-review a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-underline-offset: 4px; }
footer { padding-block: 24px; font-size: 14px; color: var(--secondary); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 28px); padding: 0 20px 7px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 10px 50px #192f3545; }
dialog::backdrop { background: #253733a1; }
.reader-header, .reader-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; }
.reader-header h2 { font-size: 19px; font-weight: 680; }
.reader-header button, .reader-controls button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; font-weight: 650; }
.reader-header button:hover, .reader-controls button:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }
#reader-context { font-size: 15px; line-height: 1.4; color: var(--secondary); margin-bottom: 10px; }
.page-surface { background: #e9e6dd; padding: 8px; text-align: center; }
#brochure-page { display: block; width: auto; max-width: 100%; height: auto; max-height: min(75dvh, calc(100dvh - 230px)); margin: auto; box-shadow: 0 2px 7px #28352a21; }
.reader-controls label { font-size: 15px; }
.reader-controls select { min-height: 44px; padding: 0 3px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; }
#reader-pdf { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-underline-offset: 4px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 460px) {
  dialog { padding-inline: 10px; width: calc(100% - 16px); }
  .page-surface { padding: 4px; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .client-review { gap: 8px 20px; grid-template-columns: minmax(0, 1fr) auto; }
  .client-review p { grid-row: 2; }
  .client-review a { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .top { min-height: 60px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand span { padding-left: 8px; }
  .brand img { width: 39px; }
  .client-link { font-size: 14px; }
  .introduction { padding: 28px 0 20px; }
  h1 { font-size: clamp(36px, 10.2vw, 53px); }
  .introduction p { font-size: 16px; margin-top: 10px; }
  .gallery { display: block; border-top: 1px solid var(--rule); }
  .sample { width: 100%; grid-template-columns: 107px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 1px 10px 0; }
  .stage { aspect-ratio: 1.12; }
  .cover { width: 60%; padding: 8% 7% 0; }
  .cover-mark { font-size: 7cqw; }
  .caption { padding-right: 0; }
  .sample-title { font-size: 18px; }
  .sample-description { font-size: 14px; }
  .book-icon { position: static; width: 19px; height: 19px; }
  .client-review { display: block; margin-top: 20px; padding: 14px 13px 9px; }
  .review-heading { gap: 8px; }
  .review-heading h2 { font-size: 18px; }
  .client-review p { margin-top: 8px; font-size: 15px; }
  .client-review a { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover { transition: none; }
}
