@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --ink: #30251f;
  --body: #51453c;
  --muted: #75675a;
  --accent: #873e28;
  --sun: #f3d36b;
  --pink: #f3c1b6;
  --rule: #d9cdbb;
  background: var(--paper);
  color: var(--body);
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; border-top: 3px solid var(--accent); }

.page { width: min(100% - 64px, 680px); margin-inline: auto; }

.masthead { display: flex; align-items: center; gap: 19px; padding-top: 68px; margin-bottom: 37px; }
.avatar-sketch { position: relative; flex: 0 0 auto; margin: 12px; }
.avatar-frame { position: absolute; width: 90px; height: 86px; left: -19px; top: -17px; transform: rotate(-5deg); }
.flow-sticker {
  margin-left: auto;
  padding: 10px 13px 11px;
  background: var(--sun);
  color: var(--ink);
  border: 1.5px solid var(--accent);
  border-radius: 4px 7px 3px 6px;
  box-shadow: 3px 3px 0 var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transform: rotate(4deg);
  animation: warm-flash 3.6s steps(1, end) infinite;
}
@keyframes warm-flash {
  0%, 100% { background-color: var(--sun); }
  50% { background-color: var(--pink); }
}

.avatar {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

h1, h2, h3, p { margin: 0; }

h1, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--ink); }

h1 { font-size: 67px; line-height: 1.045; letter-spacing: -1.35px; text-wrap: pretty; }

.intro-copy { margin-top: 29px; font-size: 18px; line-height: 1.75; letter-spacing: -0.2px; }

.building { margin-top: 61px; padding-top: 27px; border-top: 1px solid var(--rule); }

.label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1.65px; line-height: 1.5; text-transform: uppercase; }

.projects { list-style: none; margin: 29px 0 0; padding: 0; }
.projects li + li { margin-top: 27px; }
.projects h3 { display: block; font-size: 30px; line-height: 1.3; letter-spacing: -0.3px; }
.projects p { margin-top: 5px; font-size: 16px; line-height: 1.75; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  background-image: linear-gradient(174deg, transparent 12%, var(--sun) 13% 85%, transparent 86%);
  background-position: 0 90%;
  background-size: 100% 0;
  background-repeat: no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 180ms ease, text-underline-offset 180ms ease;
}
a:hover, a:focus-visible { background-size: 100% 72%; text-underline-offset: 6px; }
.projects a { white-space: nowrap; }
.project-arrow {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
  pointer-events: none;
}
.projects a:hover .project-arrow { transform: translate(2px, -2px) rotate(6deg); }
.doodle { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.masthead-mark { flex: 0 0 auto; transform: rotate(-11deg); }
.drawn-word { position: relative; display: inline-block; isolation: isolate; }
.build-word { margin-inline: 3px; }
.hero-oval { position: absolute; z-index: -1; width: 122%; height: 118%; left: -11%; top: -5%; stroke-width: 3; }
.hero-swash { position: absolute; z-index: -1; width: 110%; height: 30%; left: -5%; bottom: 0; color: var(--sun); stroke-width: 9; }
.footer-mark { position: absolute; right: 0; top: -45px; background: var(--paper); padding-left: 8px; transform: rotate(-7deg); }

/* Original ink asterisk; the browser uses a native fallback if SVG cursors fail. */
@media (hover: hover) and (pointer: fine) {
  html, body, a {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 3 13 25M4 8 24 20M4 21 23 6' fill='none' stroke='%23873e28' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='14' r='2' fill='%2330251f'/%3E%3C/svg%3E") 14 14, auto;
  }
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }

footer { position: relative; margin-top: 59px; padding-top: 27px; padding-bottom: 35px; border-top: 1px solid var(--rule); }
.footer-blocks { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; }
.footer-blocks p { margin-top: 14px; font-size: 14px; line-height: 1.8; }
.copyright { margin-top: 52px; color: var(--muted); font-size: 11px; line-height: 1.6; }

@media (max-width: 600px) {
  .page { width: calc(100% - 48px); }
  .masthead { gap: 9px; padding-top: 32px; margin-bottom: 31px; flex-wrap: wrap; }
  .avatar-sketch { margin: 10px; }
  .avatar-frame { width: 82px; height: 80px; left: -18px; top: -17px; }
  .masthead-mark { width: 47px; height: 47px; }
  .flow-sticker { padding: 8px 9px; font-size: 10px; }
  .footer-mark { width: 79px; }
  .avatar { width: 46px; height: 46px; }
  h1 { font-size: clamp(42px, 11.7vw, 60px); line-height: 1.075; letter-spacing: -0.65px; }
  .intro-copy { margin-top: 24px; font-size: 16px; line-height: 1.75; letter-spacing: -0.12px; }
  .building { margin-top: 42px; padding-top: 23px; }
  .projects { margin-top: 25px; }
  .projects li + li { margin-top: 25px; }
  .projects h3 { font-size: 28px; }
  .projects p { font-size: 15px; line-height: 1.8; }
  footer { margin-top: 42px; padding-top: 25px; padding-bottom: 28px; }
  .footer-blocks { grid-template-columns: 1fr; gap: 28px; }
  .footer-blocks p { margin-top: 11px; }
  .copyright { margin-top: 38px; }
}

/* Let the header flow on especially narrow screens instead of squeezing the chip. */
@media (max-width: 359px) {
  .flow-sticker { margin: 8px 8px 6px auto; }
  .projects a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
