/* J. Brent Garfield, Attorney at Law
   Visual idea: a will in its blue legal backer, bound with red tape.
   Palette
     --backer       blue backing paper used to bind wills and deeds
     --backer-deep  the folded-over edge of the backer
     --paper        the document sheet
     --ink          blue-black fountain-pen ink
     --tape         oxblood red tape and sealing wax
*/

:root {
  --backer: #a9bdd3;
  --backer-deep: #8ea5c0;
  --backer-wash: #e9eff5;
  --paper: #fcfcfa;
  --ink: #1a2333;
  --ink-soft: #46516a;
  --rule: #cfd8e3;
  --tape: #8e2a2a;
  --tape-deep: #6f1f1f;

  --serif: "Libre Caslon Display", "Big Caslon", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Classic scale: 14 · 16 · 19 · 24 · 30 · 40 · 56 · 72 */
  --step--1: 0.875rem;
  --step-0: 1.1875rem;   /* 19px body: generous for older readers */
  --step-1: 1.5rem;
  --step-2: 1.875rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.5rem, 5.4vw, 4.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); line-height: 1.1; }
h3 { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Masthead ---------- */
.masthead { background: var(--backer); border-bottom: 1px solid var(--backer-deep); }
.masthead__inner {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.wordmark__name { font-family: var(--serif); font-size: 1.65rem; }
.wordmark__role { font-size: var(--step--1); color: var(--ink-soft); letter-spacing: .02em; margin-top: .15rem; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 1rem; }
.nav a { text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }

.masthead__call {
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 3px;
}
.masthead__call:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--backer);
  /* faint paper fibre */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.instrument { position: relative; }

/* the backer folded down over the top of the will */
.instrument__fold {
  position: relative; z-index: 2;
  height: 2.75rem;
  background: var(--backer-deep);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 6px 8px -6px rgba(26, 35, 51, .45);
  display: flex; justify-content: space-between; padding: 0 22%;
  align-items: center;
}
.staple {
  width: 1.6rem; height: 3px; border-radius: 2px;
  background: linear-gradient(#e6e9ee, #9aa3b0);
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.instrument__sheet {
  position: relative; z-index: 1;
  background: var(--paper);
  padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.5rem);
  box-shadow:
    0 1px 0 rgba(26,35,51,.06),
    0 24px 40px -24px rgba(26,35,51,.45);
  /* faint ruled margin, as on legal cap paper */
  background-image: linear-gradient(to right, transparent calc(clamp(1.5rem, 5vw, 4rem) - 1.1rem), rgba(142,42,42,.28) calc(clamp(1.5rem, 5vw, 4rem) - 1.1rem), rgba(142,42,42,.28) calc(clamp(1.5rem, 5vw, 4rem) - 1rem), transparent calc(clamp(1.5rem, 5vw, 4rem) - 1rem));
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.04;
  max-width: 16ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.lede { max-width: 34em; color: var(--ink-soft); font-size: 1.25rem; line-height: 1.6; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.button {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1.0625rem;
  padding: .9rem 1.5rem; border-radius: 3px;
  transition: background-color .15s ease;
}
.button:hover { background: var(--tape-deep); }
.textlink { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.textlink:hover { color: var(--tape); text-decoration-thickness: 2px; }

.rating { margin-top: 1.75rem; font-size: 1rem; color: var(--ink-soft); }
.stars { color: var(--tape); letter-spacing: .12em; margin-right: .35rem; }

/* wax seal over the bottom corner of the sheet */
.seal {
  position: absolute; z-index: 3;
  width: clamp(7.5rem, 13vw, 10rem);
  right: clamp(-1rem, -2vw, -2.5rem);
  bottom: clamp(-3rem, -4vw, -3.75rem);
  transform: rotate(-9deg);
  filter: drop-shadow(0 6px 6px rgba(60, 15, 15, .35));
}
.seal__edge { fill: var(--tape); }
.seal__ring { fill: none; stroke: #c98a7f; stroke-width: 1.4; opacity: .75; }
.seal__text { fill: #f3dcd6; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; }
.seal__year { fill: #f8e7e2; font-family: var(--serif); font-size: 34px; }

.office dl { margin: 0; display: grid; gap: 1.5rem; }
.office dt { font-size: var(--step--1); font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.office dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.office div { border-top: 1px solid rgba(26,35,51,.28); padding-top: .75rem; }

/* one page-load moment: the sheet settles into its backer, then is sealed */
@media (prefers-reduced-motion: no-preference) {
  .instrument__sheet { animation: settle .8s cubic-bezier(.2,.7,.2,1) both; }
  .seal { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) .75s both; }
  @keyframes settle {
    from { transform: translateY(-18px); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
  @keyframes stamp {
    from { transform: rotate(-16deg) scale(1.35); opacity: 0; }
    to   { transform: rotate(-9deg) scale(1); opacity: 1; }
  }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split__head h2 { margin-bottom: 1.25rem; }
.split__head > p, .prose { color: var(--ink-soft); max-width: 32em; }

.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.areas li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem 2rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
.areas p { color: var(--ink-soft); font-size: 1.0625rem; max-width: 34em; }

.also {
  margin-top: 2.5rem; padding-left: 1rem;
  border-left: 3px solid var(--tape);
  max-width: 40em; font-size: 1.0625rem;
}

/* ten questions: a real numbered checklist, so the numerals carry meaning */
.questions { padding-top: 0; }
.questions__head { max-width: 40em; margin-bottom: 2.5rem; }
.questions__head h2 { margin-bottom: 1.25rem; max-width: 20ch; text-wrap: balance; }
.questions__head p { color: var(--ink-soft); }
.questions__list {
  list-style: none; counter-reset: q; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem);
  border-top: 3px solid var(--ink);
}
.questions__list li {
  counter-increment: q;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem; line-height: 1.5;
}
.questions__list li::before {
  content: counter(q);
  font-family: var(--serif); font-size: var(--step-2); line-height: 1; color: var(--tape);
}
/* fill columns top-to-bottom so 1–5 sit left, 6–10 right */
@supports (grid-auto-flow: column) {
  .questions__list { grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
}
.questions .actions { margin-top: 2.5rem; }

/* about */
.about { background: var(--backer-wash); }
.timeline { list-style: none; margin: .5rem 0 0; padding: 0 0 0 2rem; position: relative; }
/* the red tape that binds the record together */
.timeline::before {
  content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem;
  width: 4px; background: var(--tape); border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 2.25rem; display: grid; gap: .1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -1.95rem; top: .55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--tape);
}
.timeline__year { font-family: var(--serif); font-size: var(--step-2); line-height: 1.1; }
.timeline__event { color: var(--ink-soft); max-width: 26em; }

/* reviews */
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 3rem; }
.rating--large { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.quotes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.quotes figure { margin: 0; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.quotes blockquote { margin: 0 0 1.25rem; }
.quotes blockquote p {
  font-family: var(--serif); font-size: var(--step-2); line-height: 1.2;
  hanging-punctuation: first;
}
.quotes blockquote p::before { content: "\201C"; }
.quotes blockquote p::after { content: "\201D"; }
.quotes figcaption { font-size: 1rem; color: var(--ink-soft); }
.reviews__more { margin-top: 3rem; }
.fineprint { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; max-width: 52em; }
.reviews .fineprint { margin-top: 1rem; }

/* visit */
.visit { background: var(--backer); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.visit__text h2 { margin-bottom: 1.25rem; }
.visit__text > p { max-width: 30em; }
.contact { margin: 2rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; }
.contact div { display: contents; }
.contact dt { font-weight: 600; font-size: 1rem; padding-top: .1rem; }
.contact dd { margin: 0; font-size: 1.0625rem; }
.visit__map { min-height: 22rem; background: var(--backer-deep); border: 10px solid var(--paper); box-shadow: 0 24px 40px -28px rgba(26,35,51,.55); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; }

/* footer */
.footer { background: var(--ink); color: #d7deea; padding: 3rem 0; font-size: 1rem; }
.footer a { color: #fff; }
.footer__name { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: .5rem; }
.footer .fineprint { color: #aab5c8; margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .masthead__call { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .office dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .split, .visit__grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .questions__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .timeline { margin-top: 1rem; }
}
@media (max-width: 640px) {
  :root { --step-0: 1.125rem; }
  .wordmark__name { font-size: 1.35rem; }
  .masthead__call { font-size: .95rem; padding: .45rem .7rem; }
  .instrument__fold { height: 2.1rem; }
  .hero h1 { font-size: 2.4rem; }
  .lede { font-size: 1.125rem; }
  .seal { right: -.5rem; bottom: -2.75rem; width: 6.5rem; }
  .instrument__sheet { padding-bottom: 3.75rem; }
  .office dl { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .areas li { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: .75rem; }
  .button { width: 100%; text-align: center; }
}
@media (max-width: 400px) {
  .wordmark__role { display: none; }
}

@media print {
  .masthead__call, .actions, .visit__map, .seal, .skip { display: none; }
  .hero, .masthead, .visit, .about { background: none; }
  .instrument__sheet { box-shadow: none; }
}
