/* Two-ink screenprinted show bill: butter stock, denim + dusty rose, overprint where they cross. */
:root {
  --stock: #f3e9c6;
  --stock-deep: #e9dcae;
  --denim: #2c4a86;
  --rose: #e0798a;
  --ink: #1c2340;
  --rose-ink: #b94a5f; /* rose deep enough for large text on stock */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --rule: 2px solid var(--denim);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-color: var(--denim) var(--stock); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--stock);
  /* paper tooth */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 400 1.0625rem/1.6 var(--body);
  caret-color: var(--denim);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rose); color: var(--ink); }
button { line-height: 1.3; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--denim); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--rose); }
:focus-visible { outline: 3px solid var(--denim); outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--denim); color: var(--stock); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, h3, .brand, nav, .stub-action, .tag, .status, .mark, .caption, .run b, dt, .foot-line, .nav-toggle, .lightbox-close {
  font-family: var(--display);
  text-transform: uppercase;
}
h2 { font-weight: 900; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .86; color: var(--denim); margin: 0 0 32px; letter-spacing: -.005em; }
h3 { font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: .02em; color: var(--denim); margin: 36px 0 10px; }
p { margin: 0 0 1em; max-width: 68ch; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--stock); border-bottom: 3px solid var(--denim); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { font-weight: 900; font-size: 1.5rem; text-decoration: none; color: var(--denim); letter-spacing: .03em; }
nav { display: flex; align-items: center; gap: 28px; font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
nav a { text-decoration: none; color: var(--denim); }
nav a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
.nav-book { background: var(--denim); color: var(--stock); padding: 8px 14px; }
.nav-book:hover { background: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: var(--rule); color: var(--denim); font-weight: 800; font-size: 1.1rem; letter-spacing: .08em; padding: 6px 12px; cursor: pointer; }

/* The bill: first viewport */
.bill {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
  min-height: min(calc(100svh - 63px), 980px);
  padding-top: clamp(24px, 4vh, 48px);
}
.bill-name { grid-column: 1 / 8; }
.print { position: relative; margin: 0 0 28px; font-weight: 900; font-size: clamp(5rem, 15.5vw, 13.5rem); line-height: .88; letter-spacing: -.01em; }
/* Two real ink passes: a rose halftone plate printed first, denim overprinted with multiply.
   Where the denim crosses rose dots it prints plum. */
.print { position: relative; isolation: isolate; color: var(--denim); }
.print .ink { position: relative; mix-blend-mode: multiply; }
.ink-band {
  position: absolute; z-index: -1; left: -.05em; right: 18%; top: 46%; bottom: -.04em;
  background: radial-gradient(circle, var(--rose) 0 32%, transparent 37%) 0 0 / .045em .045em;
  transform: translate(.04em, .025em); /* slightly off register, as a hand pull is */
}
h2.print { display: inline-block; }
h2.print .ink-band { right: -.05em; }
.offer { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.4; font-weight: 500; color: var(--ink); max-width: 30ch; margin-bottom: 12px; }
.also { color: var(--ink); }

.bill-proof { grid-column: 8 / 13; position: relative; display: grid; padding-bottom: 28px; }
.plate-print { margin: 0; background: #fffbea; padding: 8px; box-shadow: 0 18px 30px -18px rgba(28, 35, 64, .55); }
.plate-print figcaption { display: flex; align-items: center; gap: 10px; padding: 8px 2px 2px; font-size: .9rem; color: var(--ink); }
.before { width: 82%; transform: rotate(-1.5deg); display: flex; flex-direction: column-reverse; }
.before figcaption { padding: 0 2px 8px; }
.after { width: 88%; justify-self: end; margin-top: -14%; transform: rotate(1deg); position: relative; z-index: 1; }
.tag { display: inline-block; background: var(--denim); color: var(--stock); font-weight: 800; font-size: 1rem; letter-spacing: .08em; padding: 2px 10px; }
.tag.rose { background: var(--rose); color: var(--ink); }

/* Ticket stub */
.stub {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-top: 3px dashed var(--denim);
  margin-top: clamp(24px, 4vh, 40px);
  padding-top: 18px;
  gap: 0 28px;
  align-self: end;
  margin-bottom: 24px;
}
.stub-action {
  background: var(--denim);
  color: var(--stock);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  letter-spacing: .02em;
  padding: 14px 32px;
  text-decoration: none;
  transition: background-color .2s ease-out;
}
.stub-action:hover { background: var(--ink); color: var(--stock); }
.stub-detail { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 8px 0; }
.stub-detail a { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.stub-detail a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
.stub-detail span { color: var(--ink); }

/* Sections */
.section, .feature { padding-top: clamp(72px, 10vw, 128px); }
.feature { border-top: var(--rule); margin-top: 24px; }

.feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.feature-head h2 { font-size: clamp(4rem, 13vw, 11rem); margin-bottom: 40px; }
.mark {
  font-weight: 800; font-size: 1.25rem; line-height: 1.05; letter-spacing: .06em; text-align: center;
  color: var(--denim); border: 3px solid var(--denim); padding: 10px 14px; transform: rotate(-6deg); margin: 12px 8px 0 0;
}
.feature-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; font-weight: 500; }
.feature-copy h3:first-of-type { margin-top: 40px; }
.ruled { list-style: none; padding: 0; margin: 0 0 1em; max-width: 68ch; }
.ruled li { border-top: 1px solid rgba(44, 74, 134, .35); padding: 10px 0; }
.ruled li:last-child { border-bottom: 1px solid rgba(44, 74, 134, .35); }
.ruled.small { font-size: .95rem; }
.ink-link { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; }
.feature-proof { position: sticky; top: 96px; display: grid; gap: 28px; }
.plate-print.full { transform: rotate(1deg); }
.plate-print.shows { transform: rotate(-1deg); width: 80%; justify-self: end; }
.plate-print.full img { aspect-ratio: auto; }

/* Billing rows */
.billing { width: 100%; border-collapse: collapse; border-top: 4px solid var(--denim); }
.billing th, .billing td { text-align: left; vertical-align: baseline; padding: 18px 16px 18px 0; border-bottom: var(--rule); }
.billing thead th { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: .1em; color: var(--denim); padding-top: 10px; padding-bottom: 10px; }
.billing tbody th { font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1; text-transform: uppercase; width: 34%; }
.billing tbody th a { text-decoration: none; }
.billing tbody th a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
.billing td:last-child { width: 1%; white-space: nowrap; text-align: right; padding-right: 0; }
.status { display: inline-block; font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; background: var(--rose); color: var(--ink); padding: 4px 12px; }
.open th { color: var(--denim); }
.status.book { background: var(--denim); color: var(--stock); text-decoration: none; }
.status.book:hover { background: var(--ink); }

/* How a job runs */
.run { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 28px; border-top: 4px solid var(--denim); }
.run li { counter-increment: step; padding: 20px 24px 8px 0; }
.run li + li { border-left: var(--rule); padding-left: 24px; }
.run li::before { content: counter(step); display: block; font: 900 4.5rem/1 var(--display); color: var(--rose-ink); }
.run b { display: block; font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; color: var(--denim); margin: 6px 0 8px; }
.run p { font-size: 1rem; }
.fine { font-size: .95rem; color: var(--ink); }

/* Software */
.software { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.sw { border-top: var(--rule); padding: 24px 0 32px; }
.sw h3 { margin-top: 0; font-size: 1.9rem; }
.lead-sw { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); border-top-width: 4px; }
.sw-shot { display: block; background: #fffbea; padding: 8px; box-shadow: 0 18px 30px -18px rgba(28, 35, 64, .55); align-self: start; }
.caption { font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: var(--denim); margin-top: 12px; }

/* Art */
.intro { font-size: 1.15rem; margin-bottom: 36px; }
.art-grid { columns: 4 240px; column-gap: 24px; }
.art-item { all: unset; box-sizing: border-box; display: block; position: relative; break-inside: avoid; margin-bottom: 28px; cursor: zoom-in; width: 100%; }
.art-item img { width: 100%; background: var(--stock-deep); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.art-item:hover img { transform: translateY(-3px); }
.art-item:focus-visible { outline: 3px solid var(--denim); outline-offset: 4px; }
.art-caption { display: block; padding-top: 8px; font-size: .9rem; line-height: 1.45; }
.art-caption b { display: block; font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--denim); }
.ribbon { position: absolute; top: 10px; left: -6px; font: 800 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; background: var(--rose); color: var(--ink); padding: 6px 10px; }

/* About */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); }
.portrait { width: 180px; float: right; margin: 4px 0 16px 24px; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; }
.about-record h3:first-child { margin-top: 0; }
.record { margin: 0 0 8px; border-top: var(--rule); }
.record div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(44, 74, 134, .35); }
dt { font-weight: 700; letter-spacing: .05em; color: var(--denim); font-size: 1.05rem; }
dd { margin: 0; }

