:root {
  --bg: #faf9f7;
  --text: #1f2023;
  --muted: #6b6f76;
  --rule: #e6e4e0;
  --accent: #2f5d50;
  --accent-tint: #eef4f1;
  --accent-rule: #cbdbd4;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --text: #e6e4e1;
    --muted: #9a9ba0;
    --rule: #2e3033;
    --accent: #4f927d;
    --accent-tint: #1b2523;
    --accent-rule: #2f4740;
    --on-accent: #0f1412;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* ---------- rail ---------- */

.headshot {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.descriptor {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 22rem;
}

.social {
  display: flex;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.social a {
  display: block;
  color: var(--muted);
  text-decoration: none;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.social a:hover {
  color: var(--accent);
}

/* ---------- content ---------- */

p {
  margin: 0 0 1.25rem;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.55rem;
}

strong {
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--muted);
}

a:hover {
  text-decoration-color: var(--text);
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.75rem 0 0.85rem;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- buttons and callout ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.12);
}

.callout {
  background: var(--accent-tint);
  border: 1px solid var(--accent-rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.35rem;
  margin: 2rem 0 0;
}

.callout p {
  margin: 0 0 1rem;
}

.rail-cta {
  display: none;
}

/* The rail's label names the scope before the button is read, and the divider
   keeps the block from looking like a general "contact me" under the headshot. */
.rail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.rail-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.75rem 0 0;
}

/* ---------- figure and case study ---------- */

.breakout {
  margin: 2.25rem 0;
}

/* No border: the screenshot carries its own card chrome, so a frame around it
   would be a box drawn around a box. */
.breakout img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.7rem;
  max-width: 42rem;
}

.eoi {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* ---------- wide screens: sticky rail ---------- */

@media (min-width: 1024px) {
  /* One measure: the content column is exactly the text measure, so nothing can
     overhang it. The rail-plus-content unit centers, leaving equal page margins. */
  .wrap {
    max-width: 72rem;
    display: grid;
    grid-template-columns: 240px minmax(0, 42rem);
    justify-content: center;
    gap: 4rem;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 4rem;
  }

  .rail-cta {
    display: block;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
  }

  .rail-cta .btn {
    display: block;
    text-align: center;
    white-space: normal;
  }

  .callout {
    display: none;
  }

}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .wrap {
    padding: 2.75rem 1.25rem 4rem;
  }

  .breakout {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .breakout img {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  figcaption {
    padding: 0 1.25rem;
  }
}
