@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --cream: #f7f0e8;
  --lavender: #e7ddfb;
  --pink: #fbd9ee;
  --yellow: #f2e19c;
  --peach: #ffc9a3;
  --blue: #cde7eb;
  --green: #cfdbb1;
  --ink: #3b3739;

  --page-pad: clamp(22px, 2.35vw, 38px);
  --gap: clamp(14px, 1.35vw, 20px);
  --large-radius: clamp(30px, 2.6vw, 40px);
  --small-radius: clamp(27px, 2.25vw, 34px);
  --hero-pad-x: clamp(28px, 3.6vw, 52px);
  --hero-pad-y: clamp(28px, 3vw, 44px);
  --card-pad-x: clamp(22px, 2.25vw, 34px);
  --card-pad-y: clamp(22px, 2vw, 30px);
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: "JetBrains Mono", "Courier New", monospace;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
  background: var(--peach);
}

.site-shell {
  width: 100%;
  margin: 0 auto;
  padding: clamp(18px, 2.15vh, 28px) var(--page-pad) clamp(18px, 2.2vh, 30px);
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: clamp(18px, 2.3vh, 28px);
}

.wordmark {
  margin: 0;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(280px, 1fr);
  gap: var(--gap);
}

.hero-card,
.profile-card,
.service-card {
  overflow: hidden;
  background-clip: padding-box;
}

.hero-card,
.profile-card {
  min-height: clamp(280px, 39.5vh, 390px);
  border-radius: var(--large-radius);
}

.hero-card {
  background: var(--peach);
  padding: var(--hero-pad-y) var(--hero-pad-x);
  display: flex;
  align-items: center;
}

.hero-copy { width: min(100%, 920px); }

