/* Local copies of the existing Manrope font remove third-party font requests. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Keep image wrappers from changing the existing grid, crops, or spacing. */
.responsive-image { display: contents; }
/* Source elements select image files; they must never become grid/flex items
   when display: contents exposes the picture's children to the parent layout. */
.responsive-image > source { display: none; }
[data-random-leaf] { visibility: hidden; }
[data-random-leaf].is-loaded { visibility: visible; }

:root {
  --white: #fff;
  --ink: #000;
  --muted: #a1a39a;
  --lime: #8dc400;
  --lime-hover: #719d00;
  --gutter: 64px;
  --nav-padding-top: 44px;
  --nav-height: calc(var(--nav-padding-top) + 40px + 16px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-height); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
main[data-portfolio-content] { display: flex; flex-direction: column; }
main[data-portfolio-content] > .leaf-home { margin-top: auto; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
a:not(.pill):hover { color: var(--lime); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
a:not([href]) { cursor: default; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: var(--nav-padding-top) var(--gutter) 16px;
}
.wordmark { font-size: 24px; font-weight: 700; line-height: 1.35; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 68px;
  background: var(--lime);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}
a.pill[href]:hover { background: var(--lime-hover); }
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 64px var(--gutter);
  font-size: 16px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.weather { text-align: center; white-space: nowrap; }
.clock { text-align: right; white-space: nowrap; }
.leaf-home { display: flex; justify-content: center; padding-top: 256px; padding-bottom: 64px; }
.leaf-home a { display: block; }
.leaf-home img { display: block; width: 139px; height: 143px; object-fit: contain; }

@media (max-width: 800px) {
  :root { --gutter: 16px; --nav-padding-top: 16px; }
  .site-header { background: var(--white); }
  .wordmark { font-size: 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; padding-block: 16px; }
  .site-footer, .site-footer > * { text-align: center; }
  .leaf-home img { width: 97px; height: 100px; }
}

@media print {
  body { display: block; min-height: 0; }
  .leaf-home { display: none; }
}
