/* Cover Consulting
   A pile of paper covers on a blue-grey desk. Each section is a sheet
   that overlaps the one before it and casts a hard, offset shadow. */

:root {
  --cream: #FDF6EC;
  --indigo: #22223B;
  --coral: #F2545B;
  --coral-ink: #B92731;
  --bluegrey: #A9BCD0;
  --white: #FFFFFF;
  --heading: "Young Serif", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Sen", "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
  --edge: 2px solid var(--indigo);
  --drop: 9px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bluegrey); color: var(--indigo); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { max-width: 100%; }
a { color: var(--indigo); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--coral); }
a:hover { text-decoration-color: var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cream); }

.hide-visually { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 200; left: 12px; top: -80px; background: var(--indigo); color: var(--cream); padding: 10px 14px; }
.skip:focus { top: 60px; color: var(--cream); }

/* ===== pull-down drawer ===== */
.pull {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  transform: translateY(calc(-100% + 48px));
  transition: transform .32s cubic-bezier(.3, .8, .3, 1);
  pointer-events: none;
}
.pull.is-down { transform: translateY(0); }
.pull > * { pointer-events: auto; }
.pull-sheet {
  background: var(--cream); border-bottom: var(--edge); padding: 22px 16px 20px;
  visibility: hidden; transition: visibility 0s linear .32s;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(169, 188, 208, .45) 31px 32px);
}
.pull.is-down .pull-sheet { visibility: visible; transition-delay: 0s; }
.pull-sheet ul { max-width: 1040px; margin: 0 auto; display: grid; gap: 10px; }
.pull-sheet a {
  display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 10px 14px;
  background: var(--white); border: var(--edge); box-shadow: 4px 4px 0 var(--indigo);
  font-family: var(--heading); font-size: 1.15rem; line-height: 1.2; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.pull-sheet a small { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .08em; color: var(--coral-ink); }
.pull-sheet a:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--indigo); background: var(--bluegrey); }
.pull-sheet a[aria-current="page"] { background: var(--coral); }
.pull-sheet a[aria-current="page"] small { color: var(--indigo); }
.pull-tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 128px; height: 48px; margin: -2px 26px 0 auto; padding: 0 0 4px; cursor: pointer;
  background: var(--coral); color: var(--indigo); border: var(--edge); border-radius: 0 0 14px 14px;
  box-shadow: 4px 4px 0 var(--indigo);
  font-family: var(--body); font-weight: 700; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
}
.pull-tab:hover { background: var(--cream); }
.pull-tab svg { width: 14px; height: 14px; transition: transform .3s; }
.pull-tab[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (min-width: 860px) {
  .pull-sheet { padding: 30px 32px 28px; }
  .pull-sheet ul { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .pull-sheet a { flex-direction: column; gap: 6px; min-height: 92px; padding: 14px 16px; font-size: 1.2rem; }
  .pull-tab { margin-right: auto; }
}

/* ===== the pile ===== */
.pile { max-width: 1084px; margin: 0 auto; padding: 22px 26px 60px 16px; }
.cover {
  --sheet: var(--cream);
  position: relative; background: var(--sheet); border: var(--edge);
  box-shadow: var(--drop) var(--drop) 0 var(--indigo);
  padding: 44px 20px 64px;
}
.cover + .cover { margin-top: -30px; }
.cover--white { --sheet: var(--white); }
.cover--bluegrey { --sheet: #C9D6E3; }
.cover--coral { --sheet: var(--coral); }
.cover--indigo { --sheet: var(--indigo); color: var(--cream); }
.cover--stack { box-shadow: 6px 6px 0 -2px var(--white), 6px 6px 0 0 var(--indigo), 12px 12px 0 -2px var(--coral), 12px 12px 0 0 var(--indigo); }
.cover:last-child { padding-bottom: 36px; }
.cover-tag {
  position: absolute; top: -15px; left: 18px; margin: 0; padding: 3px 12px 2px;
  background: var(--indigo); color: var(--cream); border: var(--edge);
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
}
.cover--indigo .cover-tag { background: var(--coral); color: var(--indigo); }
.cover h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin-bottom: 14px; }
.cover h3 { font-size: 1.35rem; margin-bottom: 8px; }
.cover .intro { max-width: 40em; font-size: 1.12rem; }
@media (min-width: 860px) {
  .pile { padding: 30px 40px 80px 30px; }
  .cover { padding: 62px 56px 84px; --drop: 12px; }
  .cover + .cover { margin-top: -36px; }
  .cover:nth-child(even) { left: 16px; }
  .cover:nth-child(odd) { left: -8px; }
  .cover-tag { left: 54px; }
  .cover:last-child { padding-bottom: 44px; }
}

/* title cover */
.cover--title { padding-top: 54px; }
.title-grid { display: grid; gap: 26px; align-items: end; }
.title-grid > * { min-width: 0; }
.kicker { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.kicker::before { content: ""; width: 34px; height: 12px; background: var(--coral); border: var(--edge); }
.cover--coral .kicker::before { background: var(--cream); }
.cover h1 { font-size: clamp(2.3rem, 7.2vw, 4.6rem); letter-spacing: -.015em; overflow-wrap: anywhere; }
.cover h1 mark { background: linear-gradient(transparent 58%, var(--coral) 58% 90%, transparent 90%); color: inherit; }
.cover--coral h1 mark { background: linear-gradient(transparent 58%, var(--cream) 58% 90%, transparent 90%); }
.standfirst { font-size: 1.22rem; line-height: 1.55; max-width: 34em; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 26px; }
.press {
  display: inline-block; padding: 12px 20px; cursor: pointer; text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em;
  background: var(--indigo); color: var(--cream); border: var(--edge); box-shadow: 5px 5px 0 var(--coral);
  transition: transform .12s, box-shadow .12s;
}
.press:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--coral); }
.press--paper { background: var(--white); color: var(--indigo); box-shadow: 5px 5px 0 var(--indigo); }
.press--paper:hover { box-shadow: 2px 2px 0 var(--indigo); }
.cover--coral .press { box-shadow: 5px 5px 0 var(--cream); }
.cover--coral .press:hover { box-shadow: 2px 2px 0 var(--cream); }
.cover--indigo .press { background: var(--coral); color: var(--indigo); border-color: var(--cream); box-shadow: 5px 5px 0 var(--cream); }
.sheaf { width: min(100%, 300px); justify-self: center; }
@media (min-width: 860px) { .title-grid { grid-template-columns: 1.5fr .5fr; gap: 40px; } .sheaf { justify-self: end; } }

/* loose leaves: small sheets that overlap each other */
.leaves { display: grid; gap: 22px; margin-top: 28px; padding-right: 8px; }
.leaf {
  position: relative; min-width: 0; background: var(--white); border: var(--edge); box-shadow: 7px 7px 0 var(--indigo);
  padding: 26px 22px 24px; display: flex; flex-direction: column; color: var(--indigo);
}
.leaf-no { font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-ink); margin: 0 0 10px; }
.leaf p { margin-bottom: 14px; }
.leaf > :last-child { margin-bottom: 0; }
.leaf .turn { margin-top: auto; font-weight: 700; align-self: flex-start; padding: 6px 0; }
.leaf .turn::after { content: " \2197"; }
.leaf--cream { background: var(--cream); }
.leaf--coral { background: var(--coral); }
.leaf--coral .leaf-no { color: var(--indigo); }
.leaf--coral a { text-decoration-color: var(--indigo); }
a.leaf { text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.leaf:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--indigo); }
@media (min-width: 860px) {
  .leaves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-right: 0; }
  .leaves--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .leaves > .leaf { margin-left: -14px; padding: 30px 26px 28px; }
  .leaves > .leaf:first-child { margin-left: 0; }
  .leaves > .leaf:nth-child(1) { transform: rotate(-1.2deg); z-index: 1; }
  .leaves > .leaf:nth-child(2) { transform: translateY(16px) rotate(.8deg); z-index: 2; }
  .leaves > .leaf:nth-child(3) { transform: translateY(2px) rotate(-.6deg); z-index: 3; }
  .leaves > .leaf:nth-child(4) { transform: translateY(18px) rotate(1deg); z-index: 4; }
  .leaves > a.leaf:hover { transform: translateY(-4px); z-index: 6; box-shadow: 10px 10px 0 var(--indigo); }
}

