/* ptbyme.com — Mend design system, values pulled from the live mend.nyc stylesheet (Oct 2026).
   Full-width bands (cream / sage / slate), wide content column with thin rule dividers between columns.
   PP Grafier appears in exactly four places: wordmark, home hero H1, one accent word per home section heading, footer line. */

@font-face {
  font-family: "PP Grafier";
  src: local("PP Grafier"), local("PPGrafier-Regular"),
       url("fonts/PPGrafier-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #ECE8E1;
  --paper: #FAF9F5;
  --blue: #5D7C96;
  --blue-deep: #4C6379;
  --sage: #C3C8B4;
  --slate: #3E4C57;
  --ink: #26261F;
  --grey: #D7D7D2;
  --white: #fff;
  --line-dark: rgba(236, 232, 225, .30);
  --line-light: rgba(38, 38, 31, .22);
  --content: 1600px;
  --gutter: clamp(24px, 3.6vw, 60px);
  --serif: "PP Grafier", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.3;
  letter-spacing: normal;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2 { text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- type scale (Mend classes) ---------- */
.h-sec { font-family: var(--sans); font-weight: 300; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.09; }
.ac { font-family: var(--serif); font-weight: 400; }
.t30 { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; }
.t24 { font-size: clamp(18px, 2vw, 24px); line-height: 1.17; }
.t20 { font-size: clamp(16px, 1.6vw, 20px); }
.t17 { font-size: clamp(14px, 1.3vw, 17px); line-height: 1.3; }
.label { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; line-height: 1.1; }
.eyebrow { font-weight: 600; text-transform: uppercase; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .02em; }
.blue { color: var(--blue-deep); }
.muted { color: #5e5e57; }
.stack > * + * { margin-top: 1em; }
.measure { max-width: 30em; }

/* ---------- bands ---------- */
.band { width: 100%; }
.band-cream { background: var(--cream); color: var(--ink); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-sage  { background: var(--sage);  color: var(--ink); }
.band-slate { background: var(--slate); color: var(--cream); }
.inner {
  max-width: var(--content);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: clamp(72px, 8vw, 120px);
}
.rule { border: 0; border-top: 1px solid var(--line-light); margin: 0; }
.band-slate .rule, .hero .rule { border-top-color: var(--line-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-blue { background: var(--slate); color: var(--cream); border-color: var(--slate); }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--slate); }

/* ---------- header: transparent over the hero, blue sticky bar on scroll (Mend pattern) ---------- */
.hdr {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  color: var(--cream);
}
.hdr .inner, .topbar .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  padding-block: 0;
  border-bottom: 1px solid var(--line-dark);
}
.logo {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.3vw, 44px); line-height: 1;
  text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
  padding-block: 18px;
}
.logo small { font-family: var(--sans); font-weight: 300; font-size: .4em; margin-left: .35em; letter-spacing: .02em; vertical-align: .15em; }
.nav { display: flex; align-items: stretch; margin-left: auto; }
.nav a {
  font-size: clamp(14px, 1.25vw, 16px); font-weight: 600; text-decoration: none;
  display: flex; align-items: center; padding: 0 clamp(14px, 1.6vw, 30px);
}
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .book { border-left: 1px solid var(--line-dark); margin-left: clamp(10px, 1.5vw, 24px); padding-right: 0; }
.nav-rule { width: 1px; background: var(--line-dark); margin: 0 clamp(14px, 2vw, 40px); align-self: stretch; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font-size: 25px; line-height: 1; cursor: pointer; padding: 8px 0; }

.topbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 30;
  background: var(--slate); color: var(--cream);
  transform: translateY(-100%); transition: transform .2s ease;
}
.topbar.is-on { transform: translateY(0); }
.topbar .inner { border-bottom: 0; }
.topbar .logo { font-size: 28px; padding-block: 14px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--slate); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: var(--slate); color: var(--cream);
  padding: 24px max(var(--gutter), env(safe-area-inset-left, 0px));
  flex-direction: column; gap: 22px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 600; text-decoration: none; }
.mobile-nav .close { align-self: flex-end; background: none; border: 0; color: inherit; font-size: 28px; cursor: pointer; }

@media (max-width: 820px) {
  .nav, .nav-rule { display: none; }
  .menu-btn { display: inline-block; }
}

/* ---------- hero (photo, blue multiply .62, dark scrim .26) ---------- */
.hero { position: relative; color: var(--cream); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; z-index: -3; }
.hero-ov  { position: absolute; inset: 0; background: var(--blue); opacity: .62; mix-blend-mode: multiply; z-index: -2; }
.hero-ov2 { position: absolute; inset: 0; background: rgba(0,0,0,.26); z-index: -1; }
.hero .inner { min-height: min(92vh, 900px); padding-top: clamp(140px, 20vw, 260px); padding-bottom: 0; display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 48px; }
.hero-h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.05;
  text-align: center; margin-inline: auto;
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 36px;
}
.hero-foot > * { font-size: clamp(14px, 1.3vw, 17px); line-height: 1.3; }
.hero-foot .right { border-left: 1px solid var(--line-dark); padding: 12px 0 12px clamp(16px, 3vw, 60px); text-align: right; }
@media (max-width: 560px) { .hero-foot { flex-direction: column; align-items: flex-start; } .hero-foot .right { border-left: 0; padding: 0; text-align: left; } }

