/* =====================================================================
   plpslaw.com v2 · Direction F · "Oxblood Monoline"
   Three-colour discipline: oxblood field, rose-stone sections, warm black.
   Gold appears only as 1px lines and small labels. The P monogram's
   geometry (v2/brand/mark.svg) is the page's one ornament; its stems are
   the column rules. Everything right of the main column sits on column 9
   of one 12-column grid.
   ===================================================================== */

/* Fonts: self-hosted (OFL). Latin subsets of the Google Fonts builds;
   Noto Serif SC is a subset holding only the glyphs on this page. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-serif-4-roman.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-serif-4-italic.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 125%; font-display: swap;
  src: url(../fonts/archivo-expanded.woff2) format("woff2"); }
@font-face { font-family: "Noto Serif SC"; font-weight: 300; font-display: swap; src: url(../fonts/noto-serif-sc-300.woff2) format("woff2"); }
@font-face { font-family: "Noto Serif SC"; font-weight: 400; font-display: swap; src: url(../fonts/noto-serif-sc-400.woff2) format("woff2"); }
@font-face { font-family: "Noto Serif SC"; font-weight: 500; font-display: swap; src: url(../fonts/noto-serif-sc-500.woff2) format("woff2"); }
/* Metric-matched fallback while Source Serif loads: Georgia scaled to Source Serif's x-height
   (475/1000 vs 986/2048), with Source Serif's own ascent/descent, so the swap does not reflow lines vertically. */
@font-face { font-family: "Source Serif Fallback"; src: local("Georgia"), local("Georgia Regular");
  size-adjust: 98.7%; ascent-override: 105%; descent-override: 34%; line-gap-override: 0%; }

:root {
  --ox: #561C22;          /* oxblood field */
  --ox-tone: #6A2A31;     /* tone-on-tone band of the giant P (graphic only) */
  --stone: #EAE3DE;       /* rose-stone */
  --black: #1C1816;       /* warm black: seal block, footer */
  --ivory: #F3ECE1;       /* text on oxblood 11.3:1 */
  --ivory-2: #D8C6BC;     /* secondary on oxblood 8.0:1 */
  --gold: #E0B66E;        /* screen gold (brand/NOTES.md "refined gold for dark"), on oxblood/black only */
  --gold-deep: #9E6E1E;   /* graphics on rose-stone (3.5:1) */
  --ink: #561C22;         /* text on rose-stone 10.4:1 */
  --ink-2: #4A3F3C;       /* secondary on rose-stone 8.0:1 */
  --black-2: #B8ABA2;     /* secondary on warm black 7.9:1 */

  --serif: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --zh: "Noto Serif SC", "Songti SC", "SimSun", serif;

  /* seven text sizes (plus the display h1) */
  --t-label: 11px;
  --t-nav: 12px;
  --t-small: 14px;
  --t-body: 17px;
  --t-lead: clamp(22px, 1.8vw, 26px);
  --t-stmt: clamp(28px, 2.8vw, 40px);
  --t-title: clamp(36px, 4.2vw, 60px);

  --m: clamp(20px, 5.5vw, 80px);   /* page margin */
  --g: clamp(20px, 2.4vw, 40px);   /* grid gutter */
  --c: clamp(32px, 3vw, 48px);     /* clearance between a monoline rule and text */
  --sec: clamp(72px, 7vw, 104px);  /* section padding */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ox); }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:lang(zh-Hans) { font-family: var(--zh); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.stone :focus-visible { outline-color: var(--ink); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--black); color: var(--ivory); padding: 10px 14px;
  font: 500 var(--t-label)/1 var(--sans); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--m), 1440px); margin-inline: auto; }

/* Colour contexts ---------------------------------------------------- */
.field, .ox {
  background: var(--ox); color: var(--ivory);
  --fg: var(--ivory); --fg2: var(--ivory-2); --lab: var(--gold);
  --rule: var(--gold); --rule-soft: rgba(224, 182, 110, .28);
}
.stone {
  background: var(--stone); color: var(--ink);
  --fg: var(--ink); --fg2: var(--ink-2); --lab: var(--ink);
  --rule: var(--gold-deep); --rule-soft: rgba(86, 28, 34, .16);
}

