/* joshuafulfs.com */
:root {
  --bg: #F4F2ED;
  --ink: #1C1B19;
  --muted: #6B6862;
  --rule: #D9D4C9;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
img { max-width: 100%; }

/* Links: faint resting underline, ink underline draws in on hover */
.ln {
  text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--rule), var(--rule));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .4s var(--ease), color .2s;
}
.ln:hover, .ln:focus-visible { background-size: 100% 1px, 100% 1px; }
.prose a { text-decoration: none; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--rule), var(--rule)); background-size: 0% 1px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.prose a:hover, .prose a:focus-visible { background-size: 100% 1px, 100% 1px; }
.mute { color: var(--muted); }
.mute:hover, .mute:focus-visible { color: var(--ink); }
.muted { color: var(--muted); }
:focus-visible { outline: 1px dashed var(--ink); outline-offset: 3px; }

/* Load-in */
.rise { animation: rise .8s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .ln, .prose a, .field, .btn, .cv, .cv-frame img { transition: none; }
}

/* Type helpers */
.label { margin: 0 0 20px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meta.small { font-size: 11px; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.title { font-weight: 500; line-height: 1.45; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Home */
.home { min-height: 100vh; padding: 18vh 6rem 64px; }
.home main { display: flex; flex-direction: column; gap: 40px; max-width: 560px; }
.home h1 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.home-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-family: var(--mono); font-size: 15px; }
.home-links { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 12px; }

/* Inner pages */
.wrap { min-height: 100vh; display: flex; flex-direction: column; gap: 96px; padding: 56px 6rem 72px; }
.wrap > * { max-width: 880px; width: 100%; }
header.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.brand { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
nav.primary { display: flex; gap: 20px; font-family: var(--mono); font-size: 13px; }
footer.site { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 12px; }

/* Lists (work, writing) */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 32px; padding: 14px 0; }
.list-tight .row { padding: 10px 0; }
.row .when { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.row .what { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.block + .block { margin-top: 72px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.label-row .label { margin: 0; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.portrait { display: block; width: 200px; height: auto; flex-shrink: 0; }
.about-text { display: flex; flex-direction: column; gap: 40px; max-width: 560px; min-width: 0; flex: 1 1 320px; }
.prose-about { font-size: 17px; line-height: 1.65; }
.prose-about p { margin: 0 0 18px; }
.prose-about p:last-child { margin-bottom: 0; }
.kv { margin: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); row-gap: 10px; font-family: var(--mono); font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv-sans { font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.kv-sans dt { font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.currently { padding-top: 32px; border-top: 1px solid var(--rule); }
.currently .label { margin-bottom: 16px; }
.cur-col { display: flex; flex-direction: column; gap: 12px; }
.cur[hidden], .cv[hidden] { display: none; }
.cur.is-pending { visibility: hidden; }
.cv-frame { overflow: hidden; }
.cv-frame img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.cv-frame img.is-loaded { opacity: 1; }
.playlists { align-self: flex-start; }
.playlists.indent { margin-left: 112px; }
.cur-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cur { display: flex; gap: 16px; align-items: flex-end; text-decoration: none; color: var(--ink); }
.cv { display: block; flex-shrink: 0; object-fit: cover; background: var(--rule); transition: transform .35s var(--ease), box-shadow .35s; }
.cv-book { width: 64px; height: 96px; }
.cv-square { width: 96px; height: 96px; }
.cur-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-bottom: 2px; }
.cur-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.cur-by { font-size: 14px; }
a.cur:hover .cv, a.cur:focus-visible .cv { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(28, 27, 25, .12); }
a.cur:hover .ln, a.cur:focus-visible .ln { background-size: 100% 1px, 100% 1px; }

/* Post */
.post { max-width: 640px; }
.post h1 { margin: 28px 0 14px; font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.post > .meta { margin: 0 0 48px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose p, .prose ul, .prose ol { margin: 0 0 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin: 44px 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.prose blockquote { margin: 8px 0 22px; padding: 0 0 0 20px; border-left: 1px solid var(--ink); color: var(--muted); }
.prose img { display: block; margin: 32px 0; }
.prose em:last-child { color: var(--muted); }
.post-end { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* Project pages (photo galleries) */
.project h1 { margin: 28px 0 14px; font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.project > .meta { margin: 0 0 24px; }
.project-intro { max-width: 640px; margin: 0 0 56px; font-size: 17px; line-height: 1.65; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.gallery li { display: flex; flex-direction: column; gap: 8px; }
.gallery a { display: block; background: var(--rule); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .25s; }
.gallery a:hover img, .gallery a:focus-visible img { opacity: .88; }

/* Subscribe */
.subscribe { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); max-width: 560px; }
.subscribe .label { margin-bottom: 8px; }
.subscribe .sub { margin-bottom: 20px; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 220px; font-family: var(--mono); font-size: 14px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; height: 44px; padding: 0; outline: none; transition: border-color .3s; }
.field:focus { border-bottom-color: var(--ink); }
.field::placeholder { color: var(--muted); }
.btn { font-family: var(--mono); font-size: 13px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; height: 44px; padding: 0 20px; cursor: pointer; transition: background .25s, color .25s; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--bg); }

/* Phone */
@media (max-width: 640px) {
  .home { padding: 22vh 24px 64px; }
  .home h1 { font-size: 30px; }
  .wrap { gap: 56px; padding: 32px 24px 48px; }
  .row { grid-template-columns: 1fr; row-gap: 4px; }
  .row .when { padding-top: 0; }
  .about { gap: 32px; }
  .portrait { width: 140px; }
  .cur-grid { grid-template-columns: 1fr; gap: 20px; }
  .cur { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: end; }
  .prose-about { font-size: 16px; }
  .post h1 { font-size: 28px; }
  .project h1 { font-size: 28px; }
  .project-intro { font-size: 16px; margin-bottom: 40px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .prose { font-size: 17px; }
}
