/* willstruloeff.com, v3.
   One stylesheet, no JavaScript. The photograph is a sticky layer and the
   page is a solid sheet that scrolls up over it. Colour comes from the photo:
   navy ink from the shirt, a sea-blue accent, a haze-grey paper, and a paler
   sea for the mats behind the product screenshots.
   Layout: a 12-column sheet. Every section opens on a full-measure rule with
   its title under it.
   Corners: square everywhere. The product screenshots sit in Apple's own
   product bezels (a MacBook Air and an iPhone 18 Pro Max). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/v3/fonts/hanken-grotesk-latin-wght.woff2?v=1") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Arial resized to Hanken's width and line metrics, so the swap barely moves anything. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 99%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  --paper: #f1f4f7;
  --ink: #0e1a2a;
  --ink-2: #445468;
  --ink-3: #566476;
  --line: #cfd8e1;         /* hairlines between rows */
  --rule: #0e1a2a;         /* the rule that opens a section */
  --accent: #1d5d8c;
  --sky-ink: #0a1628;      /* text on the sky: dark in both themes */
  --sky: #9cc6e4;          /* behind the photo while it loads */
  --sky-top: #7fb8de;      /* the top edge of the photo's sky */
  --mat: #dbe6ef;          /* the pale sea behind the screenshots */
  --mat-edge: rgb(14 26 42 / .1);
  --shot-edge: rgb(14 26 42 / .18);
  --device-shadow: rgb(14 26 42 / .3);

  --font: "Hanken Grotesk", "Hanken Fallback", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 4.4vw, 4.5rem);
  --measure: 1600px;
  /* The page is laid out under a phone's notch (viewport-fit=cover), so the
     edge never comes closer than the safe area. */
  --edge: max(var(--gutter), (100vw - var(--measure)) / 2, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gap: clamp(1rem, 2.2vw, 2rem);
  --space: clamp(5rem, 4rem + 4.5vw, 9rem);      /* above every section */
  --mat-pad: clamp(18px, 3.2vw, 52px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* One hundredth of the photograph's displayed width in the wide hero.
     The 3:2 frame covers the screen, so it is 100vw wide or 150vh wide,
     whichever is more. The words in the sky are sized in this unit so they
     keep the same place on the photo (above the hills, left of his hair)
     at every window size. */
  --u: max(1vw, 1.5vh);
}
@supports (height: 1svh) {
  :root { --u: max(1vw, 1.5svh); }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1219;
    --ink: #e4eaf0;
    --ink-2: #a3b2c1;
    --ink-3: #8a99a9;
    --line: #223041;
    --rule: #8a99a9;
    --accent: #8ec4e9;
    --mat: #16213a;
    --mat-edge: rgb(228 234 240 / .1);
    --shot-edge: rgb(228 234 240 / .16);
    --device-shadow: rgb(0 0 0 / .55);
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }

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

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

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

/* The skip link always appears over the sky, so it takes the sky's navy in
   both themes. */
.skip {
  position: absolute;
  z-index: 30;
  top: .75rem;
  left: var(--edge);
  padding: .65rem 1rem;
  background: var(--sky-ink);
  color: #f1f4f7;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }
.skip:focus-visible { outline-color: var(--sky-ink); }

/* Where the skip link lands: focus moves there, without a ring around a
   whole region. */
[tabindex="-1"]:focus { outline: none; }

/* ---------- the photograph ---------- */

.hero,
.band {
  position: sticky;
  top: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  column-gap: 2rem;
  padding: var(--top) var(--edge) 0;
  color: var(--sky-ink);
  background: var(--sky);
}

/* Moving back up the page with the keyboard, focus lands on links that are
   stuck under the sheet. While a link up here has keyboard focus the photo
   lets go and scrolls with the page, so the browser brings it into view. */
.hero:has(:focus-visible),
.band:has(:focus-visible) { position: relative; }

.hero {
  --top: clamp(1.25rem, calc(2.2 * var(--u)), 3rem);
  height: 100vh;
  height: 100svh;
  min-height: 25rem;
}

.photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 0;
}

/* A slight dim on the photograph at night. Fixed, never tied to scroll:
   the navy on the sky still clears 4.5:1 with it. */
@media (prefers-color-scheme: dark) {
  .hero::after,
  .band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #040a11;
    opacity: .06;
    pointer-events: none;
  }
}

