@font-face {
  font-family: Bricolage;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "DM Serif";
  src: url("fonts/dm-serif-display-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #391a25;
  --wine: #552237;
  --maroon: #582336;
  --rust: #a53e29;
  --butter: #f8e8a8;
  --paper: #fff9ed;
  --peach: #f4b28e;
  --fine: #d8bfaf;
  --gutter: clamp(20px,5vw,90px);
  --display: Bricolage,Arial,sans-serif;
  font: 100%/1.5 "DM Sans",Arial,sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 18px;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote, fieldset { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #197068; outline-offset: 4px; }
.results :focus-visible,footer :focus-visible { outline-color: var(--butter); }
.receipt :focus-visible { outline-color: #197068; }
.sr, .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: fixed; top: 10px; left: 12px; z-index: 10; padding: 10px 16px; background: var(--paper); }
.shell { max-width: 1500px; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, .wordmark { font-family: var(--display); font-optical-sizing: auto; }
h1, h2, h3 { text-wrap: balance; }
h1 em, h2 em, h3 em, .feed-art em, .story-art em { font: italic 400 1.08em/.85 "DM Serif",Georgia,serif; letter-spacing: -.061em; }
h2 { font-size: clamp(2.8rem,5.4vw,5.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 710; }
.mast, .hero { background: var(--butter); }
.mast { border-bottom: 1px solid #ad8f5f; }
.mast-inner, .mast nav, .foot { display: flex; align-items: center; }
.mast-inner { min-height: 76px; gap: clamp(12px,1.7vw,26px); }
.wordmark { display: inline-block; white-space: nowrap; font-size: clamp(1.75rem,2.5vw,2.45rem); line-height: 1; font-weight: 750; letter-spacing: -.04em; word-spacing: .025em; }
.wordmark span { color: var(--rust); }
.profession { padding-left: clamp(12px,1.7vw,26px); border-left: 1px solid #b49762; color: #664535; font-size: .88rem; }
.mast nav { margin-left: auto; gap: clamp(15px,2.6vw,44px); font-size: .94rem; }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mast nav a:not(.nav-brief):hover, .foot a:hover { text-decoration: underline; text-underline-offset: .25em; }
.mast nav .nav-brief { min-height: 39px; border: 1px solid var(--wine); padding: 6px 16px; border-radius: 4px; font-weight: bold; }
.mast nav .nav-brief:hover { color: var(--paper); background: var(--wine); }
.hero { border-bottom: 1px solid #bca472; }
.hero-layout {
  display: grid; align-items: center; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(26px,4vw,74px); padding-block: clamp(36px,4.7vw,80px) clamp(32px,4.3vw,70px);
}
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: clamp(3rem,7.4vw,7.6rem); font-size: clamp(2.75rem,20cqw,7.6rem); font-weight: 720; font-variation-settings: "opsz" 48; line-height: .93; letter-spacing: -.028em; }
.hero h1 span { display: block; white-space: nowrap; width: max-content; max-width: 100%; }
.hero h1 span+span { margin-top: .04em; }
.hero h1 em { color: var(--rust); }
.hero-copy > p { max-width: 37ch; margin: clamp(22px,2.4vw,38px) 0 25px; font-size: clamp(1.02rem,1.3vw,1.22rem); line-height: 1.45; color: #503335; text-wrap: pretty; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid var(--wine); border-radius: 4px; font: 680 .98rem/1.3 var(--display); }
.solid { background: var(--wine); color: #fff6de; box-shadow: 3px 3px 0 #b96145; }
.solid:hover { background: #6c2b43; }
.window-figure { --travel: clamp(16px,1.85vw,30px); min-width: 0; }
.window-mount { position: relative; isolation: isolate; padding: var(--travel) 9px var(--travel) 0; }
.window-mount::before { content: ''; position: absolute; inset: calc(var(--travel) * 1.4) 0 calc(var(--travel) * .53) 13px; z-index: -1; background: #cf794c; transform: translateY(calc(var(--drift,0) * var(--depth,var(--travel)) * -.38)); }
.window-print { transform: translateY(calc(var(--drift,0) * var(--depth,var(--travel)))); }
.window-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; border-top: 1px solid #ad8f5f; color: #604435; font-size: .86rem; }
.motion-toggle, .text-button { border: 0; background: transparent; font: 620 .9rem/1.3 var(--display); text-decoration: underline; text-underline-offset: 4px; }
.motion-toggle { min-height: 40px; padding: 5px 0 5px 10px; color: #533232; white-space: nowrap; }
.motion-toggle:hover, .text-button:hover { color: var(--rust); }
.motion-toggle::before { content: ''; display: inline-block; height: .7em; width: .44em; margin-right: 7px; border-inline: 2px solid currentColor; }
:root[data-motion="off"] .motion-toggle::before { border: 1.5px solid currentColor; border-radius: 50%; width: .66em; }

.work { padding-block: clamp(48px,5.4vw,88px) clamp(46px,5vw,78px); }
.work-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.work-heading > p { max-width: 35ch; margin-bottom: 2px; color: #62454b; }
.piece-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 26px 0 18px; border: 1px solid var(--fine); border-radius: 5px; padding: 4px; }
.piece-tabs a { display: grid; place-items: center; min-height: 40px; padding: 6px clamp(13px,1.7vw,26px); border-radius: 2px; font: 630 .95rem/1.3 var(--display); }
.piece-tabs a:hover { background: #f4dfcd; }
.piece-tabs a[aria-selected="true"] { background: var(--wine); color: #fff5e4; }
.case-panel { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: stretch; border: 1px solid var(--fine); margin-bottom: 18px; background: #fffdf7; }
.pieces-ready .case-panels { display: grid; isolation: isolate; }
.pieces-ready .case-panel { grid-area: 1/1; margin: 0; }
.pieces-ready .case-panel[inert] { pointer-events: none; }
.proof-board { min-width: 0; display: grid; place-items: center; min-height: clamp(360px,34vw,490px); padding: clamp(24px,2.6vw,42px); }
.board-feed { background: #d98e70; }
.board-window { background: #c5d2bd; }
.board-story { background: #dbb8cb; }
.feed-art { position: relative; width: min(100%, clamp(207px,18.8vw,286px)); background: #f8e8a8; border: 1px solid #6d3829; box-shadow: 6px 7px 0 #7039294a; transform: rotate(-2deg); }
.feed-art img { aspect-ratio: 4/5; object-fit: contain; }
.feed-art figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 8px 9px; background: #f8e8a8; }
.story-art figcaption { padding: 11px 14px 14px; }
.feed-art strong, .story-art strong { display: block; font: 720 clamp(1.9rem,3.15vw,3.18rem)/.94 var(--display); letter-spacing: -.035em; }
.feed-art figcaption span, .story-art figcaption span { display: block; margin-top: 8px; font: 620 clamp(.78rem,.94vw,.92rem)/1.3 var(--display); }
.feed-art strong { font-size: clamp(1.32rem,2.1vw,2.1rem); white-space: nowrap; }
.feed-art figcaption span { margin: 0; font-size: clamp(.64rem,.71vw,.72rem); }
.window-art { width: min(100%,520px); box-shadow: 6px 7px 0 #4267564a; transform: rotate(-1deg); }
.story-art { display: flex; flex-direction: column; width: min(100%, clamp(170px,14.2vw,218px)); aspect-ratio: 9/16; background: #5b1931; color: #ffe5a3; box-shadow: 5px 7px 0 #72445a49; transform: rotate(2deg); }
.story-art img { min-height: 0; flex: 1 1 0; height: 0; object-fit: cover; }
.story-art strong { font-size: clamp(1.92rem,2.8vw,2.75rem); }
.piece-notes { min-width: 0; padding: clamp(25px,3.7vw,62px); align-self: center; }
.medium { margin-bottom: 13px; color: #76535a; font-size: .88rem; }
.piece-notes h3 { font-size: clamp(2.45rem,3.9vw,4.2rem); letter-spacing: -.035em; line-height: .99; font-weight: 710; }
.piece-notes > p:not(.medium) { max-width: 42ch; margin-top: 18px; color: #533e43; }
.piece-notes blockquote { max-width: 42ch; border-left: 2px solid #b86449; padding-left: 16px; margin-top: 24px; }
.piece-notes blockquote p { font: italic 400 clamp(1.2rem,1.72vw,1.6rem)/1.22 "DM Serif",Georgia,serif; }
.piece-notes cite { display: block; color: #76535a; margin-top: 7px; font-size: .8rem; font-style: normal; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 16px; margin-top: 8px; color: #64464a; font-size: .88rem; }
.text-button { min-height: 40px; padding: 6px 0; }
#share-url { width: min(360px,100%); padding: 7px 10px; border: 1px solid var(--fine); background: #fffdf7; }

.results { color: #fff5e6; background: var(--maroon); }
.results-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.91fr); gap: clamp(36px,7.4vw,112px); align-items: center; padding-block: clamp(48px,5.8vw,92px); }
.result-copy h2 em { color: #f6b39c; }
.tally { display: flex; gap: clamp(12px,1.7vw,25px); align-items: center; margin: 23px 0 18px; color: var(--butter); }
.tally strong { font: 750 clamp(4.4rem,7.9vw,7.3rem)/.85 var(--display); letter-spacing: -.09em; }
.tally span { font: 620 clamp(1.03rem,1.45vw,1.45rem)/1.18 var(--display); }
.result-copy > p { max-width: 43ch; color: #f4dee0; }
.result-copy .data-note { margin-top: 13px; font-size: .85rem; color: #efc7c8; }
.receipt { position: relative; padding: clamp(20px,2.6vw,42px); background: #fff7df; color: var(--ink); box-shadow: 6px 7px 0 #371324; }
.receipt::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 7px; background: linear-gradient(135deg,#fff7df 25%,transparent 25%) -6px 0/12px 12px repeat-x,linear-gradient(225deg,#fff7df 25%,transparent 25%) -6px 0/12px 12px repeat-x; }
.receipt-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; padding-bottom: 12px; border-bottom: 1px dashed #ba9c86; }
.receipt-head h3 { font-size: clamp(1.35rem,2vw,1.95rem); line-height: 1.08; letter-spacing: -.045em; }
.receipt-head > span, .receipt-total, .day { font: .79rem/1.35 ui-monospace,Consolas,monospace; }
.receipt-head > span { color: #6b5147; }
.week-picker { position: relative; display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; border: 0; padding: 0; margin: 16px 0 0; }
.week-picker input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.week-picker label { cursor: pointer; display: grid; place-items: center; min-height: 36px; padding: 5px 12px; font: 620 .85rem/1.3 var(--display); border: 1px solid #c9ae96; border-radius: 3px; }
.week-picker input:checked+label { background: var(--ink); border-color: var(--ink); color: #fff9ed; }
.week-picker input:focus-visible+label { outline: 3px solid #197068; outline-offset: 2px; }
.bar-chart { --unit: clamp(10px,1.33vw,18px); display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(3px,.7vw,12px); margin: 20px 0 15px; }
.day { display: grid; grid-template-rows: 19px calc(var(--unit) * 5) 22px; align-items: end; text-align: center; }
.day b { font-weight: normal; color: #682f35; }
.day i { align-self: end; height: max(2px,calc(var(--count) * var(--unit))); width: min(100%,38px); justify-self: center; background: #a84535; border-top: 2px solid #6e2e29; }
.day span { display: block; align-self: start; padding-top: 5px; border-top: 1px solid #ba9c86; }
.receipt-total { padding-top: 10px; border-top: 1px dashed #ba9c86; display: flex; justify-content: space-between; gap: 10px; }
.receipt-total strong { font-size: .93rem; }

.about { display: grid; grid-template-columns: minmax(0,.81fr) minmax(0,1fr); gap: clamp(30px,6.5vw,105px); align-items: center; padding-block: clamp(48px,6vw,98px); }
.portrait-mount { --travel: clamp(14px,1.5vw,24px); position: relative; isolation: isolate; width: min(100%,405px); justify-self: end; padding: var(--travel) 9px var(--travel) 0; }
.portrait-mount::before { content: ''; position: absolute; inset: calc(var(--travel) * 1.45) 0 calc(var(--travel) * .5) 10px; z-index: -1; background: #ddb097; }
.portrait-mount img { transform: translateY(calc(var(--drift,0) * var(--depth,var(--travel)))); }
.about-copy p { max-width: 43ch; color: #533e43; margin-top: 17px; }
.about-copy .button { margin-top: 24px; }
.brief-fallback { padding-block: 32px; }
.brief-fallback h2 { font-size: 2rem; margin-bottom: 12px; }
.brief-fallback .button { margin-top: 14px; }
footer { background: var(--ink); color: var(--paper); }
.foot { flex-wrap: wrap; min-height: 87px; gap: 12px 22px; padding-block: 18px; }
.foot .wordmark { font-size: 1.7rem; }.foot .wordmark span { color: #ec997c; }
.foot small { color: #e7cbcc; font-size: .85rem; }.credit { margin-left: auto; font-size: .89rem; }.credit strong { letter-spacing: .05em; }
dialog { padding: 0; color: var(--ink); background: var(--paper); border: 1px solid #9c6f65; border-radius: 6px; width: min(530px,calc(100% - 28px)); max-height: 90dvh; overscroll-behavior: contain; }
dialog::backdrop { background: #271017bb; }
.brief-content { padding: clamp(20px,3vw,34px); }
.brief-content header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.brief-content h2 { font-size: clamp(2rem,4vw,3.4rem); }
.dialog-close { min-height: 40px; background: transparent; border: 1px solid #ac8985; border-radius: 3px; padding: 4px 10px; font-size: .9rem; }
.brief-content > p { font-size: .95rem; color: #64484b; margin: 14px 0 20px; }
.brief-content form > label { display: block; font-weight: bold; margin: 13px 0 5px; }
.brief-content small { font-weight: normal; color: #6b5450; }
.brief-content input, .brief-content textarea { width: 100%; padding: 9px 12px; border-radius: 3px; border: 1px solid #ba9a90; background: #fffdfa; }
.brief-content textarea { resize: vertical; }
.brief-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 19px; }
#brief-status:not(:empty) { margin-top: 12px; }

@keyframes ink-in { from { opacity: .35; } to { opacity: 1; } }
@keyframes title-in { from { opacity: .4; translate: 0 var(--intro-travel,9px); } to { opacity: 1; translate: 0 0; } }
:root[data-motion="on"] .window-print { animation: ink-in .9s ease-out both; }
:root[data-motion="on"] .hero h1 { animation: title-in .72s ease-out both; }
:root[data-motion="on"] .portrait-mount[data-entered] img { animation: ink-in .8s ease-out both; }
:root[data-motion="on"] .day i { transition: height .48s cubic-bezier(.22,.7,.26,1); }
:root[data-motion="on"] :is(.button,.nav-brief,.piece-tabs a) { transition: background-color .22s,color .22s; }
@media (max-width: 1000px) {
  .hero-layout { gap: 26px; }
  .piece-notes { padding: 26px; }
}
@media (max-width: 750px) {
  .mast-inner { min-height: 60px; }.profession { display: none; }.mast nav { gap: 16px; }
  .hero-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: 20px; }
  .hero-copy > p { font-size: 1rem; }
  .work-heading { align-items: start; flex-direction: column; gap: 12px; }
  .work-heading > p { max-width: 47ch; }
  .case-panel { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .proof-board { padding: 20px 15px; min-height: 320px; }
  .piece-notes { padding: 20px; }.piece-notes h3 { font-size: 2.35rem; }.piece-notes blockquote { margin-top: 16px; }
  .results-layout { gap: 25px; }.receipt { padding: 18px; }
}
@media (max-width: 600px) {
  .mast-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 10px; }
  .wordmark { font-size: 1.65rem; }.mast nav { gap: 13px; font-size: .85rem; }
  .mast nav .nav-brief { min-height: 36px; padding-inline: 9px; }
  .hero-layout { grid-template-columns: 1fr; gap: 17px; padding-block: 29px 15px; }
  .hero h1 { font-size: clamp(3.3rem,14.5vw,4.8rem); line-height: .94; }
  .hero h1 span+span { margin-top: .02em; }
  .hero-copy > p { margin: 13px 0 17px; max-width: 43ch; }
  .window-figure,.portrait-mount { --travel: 12px; }
  .window-figure figcaption { font-size: .8rem; gap: 4px 9px; }
  .motion-toggle { min-height: 40px; padding-left: 2px; font-size: .81rem; }
  .work,.results-layout,.about { padding-block: 40px; }
  .piece-tabs { margin: 18px 0 12px; }
  .case-panel { grid-template-columns: 1fr; }
  .proof-board { min-height: 268px; padding: 24px 20px; }
  .feed-art { width: 190px; }.story-art { width: 147px; }.window-art { width: min(100%,350px); }
  .piece-notes { padding: 20px; }.piece-notes h3 { font-size: 2.4rem; }.piece-notes h3 br { display: none; }
  .medium { margin-bottom: 7px; }.piece-notes > p:not(.medium) { margin-top: 12px; }.piece-notes blockquote { margin-top: 14px; }
  .results-layout { grid-template-columns: 1fr; gap: 25px; }.tally { margin: 18px 0 14px; }
  .about { grid-template-columns: 1fr; gap: 22px; }.portrait-mount { justify-self: start; width: min(86%,360px); }
  .foot { column-gap: 12px; }.foot small { order: 3; flex-basis: 100%; }
}
@media (max-width: 440px) {
  .mast-inner { display: grid; grid-template-columns: max-content max-content 1fr auto; gap: 2px 18px; padding-block: 10px 3px; }
  .mast .wordmark { grid-area: 1/1/2/4; justify-self: start; font-size: 1.6rem; }
  .mast nav { display: contents; }
  .mast nav a { grid-row: 2; justify-self: start; min-height: 36px; font-size: .87rem; }
  .mast nav .nav-brief { grid-area: 1/4; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --depth: 4px; --intro-travel: 0px; }
  :root[data-motion="on"] .day i { transition-duration: .28s; }
}

[data-chart-bar="sample-bar-1"] { --count:0 }
[data-chart-bar="sample-bar-2"] { --count:1 }
[data-chart-bar="sample-bar-3"] { --count:1 }
[data-chart-bar="sample-bar-4"] { --count:2 }
[data-chart-bar="sample-bar-5"] { --count:3 }
[data-chart-bar="sample-bar-6"] { --count:4 }
[data-chart-bar="sample-bar-7"] { --count:2 }