/* two-column cover body */
.spread { display: grid; gap: 28px; }
.spread > * { min-width: 0; }
.spread p { max-width: 38em; }
.margin-note { background: var(--white); border: var(--edge); box-shadow: 6px 6px 0 var(--coral); padding: 22px 20px; align-self: start; color: var(--indigo); }
.cover--coral .margin-note { box-shadow: 6px 6px 0 var(--indigo); }
.margin-note h3 { font-size: 1.25rem; }
.margin-note > :last-child { margin-bottom: 0; }
.boxes li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px dashed rgba(34, 34, 59, .45); line-height: 1.45; }
.boxes li:last-child { border-bottom: 0; }
.boxes li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border: var(--edge); background: var(--cream); box-shadow: 2px 2px 0 var(--indigo); }
.boxes--ask li::before { content: "?"; display: grid; place-items: center; font-weight: 700; font-size: .85rem; line-height: 1; border-radius: 50%; background: var(--coral); }
@media (min-width: 860px) { .spread { grid-template-columns: 1.3fr .7fr; gap: 54px; } .spread--even { grid-template-columns: 1fr 1fr; } }

/* contents list on inner title covers */
.contents { margin-top: 28px; border-top: var(--edge); max-width: 30em; counter-reset: c; }
.contents li { counter-increment: c; border-bottom: 1px dashed var(--indigo); }
.contents a { display: flex; gap: 14px; padding: 10px 0; text-decoration: none; font-weight: 700; }
.contents a::before { content: counter(c, decimal-leading-zero); font-family: var(--heading); font-weight: 400; }
.contents a:hover { background: rgba(255, 255, 255, .5); }