.hero :focus-visible,
.band :focus-visible { outline-color: var(--sky-ink); }

.hero-text {
  grid-column: 1;
  grid-row: 1;
  max-width: calc(44vw - var(--edge));
}

/* Trim type to its cap height so the name and the links share one top edge.
   Browsers without text-box get the same boxes from margins measured on
   Hanken Grotesk (ascent 1, descent .3, cap height .697 of the size), so
   nothing in the sky moves down onto the hills there. */
.hero h1,
.band h1,
.nav a,
.home { text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .hero h1 { margin-block: -.133em -.13em; }
  .band h1 { margin-block: -.143em -.14em; }
  .nav a { margin-block: -.153em -.15em; }
  .band .home { margin-block: calc(-.85rem - .153em) -.15em; }
}

.hero h1 {
  font-size: clamp(2.75rem, calc(4.5 * var(--u)), 5.5rem);
  font-weight: 580;
  line-height: .96;
  letter-spacing: -.038em;
}

.lede {
  margin-top: calc(1.15 * var(--u));
  max-width: none;
  font-size: clamp(1rem, calc(1.3 * var(--u)), 1.375rem);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -.008em;
}

/* The way to reach him, on the first screen. On phones it moves to the top
   of the sheet, which peeks up under the photograph. */
.hero-contact,
.sheet-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.6em;
  font-weight: 500;
  line-height: 1.4;
}
.hero-contact {
  margin-top: calc(.7 * var(--u));
  font-size: clamp(1rem, calc(1.2 * var(--u)), 1.1875rem);
}
.hero-contact a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}
.hero-contact a:hover { text-decoration-thickness: 2px; }

.nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
  margin-top: -.85rem;
}
.nav a,
.home {
  display: inline-block;
  padding-block: .85rem;
  color: inherit;
  font-size: 1rem;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
}
/* "IT" is narrow: give every link a target at least 24px wide without moving its text. */
.nav a {
  padding-inline: .375rem;
  margin-inline: -.375rem;
}
.nav a:hover,
.home:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .4em;
}

/* Art direction. Which crop a window gets, and where the words go:
   - wide (the default): the full 3:2 frame, words sized with the photo;
   - medium: portrait tablets and squarish windows from 50rem wide, landscape
     windows 45 to 50rem wide, and windows of 3:2 or wider up to 62.5rem
     wide, where the wide frame is small enough for the words to reach the
     hills (wider ones keep the wide frame, which --u sizes for them);
   - phone: tall phones, and every portrait or squarish window narrower than
     50rem, where the medium crop's sky is too short for the words;
   - landscape and narrower than 45rem (landscape phones, small windows): the
     phone crop, whose sky fills the window there, with the words beside his
     head;
   - short and narrower than 35rem (browser zoom of 300% and more): no crop
     has room for the words in its sky, so they sit on plain sky above it.
   The <source media> attributes in the pages use the same queries. */

/* Medium crop. The sky is deep here, so the words go back to sizes set by
   the width. */
@media (max-aspect-ratio: 6/5), (max-width: 49.99rem), (min-aspect-ratio: 3/2) and (max-width: 62.49rem) {
  .hero { --top: clamp(1.4rem, 3vw, 3rem); }
  .photo img { object-position: 0 0; }
  .hero-text { max-width: calc(49vw - var(--edge)); }
  .hero h1 { font-size: clamp(2.5rem, 1.15rem + 3.7vw, 5.5rem); }
  .lede {
    margin-top: clamp(1.1rem, 1.9vw, 1.9rem);
    font-size: clamp(1.0625rem, .93rem + .5vw, 1.5rem);
  }
  .hero-contact {
    margin-top: clamp(.9rem, 1.7vw, 1.5rem);
    font-size: clamp(1.0625rem, .95rem + .3vw, 1.1875rem);
  }
}

/* Portrait shapes: his head takes the top right, so the links join the column on the left. */
@media (max-aspect-ratio: 6/5) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .nav {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: clamp(1.9rem, 6vw, 3rem);
  }
  .hero .hero-text { grid-row: 2; }
}

/* Short windows (landscape phones, browser zoom): the photo stops being
   sticky and the header grows with its words, so nothing in it can end up
   below the bottom of the window where no scrolling reaches it. */
