/* McCracken, Taylor & Nelson concept: the law library. Spec work by Pina Studios. */
:root {
  --ground: #F7F7F5;
  --page: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #4A4744;
  --ox: #6E2424;
  --ox-hover: #5A1B1B;
  --black: #1C1B1A;
  --tan: #A9824C;
  --gold: #C7A458;
  --gold-text: #E5CB86;
  --wood: #5A3B25;
  --line: rgba(26, 26, 26, .14);
  --line-strong: rgba(26, 26, 26, .3);
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ox) var(--ground); }
.reduce { scroll-behavior: auto; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ox); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--ox-hover); }
::selection { background: #EBD9AE; color: var(--ink); }
:focus-visible { outline: 3px solid var(--ox); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.8vw + 1.1rem, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.375rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.concept-ribbon { background: var(--black); color: #D9D4C7; font: 600 .8125rem/1.4 var(--sans); text-align: center; padding: 8px var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 4px; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-ox { background: var(--ox); color: #fff; }
.btn-ox:hover { background: var(--ox-hover); color: #fff; }
.btn-wide { width: 100%; }

.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font: 700 1.1875rem/1.2 var(--serif); }
.brand-sub { font: 400 .875rem/1.3 var(--sans); color: var(--ink-2); }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; justify-content: center; flex-wrap: wrap; }
.nav a { font: 600 .9375rem/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--ox); text-decoration: underline; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.head-phone { font: 700 1rem/1.2 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px clamp(36px, 5vw, 80px); align-items: start; }
.hero h1 { font-size: clamp(2.5rem, 3.4vw + 1rem, 4.4rem); line-height: 1.02; letter-spacing: -.015em; max-width: 12ch; }
.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 32em; margin: 22px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.phone-link { font-weight: 700; color: var(--ink); }
.plans { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 32em; }

/* The shelf */
.shelf-title { font-size: 1.375rem; }
.shelf-hint { color: var(--ink-2); margin: 2px 0 14px; }
.shelf { display: flex; align-items: flex-end; gap: 6px; height: 360px; padding: 0 14px; border-bottom: 16px solid var(--wood); box-shadow: 0 10px 14px -10px rgba(0, 0, 0, .45); }
.spine { position: relative; flex: none; width: var(--w); height: var(--h); padding: 0; border: 0; border-radius: 4px 4px 1px 1px; cursor: pointer; color: var(--gold-text); background: var(--ox); box-shadow: inset 3px 0 0 rgba(255, 255, 255, .08), inset -4px 0 0 rgba(0, 0, 0, .25); transition: transform .4s var(--ease); }
.spine::before, .spine::after { content: ""; position: absolute; left: 6px; right: 6px; height: 7px; border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); }
.spine::before { top: 16px; }
.spine::after { bottom: 18px; }
.spine span { display: block; margin: 40px auto 0; width: calc(100% - 14px); padding: 14px 0; background: var(--black); border: 1px solid var(--gold); writing-mode: vertical-rl; font: 700 1.0625rem/1 var(--serif); letter-spacing: .02em; text-align: left; max-height: calc(100% - 92px); overflow: hidden; }
.spine-ink { background: var(--black); }
.spine-ink span { background: var(--ox); }
.spine-tan { background: var(--tan); }
.spine:hover { transform: translateY(-6px); }
.spine[aria-expanded="true"] { transform: translateY(-22px); }
.spine:focus-visible { outline-offset: 4px; }
.volume { margin-top: 26px; background: var(--page); border: 1px solid var(--line-strong); border-radius: 6px; padding: 22px 24px; min-height: 160px; }
.volume-empty { margin: 0; color: var(--ink-2); font-style: italic; font-family: var(--serif); }
.volume h3 { margin-bottom: 8px; }
.volume p { color: var(--ink-2); }
.volume .related { font-size: .9375rem; margin: -4px 0 14px; }

/* Bands */
.band { padding: clamp(72px, 10vh, 120px) 0; }
.firm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.firm-copy h2 { margin-bottom: 18px; }
.firm-copy > p { font-size: 1.1875rem; color: var(--ink-2); max-width: 32em; }
.kind-words { margin: 30px 0 0; padding: 22px 0 0; border-top: 2px solid var(--ink); }
.kind-words p { font: italic 400 1.3125rem/1.5 var(--serif); margin: 0 0 8px; }
.kind-words footer { font-size: .9375rem; color: var(--ink-2); }
.bio { background: var(--page); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 36px); }
.bio-role { color: var(--ink-2); margin: 6px 0 18px; }
.timeline { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.yr { font: 700 1.0625rem/1.5 var(--serif); color: var(--ox); font-variant-numeric: oldstyle-nums; }
.bio-assoc { margin: 0; font-size: .9375rem; color: var(--ink-2); }

.band-ox { background: var(--ox); color: #F3E7E3; }
.band-ox :focus-visible { outline-color: #fff; }
.paying-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(40px, 6vw, 96px); align-items: start; }
.band-ox h2 { color: #fff; }
.pay { margin: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.pay div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.pay dt { font: 700 1.0625rem/1.5 var(--serif); color: var(--gold-text); }
.pay dd { margin: 0; }

.consult-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.consult-copy h2 { margin-bottom: 18px; }
.consult-copy p { color: var(--ink-2); max-width: 30em; }
.consult-copy a { font-weight: 700; }
.consult-form { background: var(--page); border: 1px solid var(--line-strong); border-radius: 6px; padding: clamp(20px, 3vw, 36px); }
.consult-form label { display: block; font-weight: 700; font-size: .9375rem; margin: 0 0 6px; }
.consult-form label.mt { margin-top: 16px; }
.opt { font-weight: 400; color: var(--ink-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231A1A1A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.fine { font-size: .875rem; color: var(--ink-2); margin: 10px 0 14px; }
.field-error { color: #A11B1B; font-weight: 700; }
.sent { margin-top: 16px; border: 1px solid var(--ox); background: #F7EDEA; border-radius: 4px; padding: 14px 16px; }
.sent-title { font-weight: 700; margin-bottom: 4px; }
.sent p:last-child { margin: 0; }

.site-foot { background: var(--black); color: #BDB7AB; padding: 64px 0 120px; }
.site-foot a { color: #fff; }
.site-foot :focus-visible { outline-color: #fff; }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-title { font: 700 1.625rem/1.2 var(--serif); color: var(--gold-text); margin-bottom: 6px; }
.foot-sub { max-width: 40em; }
.foot-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.foot-facts dt { font-weight: 700; font-size: .875rem; color: #fff; }
.foot-facts dd { margin: 4px 0 0; }
.foot-note { max-width: 1240px; margin: 40px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }

.lost { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 160px; }
.lost h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); line-height: 1.05; margin-bottom: 18px; }
.mobile-cta { display: none; }

@media (max-width: 1100px) { .head-phone { display: none; } }
@media (max-width: 900px) {
  .head-inner { flex-wrap: wrap; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; -webkit-mask-image: linear-gradient(to right, #000 84%, transparent); mask-image: linear-gradient(to right, #000 84%, transparent); }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .head-actions { margin-left: auto; }
  .hero-grid, .firm-grid, .paying-grid, .consult-grid { grid-template-columns: 1fr; }
  .foot-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1rem; }
  .head-actions .btn { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .lede { font-size: 1.0625rem; }
  .hero-actions { display: none; }
  .shelf { height: 300px; gap: 3px; padding: 0 6px; }
  .spine { width: calc(var(--w) * .7); }
  .spine span { font-size: .9375rem; margin-top: 34px; width: calc(100% - 10px); padding: 10px 0; max-height: calc(100% - 78px); }
  .spine::before, .spine::after { left: 4px; right: 4px; }
  .row { grid-template-columns: 1fr; }
  .pay div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 3.6rem 1fr; }
  .foot-facts { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--black); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; text-decoration: none; font: 700 .9375rem/1 var(--sans); border-radius: 4px; }
  .mobile-cta a.is-primary { background: var(--ox); border-color: var(--ox); }
}
/* Motion, load (Dec 4): the library is shelved. The seven volumes are set down on the shelf left to right,
   each with a small settle, then their gilt bands are stamped. Text and the headline do not move.
   Reduced motion: the volumes stay put; the gilt is still stamped and the spines come up from shadow. */
.spine { transform-origin: 50% 100%; }
.shelf .spine:nth-child(1) { --d: .15s; } .shelf .spine:nth-child(2) { --d: .23s; } .shelf .spine:nth-child(3) { --d: .31s; }
.shelf .spine:nth-child(4) { --d: .39s; } .shelf .spine:nth-child(5) { --d: .47s; } .shelf .spine:nth-child(6) { --d: .55s; }
.shelf .spine:nth-child(7) { --d: .63s; }
.spine::before, .spine::after { transform-origin: left center; }
@keyframes mtn-shelve { 0% { transform: translateY(-30px) rotate(-2.5deg); } 68% { transform: translateY(2px) rotate(.3deg); } 100% { transform: none; } }
@keyframes mtn-gilt { from { transform: scaleX(0); } to { transform: none; } }
@keyframes mtn-shade { from { filter: brightness(.55); } to { filter: none; } }
html.js:not(.reduce) .shelf .spine { animation: mtn-shelve .8s cubic-bezier(.2, .8, .2, 1) var(--d) backwards; }
html.js .shelf .spine::before, html.js .shelf .spine::after { animation: mtn-gilt .55s cubic-bezier(.65, 0, .35, 1) calc(var(--d) + .5s) backwards; }
html.js.reduce .shelf .spine { animation: mtn-shade .9s ease-out var(--d) backwards; }
html.js.reduce .shelf .spine::before, html.js.reduce .shelf .spine::after { animation-delay: calc(var(--d) + .2s); }

/* Motion, point of interest (Dec 4): pulling a volume. The chosen spine tips out of the row, and the volume
   below opens toward you like a book cover swinging on its spine, with a gold rule set under the title.
   Reduced motion: the spine only lifts, the page fades in, the rule is still drawn. */
html.js:not(.reduce) .spine[aria-expanded="true"] { transform: translateY(-22px) rotate(-4deg); }
.volume { transform-origin: left center; }
.volume h3::after { content: ""; display: block; width: 3.5rem; height: 2px; margin-top: 10px; background: var(--gold); transform-origin: left center; animation: mtn-gilt .6s cubic-bezier(.65, 0, .35, 1) .25s backwards; }
.volume .related, .volume .btn { animation: mtn-fade .45s ease-out .3s backwards; }
@keyframes mtn-fade { from { opacity: 0; } }