/* inner-page title (Mend .page-title): eyebrow + Figtree light H1, no serif */
.page .inner { min-height: auto; padding-top: clamp(130px, 18vw, 220px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-rows: none; gap: 20px; align-items: start; }
.page .h-sec { max-width: 14em; }

/* ---------- photos ---------- */
.photo {
  position: relative; overflow: hidden; max-width: 100%;
  background-size: cover; background-position: center;
  filter: saturate(.85);
  aspect-ratio: 7 / 9;
}
.photo::after { content: ""; position: absolute; inset: 0; background: rgba(236,232,225,.16); pointer-events: none; }
.photo-sq { aspect-ratio: 1 / 1; filter: none; }
.photo-sq::after { display: none; }

/* ---------- layouts with rule dividers ---------- */
.cols { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.cols .vrule { width: 1px; background: var(--line-light); align-self: stretch; }
.band-slate .cols .vrule { background: var(--line-dark); }
.cols-wide { grid-template-columns: 1.1fr 1px 1fr; align-items: center; }
@media (max-width: 820px) { .cols, .cols-wide { grid-template-columns: 1fr; } .cols .vrule { display: none; } }

.intro { display: grid; gap: 40px; }
.intro .t30 { max-width: 20em; }

.head { display: grid; gap: 28px; margin-bottom: clamp(32px, 4vw, 56px); }

/* right-aligned condition list (Mend .conds) */
.conds { list-style: none; padding: 0; display: grid; }
.conds li {
  font-size: clamp(18px, 2vw, 24px); line-height: 1.17; font-weight: 300;
  text-align: right; padding: 18px 0; border-top: 1px solid var(--line-dark);
}
.conds li:last-child { border-bottom: 1px solid var(--line-dark); }
.conds li.link { font-size: clamp(16px, 1.6vw, 20px); }
.conds li.link a { text-decoration: underline; text-underline-offset: 4px; }

/* service rows */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 60px; padding-block: 36px; border-top: 1px solid var(--line-light); }
.service:last-child { border-bottom: 1px solid var(--line-light); }
.service h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 400; line-height: 1.17; }
.service p { max-width: 36em; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; gap: 10px; } }

/* quotes: columns with rules between */
.quotes { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 0; }
.quotes blockquote {
  margin: 0; padding: 8px clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--line-light);
  display: grid; gap: 18px; align-content: start;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.3; font-weight: 300;
}
.quotes blockquote:first-child { border-left: 0; padding-left: 0; }
.quotes footer { font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; }
.band-slate .quotes blockquote { border-left-color: var(--line-dark); }
@media (max-width: 820px) {
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .quotes blockquote { border-left: 0; padding: 0; }
}

/* details grid (Mend .grid3) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); }
.grid3 h3 { font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.3; margin-bottom: 18px; }
.grid3 p { font-weight: 300; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.3; }
.grid3 p + p { margin-top: 1em; }
.grid3 a { text-underline-offset: 3px; }
.grid3 .btn { text-decoration: none; margin-top: 6px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }

/* about gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figcaption { font-size: clamp(13px, 1.2vw, 15px); font-weight: 600; }
.g-wide { grid-column: span 12; }
.g-wide .photo { aspect-ratio: 21 / 9; }
.g-half { grid-column: span 6; }
.g-half .photo { aspect-ratio: 4 / 5; }
.g-7 { grid-column: span 7; } .g-7 .photo { aspect-ratio: 4 / 3; }
.g-5 { grid-column: span 5; } .g-5 .photo { aspect-ratio: 4 / 5; }
@media (max-width: 820px) { .g-half, .g-7, .g-5 { grid-column: span 12; } .g-7 .photo, .g-5 .photo, .g-half .photo { aspect-ratio: 4 / 5; } }

/* ---------- footer (Mend: wordmark | nav + address | foot-h + ghost button + contact) ---------- */
.foot { background: var(--slate); color: var(--cream); }
.foot .inner { padding-block: clamp(56px, 6vw, 80px) 32px; display: grid; gap: 40px; }
.foot .cols3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 4vw, 70px); }
.foot .col + .col { border-left: 1px solid var(--line-dark); padding-left: clamp(28px, 4vw, 70px); }
.foot .col { display: grid; align-content: start; gap: 28px; }
.foot .fnav { display: grid; gap: 10px; }
.foot .fnav a, .foot .meta { font-size: clamp(14px, 1.3vw, 17px); line-height: 1.3; font-weight: 300; text-decoration: none; }
.foot .meta a { text-decoration: none; }
.foot .foot-h { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.7vw, 30px); line-height: 1.2; max-width: 9em; }
.foot .contact { font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
.foot .contact a { text-decoration: none; }
.foot .copyright { font-size: 13px; }
address { font-style: normal; }
@media (max-width: 820px) {
  .foot .cols3 { grid-template-columns: 1fr; }
  .foot .col + .col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) { .btn, .topbar { transition: none; } }

/* solid hero (home): slate band, headshot right, transparent header sits over it */
.hero-solid { isolation: auto; }
.hero-solid .inner { min-height: auto; grid-template-rows: none; padding-top: clamp(150px, 18vw, 230px); padding-bottom: clamp(72px, 8vw, 120px); align-items: center; }
.hero-solid .hero-h1 { text-align: left; margin-inline: 0; }
.hero-solid .hero-text { display: grid; gap: 28px; }
.hero-solid .eyebrow { opacity: .9; }
.page-solid .inner { padding-top: clamp(150px, 18vw, 230px); }
.hdr .inner { border-bottom-color: var(--line-dark); }

/* home intro: photo capped at Mend's 463x596 scale, section padding tightened */
.intro-band { padding-block: clamp(56px, 6vw, 88px); }
.photo-intro { width: min(100%, 460px); justify-self: end; }
@media (max-width: 820px) { .photo-intro { justify-self: start; } }
