/* ProPeak design system. One stylesheet for every page.
   Colors: bone 60%, ink 30%, copper 10%. Corners 4px. Stone hairlines, no shadows.
   Contrast pairs are listed in docs/redesign.md; recheck any new pair before use. */

:root {
  --bone: #F6F2EA;
  --ink: #14213D;
  --copper: #A8592A;          /* buttons and links on bone (4.56:1 with bone) */
  --copper-hover: #8F4C24;    /* hover for buttons and links (5.83:1 with bone) */
  --copper-display: #B8622E;  /* large display text (24px+) and the accent mark only */
  --slate: #3B4452;           /* body text on bone; divider line on ink */
  --stone: #D9D2C5;           /* dividers and borders on bone; secondary text on ink */

  --font-serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --radius: 4px;
  --section: 72px;
  --gutter: 24px;
  --max: 1160px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--slate);
  font: 400 17px/28px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

/* Type scale: display 60/64, h2 36/40, h3 24/28, body 17/28, label 13. */
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  text-wrap: balance;
}

.display,
h1 {
  font-size: 60px;
  line-height: 64px;
}

h2 {
  font-size: 36px;
  line-height: 40px;
}

h3 {
  font-size: 24px;
  line-height: 28px;
}

p {
  margin: 0;
}

.prose {
  max-width: 64ch;
}

.prose > * + * {
  margin-top: 16px;
}

.lead {
  font-size: 19px;
  line-height: 30px;
  color: var(--slate);
  max-width: 60ch;
}

.label {
  display: block;
  margin-bottom: 16px;
  color: var(--slate);
  font: 600 13px/16px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

em,
.italic {
  font-style: italic;
}

/* Links: copper on bone, always underlined. */
a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--copper-hover);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.text-link {
  font-weight: 600;
}

/* The one primary action. Bone text on copper. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--copper);
  color: var(--bone);
  font: 600 16px/20px var(--font-sans);
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: var(--copper-hover);
  color: var(--bone);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section {
  padding-block: var(--section);
}

.section + .section {
  border-top: 1px solid var(--stone);
}

.section-head {
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.card {
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 32px;
}

.card h3 + p,
.card h3 + ul {
  margin-top: 12px;
}

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

.list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--stone);
}

.list li:first-child {
  border-top: 1px solid var(--stone);
}

.list-cols {
  columns: 2;
  column-gap: 32px;
}

.list-cols li {
  break-inside: avoid;
}

.list-cols li:first-child {
  border-top: 0;
}

/* Ink sections: bone text, stone secondary text, slate dividers. */
.ink {
  background: var(--ink);
  color: var(--stone);
}

.ink h1,
.ink h2,
.ink h3 {
  color: var(--bone);
}

.ink .label {
  color: var(--stone);
}

.ink a:not(.btn) {
  color: var(--bone);
}

.ink a:not(.btn):hover {
  color: var(--stone);
}

.ink :focus-visible {
  outline-color: var(--bone);
}

/* Header */
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
  color: var(--bone);
}

.site-header {
  border-bottom: 1px solid var(--stone);
  background: var(--bone);
  position: relative;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}

.logo img {
  height: 24px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav > a,
.nav-toggle {
  color: var(--ink);
  font: 500 15px/20px var(--font-sans);
  text-decoration: none;
}

.nav > a:not(.btn):hover,
.nav > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav > .btn {
  color: var(--bone);
  font-weight: 600;
}

.nav-group {
  position: relative;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  min-width: 300px;
  padding: 12px 20px 16px;
  background: var(--bone);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}

.nav-panel .label {
  margin: 12px 0 4px;
}

.nav-panel a {
  display: block;
  padding: 7px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  text-decoration: none;
}

.nav-panel a:hover {
  color: var(--copper-hover);
  text-decoration: underline;
}

.nav-panel .all {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--stone);
  color: var(--copper);
  font-weight: 600;
  text-decoration: underline;
}