@media (max-height: 32.5rem) {
  .hero,
  .band { position: relative; }
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* Phone crop: him on the right, the sky on the left for the words. The hero
   stops at 88% of the screen so the top of the sheet, with the email and
   GitHub, shows on the first screen. The photograph keeps its full-screen
   crop; only the bottom of it is covered. */
@media (max-aspect-ratio: 5/8), (max-aspect-ratio: 6/5) and (max-width: 49.99rem) {
  .hero {
    --top: 1.2rem;
    height: 88vh;
    height: 88svh;
    min-height: 0;
  }
  .hero .photo {
    bottom: auto;
    height: 100vh;
    height: 100svh;
  }
  .hero .nav {
    gap: 1.6rem;
    margin-bottom: clamp(1.5rem, 6.5vw, 2.5rem);
  }
  .hero .hero-text { max-width: calc(56vw - var(--edge)); }
  .hero h1 { font-size: clamp(2.25rem, 1rem + 6vw, 3rem); }
  .lede {
    margin-top: .9rem;
    font-size: clamp(.9375rem, .8rem + .7vw, 1rem);
    line-height: 1.4;
  }
  .hero .lede,
  .hero-contact { display: none; }
  .photo img { object-position: 30% 0; }
}

/* Narrow tall phones (360 to 379 wide): show the crop from its left edge, so
   his hair sits a few pixels further from the end of the sentence. */
@media (max-aspect-ratio: 1/2) and (max-width: 379px) {
  .hero .photo img { object-position: 0 0; }
}

/* Small phones that are short for their width show the whole width of the
   crop, which leaves too little sky for the words. Zoom in a little so the
   sky is taller; his face stays in frame. */
@media (max-aspect-ratio: 6/5) and (min-aspect-ratio: 1/2) and (max-width: 379px) {
  .hero .photo img {
    height: max(100%, 225vw);
    object-position: 20% 0;
  }
  .hero h1 { font-size: 2.125rem; }
  .lede { font-size: .9375rem; }
}
@media (max-aspect-ratio: 6/5) and (max-width: 339px) {
  .hero .photo img {
    height: max(100%, 225vw);
    object-position: 0 0;
  }
  .hero .hero-text { max-width: calc(60vw - var(--edge)); }
  .hero h1 { font-size: 2rem; }
  .lede { font-size: .875rem; }
  .hero .nav { gap: 1.35rem; }
}

/* Landscape windows narrower than 45rem (landscape phones): the phone crop
   again, sky across the whole window and his head on the right. One column,
   the short sentence, and the email and GitHub stay in the sky. */
@media (min-aspect-ratio: 6/5) and (max-width: 44.99rem) {
  .hero {
    --top: 1.2rem;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 1.25rem;
  }
  .hero .photo {
    bottom: 0;
    height: auto;
  }
  .hero .photo img { object-position: 50% 0; }
  .hero .nav {
    grid-column: 1;
    grid-row: 1;
    gap: 1.6rem;
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
  }
  .hero .hero-text {
    grid-row: 2;
    max-width: calc(52vw - var(--edge));
  }
  .hero h1 { font-size: clamp(2.25rem, 1rem + 4.5vw, 3rem); }
  .lede {
    margin-top: .9rem;
    font-size: 1rem;
    line-height: 1.4;
  }
  .lede-full { display: none; }
  .hero-contact {
    display: flex;
    margin-top: .75rem;
    font-size: 1rem;
  }
}

/* Browser zoom of 300% and more: the words cannot fit on the photograph's
   sky at any crop, so they sit on plain sky, and the photograph follows
   under them as a strip. */
@media (max-height: 32.5rem) and (max-width: 34.99rem) {
  .hero {
    --top: 1.2rem;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
    background: var(--sky-top);
  }
  .hero .nav {
    grid-column: 1;
    grid-row: 1;
    gap: 1.6rem;
    margin-bottom: 1.25rem;
  }
  .hero .hero-text {
    grid-row: 2;
    max-width: 34rem;
  }
  .hero h1 { font-size: 2.25rem; }
  .lede {
    margin-top: .9rem;
    font-size: 1rem;
    line-height: 1.4;
  }
  .lede-full { display: none; }
  .hero-contact {
    display: flex;
    margin-top: .75rem;
    font-size: 1rem;
  }
  .hero .photo {
    position: relative;
    inset: auto;
    z-index: auto;
    height: auto;
    grid-column: 1;
    grid-row: 3;
    margin: 1.5rem calc(-1 * var(--edge)) 0;
  }
  .hero .photo img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 50% 0;
  }
}

