:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --ink: #141414;
  --muted: #65635d;
  --line: #b9b6ad;
  --soft-line: #d9d6cd;
  --signal: #e94822;
  --black: #0a0a0a;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
code, pre { font-family: var(--mono); }
[hidden] { display: none !important; }

.ph-skip { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--black); color: white; }
.ph-skip:focus { top: 1rem; }
.ph-nav { min-height: 72px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(1rem, 4vw, 4rem); }
.ph-wordmark { font: 800 clamp(.95rem, 2vw, 1.2rem)/1 var(--mono); letter-spacing: -.04em; text-decoration: none; }
.ph-navlinks { display: flex; gap: clamp(.75rem, 2vw, 2rem); overflow-x: auto; white-space: nowrap; font: 650 .72rem/1 var(--mono); letter-spacing: .04em; }
.ph-navlinks a { text-decoration: none; padding: 1rem 0; }
.ph-navlinks a:hover, .ph-navlinks a:focus-visible { color: var(--signal); }

main { width: min(1600px, 100%); margin: auto; }
.ph-hero { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr); border-bottom: 1px solid var(--ink); }
.ph-hero-copy { padding: clamp(2.5rem, 4vw, 5rem) clamp(1rem, 6vw, 6rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.ph-eyebrow { margin: 0 0 1rem; font: 650 .72rem/1.4 var(--mono); letter-spacing: .045em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 14ch; margin: 0; font-size: clamp(3.2rem, 6vw, 7rem); line-height: .89; letter-spacing: -.075em; font-weight: 750; }
h1 em { display: block; color: var(--signal); font-style: normal; }
.ph-deck { max-width: 62ch; margin: clamp(1.7rem, 3vw, 3rem) 0 0; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.45; }
.ph-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; }
.ph-button { appearance: none; border: 1px solid var(--ink); border-radius: 0; background: var(--signal); color: var(--ink); padding: .95rem 1.2rem; min-height: 48px; font: 750 .78rem/1 var(--mono); letter-spacing: .03em; text-decoration: none; cursor: pointer; }
.ph-button:hover, .ph-button:focus-visible { background: var(--ink); color: var(--paper); }
.ph-button:active { transform: translateY(1px); }
.ph-text-link, .ph-row-link { font: 700 .72rem/1.3 var(--mono); letter-spacing: .03em; }
.ph-latest { background: var(--black); color: #f4f2eb; padding: clamp(2rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.ph-latest .ph-eyebrow { color: #aaa79e; margin-top: 1.25rem; }
.ph-latest-head { display: flex; justify-content: space-between; padding-bottom: .8rem; border-bottom: 1px solid #4a4945; font: 650 .68rem/1 var(--mono); color: #aaa79e; }
.ph-latest h2 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); line-height: .98; letter-spacing: -.055em; }
.ph-wire { margin: 1.4rem 0; border-top: 1px solid #4a4945; }
.ph-wire div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .65rem; padding: .85rem 0; border-bottom: 1px solid #4a4945; font: .72rem/1.35 var(--mono); }
.ph-wire span { grid-row: 1 / span 2; color: #aaa79e; }
.ph-wire b, .ph-wire i { font-style: normal; font-weight: 500; }
.ph-wire .third { color: #ff7a58; }
.ph-wire i { color: #8d8b84; }
.ph-limit { font: .75rem/1.45 var(--mono); color: #aaa79e; }
.ph-latest .ph-row-link { margin-top: 1rem; color: #ff7250; }

.ph-section { padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 6vw, 6rem); border-bottom: 1px solid var(--ink); }
.ph-scope { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; background: var(--signal); }
.ph-section-label { font: 700 .7rem/1.3 var(--mono); }
.ph-scope p { max-width: 55ch; margin: 0; font-size: clamp(1.5rem, 3vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; }
.ph-section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.ph-section-head h2, .ph-two-col h2, .ph-sponsor-block h2, .ph-evidence h2 { max-width: 18ch; margin: 0; font-size: clamp(2.3rem, 5vw, 5.2rem); line-height: .94; letter-spacing: -.06em; }
.ph-search { display: grid; gap: .5rem; font: 650 .68rem/1 var(--mono); }
.ph-search input { width: min(320px, 70vw); border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: .7rem 0; font-size: 1rem; outline: none; }
.ph-search input:focus { border-color: var(--signal); box-shadow: 0 2px 0 var(--signal); }
.ph-tool { display: grid; grid-template-columns: 150px minmax(0, 1.4fr) minmax(280px, .8fr) auto; gap: clamp(1rem, 3vw, 3rem); align-items: start; padding: 2rem 0; border-top: 1px solid var(--ink); }
.ph-tool-index { font: 700 .7rem/1.3 var(--mono); color: var(--signal); }
.ph-tool h3 { margin: 0 0 .45rem; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.ph-tool p { max-width: 60ch; margin: 0; }
.ph-tool-metrics, .ph-config-head dl, .ph-factbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.ph-tool-metrics div, .ph-config-head dl div { border-left: 1px solid var(--soft-line); padding-left: .8rem; }
dt { font: 600 .62rem/1.2 var(--mono); color: var(--muted); }
dd { margin: .4rem 0 0; font: 700 1.05rem/1.1 var(--mono); }
.ph-row-link { align-self: center; color: var(--signal); }
.ph-empty { font-family: var(--mono); }
.ph-two-col, .ph-evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: clamp(3rem, 8vw, 9rem); }
.ph-sequence { border-top: 1px solid var(--ink); }
.ph-sequence p { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--soft-line); }
.ph-sequence b { color: var(--signal); font-family: var(--mono); }
.ph-sponsor-block { background: var(--black); color: var(--paper); }
.ph-sponsor-block .ph-eyebrow { color: #aaa79e; }
.ph-sponsor-block p:not(.ph-eyebrow) { max-width: 60ch; font-size: 1.1rem; }
.ph-button-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.ph-page-head { padding: clamp(4rem, 10vw, 10rem) clamp(1rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem); border-bottom: 1px solid var(--ink); }
.ph-page-head h1 { max-width: 13ch; }
.ph-page-head.ph-narrow h1 { max-width: 10ch; }
.ph-factbar { margin-top: 3rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); grid-template-columns: repeat(4, 1fr); }
.ph-factbar span { padding: 1rem 0; font: 650 .68rem/1.4 var(--mono); }
.ph-factbar b { display: block; margin-top: .25rem; font-size: .9rem; }
.ph-copy-status { min-height: 1.5em; font: .72rem/1.4 var(--mono); }
.ph-config { padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 6vw, 6rem); border-bottom: 1px solid var(--ink); }
.ph-config-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.ph-config-head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.05em; }
.ph-config-head dl { min-width: 300px; grid-template-columns: repeat(2, 1fr); }
.ph-flags { margin: 0 0 2rem; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); padding: .9rem 0; }
.ph-flags summary, .ph-evidence summary { cursor: pointer; font: 650 .72rem/1.3 var(--mono); }
.ph-flags pre { white-space: pre-wrap; font-size: .72rem; }
.ph-table-wrap { overflow-x: auto; }
.ph-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.ph-table th { padding: .7rem .6rem; border-bottom: 2px solid var(--ink); font: 650 .65rem/1 var(--mono); color: var(--muted); }
.ph-table td { padding: 1rem .6rem; border-bottom: 1px solid var(--soft-line); vertical-align: top; font-size: .88rem; }
.ph-table td:first-child { font-family: var(--mono); }
.ph-table small { display: block; color: var(--muted); }
.ph-table code { font-size: .76rem; }
.ph-state { display: inline-block; padding: .3rem .45rem; border: 1px solid var(--ink); font: 650 .62rem/1 var(--mono); white-space: nowrap; }
.ph-state.not_observed { color: var(--muted); border-color: var(--line); }
.ph-limit-list { margin: 0; padding: 0; counter-reset: limits; list-style: none; }
.ph-limit-list li { counter-increment: limits; padding: 1rem 0 1rem 3.5rem; border-top: 1px solid var(--soft-line); position: relative; }
.ph-limit-list li::before { content: counter(limits, decimal-leading-zero); position: absolute; left: 0; font-family: var(--mono); color: var(--signal); }
.ph-evidence details { border-top: 1px solid var(--soft-line); padding: 1rem 0; }
.ph-evidence details code { display: block; margin-top: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .68rem; }
.ph-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 0; padding-bottom: 0; }
.ph-method-grid article { min-height: 310px; padding: 3rem 2rem; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.ph-method-grid article > b { font-family: var(--mono); color: var(--signal); }
.ph-method-grid h2 { font-size: 2rem; letter-spacing: -.04em; }

.ph-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2rem clamp(1rem, 4vw, 4rem); background: var(--paper); font: .68rem/1.5 var(--mono); }
.ph-footer span:last-child { text-align: right; }

@media (hover: hover) and (pointer: fine) {
  .ph-tool:hover h3 a { color: var(--signal); }
}

@media (max-width: 900px) {
  .ph-nav { align-items: flex-start; flex-direction: column; padding-top: 1rem; padding-bottom: 1rem; gap: .7rem; }
  .ph-navlinks { width: 100%; }
  .ph-hero { grid-template-columns: 1fr; }
  .ph-hero-copy { min-height: calc(100svh - 110px); }
  .ph-latest { min-height: 620px; }
  .ph-scope, .ph-two-col, .ph-evidence { grid-template-columns: 1fr; }
  .ph-tool { grid-template-columns: 100px minmax(0, 1fr); }
  .ph-tool-metrics { grid-column: 2; }
  .ph-tool .ph-row-link { grid-column: 2; justify-self: start; }
  .ph-method-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-footer { grid-template-columns: 1fr; }
  .ph-footer span:last-child { text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .ph-hero-copy { min-height: 680px; }
  h1 { font-size: clamp(3rem, 16vw, 5.2rem); }
  .ph-section-head, .ph-config-head { align-items: stretch; flex-direction: column; }
  .ph-search input { width: 100%; font-size: 16px; }
  .ph-tool { grid-template-columns: 1fr; }
  .ph-tool-index, .ph-tool-metrics, .ph-tool .ph-row-link { grid-column: 1; }
  .ph-tool-metrics { grid-template-columns: 1fr 1fr; }
  .ph-factbar { grid-template-columns: 1fr 1fr; }
  .ph-config-head dl { min-width: 0; width: 100%; }
  .ph-method-grid { grid-template-columns: 1fr; }
  .ph-method-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