.hero-card h1 {
  max-width: 36ch;
  margin: 0 0 clamp(14px, 1.7vh, 21px);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(29px, 2.45vw, 39px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.hero-card h1 .heading-desktop { display: inline; }
.hero-card h1 .heading-desktop > span { display: inline; }
.hero-card h1 .heading-mobile { display: none; }

.hero-card p {
  max-width: 73ch;
  margin: 0;
  font-size: clamp(13px, 1.02vw, 16px);
  line-height: 1.48;
  font-weight: 400;
}

.profile-card {
  position: relative;
  isolation: isolate;
  background: var(--pink);
  padding: clamp(25px, 2.5vw, 38px) clamp(21px, 2.2vw, 32px);
}

.profile-copy {
  position: relative;
  z-index: 2;
  width: 48%;
  min-width: 135px;
}

.profile-card h2 {
  margin: 0;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.18;
  font-weight: 700;
  white-space: nowrap;
}

.profile-rule {
  display: block;
  width: clamp(28px, 2.3vw, 38px);
  height: 2px;
  margin: clamp(10px, 1.1vh, 15px) 0 clamp(10px, 1.25vh, 16px);
  background: var(--ink);
}

.profile-card p {
  margin: 0;
  max-width: 23ch;
  font-size: clamp(11px, 0.83vw, 13px);
  line-height: 1.42;
}

.profile-text-mobile { display: none; }

.profile-image {
  position: absolute;
  z-index: 1;
  right: -1px;
  bottom: -1px;
  width: clamp(205px, 18.2vw, 285px);
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

.service-card {
  min-height: clamp(178px, 25.5vh, 248px);
  border-radius: var(--small-radius);
  padding: var(--card-pad-y) var(--card-pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card--seen { background: var(--green); }
.service-card--run { background: var(--yellow); }
.service-card--grow { background: var(--blue); }

.service-inner {
  width: 100%;
  max-width: 44ch;
  margin-inline: auto;
}

.service-card h2 {
  margin: 0 0 clamp(10px, 1.25vh, 15px);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(22px, 1.82vw, 29px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.service-card p {
  width: min(100%, 40ch);
  margin: 0 auto;
  font-size: clamp(11px, 0.86vw, 13.5px);
  line-height: 1.45;
}

.contact-line {
  width: 100%;
  margin: clamp(16px, 2.1vh, 24px) 0 0;
  font-size: clamp(12px, 0.96vw, 14.5px);
  line-height: 1.5;
  font-weight: 600;
}

.site-footer {
  margin-top: clamp(8px, 1.2vh, 14px);
  font-size: clamp(10px, 0.76vw, 12px);
  line-height: 1.35;
  font-weight: 400;
}

.site-footer p { margin: 0; }

@media (min-width: 1081px) {
  .hero-card h1 .heading-desktop > span { display: block; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); }
  .profile-copy { width: 49%; }
  .profile-image { width: clamp(195px, 22vw, 245px); }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 16px;
    --gap: 12px;
    --large-radius: 28px;
    --small-radius: 25px;
  }

  html, body {
    min-height: 0;
    height: auto;
  }

  html { overflow-x: hidden; }
  body { overflow-x: hidden; }

  body { display: block; }

  .site-shell {
    display: block;
    min-height: 0;
    height: auto;
    padding-top: 18px;
    padding-bottom: 8px;
  }
  .site-header { margin-bottom: 18px; }
  .wordmark { font-size: 16px; }

  .hero-card h1 .heading-desktop { display: none; }
  .hero-card h1 .heading-mobile { display: block; }
  .hero-card h1 .heading-mobile > span { display: block; }

  .bento,
  .services {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services { margin-top: var(--gap); }

  .hero-card,
  .profile-card,
  .service-card { min-height: auto; }

  .hero-card {
    padding: 25px 23px 27px;
    align-items: flex-start;
  }

  .hero-card h1 {
    max-width: 22ch;
    margin-bottom: 14px;
    font-size: clamp(25px, 6.8vw, 32px);
    line-height: 1.18;
  }

  .hero-card p {
    max-width: none;
    font-size: 13px;
    line-height: 1.52;
  }

  .profile-card {
    min-height: auto;
    padding: 24px 22px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(170px, 0.8fr);
    column-gap: 14px;
    align-items: end;
  }

  .profile-copy {
    width: auto;
    min-width: 0;
    align-self: center;
    padding-bottom: 20px;
  }

  .profile-card h2 { font-size: 20px; }

  .profile-card p {
    max-width: 48ch;
    font-size: 12px;
    line-height: 1.42;
  }

  .profile-text-desktop { display: none; }
  .profile-text-mobile { display: inline; }

  .profile-card {
    overflow: visible;
    z-index: 2;
  }

  .profile-image {
    position: absolute;
    width: min(43vw, 202px);
    max-width: none;
    right: -1px;
    bottom: -1px;
    margin: 0;
    border-bottom-right-radius: var(--large-radius);
  }

  .service-card {
    min-height: 168px;
    padding: 25px 23px;
  }

  .service-card h2 { margin-bottom: 11px; font-size: 25px; }

  .service-card p {
    max-width: 42ch;
    font-size: 12px;
    line-height: 1.48;
  }

  .contact-line {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.55;
  }

  .site-footer { margin: 10px 0 0; font-size: 10px; }
}

@media (max-width: 430px) {
  .hero-card h1 { font-size: 24px; }

  .profile-card {
    min-height: auto;
    padding: 22px 20px 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(132px, 0.85fr);
    column-gap: 10px;
  }

  .profile-copy {
    width: auto;
    min-width: 0;
    padding-bottom: 22px;
  }

  .profile-card h2 { font-size: 18px; }

  .profile-card p {
    max-width: 31ch;
    font-size: 11px;
    line-height: 1.42;
  }

  .profile-image {
    width: min(46vw, 196px);
    right: -1px;
    bottom: -1px;
    margin: 0;
  }

  .service-card h2 { font-size: 23px; }
}

/* Supporting pages */
.simple-page {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--page-pad);
}

.simple-page__wordmark {
  display: inline-block;
  margin-bottom: clamp(28px, 5vw, 52px);
  font-family: "Courier Prime", "Courier New", monospace;
  font-weight: 700;
  text-decoration: none;
}

.simple-card {
  border-radius: var(--large-radius);
  background: var(--lavender);
  padding: clamp(28px, 5vw, 56px);
}

.simple-card h1 {
  margin: 0 0 18px;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
}

.simple-card h2 {
  margin: 28px 0 10px;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
}

.simple-card p {
  margin: 0 0 14px;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.65;
}

.simple-card p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