/* ---------- the sheet ---------- */

.sheet {
  position: relative;
  z-index: 1;
  background: var(--paper);
  box-shadow: 0 -1rem 2.25rem -1rem rgb(4 10 17 / .2);
}

.wrap { padding-inline: var(--edge); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.sheet-contact {
  display: none;
  padding: 1.35rem var(--edge) 0;
  font-size: 1.0625rem;
}
.sheet-contact a {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
/* On phones the sentence under the name has no room in the sky, so it opens
   the sheet instead, just above the email and GitHub. */
.sheet-lede {
  display: none;
  max-width: 36em;
  padding: 1.35rem var(--edge) 0;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.sheet-lede + .sheet-contact { padding-top: .85rem; }
@media (max-aspect-ratio: 5/8), (max-aspect-ratio: 6/5) and (max-width: 49.99rem) {
  .sheet-contact { display: flex; }
  .sheet-lede { display: block; }
}
/* Landscape phones and zoomed windows keep the email and GitHub in the sky. */
@media (min-aspect-ratio: 6/5) and (max-width: 44.99rem), (max-height: 32.5rem) and (max-width: 34.99rem) {
  .sheet-contact,
  .sheet-lede { display: none; }
}

/* Every section opens on a rule across the full measure, its title under it. */
.section { padding-top: var(--space); }

.title {
  padding-top: clamp(.95rem, 1.5vw, 1.35rem);
  border-top: 1px solid var(--rule);
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -.034em;
  line-height: 1.05;
}
.title + * { margin-top: clamp(2rem, 4vw, 3.5rem); }

.list { list-style: none; padding: 0; }

/* intro */

.intro { padding-top: clamp(3.5rem, 6.5vw, 6.5rem); }
.intro p {
  max-width: 29em;
  font-size: clamp(1.3125rem, .98rem + 1.15vw, 2rem);
  font-weight: 430;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.intro p + p {
  margin-top: 1em;
  color: var(--ink-2);
}

/* the three fields: one row per page, the whole row a link */

.fields { max-width: 58rem; }
.intro .fields { margin-top: clamp(3.5rem, 7vw, 6.25rem); }
.fields ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.fields li { border-bottom: 1px solid var(--line); }
/* The link box reaches .75rem past the text on both sides (and gives it back
   as margin), so the focus ring has room for the arrow's nudge. */
.fields a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  align-items: center;
  margin-inline: -.75rem;
  padding: clamp(1.1rem, 2vw, 1.7rem) .75rem;
  color: var(--ink);
  text-decoration: none;
}
.f-name {
  grid-column: 1;
  font-size: clamp(1.625rem, 1.1rem + 1.9vw, 2.75rem);
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -.035em;
  transition: color .35s var(--ease);
}
.f-note {
  grid-column: 1;
  margin-top: .4rem;
  color: var(--ink-2);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.45;
}
/* The arrow is the Phosphor ArrowRight icon (regular), an SVG with fixed
   width and height so it can never stretch. */
.f-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: clamp(1.5rem, 1.15rem + .9vw, 2rem);
  height: clamp(1.5rem, 1.15rem + .9vw, 2rem);
  transition: transform .5s var(--ease), color .35s var(--ease);
}
/* Hover only on devices that really hover: a tap on a phone would otherwise
   leave the row coloured and the arrow pushed past the line. */
@media (hover: hover) {
  .fields a:hover .f-name,
  .fields a:hover .f-go { color: var(--accent); }
  .fields a:hover .f-go { transform: translateX(.45rem); }
}
.fields a:focus-visible .f-name,
.fields a:focus-visible .f-go { color: var(--accent); }
.fields a:focus-visible .f-go { transform: translateX(.45rem); }
.fields a:focus-visible { outline-offset: 2px; }

/* "Other fields" at the end of a field page sits under its own section
   title, so its rows stay smaller than that title. */
.elsewhere .f-name { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); }
.elsewhere .f-go {
  width: clamp(1.3rem, 1.05rem + .6vw, 1.625rem);
  height: clamp(1.3rem, 1.05rem + .6vw, 1.625rem);
}

/* ---------- mats: the product screenshots ---------- */

/* The outline stops where a mat runs off the page. */
.mat {
  background: var(--mat);
  border: 1px solid var(--mat-edge);
}

/* ---------- devices ----------
   The screenshots sit in Apple's own product bezels (Apple Design Resources:
   iPhone 18 Pro Max and MacBook Air 13-inch M5), silver in light mode, black
   and midnight in dark. Each device is the bezel image laid over its own
   screen image. The screen box is the bezel's transparent opening, measured in
   Apple's files (iPhone 1470 x 3000 with the screen at 75,66 1320 x 2868;
   MacBook 3400 x 2240 with the screen at 420,288 2560 x 1664), so the two
   always line up and a screen can be swapped without touching the bezel.
   The shadow is cast by the whole device, so the frame never shades its own
   screen. Built by photo/make_devices.py. */

.device {
  position: relative;
  filter: drop-shadow(0 clamp(6px, 1.3vw, 18px) clamp(10px, 2.2vw, 30px) var(--device-shadow));
}
.device--iphone { aspect-ratio: 1470 / 3000; }
.device--mac { aspect-ratio: 3400 / 2240; }
.device-screen,
.device-bezel {
  position: absolute;
  display: block;
}
.device-screen img,
.device-bezel img {
  display: block;
  width: 100%;
  height: 100%;
}
.device-bezel { inset: 0; }
.device-screen {
  overflow: hidden;
  background: #000;
}
/* The display's own 55 pt corners, or its square corners would show past the frame. */
.device--iphone .device-screen {
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  border-radius: 12.5% / 5.753%;
}
.device--mac .device-screen {
  left: 12.353%;
  top: 12.857%;
  width: 75.294%;
  height: 74.286%;
}

/* Aelius: the MacBook, with the iPhone standing in front of its right end on
   the same table. DormDash is the mirror image. The phone is drawn a little
   larger than life (about the height of the laptop's screen) so its screen
   stays legible, more so on a phone. */
.compose { position: relative; }
.compose--aelius { padding-right: 9%; }
.compose--dd { padding-left: 9%; }
.compose .device--iphone {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 20%;
}
.compose--aelius .device--iphone { right: 0; }
.compose--dd .device--iphone { left: 0; }
@media (max-width: 39.99rem) {
  .compose--aelius { padding-right: 14%; }
  .compose--dd { padding-left: 14%; }
  .compose .device--iphone { width: 26%; }
}

/* ---------- the two companies, on the home page ---------- */

.ventures {
  display: grid;
  row-gap: clamp(3.5rem, 7vw, 6.5rem);
}
.venture {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.6rem;
}
/* Below desktop the mat runs edge to edge, the screenshots aligned with the text. */
.venture .mat {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-inline: calc(-1 * var(--edge));
  padding: var(--mat-pad) var(--edge);
  border-inline: 0;
}
.venture-text {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 34em;
}
.venture h3 {
  font-size: clamp(1.625rem, 1.25rem + 1vw, 2.25rem);
  font-weight: 580;
  letter-spacing: -.034em;
  line-height: 1;
}
.meta {
  margin-top: .6rem;
  color: var(--ink-3);
  font-size: .9375rem;
  line-height: 1.5;
}
.venture-text p:not(.meta) { margin-top: 1rem; }
.venture-text .meta + p { margin-top: 1.25rem; }
.out { font-weight: 520; }

/* Desktop: a spread. Aelius runs off the left edge with its words beside it;
   DormDash is the mirror image. */
@media (min-width: 64rem) {
  .venture { align-items: end; }
  .venture .mat { grid-row: 1; }
  .venture-text { grid-row: 1; }
  .venture--aelius .mat {
    grid-column: 1 / span 8;
    margin-right: 0;
    padding: var(--mat-pad);
    padding-left: var(--edge);
    border-right: 1px solid var(--mat-edge);
  }
  .venture--aelius .venture-text { grid-column: 9 / -1; }
  /* Two phones are narrower than the Aelius screens, so their mat starts a
     column later and they stand against the right edge of the measure, as
     the Aelius screens stand against the left. */
  .venture--dd .mat {
    grid-column: 6 / -1;
    margin-left: 0;
    padding: var(--mat-pad);
    padding-right: var(--edge);
    border-left: 1px solid var(--mat-edge);
  }
  .venture--dd .venture-text { grid-column: 1 / span 5; }
}

/* ---------- experience: one row per job ---------- */

.jobs { list-style: none; padding: 0; }
.job {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line);
}
.job:first-child {
  padding-top: 0;
  border-top: 0;
}
.job:last-child { padding-bottom: 0; }
/* In the markup the company comes first, so moving by headings lands on a
   job before its dates; on screen the dates still lead. */