/* plan sheet (planning support) */
.plan-sheet { background: var(--white); border: var(--edge); box-shadow: 6px 6px 0 var(--indigo); margin-top: 22px; }
.plan-sheet .plan-row { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--indigo); }
.plan-sheet .plan-row:last-child { border-bottom: 0; }
.plan-sheet .plan-row > span { padding: 8px 14px; min-width: 0; }
.plan-sheet .plan-row > span:first-child { font-family: var(--heading); font-size: 1.15rem; padding-bottom: 0; }
.plan-sheet .plan-row > span[data-l]::before { content: attr(data-l) ": "; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-ink); }
.plan-sheet .plan-head { display: none; }
.plan-note { margin-top: 16px; font-size: 1rem; }
@media (min-width: 720px) {
  .plan-sheet .plan-row { grid-template-columns: 1fr 1fr 1fr 1.4fr; }
  .plan-sheet .plan-row > span { border-right: 1px solid var(--indigo); padding: 12px 14px; }
  .plan-sheet .plan-row > span:first-child { padding-bottom: 12px; }
  .plan-sheet .plan-row > span:last-child { border-right: 0; }
  .plan-sheet .plan-row > span[data-l]::before { content: none; }
  .plan-sheet .plan-head { display: grid; background: var(--indigo); color: var(--cream); }
  .plan-sheet .plan-head > span, .plan-sheet .plan-head > span:first-child { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; border-right-color: var(--bluegrey); }
}

/* ===== coverage grid ===== */
.cov-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 22px; font-weight: 700; font-size: 1rem; }
.cov-key span { display: inline-flex; align-items: center; gap: 8px; }
.cov-key i, .cov-bar i { display: inline-block; width: 20px; height: 20px; border: var(--edge); }
.is-yes { background: var(--bluegrey); }
.is-part { background: repeating-linear-gradient(135deg, var(--bluegrey) 0 5px, var(--white) 5px 10px); }
.is-no { background: var(--coral); }
.is-none { background: var(--white); }
.cov-grid { display: grid; gap: 14px; padding-right: 6px; }
.area { min-width: 0; margin: 0; padding: 14px 14px 16px; border: 2px dashed var(--indigo); background: var(--white); position: relative; transition: background .2s; }
.area legend { float: left; width: 100%; padding: 0; font-family: var(--heading); font-size: 1.2rem; line-height: 1.2; margin-bottom: 12px; }
.area[data-state="yes"] { background: var(--bluegrey); border-style: solid; box-shadow: 5px 5px 0 var(--indigo); }
.area[data-state="part"] { background: repeating-linear-gradient(135deg, #C9D6E3 0 9px, var(--white) 9px 18px); border-style: solid; box-shadow: 5px 5px 0 var(--indigo); }
.area[data-state="no"] { background: var(--coral); border-style: solid; box-shadow: 5px 5px 0 var(--indigo); }
.seg { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--edge); background: var(--white); }
.seg label { position: relative; display: grid; place-items: center; text-align: center; min-height: 46px; padding: 6px 4px; font-weight: 700; font-size: .95rem; line-height: 1.15; cursor: pointer; border-right: var(--edge); }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label:hover { background: var(--cream); }
.seg label:has(input:checked) { background: var(--indigo); color: var(--cream); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--indigo); outline-offset: 3px; z-index: 1; }
.seg label.on { background: var(--indigo); color: var(--cream); }
.gap-sheet { margin-top: 30px; background: var(--cream); border: var(--edge); box-shadow: 7px 7px 0 var(--coral); padding: 24px 20px; }
.gap-sheet h3 { font-size: 1.45rem; }
.cov-bar { display: flex; height: 26px; border: var(--edge); margin: 14px 0 16px; background: var(--white); }
.cov-bar i { height: auto; width: 0; border: 0; transition: width .3s; }
.gap-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin-bottom: 14px; font-weight: 700; }
.gap-counts b { font-family: var(--heading); font-weight: 400; font-size: 1.5rem; margin-right: 6px; }
.gap-lines p { margin-bottom: .6em; overflow-wrap: anywhere; }
.gap-foot { font-size: 1rem; margin: 14px 0 0; }
.plain-btn { font: inherit; font-weight: 700; background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--indigo); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 620px) { .cov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .cov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .gap-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gap-sheet { padding: 30px 32px; } }