/* Close */
.foot { background: var(--denim); color: var(--stock); margin-top: clamp(96px, 12vw, 160px); padding: clamp(64px, 9vw, 112px) 0 32px; }
.foot-line { font-weight: 900; font-size: clamp(3.25rem, 9vw, 8rem); line-height: .86; margin: 0 0 8px; max-width: none; }
.foot .stub { border-top-color: var(--stock); }
.foot .stub-action { background: var(--rose); color: var(--ink); }
.foot .stub-action:hover { background: var(--stock); color: var(--ink); }
.foot .stub-detail a, .foot a { color: var(--stock); }
.foot .stub-detail span { color: var(--stock); max-width: 48ch; }
.foot :focus-visible { outline-color: var(--stock); }
.foot ::selection { background: var(--stock); color: var(--denim); }
.foot-fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--stock); max-width: none; margin: 56px 0 0; font-size: .9rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(28, 35, 64, .88); }
.lightbox figure { margin: 0; background: var(--stock); padding: 12px; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { padding: 10px 2px 0; font-size: .95rem; max-width: 70ch; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: var(--denim); color: var(--stock); border: 0; font-weight: 800; font-size: 1rem; letter-spacing: .08em; padding: 6px 12px; cursor: pointer; z-index: 1; }

/* Signature moment: the rose plate pulls into register */
@media (prefers-reduced-motion: no-preference) {
  .bill .ink-band { animation: register 1.1s cubic-bezier(.16, 1, .3, 1) .15s backwards; }
  .after { animation: lay 0.9s cubic-bezier(.16, 1, .3, 1) .45s backwards; }
  @keyframes register { from { transform: translate(.3em, -.14em); opacity: 0; } }
  @keyframes lay { from { transform: translateY(24px) rotate(3deg); opacity: 0; } }
}

/* Responsive */
@media (max-width: 980px) {
  .bill { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .bill-name, .bill-proof { grid-column: 1 / -1; }
  .bill-proof { margin-top: 24px; }
  .feature-grid, .lead-sw, .about { grid-template-columns: 1fr; }
  .feature-proof { position: static; }
  .bill .stub { order: 2; }
  .bill-proof { order: 1; grid-template-columns: 1fr 1fr; gap: 12px; }
  .before, .after { width: 100%; margin-top: 0; }
  .after { transform: rotate(1.5deg); }
  .run { grid-template-columns: 1fr 1fr; }
  .run li:nth-child(3) { border-left: 0; padding-left: 0; }
  .run li:nth-child(n+3) { border-top: var(--rule); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--stock); border-bottom: 3px solid var(--denim); padding: 8px var(--gutter) 16px; }
  nav.open { display: flex; }
  nav a { padding: 10px 0; font-size: 1.4rem; }
  .nav-book { margin-top: 8px; padding: 10px 14px; }
  .software { grid-template-columns: 1fr; }
  .run { grid-template-columns: 1fr; }
  .run li + li { border-left: 0; padding-left: 0; border-top: var(--rule); }
  .billing thead { display: none; }
  .billing tr { display: grid; grid-template-columns: 1fr auto; border-bottom: var(--rule); padding: 14px 0; }
  .billing th, .billing td { border: 0; padding: 0; width: auto; }
  .billing tbody th { grid-column: 1; }
  .billing td:last-child { grid-column: 2; grid-row: 1; }
  .billing td:nth-child(2) { grid-column: 1 / -1; padding-top: 8px; }
  .record div { grid-template-columns: 1fr; gap: 2px; }
  .portrait { width: 120px; }
  .art-grid { columns: 2; column-gap: 16px; }
  .stub-action { width: 100%; text-align: center; }
  .bill-proof .cap-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .feature-head { flex-direction: column; }
  .feature-head { gap: 0; }
  .mark { margin: 0 0 32px; align-self: flex-start; }
  .feature-head h2 { margin-bottom: 16px; }
}
