/* Their philosophy
   Scoped to .ph so Peter's /philosophy page and the doorway stay untouched. */

.ph {
  --ph-ink: #f4efe6;
  --ph-soft: #d9d0c3;
  --ph-muted: #b7aa9a;
  --ph-quiet: #8f8476;
  --ph-gold: #c9951e;
  --ph-line: rgba(232, 220, 196, 0.16);
  --ph-pad: clamp(1.25rem, 4vw, 7rem);
  background: #07070b;
  color: var(--ph-ink);
  font-size: 1.125rem;
  line-height: 1.55;
}

.ph a {
  color: inherit;
  text-decoration: none;
}

.ph :focus-visible {
  outline: 2px solid var(--ph-gold);
  outline-offset: 4px;
}

.ph .wrap {
  width: min(1080px, calc(100% - (var(--ph-pad) * 2)));
  margin-inline: auto;
}

.ph .narrow {
  width: min(720px, calc(100% - (var(--ph-pad) * 2)));
}

.ph .hero {
  padding: clamp(4.5rem, 12vh, 8rem) var(--ph-pad) clamp(3rem, 8vh, 5rem);
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(201, 149, 30, 0.08), transparent 55%),
    #07070b;
}

.ph .hero-inner {
  width: min(820px, 100%);
}

.ph .trail {
  margin: 0 0 1.6rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ph-quiet);
}

.ph .trail a:hover {
  color: var(--ph-gold);
}

.ph .brow {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--ph-soft);
}

.ph h1 {
  margin: 0;
  max-width: 10em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #f7f3ea;
}

.ph .lead,
.ph .prose {
  max-width: 36em;
  color: var(--ph-soft);
}

.ph .lead {
  margin: 1.4rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.ph .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
  padding: 0.95rem 1.45rem 0.95rem 1.55rem;
  min-height: 52px;
  background: #f4efe4;
  color: #1a140c;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}

.ph .cta .arrow {
  font-size: 1.15rem;
  letter-spacing: 0;
  transition: transform 0.25s ease;
}

.ph .cta:hover {
  background: #fffaf1;
  color: #1a140c;
}

.ph .cta:hover .arrow {
  transform: translateX(5px);
}

.ph .source,
.ph .slogan,
.ph .alignment {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
}

.ph h2 {
  margin: 0 0 1.1rem;
  max-width: 14em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ph .label {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ph-gold);
}

.ph .assumptions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.8rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ph-line);
}

.ph .assumptions li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ph-line);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: #f7f3ea;
}

.ph .inherit {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  background: #0c0b10;
}

.ph .split {
  display: grid;
  gap: 2.5rem;
}

.ph blockquote {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.15rem;
  border-left: 1px solid rgba(201, 149, 30, 0.7);
  max-width: 22em;
}

.ph blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: #f3eee6;
}

.ph .stream {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph .stream li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ph-soft);
}

.ph .stream li:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 0.7rem;
  margin-top: 0.7rem;
  background: rgba(201, 149, 30, 0.55);
}

.ph .stream .now {
  color: #f7f3ea;
}

.ph .here {
  margin-left: 0.7rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7d7b0;
  vertical-align: 0.35em;
}

.ph .stream .out {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ph-muted);
}

.ph .slogan {
  background: #07070b;
}

.ph .slogan p {
  margin: 0 0 1rem;
  max-width: 36em;
  color: var(--ph-soft);
}

.ph .quiet {
  margin-top: 1.6rem;
  color: var(--ph-muted);
}

.ph .coherence {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f7f3ea;
}

.ph .stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--ph-line);
  border: 1px solid var(--ph-line);
}

.ph .stages li {
  margin: 0;
  padding: 1.5rem 1.3rem 1.4rem;
  background: #120f0c;
}

.ph .stages .open {
  background: #18140f;
  box-shadow: inset 0 2px 0 var(--ph-gold);
}

.ph .index {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ph-quiet);
}

.ph .stages .open .index {
  color: var(--ph-gold);
}

.ph h3 {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.ph .ask {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ph-soft);
}

.ph .offer {
  display: inline-block;
  margin: 0.75rem 0 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ph-gold);
}

.ph .close {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  background: #f4efe4;
  color: #1a140c;
}

.ph .close-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ph .close-note {
  margin: 0.85rem 0 0;
  max-width: 22em;
  color: #5c5144;
}

.ph .close .cta {
  background: #1a140c;
  color: #f7f1e4;
}

.ph .close .cta:hover {
  background: #2c2418;
  color: #f7f1e4;
}

@media (min-width: 760px) {
  .ph .assumptions {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .ph .split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 4rem;
  }
}

@media (min-width: 860px) {
  .ph .stages {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph .cta .arrow {
    transition: none;
  }
}

.ph .stages li,
.ph .stage { padding: 0; }
.ph .stage-link,
.ph .stage-face {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.3rem 1.4rem;
  color: inherit;
  text-decoration: none;
}
.ph .stage-link:hover {
  background: #1c1813;
  box-shadow: inset 0 2px 0 var(--ph-gold);
}