/* ===== contact ===== */
.slip-form .row { margin-bottom: 18px; }
.slip-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.slip-form input, .slip-form select, .slip-form textarea {
  width: 100%; font: inherit; color: var(--indigo); background: var(--white); border: var(--edge); border-radius: 0; padding: 12px 14px;
  box-shadow: 4px 4px 0 var(--bluegrey);
}
.slip-form textarea { min-height: 180px; resize: vertical; }
.slip-form input:focus, .slip-form select:focus, .slip-form textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--coral); }
.slip-form .oops { margin: 8px 0 0; font-weight: 700; color: var(--coral-ink); }
.slip-form .row.bad input, .slip-form .row.bad textarea { box-shadow: 4px 4px 0 var(--coral); border-color: var(--coral-ink); }
.slip-form .go { display: grid; gap: 14px; margin-top: 6px; }
.slip-form .go p { margin: 0; font-size: 1rem; }
.slip-form .go .press { justify-self: start; }
.slip-form .after { margin: 18px 0 0; padding: 14px 16px; background: var(--white); border: var(--edge); }
.details-list > div { padding: 10px 0; border-bottom: 1px dashed var(--indigo); }
.details-list > div:last-child { border-bottom: 0; }
.details-list dt { font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.details-list dd { margin: 2px 0 0; overflow-wrap: anywhere; }
dl { margin: 0; }

/* ===== bottom sheet (footer) ===== */
.cover--indigo a { color: var(--cream); }
.cover--indigo a:hover { text-decoration-color: var(--cream); }
.base-grid { display: grid; gap: 28px; }
.base-grid > * { min-width: 0; }
.base-grid h2 { font-size: 1.6rem; margin-bottom: 10px; }
.base-grid h3 { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bluegrey); margin-bottom: 10px; }
.base-links a { display: inline-block; padding: 5px 0; }
.cover--indigo .details-list > div { border-bottom-color: rgba(253, 246, 236, .4); }
.cover--indigo .details-list dt { color: var(--bluegrey); }
.base-line { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid rgba(253, 246, 236, .4); font-size: 1rem; }
@media (min-width: 860px) { .base-grid { grid-template-columns: 1.1fr .8fr 1.1fr; gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pull, .pull-sheet, .press, .leaf, .pull-sheet a, .cov-bar i { transition: none !important; }
}

/* main is only a landmark wrapper; the covers inside it stack with the footer cover */
.pile main { display: contents; }
.pile main + .cover { margin-top: -30px; }
.pile main > .cover:last-child { padding-bottom: 64px; }
@media (min-width: 860px) {
  .pile main + .cover { margin-top: -36px; left: 6px; }
  .pile main > .cover:last-child { padding-bottom: 84px; }
}
.margin-note .also { margin-top: 14px; }
.plan-note--low { margin-top: 40px; }
.leaves + .actions, .spread + .actions { margin-top: 38px; }

/* ===== the drawer's visible edge: brand on the left, pull tab hanging from the top ===== */
body { padding-top: 60px; }
html { scroll-padding-top: 80px; }
.pull { transform: translateY(calc(-100% + 60px)); }
.pull-edge {
  height: 60px; padding: 0 16px; background: var(--bluegrey); border-bottom: var(--edge);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.brand { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--heading); font-size: 1.12rem; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.pull-tab { flex: none; width: 108px; margin: -2px 0 0; }
.skip:focus { top: 70px; }
@media (min-width: 860px) {
  .pull-edge { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 30px; }
  .brand { font-size: 1.4rem; justify-self: start; }
  .brand svg { width: 32px; height: 32px; }
  .pull-tab { width: 132px; margin: -2px 0 0; }
}
