@font-face {
  font-family: Excalifont;
  src: url("type/excalifont.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --sky: #fff0d6;
  --meadow: #f7efd8;
  --paper: #fff7df;
  --ink: #303e34;
  --forest: #345847;
  --muted: #505a47;
  --ochre: #a98d62;
  --lettering: Excalifont, "Segoe Print", "Trebuchet MS", sans-serif;
  --content: 69rem;
  --outer: clamp(.72rem, 4.6vw, 4.8rem);
  --gutter: clamp(1.65rem, 4.4vw, 3.8rem);
  --trail-width: clamp(1.2rem, 3vw, 2.6rem);
  --speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='63'%3E%3Cpath d='M5 8l1 .4m22 41 1 .4m16-32 1-.5m17 27 1 .5m-39-25 1 .5m-12 12 1 .2m50-18 1 .5m5 42 1-.8m-32-4 1 .6' fill='none' stroke='%2379674c' stroke-opacity='.16' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
  background: var(--meadow);
  color: var(--ink);
  font: 400 100%/1.48 var(--lettering);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--speckle), var(--meadow); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.12; }
p { font-size: clamp(1.05rem, 1.42vw, 1.2rem); line-height: 1.53; text-wrap: pretty; }
button, input, select, textarea { font: inherit; }
a { color: #355447; text-decoration-color: #95886b; text-underline-offset: .21em; text-decoration-thickness: 1px; }
a:hover { color: #223f32; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px dashed #575a37; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; top: .4rem; left: .55rem; padding: .6rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-head, .page-foot, .site-head nav, .project-links { display: flex; align-items: center; }
.site-head, .page-foot { justify-content: space-between; gap: 1rem; }
.site-head {
  min-height: clamp(3.15rem, 7vh, 4.4rem);
  padding: 0 max(.65rem, calc((100% - 86rem)/2), 2vw);
  background: var(--speckle), var(--sky);
}
.wordmark, .site-head nav a, .project-links a, .ink-link, .page-foot a, .essays a, .touchline-photos summary {
  display: inline-flex; align-items: center; min-height: 44px;
}
.wordmark { gap: .42em; font-size: clamp(1.03rem, 2.1vw, 1.45rem); color: #394a3d; white-space: nowrap; text-decoration: none; line-height: 1.1; }
.wordmark svg { width: 1.22em; height: 1.22em; fill: none; stroke: currentColor; stroke-width: 1.55; }
.site-head nav { gap: clamp(.8rem, 2.6vw, 1.9rem); }
.site-head nav a { font-size: clamp(.94rem, 1.5vw, 1.1rem); color: #42483c; }

/* The scene continues from the bench where this page opens. */
.bio {
  --scene-height: clamp(19rem, 34vw, 34rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(var(--outer), 1fr) minmax(0, 27rem) minmax(1.6rem, 3.6rem) minmax(0, 27rem) minmax(var(--outer), 1fr);
  align-items: start;
  padding-bottom: clamp(1.65rem, 3.8vw, 3rem);
}
.bio-text { display: contents; }
.bench { position: relative; grid-column: 1/-1; grid-row: 1; height: var(--scene-height); overflow: hidden; }
.bench picture, .bench img { display: block; width: 100%; height: 100%; }
.bench img { object-fit: cover; object-position: 50% 61%; }
.bench::after {
  content: ""; position: absolute; inset: auto -1px -1px; height: clamp(1.5rem, 3.5vw, 3rem);
  background: url("about-verge.svg") center bottom/100% 100% no-repeat;
}
.bio h1 {
  position: absolute; z-index: 1; bottom: auto; top: calc(var(--scene-height) * .60); left: 45%; transform: translate(-41%, -100%) rotate(-.7deg);
  width: max-content; max-width: min(78%, 30rem); padding: .27em .56em .31em;
  font-size: clamp(2.15rem, 3.8vw, 3.75rem); line-height: 1.03; letter-spacing: -.028em;
  background: var(--paper); border: 1.8px solid #42483d; border-radius: 8% 6% 7% 5% / 19% 20% 18% 16%;
}
.bio h1::after {
  content: ""; position: absolute; width: .65em; height: .6em; left: 38%; bottom: calc(-.59em + 1.7px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' preserveAspectRatio='none'%3E%3Cpath d='M1 0Q8 19 23 26Q17 15 19 0' fill='%23fff7df' stroke='%2342483d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.bio h1 span { color: #9d6148; }
.bio-text p { margin-top: clamp(.6rem, 1.3vw, 1.1rem); }
.bio-text p:first-of-type { grid-column: 2; grid-row: 2; }
.bio-text p:nth-of-type(2) { grid-column: 4; grid-row: 2; }
.ink-link { grid-column: 2; justify-self: start; margin-top: .15rem; }

.work, .writing, .page-foot { width: min(calc(100% - 2 * var(--outer)), var(--content)); margin-inline: auto; }
.work, .writing {
  position: relative;
  padding-left: var(--gutter);
  background: url("about-trail.svg") left top / var(--trail-width) auto repeat-y;
}
.work::before, .writing::after {
  content: ""; position: absolute; left: calc(var(--trail-width) * .5 - 5px); width: 10px; height: 10px;
  border-radius: 50% 42% 52% 46%; background: #e5c896; border: 1.3px solid #a48a64;
}
.work::before { top: -4px; }
.writing::after { bottom: -3px; }
#projects, #writing, article[id] { scroll-margin-top: .7rem; }
.section-head { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 5.2rem); }
h2 { font-size: clamp(1.93rem, 3.8vw, 3.1rem); letter-spacing: -.035em; }
.section-head h2 {
  position: relative; justify-self: start; isolation: isolate; width: max-content; font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 100%; color: #fff3d6;
  border: 2px solid #414c3d; border-radius: 9% 5% 6% 4% / 17% 21% 16% 17%;
  padding: .26em .57em .32em; background: #345847; transform: rotate(-1.1deg); box-shadow: 2px 3px #a68b63;
}
.section-head h2::before { content: ""; position: absolute; inset: 3px; border: 1px solid #cfba8b; border-radius: inherit; pointer-events: none; }
.section-head h2::after { content: ""; position: absolute; left: .21em; top: 49%; width: .085em; height: .085em; border-radius: 50%; background: #e5c995; }
.section-head p { max-width: 52ch; }
.project {
  display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.03fr); gap: .95rem clamp(2rem, 5vw, 5.2rem);
  align-items: start; padding-top: clamp(2.5rem, 5vw, 4.4rem); padding-bottom: clamp(1rem, 3vw, 2.75rem);
}
.story { min-width: 0; }
h3 { position: relative; display: flex; align-items: center; gap: .45em; min-height: 1.55em; margin: 0 0 .62rem; font-size: clamp(1.98rem, 3.1vw, 2.85rem); letter-spacing: -.034em; }
h3::before {
  content: ""; position: absolute; left: calc(-1 * var(--gutter) + var(--trail-width) * .5 - .22em); top: calc(50% - .22em);
  height: .44em; width: .44em; border-radius: 51% 46% 52% 49%; transform: rotate(-9deg);
  border: 1.5px solid #4b6250; box-shadow: inset 0 0 0 2px #e9deb3; background: #5d795d;
}
h3::after { content: ""; width: 2.25em; height: 1.62em; flex: none; background: url("about-landmarks.svg") no-repeat 0 center / 400% 100%; }
#along h3::after { background-position-x: 33.3333%; }
#simplyfit h3::after { background-position-x: 66.6667%; }
#tangle h3::after { background-position-x: 100%; }
.story p { max-width: 52ch; }
.story p+p { margin-top: .84rem; }
.project-links { gap: 1.2rem; flex-wrap: wrap; margin-top: .38rem; }
.screens { min-width: 0; }
.screen-pair, .screen-single { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 4%; padding: .5rem 0 .95rem; }
.screen-pair::before, .screen-single::before {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 27%;
  background: #dfe2bb; border-bottom: 1px solid #b3b38c; border-radius: 59% 35% 51% 37% / 52% 57% 42% 38%; transform: rotate(-1deg);
}
.screens a { display: block; min-width: 0; max-width: min(46%, 12.4rem); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 1px #59645342, 0 3px 8px #344a3421; background: var(--paper); cursor: zoom-in; }
.screen-single a { width: 56%; max-width: 13rem; }
.screens img { display: block; width: 100%; height: auto; }
.screens figcaption { max-width: 50ch; margin: .6rem .12rem 0; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.touchline-demo { min-width: 0; width: 100%; align-self: start; }
.touchline-demo iframe { display: block; width: 100%; border: 0; background: transparent; }
.touchline-photos { grid-column: 2; min-width: 0; }
.touchline-photos summary { display: list-item; align-content: center; width: fit-content; padding: .63rem 0; cursor: pointer; color: var(--forest); text-decoration: underline; text-underline-offset: .2em; }
.touchline-photos[open] summary { margin-bottom: .35rem; }
.writing { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.03fr); align-items: start; gap: 1.2rem clamp(2rem, 5vw, 5.2rem); padding-block: clamp(2rem, 4vw, 4rem); }
.writing h2 { margin-bottom: .65rem; color: var(--forest); }
.essays a { justify-content: space-between; gap: 1.5rem; width: 100%; font-size: clamp(1.08rem, 1.8vw, 1.37rem); }
.essays p { font-size: 1rem; color: var(--muted); }
.essays p+a { border-top: 1px dashed #a3a182; margin-top: .9rem; padding-top: .45rem; }
.page-foot { padding-block: .9rem 1.4rem; padding-inline: var(--gutter) .1rem; border-top: 1px dashed #aaa283; }

@media (max-width: 700px) {
  .site-head { padding-inline: max(.6rem, env(safe-area-inset-left)) max(.6rem, env(safe-area-inset-right)); }
  .bio { --scene-height: clamp(17.4rem, 89vw, 26rem); grid-template-columns: minmax(0, 1fr); padding-bottom: 1.7rem; }
  .bio h1 { top: calc(var(--scene-height) * .53); left: 34%; transform: translate(-36%, -100%) rotate(-.8deg); padding: .28em .57em .33em; font-size: clamp(1.9rem, 8.1vw, 2.7rem); }
  .bench img { object-position: 50% 55%; }
  .bio-text p:first-of-type, .bio-text p:nth-of-type(2), .ink-link { grid-column: 1; grid-row: auto; margin-inline: clamp(1.1rem, 5.9vw, 2rem); }
  .bio-text p { margin-top: .63rem; }
  .ink-link { margin-top: .05rem; }
  .section-head, .project, .writing { grid-template-columns: minmax(0, 1fr); gap: .88rem; }
  .section-head { padding-top: .15rem; }
  .section-head h2 { font-size: clamp(1.77rem, 7.9vw, 2.5rem); }
  .project { padding-block: 1.8rem .65rem; gap: .9rem; }
  .screen-pair, .screen-single { padding-bottom: .68rem; }
  .screen-single a { width: 63%; }
  .touchline-photos { grid-column: 1; }
  .touchline-demo { width: calc(100% + .55rem); margin-left: -.35rem; }
  .writing { padding-block: 2.3rem 1.7rem; }
  .page-foot { padding-inline: .25rem; }
}
@media (min-width: 521px) and (max-width: 700px) {
  .bio { --scene-height: clamp(17.5rem, 52vw, 21rem); }
  .bio h1 { top: calc(var(--scene-height) * .6); left: 43%; transform: translate(-40%, -100%) rotate(-.7deg); }
  .bench img { object-position: 50% 61%; }
}
@media (max-width: 360px) {
  :root { --gutter: 1.55rem; --outer: .55rem; }
  .wordmark { font-size: .96rem; gap: .25em; }
  .site-head nav { gap: .68rem; }
  .site-head nav a, .page-foot a { font-size: .9rem; }
}
@media (forced-colors: active) {
  .bio h1, .section-head h2, h3::before { border-color: CanvasText; }
}
