:root {
  --bg: #ffffff;
  --ink: #1f2a44;
  --muted: #5b6478;
  --rule: #e3e6ec;
  --link: #147d64;
  --link-hover: #c2492b;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --measure: 36rem;
  --margin-note: 14rem;
  --gutter: 3rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a24;
    --ink: #ecebe6;
    --muted: #a6adbb;
    --rule: #2c3442;
    --link: #65d6ad;
    --link-hover: #f6a98f;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--sans);
  text-wrap: pretty;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

/* The page is one reading column with a narrow margin for asides. */

.page {
  max-width: calc(var(--measure) + var(--gutter) + var(--margin-note) + 2.5rem);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}

.intro,
.thing {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) var(--margin-note);
  column-gap: var(--gutter);
  align-items: start;
}
.intro > *,
.thing > * { grid-column: 1; }

.note {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.intro > .note,
.thing > .note {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}

/* Hello */

.me {
  width: 5.5rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}
.intro > .note { grid-row: 2 / span 2; align-self: end; }

.intro { margin-bottom: 1rem; }

h1 { font-size: clamp(2.75rem, 7vw, 4.25rem); letter-spacing: -0.01em; }

.lede {
  margin: 1rem 0 0;
  font-size: 1.375rem;
  line-height: 1.5;
}

/* Sections */

.block { margin-top: 5rem; }
.block > h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.block > p { max-width: var(--measure); }

.thing + .thing { margin-top: 2.25rem; }
.thing h3 { margin-bottom: 0.5rem; line-height: 1; }

/* Each project wears its own brand: real logos, real typefaces, real colors. */
.lockup { display: inline-flex; align-items: center; text-decoration: none; }
.lockup:hover { opacity: 0.8; }

.lockup-volley {
  gap: 0.314em;
  font: 400 1.75rem/1 "Righteous", sans-serif;
  color: #199473;
}
.lockup-volley:hover { color: #199473; }
.lockup-volley img { width: 1.75rem; height: auto; margin-top: 0.15em; }

.lockup-petcast {
  gap: 0.6rem;
  font: 900 1.75rem/1 "Nunito", "SF Pro Rounded", ui-rounded, sans-serif;
  color: #2b2118;
}
.lockup-petcast:hover { color: #2b2118; }
.lockup-petcast img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22.5%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.lockup-hyphen img { height: 2.25rem; width: auto; }

.lockup-dreambikes img { width: 4.5rem; height: 4.5rem; }

@media (prefers-color-scheme: dark) {
  .lockup-volley, .lockup-volley:hover { color: #3ebd93; }
  .lockup-petcast, .lockup-petcast:hover { color: #f7eee5; }
}

.thing > p:not(.note) { margin: 0; }

.email {
  margin: 1.5rem 0 0.5rem;
  font: 1.75rem/1.2 var(--serif);
}

.signoff { margin-top: 5rem; }
.signoff p { margin: 0; max-width: var(--measure); }

/* Small screens: asides fall in under what they annotate */

@media (max-width: 56rem) {
  .page { padding-top: 3rem; }
  .intro, .thing { display: block; }
  .intro > .note, .thing > .note { margin-top: 0.75rem; }
  .intro > .note { margin-top: 1.5rem; }
  .block { margin-top: 3.5rem; }
}

