@font-face {
  font-family: Race;
  src: url(media/display.woff2) format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(media/sans.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #17383c;
  --cream: #fffaf0;
  --green: #0b675c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1rem/1.65 DM, system-ui, sans-serif;
}
main { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.mast { padding: clamp(2.4rem, 6vw, 5rem) 0 1.75rem; border-bottom: .3rem solid var(--ink); }
h1, h2, p, blockquote { margin: 0; }
h1 { font: 900 clamp(2rem, 6vw, 3.8rem)/1.05 Race, system-ui, sans-serif; letter-spacing: .035em; }
h1 em { color: var(--green); font-style: normal; }
a { color: var(--green); text-underline-offset: .17em; }
h1 a { color: inherit; text-decoration-color: #e8b126; text-decoration-thickness: .075em; }
a:focus-visible, button:focus-visible { outline: 3px solid #b94a16; outline-offset: 3px; }
article, .inspiration { padding: clamp(1.55rem, 4vw, 2.4rem) 0; border-bottom: 1px solid #c8d0c0; }
article h2, .inspiration h2 { color: var(--green); font-size: .86rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .75rem; }
blockquote { white-space: pre-line; overflow-wrap: anywhere; }
.skill { font-weight: 750; }
.folder { margin: .3rem 0 1.2rem; }
.folder code { font-size: .84rem; color: #4a625c; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: .55rem; margin-top: .4rem; }
.inspiration .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.inspiration .gallery img { aspect-ratio: 16 / 9; }
.gallery a { display: block; background: white; border: 1px solid #c8d0c0; border-radius: .4rem; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; display: block; }
dialog { width: min(94vw, 85rem); max-height: 94dvh; padding: .65rem; border: 0; border-radius: .6rem; background: var(--ink); color: white; }
dialog::backdrop { background: #0b2025e8; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .6rem; }
.viewer-top button { font: inherit; cursor: pointer; background: #ffda70; color: var(--ink); border: 0; border-radius: .35rem; padding: .2rem .8rem; }
#viewer-image { display: block; width: 100%; max-height: 78dvh; object-fit: contain; }