/* Type primitives ---------------------------------------------------- */
.label, .rule-link, dt, .i-role, .s-role, .i-go {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 500;
  font-size: var(--t-label);
  line-height: 1.35;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.label { color: var(--lab); }
.on-rule { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }

h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-title);
  line-height: 1.06;
  letter-spacing: -.012em;
  font-variation-settings: "opsz" 60;
  color: var(--fg);
  text-wrap: balance;
}
.body { font-size: var(--t-body); line-height: 1.65; color: var(--fg2); max-width: 34em; }
.more { margin-top: 32px; }

.rule-link {
  display: inline-block;
  color: var(--fg);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  transition: color .2s ease, border-color .2s ease;
}
.rule-link:hover { color: var(--lab); }
.stone .rule-link:hover { color: var(--gold-deep); }
.rule-link:lang(zh-Hans) { font-family: var(--zh); font-weight: 500; font-size: var(--t-small); letter-spacing: .12em; }

/* The grid: one column on phones, twelve from 900px */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }

/* =====================================================================
   Masthead: the warm-black seal hanging from the top edge
   ===================================================================== */
.masthead { position: absolute; inset: 0 0 auto 0; z-index: 10; height: 0; }
.seal {
  position: absolute; top: 0; left: var(--m);
  width: 64px; height: 80px;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 14px;
}
.seal-mark { height: 40px; width: auto; aspect-ratio: 187.2 / 250.63; overflow: visible; }
.seal-mark path { fill: none; stroke: var(--gold); stroke-width: 1.15px; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.seal-name { display: none; fill: var(--gold); }

.m-wordmark { position: absolute; top: 35px; left: calc(var(--m) + 64px + 16px); width: min(186px, 100vw - 2 * var(--m) - 64px - 16px - 76px); fill: var(--gold); }
.m-wordmark svg { width: 100%; height: auto; }

.nav { display: none; }

.menu { position: absolute; top: 26px; right: var(--m); }
.menu summary {
  list-style: none; cursor: pointer;
  font: 500 var(--t-nav)/1 var(--sans); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory); padding: 8px 0 9px; border-bottom: 1px solid var(--gold);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary span { color: var(--gold); }
.menu nav {
  position: absolute; right: 0; top: 46px;
  width: min(320px, calc(100vw - 2 * var(--m)));
  background: var(--black); padding: 26px 26px 22px;
  border-top: 1px solid var(--gold);
}
.menu nav li a { display: block; padding: 9px 0; font: 300 var(--t-lead)/1.2 var(--serif); color: var(--ivory); font-variation-settings: "opsz" 36; }
.menu nav li a:lang(zh-Hans) { font-family: var(--zh); font-weight: 400; }
.menu nav p { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(224, 182, 110, .3); font-size: var(--t-body); color: var(--black-2); }

/* =====================================================================
   The oxblood field: hero + firm, with the giant double-P
   ===================================================================== */
.field {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  /* phones: the whole P, inner stem on the left margin, bowl on the right margin */
  --bar-y: 100px;
  --pw: min((100cqw - 2 * var(--m)) * 1.018056, 440px);
  --ph: calc(var(--pw) * 1.338835);
}
.giant {
  position: absolute;
  z-index: 0;
  left: calc(var(--m) - var(--pw) * 0.008868);
  top: var(--bar-y);
  width: var(--pw);
  height: var(--ph);
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.giant path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.giant .band path { stroke: var(--ox-tone); stroke-width: 3.32; }
.giant .band path.ext { stroke-linecap: square; }
.giant .hair path { stroke: var(--gold); stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.giant .hair path.ext { stroke-linecap: square; }
.giant .ext { display: none; }

/* the 1px line is revealed by a dashed mask stroke (user units), so pathLength stays exact */
@media (prefers-reduced-motion: no-preference) {
  .giant .reveal { animation: draw 2.4s cubic-bezier(.6, .04, .24, 1) .3s backwards; }
  .giant .r-inner { animation-delay: .75s; }
  .giant .r-ext { animation: draw 1.6s cubic-bezier(.45, 0, .55, 1) 2.6s backwards; }
}
@keyframes draw {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}

.hero { position: relative; z-index: 1; padding: calc(var(--bar-y) + var(--ph) + 36px) 0 56px; }
.eyebrow { color: var(--gold); }
.hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 11.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.016em;
  font-variation-settings: "opsz" 60;
  color: var(--ivory);
}
.hero h1 .br { display: none; }
.hero-sub { margin-top: 22px; max-width: 30em; font-size: var(--t-body); line-height: 1.6; color: var(--ivory-2); }
.hero-cta { margin-top: 30px; }

.firm { position: relative; z-index: 1; padding: 24px 0 var(--sec); }
.firm .label { margin-bottom: 30px; }
.statement {
  font-weight: 300;
  font-size: var(--t-stmt);
  line-height: 1.24;
  letter-spacing: -.008em;
  font-variation-settings: "opsz" 48;
  color: var(--ivory);
  max-width: 21em;
}
.firm .body { margin-top: 28px; }
.approach { margin-top: 72px; }
.approach .label { margin-bottom: 0; }
.tenets li { padding: 24px 0 26px; border-bottom: 1px solid var(--rule-soft); }
.lead { font-weight: 300; font-size: var(--t-lead); line-height: 1.25; color: var(--ivory); font-variation-settings: "opsz" 36; max-width: 16em; }
.note { margin-top: 10px; font-size: var(--t-body); line-height: 1.6; color: var(--fg2); max-width: 30em; }

/* =====================================================================
   Section scaffolding + the Γ bracket (the P's stem and top bar)
   ===================================================================== */
.practices, .people, .contact { padding: var(--sec) 0; }
.sec-head { margin-bottom: clamp(40px, 4.5vw, 64px); }
.sec-head > .label { margin-bottom: clamp(28px, 2.6vw, 40px); }
.sec-head-row { row-gap: 22px; }
.sec-intro { font-size: var(--t-body); line-height: 1.6; color: var(--fg2); max-width: 30em; }

.brackets { row-gap: 56px; }
.bracket-col { display: flex; flex-direction: column; }
.bracket-col > .label { margin-bottom: 14px; }
.bracket { flex: 1; border-top: 1px solid var(--rule); padding-top: 26px; }

/* practices */
.tag { font-style: italic; font-size: var(--t-body); line-height: 1.5; color: var(--fg2); margin-bottom: 26px; }
.plist li + li { margin-top: 22px; }
.plist a { display: block; }
.pname {
  display: block;
  font-weight: 360;
  font-size: var(--t-lead);
  line-height: 1.15;
  letter-spacing: -.006em;
  color: var(--fg);
  text-decoration: underline 1px transparent;
  text-underline-offset: 7px;
  transition: text-decoration-color .2s ease;
}
.plist a:hover .pname { text-decoration-color: var(--gold-deep); }
.psum { display: block; margin-top: 8px; font-size: var(--t-body); line-height: 1.55; color: var(--fg2); max-width: 26em; }

/* =====================================================================
   People: a typographic index, each row a link to the bio
   ===================================================================== */
.index { border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule-soft); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 24px 0 26px; }
.i-name {
  grid-column: 1 / -1;
  font-weight: 300;
  font-size: var(--t-stmt);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 60;
  color: var(--ivory);
}
.i-name span { text-decoration: underline 1px transparent; text-underline-offset: .18em; transition: text-decoration-color .2s ease; }
.row:hover .i-name span { text-decoration-color: var(--gold); }
.i-role { grid-column: 1; margin-top: 12px; color: var(--gold); }
.i-focus { grid-column: 1 / -1; margin-top: 8px; font-size: var(--t-body); line-height: 1.5; color: var(--ivory-2); }
.i-focus span { white-space: nowrap; }
.i-focus span + span::before { content: ", "; white-space: normal; }
.i-go { grid-column: 2; grid-row: 2; margin-top: 12px; align-self: start; color: var(--ivory); padding-bottom: 6px; border-bottom: 1px solid var(--gold); }

.people-lower { margin-top: clamp(64px, 5.5vw, 80px); row-gap: 64px; }
.staff-block .label, .languages .label { margin-bottom: 0; }
.srow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0 15px; border-bottom: 1px solid var(--rule-soft); }
.s-name { font-weight: 300; font-size: var(--t-lead); line-height: 1.2; color: var(--ivory); font-variation-settings: "opsz" 36;
  text-decoration: underline 1px transparent; text-underline-offset: .2em; transition: text-decoration-color .2s ease; }