.job > * { grid-column: 1 / -1; }
.job-meta { grid-row: 1; }
.job-head { grid-row: 2; }
.job .points { grid-row: 3; }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.25rem;
  margin-bottom: .55rem;
  color: var(--ink-3);
  font-size: .9375rem;
}
.job-fields a { color: var(--ink-2); }
/* A taller target for the short field links, without moving the line. */
.job-fields a {
  display: inline-block;
  padding-block: .25rem;
  margin-block: -.25rem;
}
.job-fields a:hover { color: var(--ink); }

.job h3,
.school h3,
.project-sub h3 {
  font-size: clamp(1.25rem, 1.1rem + .4vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.role {
  margin-top: .25rem;
  color: var(--ink-2);
}
.when {
  margin-top: .25rem;
  color: var(--ink-3);
  font-size: .9375rem;
}

.points {
  max-width: 36em;
  padding-left: 1.1rem;
  list-style: disc;
}
.job .points { margin-top: 1.1rem; }
.points li { padding-left: .3rem; }
.points li + li { margin-top: .55rem; }
.points li::marker { color: var(--ink-3); }

@media (min-width: 48rem) {
  /* Dates and company stack on the left; the second row takes any extra
     height from the bullets, so the company stays under its dates. */
  .job {
    grid-template-rows: auto 1fr;
    align-items: baseline;
  }
  .job-meta {
    grid-column: 1 / span 4;
    grid-row: 1;
    display: block;
    margin-bottom: .45rem;
  }
  .job-meta p + p { margin-top: .2rem; }
  .job-head { grid-column: 1 / span 4; grid-row: 2; }
  .job .points {
    grid-column: 5 / -1;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}
@media (min-width: 64rem) {
  .job { grid-template-rows: auto; }
  .job-meta {
    grid-column: 1 / span 3;
    margin-bottom: 0;
  }
  .job-head { grid-column: 4 / span 3; grid-row: 1; }
  .job .points { grid-column: 7 / -1; grid-row: 1; }
}

/* ---------- education ---------- */

.schools {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
}
.school { grid-column: 1 / -1; }
.school .note {
  margin-top: .9rem;
  max-width: 30em;
}
@media (min-width: 48rem) {
  .school { grid-column: span 6; }
}

/* ---------- contact ---------- */

.contact { padding-bottom: var(--space); }
.mail {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(1.625rem, .9rem + 2.7vw, 3.25rem);
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: .06em;
  text-underline-offset: .17em;
  overflow-wrap: anywhere;   /* only ever breaks in a window under 300px (high zoom) */
  transition: color .35s var(--ease);
}
.mail:hover {
  color: var(--accent);
  text-decoration-thickness: .06em;
}
.contact-notes {
  display: grid;
  gap: .4rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}
.contact-notes p:first-child { color: var(--ink-2); }
.contact-notes a { font-weight: 520; }

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .9375rem;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.6rem 2rem;
}
.foot nav { display: flex; gap: 1.75rem; }
.foot a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot nav a {
  padding-inline: .375rem;
  margin-inline: -.375rem;
}
.foot-name { font-weight: 560; }
.foot a:hover,
.foot a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- field pages: the same photograph, cut at his collar ---------- */

/* The band crop is 6000 x 1400 of the frame, 23.4vw tall at full width. */
.band {
  --top: clamp(1.4rem, 3vw, 3rem);
  height: clamp(19rem, 23.4vw, 37.5rem);
  grid-template-rows: auto 1fr;
}
.band .photo img { object-position: 28% 0; }
.home {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-top: -.85rem;
  font-weight: 600;
}
.band .nav { grid-column: 2; grid-row: 1; }
/* Below 1300px wide the band stops growing, so the hills stay at the same
   height while a title set by the width would grow toward them. The title
   is sized so the longest one, "Software engineering", keeps to one line in
   its column down to about 900px. */
.band-title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: clamp(2.25rem, 4.6vw, 4.5rem);
  max-width: calc(46vw - var(--edge));
}
.band h1 {
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  font-weight: 580;
  line-height: .98;
  letter-spacing: -.038em;
}

@media (max-aspect-ratio: 6/5), (max-width: 49.99rem), (min-aspect-ratio: 3/2) and (max-width: 62.49rem) {
  .band-title { max-width: calc(49vw - var(--edge)); }
}

@media (max-aspect-ratio: 5/8), (max-aspect-ratio: 6/5) and (max-width: 49.99rem) {
  .band .photo img { object-position: 30% 0; }
  .band {
    --top: 1.35rem;
    height: clamp(17.5rem, 80vw, 22rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
  }
  .band .home { grid-row: 1; }
  .band .nav {
    grid-column: 1;
    grid-row: 2;
    gap: 1.6rem;
    margin-top: 0;
  }
  .band-title {
    grid-row: 3;
    margin-top: 1.4rem;
    max-width: calc(55vw - var(--edge));
  }
  .band h1 { font-size: clamp(1.875rem, 1rem + 4.6vw, 2.5rem); }
}

.lead { padding-top: clamp(3.5rem, 6.5vw, 6.5rem); }
.page-lede {
  max-width: 29em;
  font-size: clamp(1.3125rem, .98rem + 1.15vw, 2rem);
  font-weight: 430;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.page-lede + p { margin-top: 1.5rem; }

/* A project on the software page: title, who and when, the mat, the facts. */
.project-meta { margin-top: .8rem; }
.project-meta p + p { margin-top: .15rem; }
.project-meta .role { margin-top: 0; }
.project-meta a { font-weight: 520; }
.project .mat { margin-top: clamp(1.75rem, 3.5vw, 3rem); }

/* Below desktop the project mat runs edge to edge. */
.project .mat {
  margin-inline: calc(-1 * var(--edge));
  padding: var(--mat-pad) var(--edge);
  border-inline: 0;
}
@media (min-width: 64rem) {
  .project--left .mat {
    width: calc(10 / 12 * (100% + var(--gap)) - var(--gap) + var(--edge));
    margin-right: 0;
    padding: var(--mat-pad);
    padding-left: var(--edge);
    border-right: 1px solid var(--mat-edge);
  }
  .project--right .mat {
    width: calc(10 / 12 * (100% + var(--gap)) - var(--gap) + var(--edge));
    margin-left: auto;
    margin-right: calc(-1 * var(--edge));
    padding: var(--mat-pad);
    padding-right: var(--edge);
    border-left: 1px solid var(--mat-edge);
  }
}

/* Facts an engineer can scan: the label in secondary ink, the value a sentence. */
.facts {
  display: grid;
  row-gap: 1.25rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}
.facts dt { color: var(--ink-2); }
.facts dd { max-width: 38em; }
@media (min-width: 48rem) {
  .facts > div {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: baseline;
  }
  .facts dt { grid-column: 1 / span 3; }
  .facts dd { grid-column: 4 / span 8; }
}
@media (min-width: 64rem) {
  .facts dt { grid-column: 1 / span 2; }
  .facts dd { grid-column: 3 / span 7; }
}
.after-facts { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 38em; }

.project-sub .points { margin-top: 1.25rem; }

.closing {
  max-width: 29em;
  font-size: clamp(1.3125rem, .98rem + 1.15vw, 2rem);
  font-weight: 430;
  line-height: 1.3;
  letter-spacing: -.018em;
}

/* The not-found page is short: the sheet fills the screen so the footer sits at the bottom. */
.short {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.short .band { flex: none; }
.short .sheet { flex: 1 0 auto; }
.notfound { padding-bottom: var(--space); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-text > *,
  .hero .nav,
  .band-title,
  .band .nav,
  .band .home {
    animation: rise 1s var(--ease) both;
  }
  .hero h1 { animation-delay: .05s; }
  .hero .lede { animation-delay: .16s; }
  .hero .hero-contact { animation-delay: .24s; }
  .hero .nav,
  .band .nav { animation-delay: .28s; }
  .band-title { animation-delay: .1s; }
}

/* The words are readable from the first frame and settle into place; they
   never start invisible (that also lets the browser count the name and the
   sentence as the page's largest paint). */
@keyframes rise {
  from { transform: translateY(.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* No sheet sliding over a still photo: the page simply scrolls. */
  .hero,
  .band { position: relative; }
  .sheet { box-shadow: none; }
}

/* ---------- print: a plain one-to-two page resume ---------- */

@media print {
  @page { margin: 14mm 16mm; }
  :root {
    --paper: #fff;
    --ink: #000;
    --ink-2: #222;
    --ink-3: #444;
    --line: #bbb;
    --rule: #999;
    --accent: #000;
    --edge: 0;
  }
  html,
  body { background: #fff; }
  body { font-size: 9.5pt; line-height: 1.38; }
  a { color: #000; text-decoration: none; }

  .photo,
  .hero::after,
  .band::after,
  .nav,
  .skip,
  .mat,
  .fields,
  .elsewhere,
  .hero-contact,
  .sheet-lede,
  .foot { display: none !important; }
  /* A letter-size page is narrow and portrait, which the screen rules read
     as a phone: keep the whole sentence on paper. */
  .lede-full { display: inline !important; }

  .hero,
  .band {
    position: static;
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    background: none;
    color: #000;
  }
  .hero-text,
  .band-title { max-width: none; margin: 0; }
  .hero h1,
  .band h1 { margin: 0; font-size: 20pt; letter-spacing: -.02em; text-box: normal; line-height: 1.1; }
  /* The field pages print his name above their title. */
  .band .home {
    display: block;
    margin: 0 0 3pt;
    padding: 0;
    font-size: 10pt;
    font-weight: 600;
    line-height: 1.3;
    text-box: normal;
  }
  .lede { max-width: none; margin-top: 5pt; font-size: 10.5pt; }

  .sheet { box-shadow: none; }
  .sheet-contact {
    display: flex !important;
    padding: 4pt 0 0;
    font-size: 10pt;
    font-weight: 400;
  }
  /* On paper the link text has to be the address itself. */
  .sheet-contact a[rel="me"] { font-size: 0; }
  .sheet-contact a[rel="me"]::after {
    content: "github.com/struloeff";
    font-size: 10pt;
  }
  .wrap { padding-inline: 0; }
  .section,
  .intro,
  .lead { padding-top: 12pt; }
  .intro p,
  .page-lede,
  .closing {
    max-width: none;
    font-size: 10pt;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.38;
  }
  .intro p + p { margin-top: 4pt; }

  .title {
    padding-top: 3pt;
    font-size: 12.5pt;
    letter-spacing: -.01em;
    break-after: avoid;
  }
  .title + * { margin-top: 6pt; }
  .schools,
  .contact { break-inside: avoid; }

  .ventures { row-gap: 8pt; }
  .venture { display: block; break-inside: avoid; }
  .venture h3 { font-size: 11pt; }
  .venture-text { max-width: none; }
  .meta,
  .when,
  .role,
  .job-meta { font-size: 9pt; margin-top: 1pt; }
  .venture-text p:not(.meta),
  .venture-text .meta + p { margin-top: 3pt; }

  .job {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 14pt;
    padding-block: 5pt;
    border-top: 0;
    break-inside: avoid;
  }
  .job:first-child { padding-top: 0; }
  .job-meta { grid-column: 1; grid-row: 1; display: block; margin: 0; }
  .job-fields { display: none; }
  .job-head { grid-column: 1; grid-row: 2; }
  .job .points { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .job h3,
  .school h3,
  .project-sub h3 { font-size: 10.5pt; }
  .points { max-width: none; }
  .points li + li { margin-top: 1pt; }

  .schools { row-gap: 6pt; grid-template-columns: 1fr 1fr; }
  .school { grid-column: auto; }
  .school .note { margin-top: 3pt; }

  .contact { padding-bottom: 0; }
  .mail { font-size: 12pt; letter-spacing: 0; text-decoration: none; }
  .contact-notes { margin-top: 4pt; gap: 1pt; }

  .project-meta { margin-top: 2pt; }
  .facts { margin-top: 4pt; row-gap: 2pt; }
  .facts > div {
    display: grid;
    grid-template-columns: 20% minmax(0, 1fr);
    column-gap: 10pt;
  }
  .facts dt,
  .facts dd { grid-column: auto; }
  .facts dd { max-width: none; }
  .after-facts { margin-top: 4pt; }
  .project-sub .points { margin-top: 4pt; }
}