/* With the script, dropdowns open on click. Without it, on hover and focus. */
.js .nav-panel {
  display: none;
}

.js .nav-panel.open {
  display: block;
}

html:not(.js) .nav-panel {
  display: none;
}

html:not(.js) .nav-group:hover .nav-panel,
html:not(.js) .nav-group:focus-within .nav-panel {
  display: block;
}

.menu-btn {
  display: none;
}

/* Hero */
.hero {
  padding-block: 88px 64px;
}

.hero h1 {
  max-width: 14ch;
}

.hero .lead {
  margin-top: 24px;
}

.credibility {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--stone);
  max-width: 72ch;
  font-size: 15px;
  line-height: 24px;
}

.accent {
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--copper-display);
}

/* Founder and lead offer */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.founder {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
}

.headshot {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.creds-line {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 600;
}

.creds-line abbr {
  text-decoration: none;
}

.creds-line + p,
.creds-line + .creds-line {
  margin-top: 6px;
}

.founder .role {
  margin-top: 6px;
  color: var(--slate);
  font-weight: 500;
}

.founder .facts {
  margin-top: 20px;
}

.creds {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.creds li {
  padding: 8px 0;
  border-top: 1px solid var(--stone);
}

.creds li:last-child {
  border-bottom: 1px solid var(--stone);
}

.creds abbr {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.note {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
}

.offer {
  border-radius: var(--radius);
  padding: 36px;
}

.offer .duration {
  margin-top: 12px;
  color: var(--bone);
  font-weight: 600;
}

.offer p + p {
  margin-top: 12px;
}

/* Core line */
.statement {
  max-width: 24ch;
  font: italic 400 44px/52px var(--font-serif);
  color: var(--ink);
}

.capacity {
  margin-top: 24px;
}

/* Service lanes */
.lane h3 {
  margin-bottom: 12px;
}

.lane .list {
  margin-top: 20px;
}

.lane .more {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.secondary-services {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--stone);
}

.secondary-services h3 {
  font-size: 20px;
  line-height: 26px;
}

.secondary-services p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
}

.after-section {
  margin-top: 40px;
}

/* Reasons */
.reason h3 {
  font-size: 22px;
  line-height: 28px;
}

.reason p {
  margin-top: 10px;
}

.grid-3.rules > * {
  border-top: 1px solid var(--stone);
  padding-top: 24px;
}

/* Steps */
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 1px solid var(--stone);
  padding-top: 20px;
}

.steps .num {
  display: block;
  margin-bottom: 12px;
  color: var(--copper-display);
  font: 400 40px/44px var(--font-serif);
}

.steps h3 {
  font-size: 22px;
  line-height: 28px;
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq details {
  border-top: 1px solid var(--stone);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--stone);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font: 400 22px/28px var(--font-serif);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font: 400 26px/1 var(--font-sans);
  color: var(--ink);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding-bottom: 24px;
  max-width: 64ch;
}

/* Service and audience pages */
.page-head {
  padding-block: 72px 56px;
}

.page-head h1 {
  max-width: 18ch;
}

.page-head .lead {
  margin-top: 20px;
}

.crumb {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
}

.block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}

.block + .block {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--stone);
}

.block h2 {
  font-size: 30px;
  line-height: 36px;
}

.sub + .sub {
  margin-top: 32px;
}

.sub h3 {
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 12px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
}

.form {
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/24px var(--font-sans);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.details {
  font-style: normal;
}

.details p + p {
  margin-top: 12px;
}

/* Closing band and footer */
.closing {
  padding-block: var(--section);
}

.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.closing h2 {
  max-width: 22ch;
}

.closing p {
  margin-top: 12px;
}

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--slate);
  font-size: 15px;
  line-height: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2.5fr) minmax(0, 2fr) minmax(0, 3.5fr);
  gap: 32px;
}

.site-footer .logo img {
  height: 22px;
}

.site-footer .tagline {
  margin-top: 16px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--bone);
  font: 600 13px/16px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer .legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--slate);
}