.srow:hover .s-name { text-decoration-color: var(--gold); }
.s-role { color: var(--ivory-2); }

.tongues { margin-top: 24px; font-weight: 300; font-size: var(--t-stmt); line-height: 1.2; color: var(--ivory); font-variation-settings: "opsz" 60; }
.tongues li:lang(zh-Hans) { font-weight: 300; }
.languages .note { margin-top: 22px; }
.languages .note.zh { margin-top: 12px; line-height: 1.85; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-main > .label { margin-bottom: clamp(28px, 2.6vw, 40px); }
.contact-grid { row-gap: 56px; }
.contact .body { margin-top: 26px; }
.contact-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px 32px; }
.gamma { border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); padding: 28px 0 6px clamp(20px, 2vw, 30px); }
.address div + div { margin-top: 20px; }
.address dt { color: var(--lab); }
.address dd { margin-top: 6px; font-size: var(--t-body); line-height: 1.5; color: var(--fg); }
.address a:hover { color: var(--gold-deep); }
.contact-side .more { margin-top: 28px; }

/* =====================================================================
   Footer: warm black, full-width wordmark set solid, tone on tone
   ===================================================================== */
.footer { background: var(--black); color: var(--ivory); padding-top: clamp(64px, 6.5vw, 96px); }
.foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); row-gap: 44px; }
.foot-practices { grid-column: 1 / -1; grid-row: 2; }
.foot-practices ul { columns: 2; column-gap: var(--g); }
.foot-practices li { break-inside: avoid; }
.nowrap { white-space: nowrap; }
.foot-col .label { color: var(--gold); margin-bottom: 18px; }
.foot-col li + li { margin-top: 8px; }
.foot-col a, .foot-col address { font-style: normal; font-size: var(--t-small); line-height: 1.5; color: var(--black-2); transition: color .2s ease; }
.foot-col a:hover { color: var(--ivory); }
.foot-col address { line-height: calc(var(--t-small) * 1.5 + 8px); }
.foot-col a:lang(zh-Hans) { font-family: var(--zh); }
.legal { margin-top: clamp(48px, 4.5vw, 64px); padding-top: 26px; border-top: 1px solid rgba(224, 182, 110, .28); display: grid; gap: 12px; }
.legal p { font-size: var(--t-small); line-height: 1.6; color: var(--black-2); max-width: 62em; }
.legal .legal-line { color: var(--ivory); }
.legal-meta a { text-decoration: underline 1px rgba(184, 171, 162, .5); text-underline-offset: 3px; }
.legal-meta a:hover { color: var(--ivory); }
.giant-wordmark { padding: clamp(40px, 4vw, 56px) 0 clamp(24px, 2.8vw, 40px); }
.giant-wordmark svg { width: 100%; height: auto; }
.giant-wordmark use { fill: var(--ox); stroke: none; }

