/* Colors and type match pairwork.substack.com. */
:root {
  --paper: #FFFFFF;
  --ink: #363737;
  --accent: #1E1B4B;
  --ink-soft: color-mix(in srgb, var(--ink) 80%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --tint: color-mix(in srgb, var(--ink) 5%, var(--paper));
  --accent-dark: color-mix(in srgb, var(--accent) 80%, var(--ink));
  --display: "Gloock", Georgia, serif;
  --serif: "Spectral", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

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

/* Header: mark at left, wordmark centered */

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.mark {
  justify-self: start;
  padding: 0.3rem 0.45rem;
  background: var(--tint);
  border-radius: 6px;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.mark:hover, .name:hover { color: var(--ink); }

/* Opening */

.opening { padding: 3rem 0; }
/* Home: the headline and summary have the first screen to themselves. */
.opening--center {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 4rem);
  text-align: center;
}
.opening--center .wrap { padding-bottom: 6vh; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.summary {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.3125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Sections */

.fade { opacity: 0; transition: opacity 2.4s cubic-bezier(0.45, 0, 0.55, 1); }
.fade.is-in { opacity: 1; }


.band { padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.band--tint { background: var(--tint); }

h2 {
  font-size: 1.625rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.split > div { max-width: 38rem; }

/* Booking */

.calendly-inline-widget {
  margin-top: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}

/* Photo. Swap JLP_Profile_Pic.jpeg in the project folder to change it. */

.portrait {
  display: block;
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  margin: 1rem 0 1.25rem;
  border-radius: 8px;
}

@media (min-width: 48rem) {
  .wrap { padding-left: 2rem; padding-right: 2rem; }
  .masthead { padding: 1rem 2rem; }
  .opening { padding: 4rem 0; }
  .band { padding: 3.25rem 0; }

  .split {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 2rem;
    align-items: start;
  }
  .split h2 { margin: 0; }
  .portrait { margin-bottom: 0; }
}