/* Split hero: an ink panel beside a photo, no overlay needed. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hero-split .panel {
  padding: 88px 56px 72px max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split h1 {
  max-width: 13ch;
}

.hero-split .lead {
  margin-top: 24px;
  color: var(--stone);
  max-width: 46ch;
}

.hero-split .credibility {
  border-top-color: var(--slate);
  color: var(--stone);
  max-width: 56ch;
}

.hero-split .crumb {
  align-self: flex-start;
}

.hero-split .photo {
  position: relative;
  min-height: 560px;
}

.hero-split .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile row: a person beside a short statement. */
.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 64px;
  align-items: center;
}

.profile-aside {
  border-left: 1px solid var(--stone);
  padding-left: 40px;
}

.profile-aside .statement {
  max-width: none;
  font-size: 32px;
  line-height: 40px;
}

.profile-aside p + p {
  margin-top: 20px;
}

/* Lead offer as a full width band. */
.offer-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 40px;
  border-radius: var(--radius);
}

.offer-band > div {
  flex: 1 1 520px;
  min-width: 0;
}

.offer-band h2 {
  font-size: 30px;
  line-height: 36px;
}

.offer-band h2 + p {
  margin-top: 12px;
}

.section.tight-top {
  padding-top: 0;
}

/* Service lane cards with a photo header. */
.card.with-image {
  padding: 0;
  overflow: hidden;
}

.lane-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.lane-body {
  padding: 32px;
}

.with-thumb {
  display: flex;
  gap: 24px;
  align-items: center;
}

.thumb {
  flex: none;
  width: 160px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Tablet and phone: keep the responsive behavior of the previous site. */
@media (max-width: 960px) {
  .intro-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 16px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: none;
    color: var(--ink);
    font: 600 15px/20px var(--font-sans);
    cursor: pointer;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 20px;
  }

  html:not(.js) .nav,
  .nav.open {
    display: flex;
  }

  .nav > a,
  .nav-toggle,
  .nav > .btn {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    border-top: 1px solid var(--stone);
    font-size: 17px;
  }

  .nav > .btn {
    margin-top: 16px;
    border-top: 0;
    justify-content: center;
  }

  .nav-toggle {
    justify-content: space-between;
  }

  .nav-panel {
    position: static;
    min-width: 0;
    margin-bottom: 12px;
    padding: 4px 16px 12px;
  }

  .nav-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 760px) {
  :root {
    --section: 56px;
    --gutter: 20px;
  }

  .display,
  h1 {
    font-size: 40px;
    line-height: 44px;
  }

  h2 {
    font-size: 30px;
    line-height: 34px;
  }

  .statement {
    font-size: 32px;
    line-height: 40px;
  }

  .hero {
    padding-block: 56px 48px;
  }

  .grid-2,
  .grid-3,
  .block {
    grid-template-columns: minmax(0, 1fr);
  }

  .block {
    gap: 20px;
  }

  .founder {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-split .panel {
    padding: 56px var(--gutter);
  }

  .hero-split .photo {
    min-height: 300px;
  }

  .profile-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--stone);
    padding-top: 32px;
  }

  .offer-band {
    padding: 28px;
  }

  .with-thumb {
    flex-wrap: wrap;
  }

  .card,
  .offer {
    padding: 24px;
  }

  .list-cols {
    columns: 1;
  }

  .list-cols li:first-child {
    border-top: 1px solid var(--stone);
  }

  .closing .wrap {
    display: block;
  }

  .closing .btn {
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .display,
  h1 {
    font-size: 34px;
    line-height: 40px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .actions .text-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.h3 {
  font-size: 24px;
  line-height: 28px;
}

.dl {
  margin: 0;
}

.dl dt {
  color: var(--ink);
  font-weight: 600;
}

.dl dd {
  margin: 4px 0 0;
}

.grid-2.rules > * {
  border-top: 1px solid var(--stone);
  padding-top: 24px;
}

.nowrap {
  white-space: nowrap;
}