/* =====================================================================
   ≥ 640
   ===================================================================== */
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-practices { grid-column: auto; grid-row: auto; }
  .foot-practices ul { columns: 1; }
}

/* =====================================================================
   ≥ 900: twelve columns. The P's outer stem sits one clearance left of
   column 9, so every right-hand column in the page starts on the same x.
   ===================================================================== */
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }

  .seal { width: 136px; height: auto; padding: 26px 20px 22px; justify-content: flex-start; align-items: flex-start; gap: 22px;
    left: max(var(--m), (100% - 1440px) / 2); }
  .seal-mark { height: 56px; }
  .seal-name { display: block; width: 96px; height: auto; }
  .m-wordmark, .menu { display: none; }

  .nav { display: flex; align-items: baseline; gap: 34px; position: absolute; top: 66px; right: max(var(--m), (100% - 1440px) / 2); }
  .nav ul { display: flex; gap: 30px; }
  .nav a { font: 500 var(--t-nav)/1.35 var(--sans); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ivory); padding-bottom: 6px; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
  .nav a:hover { border-bottom-color: var(--gold); }
  .nav .nav-zh { font-family: var(--zh); font-weight: 500; font-size: var(--t-nav); letter-spacing: .12em; color: var(--gold); }

  .field {
    --bar-y: 112px;
    --ph: min(95svh, 72vw, 980px);
    --pw: calc(var(--ph) * 0.746918);
    /* the wrap and its 12-column grid, measured from the field's left edge (cqw resolves against .field) */
    --wrapw: min(100cqw - 2 * var(--m), 1440px);
    --wl: calc((100cqw - var(--wrapw)) / 2);
    --colw: calc((var(--wrapw) - 11 * var(--g)) / 12);
    --x9: calc(var(--wl) + 8 * (var(--colw) + var(--g)));
    /* stems: outer stem one clearance left of column 9; inner stem 40.43 mark-units further left */
    --outX: calc(var(--x9) - var(--c));
    --inX: calc(var(--outX) - var(--pw) * 0.215972);
    --avail: calc(var(--inX) - var(--c) - var(--wl));
  }
  .giant { left: calc(var(--outX) - var(--pw) * 0.224840); }
  .giant .ext { display: inline; }
  .hero { height: min(clamp(640px, 100svh, 1040px), var(--bar-y) + var(--ph) + 96px); padding: 0 0 clamp(56px, 10svh, 112px);
    display: flex; align-items: flex-end; }
  .hero-text { max-width: var(--avail); }
  /* "Counsel for what" is 6.62em wide at this setting: the line always clears the inner stem */
  .hero h1 { font-size: clamp(44px, min(6.2vw, var(--avail) / 6.75), 112px); }
  .hero h1 .br { display: inline; }

  .firm { padding: var(--sec) 0; }
  .firm-grid { display: grid; grid-template-columns: var(--avail) minmax(0, 1fr) calc(var(--wl) + var(--wrapw) - var(--x9)); align-items: start; }
  .firm-main { grid-column: 1; }
  .approach { grid-column: 3; margin-top: 0; }
  .tenets li:first-child { padding-top: 22px; }

  .sec-head-row { align-items: baseline; }
  .sec-head-row h2 { grid-column: 1 / 9; }
  .sec-head-row .sec-intro { grid-column: 9 / 13; }

  .brackets { column-gap: var(--g); }
  .bracket-col { grid-column: span 4; }
  .bracket { border-left: 1px solid var(--rule); padding: 28px 0 28px clamp(20px, 2vw, 30px); }

  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline; padding: 24px 0 26px; }
  .i-name { grid-column: 1 / 7; }
  .i-role { grid-column: 7 / 9; grid-row: 1; margin: 0; }
  .i-focus { grid-column: 9 / 12; grid-row: 1; margin: 0; }
  .i-focus span { display: block; }
  .i-focus span + span::before { content: none; }
  .i-go { grid-column: 12; grid-row: 1; justify-self: end; align-self: baseline; margin: 0; }

  .people-lower { align-items: start; }
  .staff-block { grid-column: 1 / 9; }
  .languages { grid-column: 9 / 13; }
  .srow { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--g); }
  .s-name { grid-column: 1 / 7; }
  .s-role { grid-column: 7 / 9; }

  .contact-main { grid-column: 1 / 8; }
  .contact-side { grid-column: 9 / 13; margin-top: calc(var(--t-label) * 1.35 + 14px); }

  .foot-firm { grid-column: 1 / 4; }
  .foot-practices { grid-column: 4 / 9; grid-row: auto; }
  .foot-office { grid-column: 9 / 13; }
  .foot-practices ul { columns: 2; column-gap: var(--g); }
  .foot-practices li { break-inside: avoid; }
}

/* ≥ 1200: the P grows with the screen and runs down into the firm section */
@media (min-width: 1200px) {
  .field { --ph: clamp(760px, min(130svh, 75vw), 1400px); }
}
/* ≥ 1980: the wrap stops growing; keep the bowl a clear 64px inside the right edge */
@media (min-width: 1980px) {
  .field { --ph: clamp(760px, min(130svh, 75vw, (100cqw - 64px - var(--outX)) * 1.72718), 1400px); }
}
